[pstricks] Relative nodes
Joel Salomon
joelcsalomon at gmail.com
Fri Dec 8 18:47:58 CET 2006
> > How can I place a node relative to another?
> > \pnode(5,5){OA}
> > \pnode[origin=OA](-1.5,-1){OAIn}
> > \pnode[origin=OA](1.5,0){OAOut}
> > doesn't seem to work.
>
> try this,
>
> \pnode(5,5){OA}
> \pnode([nodesep=2cm,angle=30]OA){OAIn}
> \pnode([nodesep=5cm,angle=0]OA){OAOut}
Thanks Aydin.
A bit of experimenting turned up how to do Cartesian offsets:
\pnode(5,5){OA}
\pnode([nodesep=-1.5,offset=-1]OA){OAIn}
\pnode([nodesep=-1.5,offset=1]OA){OAOut}
More'n a bit clunky (can I define a macro that will expand
\relpos(x,y,node)
to
[nodesep=x,offset=y]node
so it's more readable?) but it works for me.
--Joel
--
It reverses the normal flow of conversation.
> What's wrong with top-posting?
> > Top-posting.
> > > What's the biggest scourge on plain text email discussions?
More information about the PSTricks
mailing list