Consider the following example:
\documentclass{article}
\usepackage{pstricks-add}
\def\RPut(#1)#2{%
\rput[r]{90}(!#1 1980 sub 2 div 0){#2 \quad}
\rput[l]{90}(!#1 1980 sub 2 div 0){\quad #1}
}
\begin{document}
\psset{unit=0.78}
\begin{pspicture}(-0.1,-2.9)(14.7,1.3)
\psaxes[
labels = none,
Dx = 2,
dx = 1,
Ox = 1980,
yAxis = false
]{->}(15,0)
\RPut(1980){Lake Placid}
\RPut(1984){Sarajevo}
\RPut(2006){Torino}
\end{pspicture}
\end{document}
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?
Best Answer
I think it is related to the already known problem "auto rotation" done by
ps2pdf
. Therefore you need to pass-dAutoRotatePages=/None
key-value tops2pdf
. If you are using Windows, use#
instead of=
because=
has a special meaning for batch files in Windows.MWE
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.With
-dAutoRotatePages=/None
(for non-Windows) or with-dAutoRotatePages#/None
(for Windows), you will get the following output.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.