Debian Codegraph @

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

raw
1 \documentstyle[lingmacros]{article}
2
3 \title{Linguistic Macros}
4 \author{Emma Pease}
5 \date{May 10,1995}
6
7 \begin{document}
8
9 \maketitle
10
11 The lingmacros file contains a few macros that may be of use to
12 linguists. The major commands are
13 \begin{enumerate}
14 \item The enumsentence macros for creating example sentences
15 \begin{center}
16 \begin{verbatim}
17 \enumsentence[label]{sentence}
18 \eenumsentence[label]{\item[label] sentence 1
19 \item[label] sentence 2}
20 \end{verbatim}
21 \end{center}
22 The enumsentence macros are similar to the math equation environment
23 except that they take regular text. The \verb+\label+ command can be
24 used inside of them.\footnote{The enumsentence macros use the counter,
25 enums. For more information read the style file.} Inside of the
26 eenumsentence either the \verb+\toplabel+ command for the sentence
27 number only or the \verb+\label+ for sentence number and sublabel.
28 Also defined is
29 \verb+\ex{number}+ which gives a relative reference. \verb+(\ex{1})+
30 or \verb+(\ref{senta})+ give the number of the next enumsentence (\ex{1})
31 or (\ref{senta}); \verb+(\ex{2})+ or \verb+(\ref{sentb})+ of the second
32 succeeding enumsentence (\ex{2}) or (\ref{sentb}).
33 \verb+(\ref{sentbb})+ will give (\ref{sentbb}).
34 \enumsentence{This is the first sentence\label{senta}}
35 \eenumsentence{\item this is a second sentence \toplabel{sentb}
36 \item this is a third sentence\label{sentbb}}
37 \begin{center}
38 \begin{verbatim}
39 \enumsentence{This is the first sentence\label{senta}}
40 \eenumsentence{\item this is a second sentence \toplabel{sentb}
41 \item this is a third sentence\label{sentbb}}
42 \end{verbatim}
43 \end{center}
44
45
46 \item The tree macros
47 \begin{center}
48 \begin{verbatim}
49 \smalltree{alignment structure}
50 \modsmalltree{number of columns}{alignment structure}
51 \end{verbatim}
52 \end{center}
53 \verb+\smalltree+ is based on the tabular environment with a large
54 baselineskip. A simple example should suffice.
55 \enumsentence{\smalltree{& &a\\
56 &b& &c\\
57 d& &e& &f}}
58 \begin{center}
59 \begin{verbatim}
60 \enumsentence{\smalltree{& &a\\
61 &b& &c\\
62 d& &e& &f}}
63 \end{verbatim}
64 \end{center}
65 \verb+\modsmalltree+ sometime works better.
66 \enumsentence{\modsmalltree{5}{& &a\\
67 &b& \mc{3}{this is long}\\
68 d& &e& &f}}
69 \begin{center}
70 \begin{verbatim}
71 \enumsentence{\modsmalltree{5}{& &a\\
72 &b& \mc{3}{this is long}\\
73 d& &e& &f}}
74 \end{verbatim}
75 \end{center}
76 Note the use of the \verb+\mc{number of columns}{text}+ to span
77 several columns. The \verb+\clap{text}+ might also be useful; it is
78 similar to the \verb+\rlap+ and \verb+\llap+ commands and produces a
79 centered hbox of zero width. Lines need to be drawn in by hand or one
80 can use the tree-dvips macros.
81
82 \item The gloss macros
83 \begin{center}
84 \begin{verbatim}
85 \shortex{number of columns}{first line}{second line}{gloss}
86 \shortexnt{number of columns}{first line}{second line}
87 \end{verbatim}
88 \end{center}
89 These can be combined to produce most of the glosses that linguists
90 should need.
91 \enumsentence{\shortex{6}{Was & ist & dem & Kind & geschenkt&worden?}
92 {What& is & the & child& given &been?}
93 {What has been given to the child?}
94 \item \shortexnt{7}
95 {Das & Fin\'anzamt & hat & ihn & geschnappt &(und & nicht}
96 {the &finance authority & has & him & caught &(and &not}
97
98 \shortex{2}{die &Polizei).}
99 {the &police).}
100 {It was the IRS that caught him (and not the police).}}
101 \begin{center}
102 \begin{verbatim}
103 \enumsentence{\shortex{6}{Was & ist & dem & Kind & geschenkt&worden?}
104 {What& is & the & child& given &been?}
105 {What has been given to the child?}}
106 \item \shortexnt{7}
107 {Das & Fin\'anzamt & hat & ihn & geschnappt &(und & nicht}
108 {the &finance authority & has & him & caught &(and &not}
109
110 \shortex{2}{die &Polizei).}
111 {the &police)}
112 {It was the IRS that caught him (and not the police).}}
113 \end{verbatim}
114 \end{center}
115 Unfortunately, I've not figured out a fullproof method of breaking
116 the glosses automatically so they have to be done by hand.
117
118 \item AVM structures: These exist within lingmacros but Chris
119 Manning's AVM macro package is better.
120
121
122 \end{enumerate}
123 \end{document}
124