[pstricks] concatenation of \psline

Goebel, Juergen, OPES26 juergen.goebel at eads.com
Tue Mar 13 10:00:59 CET 2007


> Herbert Voss wrote:

> then use \pscustom
> 
> \documentclass{minimal}
> 
> \usepackage{pstricks}
> \SpecialCoor
> \begin{document}
> 
> \begin{pspicture}(5,5)
> \pscustom[arrows=->]{%
>   \psline(0;0)(5;35)
>   \psline(5;40)
> }
> \end{pspicture}
> 
> \end{document}

It's getting better. ;-))
But still not exactly my target. :-(

The coordinates given for the n-th vector shall be
respective to the end-coordinate of the (n-1)-th
vector. So in this case, there are two vectors with
identical lengths but with slightly different angles.

The following shows my mentioned solution, but I'm
sure there exists a much better way ...

\documentclass{minimal}

\usepackage{pstricks}
\SpecialCoor
\begin{document}

\begin{pspicture}(20,20)
\psset{arrows=->}
\psline(5;35)
\rput(5;35){%
   \psline(5;40)
   \rput(5;40){%
      \psline(5;45)
      \rput(5;45){%
         \psline(5;50)
      }
   }
}\end{pspicture}

\end{document}


Sorry for being so inaccurate with the decsription
of my problem.

Regards,

Juergen



More information about the PSTricks mailing list