[ This is Emma Pease's original documentation, slightly edited and adapted for the Web by Doug Arnold
This documentation is available as a PostScript File
The tree-dvips
package is available at the usual places
(follow this link for some suggestions. ]
The tree macros package allows one to integrate TeX and Postscript. For example, one can use TeX to layout a tree and have Postscript draw the lines.
These macros work by defining locations on a page and then manipulating them in a variety of ways. The commands that created the above tree are as follows:
\begin{tabular}{ccc} &\node{a}{top node}\\[3ex] \node{b}{left node} & & \node{c}{right node}\\[3ex] & & \node{d}{odd node} \end{tabular} \nodeconnect{a}{b} \nodeconnect{a}{c} \nodeconnect{c}{d} \nodecurve[r]{a}[r]{d}{1in} \anodeconnect[b]{b}[l]{d} \anodecurve[l]{a}[l]{b}{1in}You will notice that four nodes are defined, a, b, c, and d, using the
\node
command. These nodes are then connected using the
\nodeconnect
and \nodecurve
commands.