[pstricks] \rput and nodes

Herbert Voss Herbert.Voss at FU-Berlin.DE
Thu Jan 22 08:24:40 CET 2009


Michael Sharpe schrieb:
> On Jan 21, 2009, at 11:38 AM, Herbert Voss wrote:
> 
>> http://tug.org/PSTricks/main.cgi?file=pstricks.bug&verb=1
>>
>> see bug no 4
>>
> 
> In fact, it seems not to be nodes that are the real root of the  
> problem---PostScript coordinates fail also. Try
> 
> \rput(2,2){\psdot(!90 cos 90 cos)}

please give _always_ full working examples, not only
fragments. 90 cos 90 cos is 0 0   ;-)

> which you might think should be the same as
> 
> \rput(2,2){\psdot(1,1)}
> 
> but isn't.

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{pstricks-add}

\begin{document}
\psset{dotscale=2}
\begin{pspicture}[showgrid=true](5,5)
\pnode(1,1){P}
\psdot(P) \pnode(!\psGetNodeCenter{P} P.x 4 add P.y 2 add){P'}
\psline{->}(P)(P')
\rput(5,5){\psdot[dotstyle=x](-3,-1)}
\rput(5,5){\psdot[dotstyle=o](! 180 cos 270 sin)}
\rput(2,2){\psdot[dotstyle=triangle](!90 cos 90 cos)}
\end{pspicture}

\end{document}


Herbert


More information about the PSTricks mailing list