[pstricks] Passing in a node as an angle argument of \psarc, \pswedge, etc does not make sense!

Herbert Voss Herbert.Voss at FU-Berlin.DE
Mon May 28 07:53:18 CEST 2012


Am 27.05.2012 13:24, schrieb Counter Terrorist:
> Syntax {(node)} can be used as an angle argument for some PSTricks' macros.
> For \uput, the angle is calculated relative to its center rather than
> the origin. It is good!
>
> But \psarc, \pswedge, etc calculate the angles relative to the origin.
> It does not make sense.
>
> \begin{pspicture}[showgrid](-1,-1)(6,6)
> \pnode(1,1){A}\psdot(A)
> \pnode(4,5){B}\psdot(B)
> \psline[linecolor=red](A)(B)
> \uput{2.5}[(B)](A){\psdot(0,0)}
> %\pswedge(A){5}{(B)}{90}
> \psarc(A){5}{(B)}{90}
> \psline[linecolor=blue](0,0)(B)
> \end{pspicture}
>
> Can I request an update for this issue?

use the argument origin:

\listfiles
\documentclass{article}
\usepackage{pstricks-add}

\begin{document}

\begin{pspicture}[showgrid](-1,-1)(6,6)
\pnode(1,1){A}\psdot(A)
\pnode(4,5){B}\psdot(B)
\psline[linecolor=red](A)(B)
\uput{2.5}[(B)](A){\psdot(0,0)}
\pswedge[origin={1,1}](A){5}{(B)}{90}
\psarc[origin={1,1}](A){5}{(B)}{90}
\psline[linecolor=blue](0,0)(B)
\psdot(0,0)
\end{pspicture}

\end{document}

Herbert


More information about the PSTricks mailing list