summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/tree-dvips/tree-manual.tex
blob: 9f942fd415ce0f93dbd896cec9a3d82f0695ac09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
\documentstyle[tree-dvips,rotate,lingmacros]{article}

\title{Tree Macros}
\author{Emma Pease}
\date{May 10, 1995}

\begin{document}

\maketitle

The tree macros package allows one to integrate \LaTeX\ and Postscript.
For example, one can use \LaTeX\ to layout a tree and have Postscript
draw the lines.
\begin{center}
 \begin{tabular}{ccc}
&\node{ab}{top node}\\[3ex]
\node{ac}{left node} && \node{c}{right node}\\[3ex]
              && \node{d}{odd node}
\end{tabular}
\nodeconnect{ab}{ac} 
\nodeconnect{ab}{c}
\nodeconnect{c}{d}
\nodecurve[r]{ab}[r]{d}{1in}
\anodeconnect[b]{ac}[l]{d}
\anodecurve[l]{ab}[l]{ac}{1in}
\end{center}

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{verbatim}
\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}
\end{verbatim}
  You will notice that four nodes are defined, a, b, c, and d, using the
\verb+\node+ command. These nodes are then connected using the
\verb+\nodeconnect+ and \verb+\nodecurve+ commands.
  
\section{Locating Commands}

Location commands are those that deal with defining a location on a
page.  The basic command
 \begin{center}
\begin{verbatim}
\node{nodename}{object}
\end{verbatim}
\end{center}
  Each node has its name, height, width, and the location of the lower
left hand corner point passed down to postscript where it will remain
until needed. Note that the object will be printed by \TeX\ but the
lines drawn by Postscript. A variant
of this command is
 \begin{center}
\begin{verbatim}
\nodepoint{nodename}[horizontal displace][vertical displace]
\end{verbatim}
\end{center}
  The node's height and width are 0pts, but the location can be
displaced. 

\section{Connecting Commands}

These commands connect two or more nodes. 

\subsection{nodeconnect}

One basic command is
\begin{center}
\begin{verbatim}
\nodeconnect[fromloc]{fromnodename}[toloc]{tonodename}
\end{verbatim}
\end{center}
  fromnodename and tonodename must be the names of two existing nodes.
Imagine the node as a box, fromloc and toloc are the locations on that
box to draw the connecting lines. 
\begin{center}\nodemargin=9pt
\begin{tabular}{lcr}
tl  & {t}                &{tr}\\[2ex]
{l} & \node{a}{object}   &{r}\\[2ex]
{bl}& {b}                &{br}
\end{tabular}
\nodebox{a}
\end{center}
  The present choices are t [top], b [bottom], l [left], r [right], tl
[topleft], tr [topright], bl [bottomleft], and br [bottomright].
These could be expanded.  By default the fromloc is bottom and the
toloc is top.

Variants of this command are
\begin{verbatim}
\anodeconnect[fromloc]{fromnodename}[toloc]{tonodename}
\aanodeconnect[fromloc]{fromnodename}[toloc]{tonodename}
\end{verbatim}
The first places an arrow pointing to the second node. The second puts
arrows on both ends of the line.
\begin{center}
\begin{tabular}{ccccc}
                     &\node{a}{Top node}\\[3ex]
\node{b}{left node\strut} &   & \node{c}{right node\strut}&\qquad &\node{d}{farright\strut}
\end{tabular}
\nodeconnect{a}{b}
\nodeconnect[t]{c}[b]{a}
\anodeconnect[r]{b}[l]{c}
\aanodeconnect[r]{c}[l]{d}
\end{center}
\begin{verbatim}
\begin{tabular}{ccccc}
                     &\node{a}{Top node}\\[3ex]
\node{b}{left node\strut} &   & \node{c}{right node\strut}
		&\qquad &\node{d}{farright\strut}
\end{tabular}
\nodeconnect{a}{b}
\nodeconnect[t]{c}[b]{a}
\anodeconnect[r]{b}[l]{c}
\aanodeconnect[r]{c}[l]{d}
\end{verbatim}
Note the \verb+\strut+.  This ensures that both nodes have the same
height and depth.

\subsection{barnodeconnect}

Another way of connecting is via the bar connect commands
\begin{verbatim}
\barnodeconnect[depth]{fromnodename}{tonodename}
\abarnodeconnect[depth]{fromnodename}{tonodename}
\end{verbatim}
For example,
\begin{center}
\node{c}{\strut This} \node{a}{\strut is} a \node{b}{\strut test} of
barnodeconnect.  
\barnodeconnect{a}{b}
\barnodeconnect[-5pt]{a}{c}
\bigskip\bigskip

\node{c}{\strut This} \node{a}{\strut is} a \node{b}{\strut test}
\node{d}{\strut of} abarnodeconnect.  \node{e}{\strut Note} arrows.
\abarnodeconnect[10pt]{a}{b}
\abarnodeconnect[-10pt]{a}{c}
\abarnodeconnect[-10pt]{b}{d}
\abarnodeconnect[10pt]{e}{d}
\end{center}\bigskip
\begin{verbatim}
\node{c}{\strut This} \node{a}{\strut is} a \node{b}{\strut test} 
of barnodeconnect.  
\barnodeconnect{a}{b}
\barnodeconnect[-5pt]{a}{c}
\bigskip\bigskip

\node{c}{\strut This} \node{a}{\strut is} a \node{b}{\strut test}
\node{d}{\strut of} abarnodeconnect.  \node{e}{\strut Note} arrows.
\abarnodeconnect[10pt]{a}{b}
\abarnodeconnect[-10pt]{a}{c}
\abarnodeconnect[-10pt]{b}{d}
\abarnodeconnect[10pt]{e}{d}
\end{verbatim}
  A negative depth places the bar below the line; a positive depth (or
the default, which is 5pt) places the bar above the line.


\subsection{nodecurve}

The nodecurve commands allow curves between nodes.
\begin{verbatim}
\nodecurve[fromloc][fromang]{fromnodename}[toloc][toang]{tonodename}{fdepth}[tdepth]
\anodecurve[fromloc][fromang]{fromnodename}[toloc][toang]{tonodename}{fdepth}[tdepth]
\aanodecurve[fromloc][fromang]{fromnodename}[toloc][toang]{tonodename}{fdepth}[tdepth]
\end{verbatim}
The options fromloc and toloc are the same as for \verb+\nodeconnect+.
The options fromang and toang are the angle of incidence in degrees to the
location with 0 being perpendicular and the default.  Angles are
calculated counterclockwise.  fdepth and tdepth are dimensions and
allow one to adjust how curved the curve is.
\begin{center}
\begin{tabular}{ccc}
                     &\node{a}{Top node}\\[3ex]
\node{b}{left node\strut} &                  & \node{c}{right node\strut}
\end{tabular}
\nodecurve[b]{b}[b]{c}{.3in}
\anodecurve[l]{a}[l]{b}{20pt}[40pt]
\aanodecurve[r]{a}[r]{c}{60pt}[20pt]
\hfill
\begin{tabular}{c}
\node{d}{Top}\\
\node{e}{Bottom}
\end{tabular}
\nodecurve[l]{d}[l]{e}{30pt}
\nodecurve[l]{d}[l]{e}{30pt}[40pt]
\nodecurve[l]{d}[l]{e}{30pt}[50pt]
\nodecurve[l]{d}[l]{e}{30pt}[5pt]

\nodecurve[r]{d}[r]{e}{30pt}
\nodecurve[r][20]{d}[r][-30]{e}{30pt}

\bigskip

\end{center}
\begin{verbatim}
\begin{tabular}{ccc}
                     &\node{a}{Top node}\\[3ex]
\node{b}{left node\strut} &                  & \node{c}{right node\strut}
\end{tabular}
\nodecurve[b]{b}[b]{c}{.3in}
\anodecurve[l]{a}[l]{b}{20pt}[40pt]
\aanodecurve[r]{a}[r]{c}{60pt}[20pt]
\hfill
\begin{tabular}{c}
\node{d}{Top}\\
\node{e}{Bottom}
\end{tabular}
% here follow some curves that adjust fdepth and tdepth
\nodecurve[l]{d}[l]{e}{30pt}
\nodecurve[l]{d}[l]{e}{30pt}[40pt]
\nodecurve[l]{d}[l]{e}{30pt}[50pt]
\nodecurve[l]{d}[l]{e}{30pt}[5pt]

% here follow some curves that adjust toang and fromang
\nodecurve[r]{d}[r]{e}{30pt}
\nodecurve[r][20]{d}[r][-30]{e}{30pt}
\end{verbatim}

\subsection{Other connecting commands}

A few odd commands
\begin{verbatim}
\nodetriangle{fromnodename}{tonodename}
\end{verbatim}
This creates a triangle whose apex is the bottom of
\verb+fromnodename+ and whose base is the top of \verb+tonodename+. 
\begin{center}
\begin{tabular}{c}
\node{a}{Top}\\[4ex]
\node{b}{This is the bottom}
\end{tabular}
\nodetriangle{a}{b}

\end{center}
\begin{verbatim}
\begin{tabular}{c}
\node{a}{Top}\\[4ex]
\node{b}{This is the bottom}
\end{tabular}
\nodetriangle{a}{b}
\end{verbatim}
The last command is meant to be used with the \verb+\nodeconnect+
command.  It causes a short line to cross perpendicular to the line.
\begin{verbatim}
\delink[fromloc]{fromnodename}[toloc]{tonodename}{length}
\end{verbatim}
An example follows
\begin{center}
\node{a}{leftnode\strut}\hspace{1in}\node{b}{rightnode\strut}
\nodeconnect[r]{a}[l]{b}
\delink[r]{a}[l]{b}{10pt}
\end{center}

\section{Single Node commands}

These commands adjust something around a single node rather than
connecting nodes.  The basic commands are
 \begin{center}
\begin{verbatim}
\nodebox{nodename}
\nodecircle[depth]{nodename}
\nodeoval{nodename}
\end{verbatim}
\end{center}
They draw, respectively, a box, circle, or oval around the given node.
\begin{center}
\node{a}{node}\hfill \node{b}{node} \hfill \node{c}{node}
\nodebox{a} \nodecircle{b} \nodeoval{c}
\end{center}
  You will probably wish to call these commands after you have called
all the connecting commands you will be using in a particular diagram.


\section{Parameters}

At the moment there are three parameters that can be changed.  They
are
\begin{itemize}
\item \verb+\nodemargin+ - A node's height and width are defined as
the height plus depth and width of an hbox enclosing the object plus the
nodemargin on each side.  The default is 2pt.

\item \verb+\treelinewidth+ - The width of the lines. The default is .3pt.

\item \verb+\dashlength+ - The length of the dash, if you are using
dashed lines.   The default is 0pt (solid line).\footnote{The length
of the dash and the length between the dashes are the same.  An
exercise for someone who knows postscript and tex is to allow the dash
and the blank to vary in size.}

\item \verb+\arrowwidth+ - the width of the arrowhead in the
      \verb+\anodeconnect+ and \verb+\anodecurve+ commands. Default is
      3 pt.

\item \verb+\arrowlength+ - the length of the arrowhead.  Default is
      4pt. 

\item \verb+\arrowinset+ - the inset in the arrow.  Default is 1pt.

\end{itemize}
The command \verb+\arrowhead{width}{length}{inset}+ allows one to
define all three parameters in one go.
\begin{center}
\node{a}{This} \node{b}{is} a \node{c}{line}.\\[5ex]
\node{d}{This} \node{e}{is} a \node{f}{line}.%
% The following gives examples of differing insets of arrowheads
\arrowhead{4pt}{6pt}{0pt}%
\anodeconnect{a}{d}%
\arrowhead{4pt}{6pt}{1pt}%
\anodeconnect{b}{e}%
\arrowhead{4pt}{6pt}{3pt}%
\anodeconnect{c}{f}%

% the following gives examples of differing lengths 
% and widths of the arrowhead
\arrowhead{4pt}{6pt}{2pt}%
\anodeconnect[t]{d}[b]{a}%
\arrowhead{4pt}{8pt}{2pt}%
\anodeconnect[t]{e}[b]{b}%
\arrowhead{2pt}{6pt}{2pt}%
\anodeconnect[t]{f}[b]{c}%

\end{center}
\begin{verbatim}
\node{a}{This} \node{b}{is} a \node{c}{line}.\\[5ex]
\node{d}{This} \node{e}{is} a \node{f}{line}.%
% The arrows pointing down give examples of differing insets of arrowheads
\arrowhead{4pt}{6pt}{0pt}%
\anodeconnect{a}{d}%
\arrowhead{4pt}{6pt}{1pt}%
\anodeconnect{b}{e}%
\arrowhead{4pt}{6pt}{3pt}%
\anodeconnect{c}{f}%

% the arrows pointing up give examples of differing lengths 
% and widths of the arrowheads. 
\arrowhead{4pt}{6pt}{2pt}%
\anodeconnect[t]{d}[b]{a}%
\arrowhead{4pt}{8pt}{2pt}%
\anodeconnect[t]{e}[b]{b}%
\arrowhead{2pt}{6pt}{2pt}%
\anodeconnect[t]{f}[b]{c}%
\end{verbatim}

\section{How to Run}

Add the style file, tree-dvips.sty, 
\begin{verbatim}
\documentstyle[tree-dvips]{article}
\end{verbatim}
Run through \LaTeX\ and send to a postscript printer using dvips
(written by Tomas Rokicki).


\section{Examples}

A series of examples follow.
\begin{center}
\let\mc=\multicolumn
\begin{tabular}[t]{@{}lllllllll@{}}
       &    &    &      &\node{a}{VP} \\[2ex]
       &\node{b}{PP} 
            &    &      &    &    &\mc{2}{c}{\node{c}{V$'$}}\\[2ex]
       &    &    &\node{d}{NP} \\[2ex]
       &    &\nodepoint{e}   
                 &      &\node{f}{NP} \\
       &    &    &\hfill\nodepoint{r}[0pt][3pt]   \\
       &\hfil\node{g}{AP} 
            &    &\hfil\node{h}{NP}
                        &    &    &     &\hfil\node{i}{NP}\\[2ex]
\node{j}{P}  
       &\hfil\node{k}{A}  
            & \node{l}{Prt}
                 &\hfil\node{m}{N}   
                        &\node{n}{Prt} 
                             &\node{o}{N} 
                                  &\node{p}{V}
                                        &\hfil\node{q}{N}\\[2ex]
`zaw   &`oN &`geq&?njiaw&`geq&`dou& khe &tshjaN \\
toward &red &    & bird &    &head& open&gun \\[1ex]
\mc{9}{@{}l}{`shoot at the red head of the bird'} \\
\end{tabular}
\nodeconnect{a}{b}
\nodeconnect{a}{c}
\nodeconnect{b}{d}
\nodeconnect{b}{j}
\nodeconnect{c}{p}
\nodeconnect{c}{i}
\nodeconnect{d}{e}
\nodeconnect{e}{g}
\nodeconnect{e}{l}
\nodeconnect{d}{f}
\nodeconnect{g}{k}
\nodeconnect{f}{r}
\nodeconnect{r}{h}
\nodeconnect{r}{n}
\nodeconnect{f}{o}
\nodeconnect{h}{m}
\nodeconnect{i}{q}

\end{center}
\begin{verbatim}
\let\mc=\multicolumn
\begin{tabular}[t]{@{}lllllllll@{}}
    &    &    &      &\node{a}{VP} \\[2ex]
    &\node{b}{PP} 
         &    &      &    &    &\mc{2}{c}{\node{c}{V$'$}}\\[2ex]
    &    &    &\node{d}{NP} \\[2ex]
    &    &\nodepoint{e}   
              &      &\node{f}{NP} \\
    &    &    &\hfill\nodepoint{r}[0pt][3pt]   \\
    &\hfil\node{g}{AP} 
         &    &\hfil\node{h}{NP}
                     &    &    &     &\hfil\node{i}{NP}\\[2ex]
\node{j}{P}  
    &\hfil\node{k}{A}  
         & \node{l}{Prt}
              &\hfil\node{m}{N}   
                     &\node{n}{Prt} 
                          &\node{o}{N} 
                               &\node{p}{V}
                                     &\hfil\node{q}{N}\\[2ex]
`zaw&`oN &`geq&?njiaw&`geq&`dou& khe &tshjaN \\
toward &red &    & bird &    &head& open&gun \\[1ex]
\mc{9}{@{}l}{`shoot at the red head of the bird'} \\
\end{tabular}
\nodeconnect{a}{b}     \nodeconnect{e}{l}
\nodeconnect{a}{c}     \nodeconnect{d}{f}
\nodeconnect{b}{d}     \nodeconnect{g}{k}
\nodeconnect{b}{j}     \nodeconnect{f}{r}
\nodeconnect{c}{p}     \nodeconnect{r}{h}
\nodeconnect{c}{i}     \nodeconnect{r}{n}
\nodeconnect{d}{e}     \nodeconnect{f}{o}
\nodeconnect{e}{g}     \nodeconnect{h}{m}
\nodeconnect{i}{q}
\end{verbatim}
 The following two examples use \verb+\outerfs+ and
\verb+\modsmalltree+; these are both part of the lingmacros package.
See \verb+lingmacros.sty+ for more information.
 \enumsentence[(100)]{\evnup[2pt]
{\outerfs{ Focus & \outerfs{subj       & \outerfs{\ \nodepoint{a}\ }\\[1ex]
                           obl$_{th}$ & \outerfs{Pred & `Pro'\\
                                                 Refl & +}\\[1ex]
                           Pred       & `proud$\langle(\uparrow {\rm subj})
                                         (\uparrow {\rm obl}_{th})\rangle$'}\nodepoint{d}[-3pt][0pt]\\[2ex]
           Subj & \outerfs{Pred & `Max'}\\[1ex]
           Comp & \outerfs{Subj &\outerfs{Pred & `Larry'}\nodepoint{c}[-3pt][0pt]\\[1ex]
                           Xcomp&\outerfs{\ \nodepoint{b}\ }\\[1ex]
                           Pred & `be$\langle(\uparrow {\rm xcomp})
                                         (\uparrow {\rm subj})\rangle$'}\\[1ex]
           Pred & `think$\langle(\uparrow {\rm subj})
                                         (\uparrow {\rm comp})\rangle$'}\\
}
\nodecurve[r]{a}[r]{c}{2in}[.5in]
\anodecurve[r]{d}[r]{b}{1in}[2in]
}
\begin{verbatim}
\enumsentence[(100)]{\evnup[2pt]
{\outerfs{ 
Focus & \outerfs{subj       & \outerfs{\ \nodepoint{a}\ }\\[1ex]
                 obl$_{th}$ & \outerfs{Pred & `Pro'\\
                                       Refl & +}\\[1ex]
                 Pred       & `proud$\langle(\uparrow {\rm subj})
                             (\uparrow {\rm obl}_{th})\rangle$'}%
\nodepoint{d}[-3pt][0pt]\\[2ex]
Subj & \outerfs{Pred & `Max'}\\[1ex]
Comp & \outerfs{Subj &\outerfs{Pred & `Larry'}%
\nodepoint{c}[-3pt][0pt]\\[1ex]
                Xcomp&\outerfs{\ \nodepoint{b}\ }\\[1ex]
                Pred & `be$\langle(\uparrow {\rm xcomp})
                       (\uparrow {\rm subj})\rangle$'}\\[1ex]
Pred & `think$\langle(\uparrow {\rm subj})
                     (\uparrow {\rm comp})\rangle$'}\\
}
\nodecurve[r]{a}[r]{c}{2in}[.5in]
\anodecurve[r]{d}[r]{b}{1in}[2in]
}
\end{verbatim}
\enumsentence{\modsmalltree{6}{
             &             &   &\ns\node{a}{\begin{tabular}[t]{@{}c@{}}S\\ 
                                  {}[+R]\end{tabular}}   \\
             &\node{b}{NP} &   &    &  & \node{c}{VP} \\
\node{d}{Det}&             &\node{e}{N$^1$} \\
\node{h}{the}&\node{i}{N}  &   &  \node{f}{PP} &&\node{g}{are 
                                              totally false}\\
       &\node{n}{rumors}&\node{j}{P} &&\ns\node{k}{\begin{tabular}[t]{@{}c@{}}NP\\
                                               {}[+R] \end{tabular}}\\
         &                &\node{l}{about} &&\node{m}{whom}}
\nodeconnect{a}{b}
\nodeconnect{a}{c}
\nodeconnect{b}{d}
\nodeconnect{b}{e}
\nodeconnect{d}{h}
\nodeconnect{e}{i}
\nodeconnect{e}{f}
\nodeconnect{i}{n}
\nodeconnect{f}{j}
\nodeconnect{f}{k}
\nodeconnect{j}{l}
\nodeconnect{k}{m}
\nodetriangle{c}{g}
{\makedash{4pt}
\anodecurve[t]{b}[l]{a}{10pt}
\anodecurve[t]{e}[r]{b}{10pt}
\anodecurve[t]{f}[r]{e}{10pt}
\anodecurve[t]{k}[r]{f}{10pt}
}}
\begin{verbatim}
\enumsentence{\modsmalltree{6}{
     &       &   &\ns\node{a}{\begin{tabular}[t]{@{}c@{}}S\\ 
                        {}[+R]\end{tabular}}   \\
     &\node{b}{NP} 
             &   &  && \node{c}{VP} \\
\node{d}{Det}
     &       &\node{e}{N$^1$} \\
\node{h}{the}
     &\node{i}{N}  
             &   &\node{f}{PP} 
                    &&\node{g}{are totally false}\\
     &\node{n}{rumors}
             &\node{j}{P} 
                 &  &\ns\node{k}{\begin{tabular}[t]{@{}c@{}}NP\\
                                 {}[+R] \end{tabular}}\\
     &       &\node{l}{about} 
                 &  &\node{m}{whom}}
\nodeconnect{a}{b}         \nodeconnect{e}{f}
\nodeconnect{a}{c}         \nodeconnect{i}{n}
\nodeconnect{b}{d}         \nodeconnect{f}{j}
\nodeconnect{b}{e}         \nodeconnect{f}{k}
\nodeconnect{d}{h}         \nodeconnect{j}{l}
\nodeconnect{e}{i}         \nodeconnect{k}{m}
\nodetriangle{c}{g}
{\makedash{4pt}
\anodecurve[t]{b}[l]{a}{10pt}  \anodecurve[t]{f}[r]{e}{10pt}
\anodecurve[t]{e}[r]{b}{10pt}  \anodecurve[t]{k}[r]{f}{10pt}
}}
\end{verbatim}

\section{Rotation}

With the {\tt rotate.sty} file one can also rotate figures.  This is
useful with wide figures that won't fit on within the page boundaries
unless turned sideways.  Earlier versions of the tree macros didn't
work with this.

\rotate[l]{\modsmalltree{3}{&\node{a}{top}\\
\node{b}{left} && \node{c}{right}}
\nodeconnect{a}{b}
\nodeconnect{a}{c}
}

\begin{verbatim}
\rotate[l]{\modsmalltree{3}{&\node{a}{top}\\
\node{b}{left} && \node{c}{right}}
\nodeconnect{a}{b}
\nodeconnect{a}{c}
}
\end{verbatim}

Note that the connection commands are within the boundaries of the
\verb+\rotate+ command.

\section{Errors}

A multitude of caveats.
\begin{itemize}
  \item Any commands calling nodes must be read while \TeX\ is still
processing the page the nodes are defined on. In other words don't
define the nodes on page 1 and connect them with commands that appear
at the end of the paper.

\item Nodes mentioned in node connecting commands must exist or else
      the job won't print.  

\item Make sure the dvips postscript output is sent to a postscript
printer.  It is possible to send the dvi, but not the postscript,
output to another printer; the lines just won't appear, assuming the
printer ignores specials it doesn't know about.


\end{itemize}

\section{Thanks}

Thanks to all those who've helped me over the years, including Avery
Andrews who revamped the arrows for me and Gintas Grigelionis who
suggested how to finally get the rotation to work correctly.


\end{document}