[pstricks] concatenation of \psline

Herbert Voss LaTeX at zedat.fu-berlin.de
Mon Mar 12 18:50:02 CET 2007


Goebel, Juergen, OPES26 schrieb:
> what's wrong with the following example:
>
> \documentclass{article}
> \usepackage{pstricks}
> \begin{document}
> \begin{pspicture}(0,0)(10,10)
>      \SpecialCoor
>      \psset{arrows=->}
>      \psline(0;0)(5;35)
>      \psline(5;40)
> \end{pspicture}
> \end{document}
>
> I expected to see two arrows, the second one starting at
> the end point of the first one. But instead both arrows
> start at the origin. What am I doing wrong here?
>   

??
\psline is _always_ a single line. A missing second argument is
always (0,0). Alternatives are

\psline(0;0)(5;35)(5;40) % one end arrow


\psline(0;0)(5;35)
\psline(5;35)(5;40)


two end arrows

Herbert



More information about the PSTricks mailing list