Sei sulla pagina 1di 2

L

A
T
E
X for linguists
Jon Dehdari
February 28, 2008
1 Introduction
LAT
E
X makes nice looking documents. By default it does JUSTIFIED MARGINS,
which looks really professional. It also does hyphenation really well, which is
much harder to do than it would seem, which is why other programs dont enable
hyphenation by default.
2 Methods
Well talk about linguistic glosses, phonetic characters, trees, AVMs, and seman-
tic/logic symbols.
2.1 Gloss example
(1) I am going to the store.
(2) Hem
He
i
PRED
wokbaot
walk about
olsem
all same
krab
crab
He walks like a crab.
2.2 Phonetics example
We can see in Penguinese [k
w
:k^] stale raisin bread, compared with English
/steIl "eIz1n brEd/.
2.3 Tree example
Doing trees with qtree is just like bracketing sentences.
1
1
Remember to pad each bracket with a space on both sides.
1
\documeh1cass|11p1]{aJ11ce}
\usepackage{ma1hpazo} FoJ Paa11ho 1oh1 {1hc. ma1h chaJs.)
\usepackage{se1space} FoJ spac1hg vaJ1a11oh such as doube space, e1c.
\usepackage{ha1b1b} FoJ compex b1b1ogJaphy s1u11
\usepackage{q1Jee} FoJ 1Jees
\usepackage{1hguex} FoJ 1hgu1s11c gosses
\usepackage{1Jee-dv1ps} FoJ dJaw1hg 1hes/aJJows be1weeh 1wo po1h1s
\usepackage{1x1oh1s} FoJ T1mes 1oh1 {1hc. ma1h chaJs.)
\usepackage{11mes} FoJ T1mes 1oh1
\usepackage{11pa} FoJ Phohe11c chaJac1eJs
\usepackage{avm} FoJ hPSC-s1ye A11J1bu1e vaue ha1J1ces
\usepackage{s1maJyJd} FoJ semah11c-y ||...]]
\usepackage|maJg1h=1.501h]{geome1Jy}
\add1oehg1h{\1opmaJg1h}{-0.91h}
\add1oehg1h{\1ex1he1gh1}{1.41h}
\111e{\LaTeX{} 1oJ 1hgu1s1s}
\au1hoJ{Joh 0ehdaJ1}
\b1b1ogJaphys1ye{apa1ke}
\beg1h{documeh1}
\make111e
\beg1h{spac1hg}{1.2}
\sec11oh{Th1Joduc11oh}
\LaTeX{} makes h1ce ook1hg documeh1s. By de1au1 11 does \1ex1sc{Jus1111ed haJg1hs},
wh1ch ooks \emph{Jeay} pJo1ess1oha. T1 aso does \1ex1b1{hypheha11oh} Jeay we,
wh1ch 1s much \uhdeJ1he{haJdeJ} 1o do 1hah 11 woud \1ex1s{seem}, wh1ch 1s why o1heJ
pJogJams doh`1 ehabe hypheha11oh by de1au1.
\sec11oh{he1hods}
We` 1ak abou1 1hgu1s11c gosses, phohe11c chaJac1eJs, 1Jees, Avh`s, ahd semah11c/og1c
symbos.
\subsec11oh{Coss exampe}
\ex.
T am go1hg 1o 1he s1oJe.
\exg.
hem 1 wokbao1 osem kJab \\
he \1ex1sc{PJed} {wak abou1} {a same} cJab \\
`he waks 1ke a cJab.`
\subsec11oh{Phohe11cs exampe}
We cah see 1h Pehgu1hese \1ex11pa{|k\supeJ w\ae{}.k\1ex1coJheJ]} ``s1ae Ja1s1h bJead``,
compaJed w11h Ehg1sh \1ex11pa{/s1eT "\*JeTz1h bJEd/}.
\subsec11oh{TJee exampe}
0o1hg 1Jees w11h q1Jee 1s us1 1ke bJacke11hg seh1ehces.\1oo1ho1e{RemembeJ 1o pad each
bJacke1 w11h a space oh bo1h s1des.}
(3) S
NP
Det
the
N
dogs
VP
V
eat
NP
N
food
2.4 AVM example

SUBJ

PERS 3
NUM SG

PRED

NP
1
, S: 2

...

2.5 Semantics/Logic example


(4) (G E) (G C) 4, UI
ginocchi is not gnocchi
, xy(x y)
Results
Heres a table:
2
Red Green Blue
33% 33% 33%
3 Discussion
As we have seen in the previous table, 33 + 33 + 33 = 100 for large values of 33.
2
I actually just made this up.
2
\ex.
\TJee|.S |.hP |.0e1 1he ] |.h dogs ] ] |.vP |.v ea1 ] |.hP |.h 1ood ] ] ] ]
\subsec11oh{Avh exampe}
\beg1h{avm}
\|
SbBJ & \| PERS & 3 \\
hbh & SC \\
\] \\
PRE0 & \< hP$_{\_1}$, S.\_2 \>\\
...
\]
\ehd{avm}
\subsec11oh{Semah11cs/Log1c exampe}
\ex. $ {C \J1gh1aJJow E) \oJ {C \ahd \heg C) $ \h11 4, bT
$\bJacke1$g1hocch1$\JJbJacke1$ 1s ho1 $\bJacke1$ghocch1$\JJbJacke1$
$$\ahge \apha , \be1a \Jahge \1h \0mega \e11J1gh1aJJow \1oJa x \ex1s1s y { x \heq
y ) $$
\sec11oh*{Resu1s}
heJe`s a 1abe.\1oo1ho1e{T ac1uay us1 made 1h1s up.}
\beg1h{ceh1eJ}
\beg1h{1abuaJ}{]]]]}
\h1he
Red & CJeeh & Bue \\
\h1he
\h1he
T doh`1 khow wha1 happehed 1o 1he o1heJ 1
33\ & 33\ & 33\ \\
\h1he
\ehd{1abuaJ}
\ehd{ceh1eJ}
\sec11oh{01scuss1oh}
As we have seeh 1h 1he pJev1ous 1abe, $ 33 + 33 + 33 = 100$ 1oJ aJge vaues o1 33.
\ehd{spac1hg}
\b1b1ogJaphy{myb1b}
\ehd{documeh1}

Potrebbero piacerti anche