[OS X TeX] texshop and preview

Ross Moore ross.moore at mq.edu.au
Sun May 23 16:26:59 EDT 2010


On 24/05/2010, at 5:20 AM, Michael Sharpe wrote:

> I have some more details that are puzzling, to say the least.
>
> 1. If I run pstopdf on the ps file, I get a a cut-off circle, and  
> the media box is set to [0 0 50.81 50.81], a bit smaller ( a little  
> less than half a line width) than the BoundingBox in the ps file.  
> (This is the same size media box produced by pdflatex.)

72/72.27 x 51 =  50.80946450809465  ~ 50.81

TeX applies the 72/72.27  rescaling to the values provided in the  
Tikz code,
(unless you have specified 'truept' as the unit of measure; e.g. 51  
truept.)

>
> 2. If I run eps2pdf on the eps file, ...

      What was the BoundingBox in the .eps ?
      Presumably this is what goes into the MediaBox here:

> ... I get no cut-off, and the media box is set to [0 0 51 51].

This is a rounding to the nearest (higher?) integer.
Since it is larger, then you'd not expect any cutoff.

>
> 3. There appear to be few substantial differences between the .ps  
> and .eps---the BoundingBoxes are the same,

Not sure what you mean by this; there is no BoundingBox in the .ps file.
This is not created until the conversion to .eps .

> and I removed the HiResBoundingBox from the .eps just in case that  
> was an issue. (It was not.)

When I follow those steps, the .eps starts with:

%!PS-Adobe-2.0 EPSF-2.0
%%BoundingBox: 0 791 50 842
%%HiResBoundingBox: 0.442188 791.842188 49.957813 841.357813

which converts to PDF with

<</Type/Page/MediaBox [0 0 50 51]

This is similar to what I get with  pdfcrop  on the PDF made
using  pdflatex .
It is not exactly square, so should be regarded as incorrect, IMHO.


>
> 4. When I ran eps2pdf on the ps file, cut-off occurred. So, the  
> differences between the eps and ps must be significant, but I don't  
> understand why.

That rounding down to 50 instead of up to 51 should result
in a small cut-off at the right.
If there is also cutoff at the top, then a small translation
must have occurred also, when creating the .eps version.

>
> Michael


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