[OS X TeX] texshop and preview
Ross Moore
ross at ics.mq.edu.au
Sat May 22 21:52:46 EDT 2010
Hi Victor,
On 22/05/2010, at 10:48 AM, Victor Ivrii wrote:
> The following example was posted in MacOSX TeX mailing list
>
> \documentclass{article}
> \usepackage{tikz}
> \usepackage[papersize={51pt,51pt},margin=.5pt,centering]{geometry}
> \begin{document}
> \parindent 0pt
> \begin{tikzpicture}
> \draw[line width=.5pt] (0,0) circle (24.75pt);
> \draw (0,0) node{24.75pt};
> \end{tikzpicture}
> \end{document}
>
> It results in pdf file which looks perfect in AR, evince, kpdf, Apple
> "Get Info" but not in Apple Preview and other applications using the
> same engine: it looks like pdf was slightly cropped from the top and a
> tiny margin was added on the bottom.
When I run this and look at the result there is a problem
at the right-hand edge too.
My first though was that it could be related to the different
interpretations of how long is a point.
Is it 72 points per inch, or ~72.27 points per inch ?
If you uncompress the PDF and look at its internal coding,
you'll see:
>>> 0.0 0.0 m
>>> 24.65785 0.0 m
>>> 24.65785 13.68492 13.68492 24.65785 0.0 24.65785 c
so the circle is drawn with radius: 24.65785
which is very close to 25.75 x 72/72.27 .
> Further, running pdfcrop
> generates pdf which looks perfect in Apple Preview and Co as well
When I view it in Apple's Preview it actually looks fine; Skim also.
Where it does not look fine is in TeXshop's Preview.
So there is definitely a problem in some viewers based on Apple's
PDFKit, but maybe Apple doesn't actually use it themselves?
BTW, my versions are quite old:
Preview v3.0.9
Skim 1.2.7 (45)
TeXshop 2.31 under MacOS X 10.4.11 .
>
> Would be it possible to explain the reason of such unusual behavior?
Maybe an error has been introduced with either OSX 10.5 or 10.6 ?
>
> Victor
Hope this helps,
Ross
-------------------------------------------------------------
Ross Moore ross.moore at mq.edu.au
Mathematics Department office: E7A-419
Macquarie University tel: +61 (0)2 9850 8955
Sydney, Australia 2109 fax: +61 (0)2 9850 8114
------------------------------------------------------------------------
More information about the MacOSX-TeX
mailing list