[OS X TeX] Undesired Rotated Figure in PSTricks

Bruno Voisin bvoisin at mac.com
Mon May 16 18:57:05 CEST 2005


Le 16 mai 05 à 16:57, Maarten Sneep a écrit :

> On 16 May 2005, at 08:05, Vince McGarry wrote:
>
>> I'm having a problem that I think may be related to dvips.  
>> Rotations are occurring that I can neither explain nor fix. I am  
>> enclosing a few files with comments. My desire is to get things  
>> working again with Herb Schulz's version of ps4pdf, however the  
>> rotation problem seems to even affect the display in TeXShop's pdf  
>> viewer when compiling with latex-dvips-gs. I seem to remember a  
>> discussion about this a while back, but can't find it.
>
> It is related to the epstopdf script. It tries to be smart when  
> deciding the orientation of a pdf when generating it from an eps  
> file. A bit too smart for its own good. You can either try to use  
> pstopdf (which is Apple's converter), or dig inside the epstopdf  
> script and fix it*. Cheating is allowed: adding invisible,  
> unrotated text will fool the algorithm, and force the figure to be  
> in the orientation you expect (or at least the is what I heard).
>
> Maarten
>
> * Although I have version 2.9.1 draft on my machine, and it seems  
> to have fixed tissue already:
> #  2004/03/17 v2.9.1draft (Gerben Wierda)
> #    * No autorotate page

I don't think that matters here: in "TeX + dvips + GS" mode, TeXShop  
doesn't use epstopdf, and uses instead the script /usr/local/bin/ 
simpdftex which doesn't call gs in the same way than epstopdf.  
epstopdf says

       my $pipe = "$GS -q -sDEVICE=pdfwrite $GSOPTS - 
dAutoRotatePages=/None" .
           " -sOutputFile=$OutputFilename - -c quit";

while simpdftex says

     #distillerprog="/usr/local/bin/gs -dCompatibility=1.3 -q - 
dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=- -c save pop"

Hence you have to add "-dAutoRotatePages=/None" to the list of  
options when calling gs. I don't know how this could be done.  
Possibly by using the option --distiller of simpdftex.

You may try in TeXShop's pref Engine > "TeX + dvips + distiller" to  
replace, for example,

     altpdflatex --maxpfb

by

     altpdflatex --maxpfb --distiller="/usr/local/bin/gs - 
dCompatibility=1.3 -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite - 
dAutoRotatePages=/None -sOutputFile=- -c save pop"

Absolutely untested!

Bruno Voisin

--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
           & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>





More information about the macostex-archives mailing list