[pstricks] Nodes and \rput

Hubert Lam (TeX/PSTricks) tex at hubertlam.info
Sun Mar 29 05:41:42 CEST 2009


Michael Sharpe wrote:
> \rput doesn't seem to translate positions involving nodes. For example,
> 
> \begin{pspicture}(6,6)
> \pnode(1,1){P}
> \rput(2,3){\psline(1,1)}% makes line from (2,3) to (3,4)
> \rput(2,3){\psline(P)}% makes line from (2,3) to (1,1)
> \end{pspicture}
> 
> Is this something that can be changed by evaluating the expression in  
> another way? It doesn't seem to help to replace \psline(P) by  
> \psline(! \psGetNodeCenter{P} P.x P.y).
> 
> Michael
> 

Hi Michael

Try using pst-eucl

\pnode(1,1){P} % Original line start
\pnode(3,4){Q} % Original line end
\pnode(6,5){Z} % Translate line PQ to ZZ'

\pstTranslation{P}{Q}{Z}[Z']

Hubert


More information about the PSTricks mailing list