[pstricks] how to rotate in pstricks ( an odd example )

Herbert Voss Herbert.Voss at FU-Berlin.DE
Fri Jan 28 13:44:07 CET 2011


Am 28.01.2011 06:28, schrieb owen nirvana:
> \documentclass[dvipdfmx]{article}

this option makes no sense, when you want to use pdflatex

> \usePackage{pdftricks}

use the package auto-past-pdf instead or run your document
with XeLaTeX

> \begin{pspicture}

the coordinates are missing

> \rput{45}](1,0.5){\psline[linewidth=1pt](1,0.5)(1,-0.5)}

be careful with your arguments, the first ] is superflous

I do not really understand, what you want to do, but
this works with "pdflatex -shell-escape file.tex"

\documentclass{article}
\usepackage{auto-pst-pdf}
\usepackage{pstricks}

\begin{document}

\begin{pspicture}(2,2)
% the following code will draw a ' /   \ \   /  '
\rput{45}(1,0.5){\psline[linewidth=1pt](1,0.5)(1,-0.5)}
\rput{135}(1,0.5){\psline[linewidth=1pt](1,0.5)(1,-0.5)}
\rput{-45}(1,0.5){\psline[linewidth=1pt](1,0.5)(1,-0.5)}
\rput{-135}(1,0.5){\psline[linewidth=1pt](1,0.5)(1,-0.5)}
% the following code will draw a 'X'
\rput{40}(0,1){\psline[linewidth=1pt](0,0)(0,1)}
\rput{135}(0,1){\psline[linewidth=1pt](0,0)(0,1)}
\rput{-45}(0,1){\psline[linewidth=1pt](0,0)(0,1)}
\rput{-135}(0,1){\psline[linewidth=1pt](0,0)(0,1)}
\end{pspicture}

\end{document}

Herbert


More information about the PSTricks mailing list