Debian Codegraph @

texmf-dist/doc/latex/tree-dvips/tree-manual.tex

raw
1 \documentstyle[tree-dvips,rotate,lingmacros]{article}
2
3 \title{Tree Macros}
4 \author{Emma Pease}
5 \date{May 10, 1995}
6
7 \begin{document}
8
9 \maketitle
10
11 The tree macros package allows one to integrate \LaTeX\ and Postscript.
12 For example, one can use \LaTeX\ to layout a tree and have Postscript
13 draw the lines.
14 \begin{center}
15 \begin{tabular}{ccc}
16 &\node{ab}{top node}\\[3ex]
17 \node{ac}{left node} && \node{c}{right node}\\[3ex]
18 && \node{d}{odd node}
19 \end{tabular}
20 \nodeconnect{ab}{ac}
21 \nodeconnect{ab}{c}
22 \nodeconnect{c}{d}
23 \nodecurve[r]{ab}[r]{d}{1in}
24 \anodeconnect[b]{ac}[l]{d}
25 \anodecurve[l]{ab}[l]{ac}{1in}
26 \end{center}
27
28 These macros work by defining locations on a page and then
29 manipulating them in a variety of ways. The commands that created the
30 above tree are as follows:
31 \begin{verbatim}
32 \begin{tabular}{ccc}
33 &\node{a}{top node}\\[3ex]
34 \node{b}{left node} & & \node{c}{right node}\\[3ex]
35 & & \node{d}{odd node}
36 \end{tabular}
37 \nodeconnect{a}{b}
38 \nodeconnect{a}{c}
39 \nodeconnect{c}{d}
40 \nodecurve[r]{a}[r]{d}{1in}
41 \anodeconnect[b]{b}[l]{d}
42 \anodecurve[l]{a}[l]{b}{1in}
43 \end{verbatim}
44 You will notice that four nodes are defined, a, b, c, and d, using the
45 \verb+\node+ command. These nodes are then connected using the
46 \verb+\nodeconnect+ and \verb+\nodecurve+ commands.
47
48 \section{Locating Commands}
49
50 Location commands are those that deal with defining a location on a
51 page. The basic command
52 \begin{center}
53 \begin{verbatim}
54 \node{nodename}{object}
55 \end{verbatim}
56 \end{center}
57 Each node has its name, height, width, and the location of the lower
58 left hand corner point passed down to postscript where it will remain
59 until needed. Note that the object will be printed by \TeX\ but the
60 lines drawn by Postscript. A variant
61 of this command is
62 \begin{center}
63 \begin{verbatim}
64 \nodepoint{nodename}[horizontal displace][vertical displace]
65 \end{verbatim}
66 \end{center}
67 The node's height and width are 0pts, but the location can be
68 displaced.
69
70 \section{Connecting Commands}
71
72 These commands connect two or more nodes.
73
74 \subsection{nodeconnect}
75
76 One basic command is
77 \begin{center}
78 \begin{verbatim}
79 \nodeconnect[fromloc]{fromnodename}[toloc]{tonodename}
80 \end{verbatim}
81 \end{center}
82 fromnodename and tonodename must be the names of two existing nodes.
83 Imagine the node as a box, fromloc and toloc are the locations on that
84 box to draw the connecting lines.
85 \begin{center}\nodemargin=9pt
86 \begin{tabular}{lcr}
87 tl & {t} &{tr}\\[2ex]
88 {l} & \node{a}{object} &{r}\\[2ex]
89 {bl}& {b} &{br}
90 \end{tabular}
91 \nodebox{a}
92 \end{center}
93 The present choices are t [top], b [bottom], l [left], r [right], tl
94 [topleft], tr [topright], bl [bottomleft], and br [bottomright].
95 These could be expanded. By default the fromloc is bottom and the
96 toloc is top.
97
98 Variants of this command are
99 \begin{verbatim}
100 \anodeconnect[fromloc]{fromnodename}[toloc]{tonodename}
101 \aanodeconnect[fromloc]{fromnodename}[toloc]{tonodename}
102 \end{verbatim}
103 The first places an arrow pointing to the second node. The second puts
104 arrows on both ends of the line.
105 \begin{center}
106 \begin{tabular}{ccccc}
107 &\node{a}{Top node}\\[3ex]
108 \node{b}{left node\strut} & & \node{c}{right node\strut}&\qquad &\node{d}{farright\strut}
109 \end{tabular}
110 \nodeconnect{a}{b}
111 \nodeconnect[t]{c}[b]{a}
112 \anodeconnect[r]{b}[l]{c}
113 \aanodeconnect[r]{c}[l]{d}
114 \end{center}
115 \begin{verbatim}
116 \begin{tabular}{ccccc}
117 &\node{a}{Top node}\\[3ex]
118 \node{b}{left node\strut} & & \node{c}{right node\strut}
119 &\qquad &\node{d}{farright\strut}
120 \end{tabular}
121 \nodeconnect{a}{b}
122 \nodeconnect[t]{c}[b]{a}
123 \anodeconnect[r]{b}[l]{c}
124 \aanodeconnect[r]{c}[l]{d}
125 \end{verbatim}
126 Note the \verb+\strut+. This ensures that both nodes have the same
127 height and depth.
128
129 \subsection{barnodeconnect}
130
131 Another way of connecting is via the bar connect commands
132 \begin{verbatim}
133 \barnodeconnect[depth]{fromnodename}{tonodename}
134 \abarnodeconnect[depth]{fromnodename}{tonodename}
135 \end{verbatim}
136 For example,
137 \begin{center}
138 \node{c}{\strut This} \node{a}{\strut is} a \node{b}{\strut test} of
139 barnodeconnect.
140 \barnodeconnect{a}{b}
141 \barnodeconnect[-5pt]{a}{c}
142 \bigskip\bigskip
143
144 \node{c}{\strut This} \node{a}{\strut is} a \node{b}{\strut test}
145 \node{d}{\strut of} abarnodeconnect. \node{e}{\strut Note} arrows.
146 \abarnodeconnect[10pt]{a}{b}
147 \abarnodeconnect[-10pt]{a}{c}
148 \abarnodeconnect[-10pt]{b}{d}
149 \abarnodeconnect[10pt]{e}{d}
150 \end{center}\bigskip
151 \begin{verbatim}
152 \node{c}{\strut This} \node{a}{\strut is} a \node{b}{\strut test}
153 of barnodeconnect.
154 \barnodeconnect{a}{b}
155 \barnodeconnect[-5pt]{a}{c}
156 \bigskip\bigskip
157
158 \node{c}{\strut This} \node{a}{\strut is} a \node{b}{\strut test}
159 \node{d}{\strut of} abarnodeconnect. \node{e}{\strut Note} arrows.
160 \abarnodeconnect[10pt]{a}{b}
161 \abarnodeconnect[-10pt]{a}{c}
162 \abarnodeconnect[-10pt]{b}{d}
163 \abarnodeconnect[10pt]{e}{d}
164 \end{verbatim}
165 A negative depth places the bar below the line; a positive depth (or
166 the default, which is 5pt) places the bar above the line.
167
168
169 \subsection{nodecurve}
170
171 The nodecurve commands allow curves between nodes.
172 \begin{verbatim}
173 \nodecurve[fromloc][fromang]{fromnodename}[toloc][toang]{tonodename}{fdepth}[tdepth]
174 \anodecurve[fromloc][fromang]{fromnodename}[toloc][toang]{tonodename}{fdepth}[tdepth]
175 \aanodecurve[fromloc][fromang]{fromnodename}[toloc][toang]{tonodename}{fdepth}[tdepth]
176 \end{verbatim}
177 The options fromloc and toloc are the same as for \verb+\nodeconnect+.
178 The options fromang and toang are the angle of incidence in degrees to the
179 location with 0 being perpendicular and the default. Angles are
180 calculated counterclockwise. fdepth and tdepth are dimensions and
181 allow one to adjust how curved the curve is.
182 \begin{center}
183 \begin{tabular}{ccc}
184 &\node{a}{Top node}\\[3ex]
185 \node{b}{left node\strut} & & \node{c}{right node\strut}
186 \end{tabular}
187 \nodecurve[b]{b}[b]{c}{.3in}
188 \anodecurve[l]{a}[l]{b}{20pt}[40pt]
189 \aanodecurve[r]{a}[r]{c}{60pt}[20pt]
190 \hfill
191 \begin{tabular}{c}
192 \node{d}{Top}\\
193 \node{e}{Bottom}
194 \end{tabular}
195 \nodecurve[l]{d}[l]{e}{30pt}
196 \nodecurve[l]{d}[l]{e}{30pt}[40pt]
197 \nodecurve[l]{d}[l]{e}{30pt}[50pt]
198 \nodecurve[l]{d}[l]{e}{30pt}[5pt]
199
200 \nodecurve[r]{d}[r]{e}{30pt}
201 \nodecurve[r][20]{d}[r][-30]{e}{30pt}
202
203 \bigskip
204
205 \end{center}
206 \begin{verbatim}
207 \begin{tabular}{ccc}
208 &\node{a}{Top node}\\[3ex]
209 \node{b}{left node\strut} & & \node{c}{right node\strut}
210 \end{tabular}
211 \nodecurve[b]{b}[b]{c}{.3in}
212 \anodecurve[l]{a}[l]{b}{20pt}[40pt]
213 \aanodecurve[r]{a}[r]{c}{60pt}[20pt]
214 \hfill
215 \begin{tabular}{c}
216 \node{d}{Top}\\
217 \node{e}{Bottom}
218 \end{tabular}
219 % here follow some curves that adjust fdepth and tdepth
220 \nodecurve[l]{d}[l]{e}{30pt}
221 \nodecurve[l]{d}[l]{e}{30pt}[40pt]
222 \nodecurve[l]{d}[l]{e}{30pt}[50pt]
223 \nodecurve[l]{d}[l]{e}{30pt}[5pt]
224
225 % here follow some curves that adjust toang and fromang
226 \nodecurve[r]{d}[r]{e}{30pt}
227 \nodecurve[r][20]{d}[r][-30]{e}{30pt}
228 \end{verbatim}
229
230 \subsection{Other connecting commands}
231
232 A few odd commands
233 \begin{verbatim}
234 \nodetriangle{fromnodename}{tonodename}
235 \end{verbatim}
236 This creates a triangle whose apex is the bottom of
237 \verb+fromnodename+ and whose base is the top of \verb+tonodename+.
238 \begin{center}
239 \begin{tabular}{c}
240 \node{a}{Top}\\[4ex]
241 \node{b}{This is the bottom}
242 \end{tabular}
243 \nodetriangle{a}{b}
244
245 \end{center}
246 \begin{verbatim}
247 \begin{tabular}{c}
248 \node{a}{Top}\\[4ex]
249 \node{b}{This is the bottom}
250 \end{tabular}
251 \nodetriangle{a}{b}
252 \end{verbatim}
253 The last command is meant to be used with the \verb+\nodeconnect+
254 command. It causes a short line to cross perpendicular to the line.
255 \begin{verbatim}
256 \delink[fromloc]{fromnodename}[toloc]{tonodename}{length}
257 \end{verbatim}
258 An example follows
259 \begin{center}
260 \node{a}{leftnode\strut}\hspace{1in}\node{b}{rightnode\strut}
261 \nodeconnect[r]{a}[l]{b}
262 \delink[r]{a}[l]{b}{10pt}
263 \end{center}
264
265 \section{Single Node commands}
266
267 These commands adjust something around a single node rather than
268 connecting nodes. The basic commands are
269 \begin{center}
270 \begin{verbatim}
271 \nodebox{nodename}
272 \nodecircle[depth]{nodename}
273 \nodeoval{nodename}
274 \end{verbatim}
275 \end{center}
276 They draw, respectively, a box, circle, or oval around the given node.
277 \begin{center}
278 \node{a}{node}\hfill \node{b}{node} \hfill \node{c}{node}
279 \nodebox{a} \nodecircle{b} \nodeoval{c}
280 \end{center}
281 You will probably wish to call these commands after you have called
282 all the connecting commands you will be using in a particular diagram.
283
284
285 \section{Parameters}
286
287 At the moment there are three parameters that can be changed. They
288 are
289 \begin{itemize}
290 \item \verb+\nodemargin+ - A node's height and width are defined as
291 the height plus depth and width of an hbox enclosing the object plus the
292 nodemargin on each side. The default is 2pt.
293
294 \item \verb+\treelinewidth+ - The width of the lines. The default is .3pt.
295
296 \item \verb+\dashlength+ - The length of the dash, if you are using
297 dashed lines. The default is 0pt (solid line).\footnote{The length
298 of the dash and the length between the dashes are the same. An
299 exercise for someone who knows postscript and tex is to allow the dash
300 and the blank to vary in size.}
301
302 \item \verb+\arrowwidth+ - the width of the arrowhead in the
303 \verb+\anodeconnect+ and \verb+\anodecurve+ commands. Default is
304 3 pt.
305
306 \item \verb+\arrowlength+ - the length of the arrowhead. Default is
307 4pt.
308
309 \item \verb+\arrowinset+ - the inset in the arrow. Default is 1pt.
310
311 \end{itemize}
312 The command \verb+\arrowhead{width}{length}{inset}+ allows one to
313 define all three parameters in one go.
314 \begin{center}
315 \node{a}{This} \node{b}{is} a \node{c}{line}.\\[5ex]
316 \node{d}{This} \node{e}{is} a \node{f}{line}.%
317 % The following gives examples of differing insets of arrowheads
318 \arrowhead{4pt}{6pt}{0pt}%
319 \anodeconnect{a}{d}%
320 \arrowhead{4pt}{6pt}{1pt}%
321 \anodeconnect{b}{e}%
322 \arrowhead{4pt}{6pt}{3pt}%
323 \anodeconnect{c}{f}%
324
325 % the following gives examples of differing lengths
326 % and widths of the arrowhead
327 \arrowhead{4pt}{6pt}{2pt}%
328 \anodeconnect[t]{d}[b]{a}%
329 \arrowhead{4pt}{8pt}{2pt}%
330 \anodeconnect[t]{e}[b]{b}%
331 \arrowhead{2pt}{6pt}{2pt}%
332 \anodeconnect[t]{f}[b]{c}%
333
334 \end{center}
335 \begin{verbatim}
336 \node{a}{This} \node{b}{is} a \node{c}{line}.\\[5ex]
337 \node{d}{This} \node{e}{is} a \node{f}{line}.%
338 % The arrows pointing down give examples of differing insets of arrowheads
339 \arrowhead{4pt}{6pt}{0pt}%
340 \anodeconnect{a}{d}%
341 \arrowhead{4pt}{6pt}{1pt}%
342 \anodeconnect{b}{e}%
343 \arrowhead{4pt}{6pt}{3pt}%
344 \anodeconnect{c}{f}%
345
346 % the arrows pointing up give examples of differing lengths
347 % and widths of the arrowheads.
348 \arrowhead{4pt}{6pt}{2pt}%
349 \anodeconnect[t]{d}[b]{a}%
350 \arrowhead{4pt}{8pt}{2pt}%
351 \anodeconnect[t]{e}[b]{b}%
352 \arrowhead{2pt}{6pt}{2pt}%
353 \anodeconnect[t]{f}[b]{c}%
354 \end{verbatim}
355
356 \section{How to Run}
357
358 Add the style file, tree-dvips.sty,
359 \begin{verbatim}
360 \documentstyle[tree-dvips]{article}
361 \end{verbatim}
362 Run through \LaTeX\ and send to a postscript printer using dvips
363 (written by Tomas Rokicki).
364
365
366 \section{Examples}
367
368 A series of examples follow.
369 \begin{center}
370 \let\mc=\multicolumn
371 \begin{tabular}[t]{@{}lllllllll@{}}
372 & & & &\node{a}{VP} \\[2ex]
373 &\node{b}{PP}
374 & & & & &\mc{2}{c}{\node{c}{V$'$}}\\[2ex]
375 & & &\node{d}{NP} \\[2ex]
376 & &\nodepoint{e}
377 & &\node{f}{NP} \\
378 & & &\hfill\nodepoint{r}[0pt][3pt] \\
379 &\hfil\node{g}{AP}
380 & &\hfil\node{h}{NP}
381 & & & &\hfil\node{i}{NP}\\[2ex]
382 \node{j}{P}
383 &\hfil\node{k}{A}
384 & \node{l}{Prt}
385 &\hfil\node{m}{N}
386 &\node{n}{Prt}
387 &\node{o}{N}
388 &\node{p}{V}
389 &\hfil\node{q}{N}\\[2ex]
390 `zaw &`oN &`geq&?njiaw&`geq&`dou& khe &tshjaN \\
391 toward &red & & bird & &head& open&gun \\[1ex]
392 \mc{9}{@{}l}{`shoot at the red head of the bird'} \\
393 \end{tabular}
394 \nodeconnect{a}{b}
395 \nodeconnect{a}{c}
396 \nodeconnect{b}{d}
397 \nodeconnect{b}{j}
398 \nodeconnect{c}{p}
399 \nodeconnect{c}{i}
400 \nodeconnect{d}{e}
401 \nodeconnect{e}{g}
402 \nodeconnect{e}{l}
403 \nodeconnect{d}{f}
404 \nodeconnect{g}{k}
405 \nodeconnect{f}{r}
406 \nodeconnect{r}{h}
407 \nodeconnect{r}{n}
408 \nodeconnect{f}{o}
409 \nodeconnect{h}{m}
410 \nodeconnect{i}{q}
411
412 \end{center}
413 \begin{verbatim}
414 \let\mc=\multicolumn
415 \begin{tabular}[t]{@{}lllllllll@{}}
416 & & & &\node{a}{VP} \\[2ex]
417 &\node{b}{PP}
418 & & & & &\mc{2}{c}{\node{c}{V$'$}}\\[2ex]
419 & & &\node{d}{NP} \\[2ex]
420 & &\nodepoint{e}
421 & &\node{f}{NP} \\
422 & & &\hfill\nodepoint{r}[0pt][3pt] \\
423 &\hfil\node{g}{AP}
424 & &\hfil\node{h}{NP}
425 & & & &\hfil\node{i}{NP}\\[2ex]
426 \node{j}{P}
427 &\hfil\node{k}{A}
428 & \node{l}{Prt}
429 &\hfil\node{m}{N}
430 &\node{n}{Prt}
431 &\node{o}{N}
432 &\node{p}{V}
433 &\hfil\node{q}{N}\\[2ex]
434 `zaw&`oN &`geq&?njiaw&`geq&`dou& khe &tshjaN \\
435 toward &red & & bird & &head& open&gun \\[1ex]
436 \mc{9}{@{}l}{`shoot at the red head of the bird'} \\
437 \end{tabular}
438 \nodeconnect{a}{b} \nodeconnect{e}{l}
439 \nodeconnect{a}{c} \nodeconnect{d}{f}
440 \nodeconnect{b}{d} \nodeconnect{g}{k}
441 \nodeconnect{b}{j} \nodeconnect{f}{r}
442 \nodeconnect{c}{p} \nodeconnect{r}{h}
443 \nodeconnect{c}{i} \nodeconnect{r}{n}
444 \nodeconnect{d}{e} \nodeconnect{f}{o}
445 \nodeconnect{e}{g} \nodeconnect{h}{m}
446 \nodeconnect{i}{q}
447 \end{verbatim}
448 The following two examples use \verb+\outerfs+ and
449 \verb+\modsmalltree+; these are both part of the lingmacros package.
450 See \verb+lingmacros.sty+ for more information.
451 \enumsentence[(100)]{\evnup[2pt]
452 {\outerfs{ Focus & \outerfs{subj & \outerfs{\ \nodepoint{a}\ }\\[1ex]
453 obl$_{th}$ & \outerfs{Pred & `Pro'\\
454 Refl & +}\\[1ex]
455 Pred & `proud$\langle(\uparrow {\rm subj})
456 (\uparrow {\rm obl}_{th})\rangle$'}\nodepoint{d}[-3pt][0pt]\\[2ex]
457 Subj & \outerfs{Pred & `Max'}\\[1ex]
458 Comp & \outerfs{Subj &\outerfs{Pred & `Larry'}\nodepoint{c}[-3pt][0pt]\\[1ex]
459 Xcomp&\outerfs{\ \nodepoint{b}\ }\\[1ex]
460 Pred & `be$\langle(\uparrow {\rm xcomp})
461 (\uparrow {\rm subj})\rangle$'}\\[1ex]
462 Pred & `think$\langle(\uparrow {\rm subj})
463 (\uparrow {\rm comp})\rangle$'}\\
464 }
465 \nodecurve[r]{a}[r]{c}{2in}[.5in]
466 \anodecurve[r]{d}[r]{b}{1in}[2in]
467 }
468 \begin{verbatim}
469 \enumsentence[(100)]{\evnup[2pt]
470 {\outerfs{
471 Focus & \outerfs{subj & \outerfs{\ \nodepoint{a}\ }\\[1ex]
472 obl$_{th}$ & \outerfs{Pred & `Pro'\\
473 Refl & +}\\[1ex]
474 Pred & `proud$\langle(\uparrow {\rm subj})
475 (\uparrow {\rm obl}_{th})\rangle$'}%
476 \nodepoint{d}[-3pt][0pt]\\[2ex]
477 Subj & \outerfs{Pred & `Max'}\\[1ex]
478 Comp & \outerfs{Subj &\outerfs{Pred & `Larry'}%
479 \nodepoint{c}[-3pt][0pt]\\[1ex]
480 Xcomp&\outerfs{\ \nodepoint{b}\ }\\[1ex]
481 Pred & `be$\langle(\uparrow {\rm xcomp})
482 (\uparrow {\rm subj})\rangle$'}\\[1ex]
483 Pred & `think$\langle(\uparrow {\rm subj})
484 (\uparrow {\rm comp})\rangle$'}\\
485 }
486 \nodecurve[r]{a}[r]{c}{2in}[.5in]
487 \anodecurve[r]{d}[r]{b}{1in}[2in]
488 }
489 \end{verbatim}
490 \enumsentence{\modsmalltree{6}{
491 & & &\ns\node{a}{\begin{tabular}[t]{@{}c@{}}S\\
492 {}[+R]\end{tabular}} \\
493 &\node{b}{NP} & & & & \node{c}{VP} \\
494 \node{d}{Det}& &\node{e}{N$^1$} \\
495 \node{h}{the}&\node{i}{N} & & \node{f}{PP} &&\node{g}{are
496 totally false}\\
497 &\node{n}{rumors}&\node{j}{P} &&\ns\node{k}{\begin{tabular}[t]{@{}c@{}}NP\\
498 {}[+R] \end{tabular}}\\
499 & &\node{l}{about} &&\node{m}{whom}}
500 \nodeconnect{a}{b}
501 \nodeconnect{a}{c}
502 \nodeconnect{b}{d}
503 \nodeconnect{b}{e}
504 \nodeconnect{d}{h}
505 \nodeconnect{e}{i}
506 \nodeconnect{e}{f}
507 \nodeconnect{i}{n}
508 \nodeconnect{f}{j}
509 \nodeconnect{f}{k}
510 \nodeconnect{j}{l}
511 \nodeconnect{k}{m}
512 \nodetriangle{c}{g}
513 {\makedash{4pt}
514 \anodecurve[t]{b}[l]{a}{10pt}
515 \anodecurve[t]{e}[r]{b}{10pt}
516 \anodecurve[t]{f}[r]{e}{10pt}
517 \anodecurve[t]{k}[r]{f}{10pt}
518 }}
519 \begin{verbatim}
520 \enumsentence{\modsmalltree{6}{
521 & & &\ns\node{a}{\begin{tabular}[t]{@{}c@{}}S\\
522 {}[+R]\end{tabular}} \\
523 &\node{b}{NP}
524 & & && \node{c}{VP} \\
525 \node{d}{Det}
526 & &\node{e}{N$^1$} \\
527 \node{h}{the}
528 &\node{i}{N}
529 & &\node{f}{PP}
530 &&\node{g}{are totally false}\\
531 &\node{n}{rumors}
532 &\node{j}{P}
533 & &\ns\node{k}{\begin{tabular}[t]{@{}c@{}}NP\\
534 {}[+R] \end{tabular}}\\
535 & &\node{l}{about}
536 & &\node{m}{whom}}
537 \nodeconnect{a}{b} \nodeconnect{e}{f}
538 \nodeconnect{a}{c} \nodeconnect{i}{n}
539 \nodeconnect{b}{d} \nodeconnect{f}{j}
540 \nodeconnect{b}{e} \nodeconnect{f}{k}
541 \nodeconnect{d}{h} \nodeconnect{j}{l}
542 \nodeconnect{e}{i} \nodeconnect{k}{m}
543 \nodetriangle{c}{g}
544 {\makedash{4pt}
545 \anodecurve[t]{b}[l]{a}{10pt} \anodecurve[t]{f}[r]{e}{10pt}
546 \anodecurve[t]{e}[r]{b}{10pt} \anodecurve[t]{k}[r]{f}{10pt}
547 }}
548 \end{verbatim}
549
550 \section{Rotation}
551
552 With the {\tt rotate.sty} file one can also rotate figures. This is
553 useful with wide figures that won't fit on within the page boundaries
554 unless turned sideways. Earlier versions of the tree macros didn't
555 work with this.
556
557 \rotate[l]{\modsmalltree{3}{&\node{a}{top}\\
558 \node{b}{left} && \node{c}{right}}
559 \nodeconnect{a}{b}
560 \nodeconnect{a}{c}
561 }
562
563 \begin{verbatim}
564 \rotate[l]{\modsmalltree{3}{&\node{a}{top}\\
565 \node{b}{left} && \node{c}{right}}
566 \nodeconnect{a}{b}
567 \nodeconnect{a}{c}
568 }
569 \end{verbatim}
570
571 Note that the connection commands are within the boundaries of the
572 \verb+\rotate+ command.
573
574 \section{Errors}
575
576 A multitude of caveats.
577 \begin{itemize}
578 \item Any commands calling nodes must be read while \TeX\ is still
579 processing the page the nodes are defined on. In other words don't
580 define the nodes on page 1 and connect them with commands that appear
581 at the end of the paper.
582
583 \item Nodes mentioned in node connecting commands must exist or else
584 the job won't print.
585
586 \item Make sure the dvips postscript output is sent to a postscript
587 printer. It is possible to send the dvi, but not the postscript,
588 output to another printer; the lines just won't appear, assuming the
589 printer ignores specials it doesn't know about.
590
591
592 \end{itemize}
593
594 \section{Thanks}
595
596 Thanks to all those who've helped me over the years, including Avery
597 Andrews who revamped the arrows for me and Gintas Grigelionis who
598 suggested how to finally get the rotation to work correctly.
599
600
601 \end{document}
602
603