[pstricks] [pst-node] get height/width/depth of node?
Herbert Voss
LaTeX at zedat.fu-berlin.de
Mon Jan 16 23:25:00 CET 2006
Avery Andrews wrote:
> Hmm well postscript would do - what I want to do is attach node
> connections to the corners of rectangles (more than one, so the rnode
> reference point trick won't do), as would be easy with say Emma Pease's
> tree-dvips. An idea that occurred to me was to scale an angle by the
> dimensions of the box, so that 45 would always go to the top-right
> corner of a rectangle. That would generalize so that it would also go
> to the midpoint of the top-right side of a diamond, etc. Well anyway I
> don't want to spend a lot of time re-learning enough postscript to do it
> if something like this is already available.
\listfiles
\documentclass{article}
\usepackage{pstricks,pst-node}
\begin{document}
\quad\rnode[lb]{A}{\rnode[rb]{B}{\rnode[rt]{C}{%
\rnode[lt]{D}{\Huge g}}}}
\psset{nodesep=5pt}
\ncline{A}{B}\ncline{B}{C}\ncline{C}{D}\ncline{D}{A}
\end{document}
you can define a special macro for this "four corner" node
Herbert
More information about the PSTricks
mailing list