summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/tree-dvips/lingmacros-manual.tex
blob: e8259dd26f0f3ec28089d9a2c6a5339f7d909179 (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
\documentstyle[lingmacros]{article}

\title{Linguistic Macros}
\author{Emma Pease}

\begin{document}

\maketitle

The lingmacros file contains a few macros that may be of use to
linguists.  The major commands are
\begin{enumerate}
\item The enumsentence macros for creating example sentences
\begin{center}
\begin{verbatim}
\enumsentence[label]{sentence}
\eenumsentence[label]{\item[label] sentence 1
                      \item[label] sentence 2}
\end{verbatim}
\end{center}
 The enumsentence macros are similar to the math equation environment
except that they take regular text.  The \verb+\label+ command can be
used inside of them.\footnote{The enumsentence macros use the counter,
enums.  For more information read the style file.} Inside of the
eenumsentence either the \verb+\toplabel+ command for the sentence
number only or the \verb+\label+ for sentence number and sublabel.
Also defined is
\verb+\ex{number}+ which gives a relative reference.  \verb+(\ex{1})+
or \verb+(\ref{senta})+ give the number of the next enumsentence (\ex{1})
or (\ref{senta}); \verb+(\ex{2})+ or \verb+(\ref{sentb})+ of the second
succeeding enumsentence (\ex{2}) or (\ref{sentb}).
\verb+(\ref{sentbb})+ will give (\ref{sentbb}).
 \enumsentence{This is the first sentence\label{senta}}
\eenumsentence{\item this is a second sentence \toplabel{sentb}
               \item this is a third sentence\label{sentbb}}
\begin{center}
\begin{verbatim}
\enumsentence{This is the first sentence\label{senta}}
\eenumsentence{\item this is a second sentence \toplabel{sentb}
               \item this is a third sentence\label{sentbb}}
\end{verbatim}
\end{center}


\item The tree macros
\begin{center}
\begin{verbatim}
\smalltree{alignment structure}
\modsmalltree{number of columns}{alignment structure}
\end{verbatim}
\end{center}
\verb+\smalltree+ is based on the tabular environment with a large
baselineskip. A simple example should suffice.
\enumsentence{\smalltree{& &a\\ 
                         &b& &c\\ 
                        d& &e& &f}}
\begin{center}
\begin{verbatim}
\enumsentence{\smalltree{& &a\\ 
                         &b& &c\\ 
                        d& &e& &f}}
\end{verbatim}
\end{center}
\verb+\modsmalltree+ sometime works better.
\enumsentence{\modsmalltree{5}{& &a\\ 
                         &b& \mc{3}{this is long}\\ 
                        d& &e& &f}}
\begin{center}
\begin{verbatim}
\enumsentence{\modsmalltree{5}{& &a\\ 
                         &b& \mc{3}{this is long}\\ 
                        d& &e& &f}}
\end{verbatim}
\end{center}
 Note the use of the \verb+\mc{number of columns}{text}+ to span
several columns.  The \verb+\clap{text}+ might also be useful; it is
similar to the \verb+\rlap+ and \verb+\llap+ commands and produces a
centered hbox of zero width.  Lines need to be drawn in by hand or one
can use the tree-dvips macros. 

\item The gloss macros
\begin{center}
\begin{verbatim}
\shortex{number of columns}{first line}{second line}{gloss}
\shortexnt{number of columns}{first line}{second line}
\end{verbatim}
\end{center}
These can be combined to produce most of the glosses that linguists
should need.
\enumsentence{\shortex{6}{Was & ist & dem & Kind & geschenkt&worden?}
                         {What& is  & the & child& given    &been?}
                         {What has been given to the child?}
               \item \shortexnt{7}
{Das & Fin\'anzamt      & hat & ihn & geschnappt &(und & nicht}
{the &finance authority & has & him & caught     &(and &not}

\shortex{2}{die &Polizei).}
           {the &police).}
           {It was the IRS that caught him (and not the police).}}
\begin{center}
\begin{verbatim}
\enumsentence{\shortex{6}{Was & ist & dem & Kind & geschenkt&worden?}
                         {What& is  & the & child& given    &been?}
                         {What has been given to the child?}}
               \item \shortexnt{7}
{Das & Fin\'anzamt      & hat & ihn & geschnappt &(und & nicht}
{the &finance authority & has & him & caught     &(and &not}

\shortex{2}{die &Polizei).}
           {the &police)}
           {It was the IRS that caught him (and not the police).}}
\end{verbatim}
\end{center}
Unfortunately, I've not figured out a fullproof method of breaking
the glosses automatically so they have to be done by hand.  

\item AVM structures
\begin{center}
\begin{verbatim}
\outerfs{text}
\end{verbatim}
\end{center}
\enumsentence{\evnup[-3pt]{\outerfs{SUBJ & \outerfs{POSS & [PRED `Louise']\\
                                             PRED &`mother$\langle$Poss$\rangle$}\\[3ex]
                             OBJ  & \outerfs{PRED & `PRO'\\
                                             REFL & +}\\
                             PRED & `dress$\langle$SUBJ OBJ$\rangle$'}}}
\begin{center}
\begin{verbatim}
\enumsentence{\evnup[-3pt]{%
\outerfs{SUBJ & \outerfs{POSS & [PRED `Louise']\\
                         PRED &`mother$\langle$Poss$\rangle$}\\[3ex]
         OBJ  & \outerfs{PRED & `PRO'\\
                        REFL & +}\\
         PRED & `dress$\langle$SUBJ OBJ$\rangle$'}}}
\end{verbatim}
\end{center}
\end{enumerate}
\end{document}