# [pstricks] concatenation of \psline

Alan Ristow ristow at ece.gatech.edu
Mon Mar 12 18:55:37 CET 2007

Goebel, Juergen, OPES26 wrote:
> Hi,
>
> 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?

As I recall, if \psline receives only one set of coordinates then it
implicitly uses the origin as the initial coordinate, regardless of
preceding \psline commands. I'm sure Herbert will correct me if I'm
wrong. Try:

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

Alan