• No results found

Linguistic Macros Emma Pease May 10,1995

N/A
N/A
Protected

Academic year: 2021

Share "Linguistic Macros Emma Pease May 10,1995"

Copied!
3
0
0

Bezig met laden.... (Bekijk nu de volledige tekst)

Hele tekst

(1)

Linguistic Macros

Emma Pease

May 10,1995

The lingmacros file contains a few macros that may be of use to linguists. The major commands are

1. The enumsentence macros for creating example sentences \enumsentence[label]{sentence}

\eenumsentence[label]{\item[label] sentence 1 \item[label] sentence 2}

The enumsentence macros are similar to the math equation environment except that they take regular text. The \label command can be used inside of them.1 Inside of the eenumsentence either the \toplabel

com-mand for the sentence number only or the \label for sentence number and sublabel. Also defined is \ex{number} which gives a relative reference. (\ex{1})or (\ref{senta}) give the number of the next enumsentence (1) or (1); (\ex{2}) or (\ref{sentb}) of the second succeeding enum-sentence (2) or (2). (\ref{sentbb}) will give (2b).

(1) This is the first sentence (2) a. this is a second sentence

b. this is a third sentence

\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}} 2. The tree macros

\smalltree{alignment structure}

\modsmalltree{number of columns}{alignment structure}

1The enumsentence macros use the counter, enums. For more information read the style file.

(2)

\smalltreeis based on the tabular environment with a large baselineskip. A simple example should suffice.

(3) a

b c

d e f

\enumsentence{\smalltree{& &a\\ &b& &c\\ d& &e& &f}} \modsmalltreesometime works better.

(4) a

b this is long

d e f

\enumsentence{\modsmalltree{5}{& &a\\

&b& \mc{3}{this is long}\\ d& &e& &f}}

Note the use of the \mc{number of columns}{text} to span several columns. The \clap{text} might also be useful; it is similar to the \rlap and \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.

3. The gloss macros

\shortex{number of columns}{first line}{second line}{gloss} \shortexnt{number of columns}{first line}{second line}

These can be combined to produce most of the glosses that linguists should need.

(5) Was ist dem Kind geschenkt worden? What is the child given been? What has been given to the child?

Das Fin´anzamt hat ihn geschnappt (und nicht the finance authority has him caught (and not die Polizei).

the police).

It was the IRS that caught him (and not the police).

(3)

\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).}} Unfortunately, I’ve not figured out a fullproof method of breaking the glosses automatically so they have to be done by hand.

4. AVM structures: These exist within lingmacros but Chris Manning’s AVM macro package is better.

Referenties

GERELATEERDE DOCUMENTEN

In addition, in this document the terms used have the meaning given to them in Article 2 of the common proposal developed by all Transmission System Operators regarding

(If \strut were not redefined, there would be too much space between the first and the second line.) Furthermore, to obtain a larger separation between the pairs of lines,

The ling-macros package is designed to allow easier use of formal symbols used in formal linguistics, especially in formal linguistics.. The set arose from the macros that I have

This is automatically done with the fixmath package by Walter Schmidt [9], but this feature is not implemented in mismath because this rule is conflicting to the one used for

\VectorStyle[Z]{E}{0.0}{b} — style ‘Z’ means that the end of the arrow body is positioned a little bit after the beginning of the vec- tor, and its orientation is rotated by 180

Each time a new table is encountered, a message similar to ‘[Nrows=xx, Ncols=yy]’ is printed on your terminal, where xx is the number of rows and yy the number of columns discovered

Imag- ine the node as a box, fromloc and toloc are the locations on that box to draw the connecting lines.. tl t tr l object r bl

\typosize [font-size/baselineskip] % size setting of typesetting \typoscale [factor-font/factor-baselineskip] % size scaling \thefontsize [size] \thefontscale [factor] % current