[pstricks] use of node coordinate in \psStartPoint
Herbert Voss
Herbert.Voss at FU-Berlin.DE
Thu Jul 10 22:22:47 CEST 2014
Am 10.07.2014 16:00, schrieb Patrice MÉGRET:
> Is it possible to use a node as the coordinate for \psStartPoint
> (Cartesian and polar coordinates work) as in the following example that
> does not work: vector D is not drawn.
>
> I would like to start a new vector sequence from the end of vector F’_1
> (I don’t want to compute its Cartesian coordinates as I know its name is
> Vector2), I would like to use \psStartPoint(Vector2) or
> \psStartPoint[newnode-name](Vector2) to simply continue the sequence of
> vectors.
Patrice,
try the version from http://texnik.dante.de/tex/generic/pstricks-add/
It knows also a new optional argument <x,y> which can be used to set
the start point without using the mcro \psStartPoint:
\documentclass{article}
\usepackage{pstricks-add}
\listfiles
\begin{document}
\begin{pspicture}[showgrid](-2,-2)(4,2)
\psVector[linewidth=1.5pt]<0,0>(1;-90)\nbput*{$F_2$}
\psVector[linewidth=1.5pt]<0,0>(1.5;190)\nbput*{$F_3$}
\psVector[linewidth=1.5pt]<0,0>(2;0)\nbput*{$F_1$}
\psVector[linewidth=1pt,linecolor=blue,linestyle=dotted](1;30)\nbput*{$F'_3$}
\psVector[linewidth=1pt,linecolor=blue,linestyle=dotted](1.5;70)
\pcline[linewidth=1.5pt,linecolor=blue]{->}(Vector0)(Vector3)\naput*{$3F_d$}
\psVector[linewidth=1.5pt,linecolor=gray]<Vector2>(1;-45)\naput*{$D$}
\end{pspicture}
\end{document}
best
Herbert
More information about the PSTricks
mailing list