[pstricks] Current point

Hensh, Richard hensh at math.msu.edu
Wed Dec 5 22:47:05 CET 2007

Thanks for letting me know about the macro: psRelLine.

There are some other situations were the code you suggested would not be convenient. After some thought I came up with




gives me a named node C relative to (1,0).

If you see any potential problems, please let me know.


PS. As always thanks for all of your help.

-----Original Message-----
From: pstricks-bounces at tug.org [mailto:pstricks-bounces at tug.org] On Behalf Of Herbert Voss
Sent: Tuesday, December 04, 2007 3:50 PM
To: Graphics with PSTricks
Subject: Re: [pstricks] Current point

Hensh, Richard schrieb:
> Is there a way to move the current point without relying on the \pscustom environment (which doesn't seem to work)? For example, I have written the following postscript:
> \pstVerb{%
>         /polar@ {dup cos 3 1 roll sin 3 1 roll dup 4 1 roll mul 3 1 roll mul} def % (r,theta) -> (x,y)
>   }
> Now, I can specify the rectangular point (\sqrt{3},1) using:
> \pnode(!2 30 polar@){A}

\pnode(2;30){A} does the same

> \cp(2,0)        %%Now (2,0) is the current point.
> \pnode(!6 60 polar@){C}
> \cp(0,0)        %%The default
> instead of
>  \pnode(!6 60 polar@){C}
>  \pstTranslation{A}{D}{C}
> as shown below. It's not a big deal but it would be nice.

there is an easier way:


   \uput{6pt}[45](E){{ $E$}}


pstricks mailing list
pstricks at tug.org

More information about the PSTricks mailing list