TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Consider the following example:



  \rput[r]{90}(!#1 1980 sub 2 div 0){#2 \quad}
  \rput[l]{90}(!#1 1980 sub 2 div 0){\quad #1}


 \RPut(1980){Lake Placid}


If I compile using xelatex everything is fine but if I compile using latex --> dvips --> ps2pdf the figure is rotated 90 degrees clockwise.

How do I compile using latex --> dvips --> ps2pdf but without getting the rotation?

share|improve this question
In this case, I'm much more inclined to think it is XeLaTeX's bug—perhaps a well placed \ifxetex could do the trick? – Sean Allred Aug 6 '13 at 1:09
tug.org/PSTricks/main.cgi FDE (Frequently Done Errors) no 5. – Herbert Nov 5 '13 at 15:54
@SeanAllred: it has nothing to do with XeTeX itself, it is a ghostscript feature. – Herbert Nov 5 '13 at 15:55
up vote 11 down vote accepted

I think it is related to the already known problem "auto rotation" done by ps2pdf. Therefore you need to pass -dAutoRotatePages=/None key-value to ps2pdf. If you are using Windows, use # instead of = because = has a special meaning for batch files in Windows.


The following is the minimal working example to mimic your problem. Make sure you set showgrid=false to let auto rotation work.


Without -dAutoRotatePages=/None (for non-Windows) or without -dAutoRotatePages#/None (for Windows), you will get the following output.

enter image description here

With -dAutoRotatePages=/None (for non-Windows) or with -dAutoRotatePages#/None (for Windows), you will get the following output.

enter image description here

More about Windows

In my experience, both -dAutoRotatePages=/None and -dAutoRotatePages#/None work on Windows. Let me know if you get different thing as I am using Windows 7. Probably it does not work on older Windows.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.