[OS X TeX] Undesired Rotated Figure in PSTricks

Bruno Voisin bvoisin at mac.com
Wed May 18 05:43:18 EDT 2005


Le 18 mai 05 à 07:25, Vince McGarry a écrit :

> I'm still trying to understand how all this works and I appreciate  
> all of the help. I decided to look at this file and found this
>
> # Default distiller is ps2pdf from /usr/local/bin in no filter mode
> # as the direct call to a filtering gs does not work yet for some  
> reason
> #distillerpath=""
> #distillerprog="/usr/local/bin/gs -dCompatibility=1.3 -q -dNOPAUSE - 
> dBATCH -sDEVICE=pdfwrite -sOutputFile=- -c save pop"
> #distillerfilter="yes"
>
> All of this is a comment.

Right. I should have looked closer.

> To kludge or not to kludge---change 90 to 89.99999. That'll get me  
> by for the moment.

I've been trying many things in TeXShop. No luck. The actual  
distiller used by altpdflatex is:

     distillerprog="ps2pdf13"

which turns eventually into /usr/local/bin/ps2pdfwr. Given ps2pdf  
doesn't accept options (or at least not in a syntax understandable by  
me) I finally edited this ps2pdfwr, using "sudo pico" in Terminal and  
adding the option -dAutoRotatePages=/None, so that the last line of  
this file became:

     exec $GS_EXECUTABLE $OPTIONS -q -dNOPAUSE -dBATCH - 
dAutoRotatePages=/None -sDEVICE=pdfwrite "-sOutputFile=$outfile"  
$OPTIONS -c .setpdfwrite -f "$infile"

Tested the result with the pstricks example in your first message:

> \documentclass[11pt]{article}
>
> \usepackage{multido}
>
>     \usepackage{pstricks}
>     \usepackage{pst-node}
>
> \begin{document}
> \newcommand{\Salary}[1]{#1}
>         \begin{pspicture}(1.5,-2.5)(10.5,3.5)
>             \psline(2,0)(10,0)
>             \multido{\iA=2+1}{9}{
>                 \psline(\iA,-0.2)(\iA,0.2)
>                 \uput{24pt}[-90]{90}(\iA,0.5){\Salary{\iA}}
>                 }
>         \end{pspicture}
>
>         \begin{pspicture}(1.5,-2.5)(10.5,3.5)
>             \psline(2,0)(10,0)
>             \multido{\iA=2+1}{9}{
>                 \psline(\iA,-0.2)(\iA,0.2)
>                 \uput{24pt}[-90]{90}(\iA,0.5){\Salary{\iA}}
>                 }
>             \psline(2.5,0.8)(2.5,1.2)
>             \psline(9,0.8)(9,1.2)
>             \psline(4,2.3)(4,2.7)
>             \psline(8,2.3)(8,2.7)
>             \psline(2.5,1)(9,1)
>             \psframe[fillstyle=solid,fillcolor=lightgray](3.5,0.5) 
> (5,1.5)
>             \psline(4,0.5)(4,1.5)
>             \psline(4,2.5)(8,2.5)
>             \psframe[fillstyle=solid,fillcolor=lightgray](4.5,2) 
> (6.5,3)
>             \psline(5.5,2)(5.5,3)
>             \pcline[linestyle=none](6.5,2.5)(8,2.5)
>             \bput{0}{Opera}
>             \pcline[linestyle=none](5,1)(9,1)
>             \bput{0}{Country}
>         \end{pspicture}
>
> \renewcommand{\Salary}[1]{#10,000}
>         \begin{pspicture}(1.5,-2.5)(10.5,3.5)
>             \psline(2,0)(10,0)
>             \multido{\iA=2+1}{9}{
>                 \psline(\iA,-0.2)(\iA,0.2)
>                 \uput{24pt}[-90]{90}(\iA,0.5){\Salary{\iA}}
>                 }
>             \psline(2.5,0.8)(2.5,1.2)
>             \psline(9,0.8)(9,1.2)
>             \psline(4,2.3)(4,2.7)
>             \psline(8,2.3)(8,2.7)
>             \psline(2.5,1)(9,1)
>             \psframe[fillstyle=solid,fillcolor=lightgray](3.5,0.5) 
> (5,1.5)
>             \psline(4,0.5)(4,1.5)
>             \psline(4,2.5)(8,2.5)
>             \psframe[fillstyle=solid,fillcolor=lightgray](4.5,2) 
> (6.5,3)
>             \psline(5.5,2)(5.5,3)
>             \pcline[linestyle=none](6.5,2.5)(8,2.5)
>             \bput{0}{Opera}
>             \pcline[linestyle=none](5,1)(9,1)
>             \bput{0}{Country}
>         \end{pspicture}
> \end{document}

Eureka! That works.

Bruno--------------------- 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 MacOSX-TeX mailing list