[pstricks] concatenation of \psline
Herbert Voss
LaTeX at zedat.fu-berlin.de
Tue Mar 13 13:43:13 CET 2007
Goebel, Juergen, OPES26 schrieb:
>
>> 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}
\let\psLine\psline
\def\psline(#1){\psLine(#1)\code{ currentpoint translate 0 0 moveto }}
\SpecialCoor
\begin{document}
\begin{pspicture}(20,20)
\pscustom[arrows=->]{%
\psline(5;35)\psline(5;40)\psline(5;45)\psline(5;50)
}
\end{pspicture}
\end{document}
Herbert
More information about the PSTricks
mailing list