I recently discovered a strange behavior of a relative point translation of coordinates given by a node created by \rnode.

The docs tell that the coordinate form ([parameter]node) determines a coordinate relative to the geometrical center of the given node.

I wrote a picture, which output is not consistent with that. At least at first sight :)

Here's the code:



  \psdot[dotsize=4pt, linecolor=red](n-t)
  \psdot[dotsize=3pt, linecolor=red](n-c)
  \psdot[dotsize=2pt, linecolor=red](n-b)

  \psdot[dotsize=4pt, linecolor=blue]([offset=0,nodesep=0]n-t)
  \psdot[dotsize=3pt, linecolor=blue]([offset=0,nodesep=0]n-c)
  \psdot[dotsize=2pt, linecolor=blue]([offset=0,nodesep=0]n-b)

that yields this

enter image description here

If I had only read the code it would be clear for me that the blue dots cover the red dots. But not so in the compiled picture.

Is there an error in my reasoning?


that is the internal behaviour of nodes placed by \rnode. Compare the following two nodes:


\psnode(3,1){A}{\Huge A}\psdot([offset=0pt]A) % uses internally \rnode
\pnode(1,1){B}\rput(B){\Huge B}\psdot([offset=0]B)


enter image description here

However, I'll have a look into the code to see if I can change the behaviour.

  • I am wondering if i can think that the coordinate form ([parameter]node) changed the context of node!? If i use a node in simple geometrical context it just designates a pair of coordinates. Or more specifically the coordinates of the center of node. Does ([parameter]node) change the meaning of node, so that it refers now to the boundary of the node? Maybe you can give an explanation for this behavior that is not beyond my understanding!? Best regards – user1146332 Feb 12 '12 at 21:24
  • forr rnode the surronding offset is saved in an internal offset value and with offset=0 you move to the right edge. That behaviour cannot be changed for nodes which all have a contents, like rnode, boxnode and so on – user2478 Feb 12 '12 at 21:34
  • Things become more clear now! Thanx for your fast replies... – user1146332 Feb 12 '12 at 21:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.