L A TEX introduction February 26, 2009
Installing LATEX Resources
Installing LA TE X Resources OS X I I use MacTeX: http://tug.org/mactex/
Installing LA TE X Resources OS X I I use MacTeX: http://tug.org/mactex/ I Comes with TeXShop, probably the easiest way to get started editing LATEX les on the mac: http://www.uoregon.edu/~koch/texshop/
Installing LA TE X Resources OS X I I use MacTeX: http://tug.org/mactex/ I Comes with TeXShop, probably the easiest way to get started editing LATEX les on the mac: http://www.uoregon.edu/~koch/texshop/ I Also comes with BibDesk, a really great program: http://bibdesk.sourceforge.net/
Installing LA TE X Resources OS X I I use MacTeX: http://tug.org/mactex/ I Comes with TeXShop, probably the easiest way to get started editing LATEX les on the mac: http://www.uoregon.edu/~koch/texshop/ I Also comes with BibDesk, a really great program: http://bibdesk.sourceforge.net/ I I uses aquamacs (an OS X version of GNU emacs), takes some more work to customize: http://aquamacs.org/, http://www.gnu.org/software/auctex/
Installing LA TE X Resources Windows I I don't really know much, sorry.
Installing LA TE X Resources Windows I I don't really know much, sorry. I But I think MiKTeX is what people use: http://www.miktex.org/.
Installing LA TE X Resources Windows I I don't really know much, sorry. I But I think MiKTeX is what people use: http://www.miktex.org/. I I've also heard good things about WinEdt as an editor: http://www.winedt.com/ (not free). Also: http://www.texniccenter.org/.
Installing LA TE X Resources Windows I I don't really know much, sorry. I But I think MiKTeX is what people use: http://www.miktex.org/. I I've also heard good things about WinEdt as an editor: http://www.winedt.com/ (not free). Also: http://www.texniccenter.org/. I Emacs is also an option.
Installing LA TE X Resources Linux I If you're using linux, you probably don't need my help.
Installing LA TE X Resources Resources I I put up some basic templates, plus the source to this le, on the web. The source to this le in particular contains all sorts of little recipes you might nd useful.
Installing LA TE X Resources Resources I I put up some basic templates, plus the source to this le, on the web. The source to this le in particular contains all sorts of little recipes you might nd useful. I Some resources for linguists: I LAT E X for linguists http://www.essex.ac.uk/linguistics/clmt/latex4ling/ I UCSC edition http://people.ucsc.edu/kirchner/resources/latex/latex.html I LingTeX mailing list http://heim.i.uio.no/dag/ling-tex.html
Installing LA TE X Resources Resources I I put up some basic templates, plus the source to this le, on the web. The source to this le in particular contains all sorts of little recipes you might nd useful. I Some resources for linguists: I LAT E X for linguists http://www.essex.ac.uk/linguistics/clmt/latex4ling/ I UCSC edition http://people.ucsc.edu/kirchner/resources/latex/latex.html I LingTeX mailing list http://heim.i.uio.no/dag/ling-tex.html I A good general purpose reference (esp. for formulae): http://www.giss.nasa.gov/tools/latex/
I TEX is a macro language; LATEX a comprehensive set of macros and conventions built in TEX.
I TEX is a macro language; LATEX a comprehensive set of macros and conventions built in TEX. I Interface for formatting is distinct from the formatting itself.
I TEX is a macro language; LATEX a comprehensive set of macros and conventions built in TEX. I Interface for formatting is distinct from the formatting itself. I Generate formatted PDF/Postscript le by compiling document.
I TEX is a macro language; LATEX a comprehensive set of macros and conventions built in TEX. I Interface for formatting is distinct from the formatting itself. I Generate formatted PDF/Postscript le by compiling document. I Most text is just text.
I TEX is a macro language; LATEX a comprehensive set of macros and conventions built in TEX. I Interface for formatting is distinct from the formatting itself. I Generate formatted PDF/Postscript le by compiling document. I Most text is just text. I Macros: nmacroname[options]{argument} I e.g. ntextbf{hi} produces hi.
I TEX is a macro language; LATEX a comprehensive set of macros and conventions built in TEX. I Interface for formatting is distinct from the formatting itself. I Generate formatted PDF/Postscript le by compiling document. I Most text is just text. I Macros: nmacroname[options]{argument} I e.g. ntextbf{hi} produces hi. I Environments are bracketed with a begin and end command: nbegin{itemize} nitem Most text is just text. nend{itemize}
Preamble I Setup stu goes here. ndocumentclass[article,11pt]{memoir} nusepackage{mathptmx} nusepackage{natbib} nbibpunct{(}{)}{;}{a}{}{,} % etc.
Preamble I Setup stu goes here. I Document class: basic document template ndocumentclass[article,11pt]{memoir} nusepackage{mathptmx} nusepackage{natbib} nbibpunct{(}{)}{;}{a}{}{,} % etc.
Preamble I Setup stu goes here. I Document class: basic document template I Load support packages, e.g. mathptmx sets up Times New Roman. ndocumentclass[article,11pt]{memoir} nusepackage{mathptmx} nusepackage{natbib} nbibpunct{(}{)}{;}{a}{}{,} % etc.
Preamble I Setup stu goes here. I Document class: basic document template I Load support packages, e.g. mathptmx sets up Times New Roman. I Other setup, document formatting etc. This one sets up some citation styles. ndocumentclass[article,11pt]{memoir} nusepackage{mathptmx} nusepackage{natbib} nbibpunct{(}{)}{;}{a}{}{,} % etc.
Body I Content of document goes here. nbegin{document} Hello world nend{document}
Body I Content of document goes here. I One big environment. nbegin{document} Hello world nend{document}
Paragraphs Regular paragraphs are just blocks of text with blank lines before and after them. It doesn't matter where you put the line breaks.
Paragraphs Regular paragraphs are just blocks of text with blank lines before and after them. It doesn't matter where you put the line breaks. Regular paragraphs are just blocks of text with blank lines before and after them. It doesn't matter where you put the line breaks.
Text styles I These are LaTeX2e font selection commands; don't use e.g. nit any more.
Text styles I These are LaTeX2e font selection commands; don't use e.g. nit any more. I italic: ntextit{italic}
Text styles I These are LaTeX2e font selection commands; don't use e.g. nit any more. I italic: ntextit{italic} I bold: ntextit{bold}
Text styles I These are LaTeX2e font selection commands; don't use e.g. nit any more. I italic: ntextit{italic} I bold: ntextit{bold} I small caps: ntextsc{small caps}
Text styles I These are LaTeX2e font selection commands; don't use e.g. nit any more. I italic: ntextit{italic} I bold: ntextit{bold} I small caps: ntextsc{small caps} I With ulem.sty: I underlined: nuline{underlined} I struck out: nsout{struck out}
Bulleted text I Bullets are done with the itemize environment. I Each item is prefaced with an nitem command.
Bulleted text I Bullets are done with the itemize environment. I Each item is prefaced with an nitem command. nbegin{itemize} nitem Bullets are done with the itemize environment. nitem Each item is prefaced with an $nbackslash$item command. nend{itemize}
Document divisions I Automatic section numbering and cross-referencing. I Commands: nchapter (memoir), nsection, nsubsection, etc. I Labeling command: nlabel{name} I Reference with nref{name}, or npageref{name} for the page number. nchapter{my rst chapter} nsection{the.1 section of this chapter} nsubsection{the.1.1 section} nlabel{mylabel}... ns nref{mylabel} is on p. npageref{mylabel} I This last line will produce something like Ÿ1.1.1 is on p. 1. (except, automatically determined.) I Need to run LAT X multiple times LA TE Xtointroduction get right cross-references.
BibTeX I Makes it very easy to manage bibliography entries. I Three parts:
BibTeX I Makes it very easy to manage bibliography entries. I Three parts: I A.bib le stores reference information. @article{chomsky59, Author = {Noam Chomsky}, Journal = {Information and Control}, Pages = {137167}, Title = {On certain formal properties of grammars}, Volume = {2}, Year = {1959}}
BibTeX I Makes it very easy to manage bibliography entries. I Three parts: I A.bib le stores reference information. @article{chomsky59, Author = {Noam Chomsky}, Journal = {Information and Control}, Pages = {137167}, Title = {On certain formal properties of grammars}, Volume = {2}, Year = {1959}} I Cite commands and bibliography commands in your.tex le. ncitep{chomsky59}
BibTeX I Makes it very easy to manage bibliography entries. I Three parts: I A.bib le stores reference information. @article{chomsky59, Author = {Noam Chomsky}, Journal = {Information and Control}, Pages = {137167}, Title = {On certain formal properties of grammars}, Volume = {2}, Year = {1959}} I Cite commands and bibliography commands in your.tex le. ncitep{chomsky59} I BibTeX a program called after LAT E X that gures out citations from an.aux le (produced as a side-eect of compilation).
Formulas I Formulas are entered in math mode. The main way to switch to math mode is using $ symbols. JmustK = p hsti : w s : 8w 0 : wrw 0! p(w 0 ) $nleftnllbracket ntext{ntextbf{must}} nrightnrrbracket = nlambda p_{nleftnlangle st nrightnrangle} n:.n: nlambda w_s n:.n: nforall w' : wrw' nrightarrow p(w')$
More complicated formulas (Chosen at random from The Harmonic Mind) [I M] (d 0 ) (d ) = ( 1 k M (d 0 ) (d ) 0 otherwise if 9k s.t. m + k = d and m 0 + k = d 0 $nleft[nmathbb{i} nvarotimes nmathbb{m}nright]^{(d')}_{(d)} = nleftn{nbegin{array}{ll} nleft[nmathbf{1}^{nvarotimes k} nvarotimes nmathbb{m}nright]^{(d')}_{(d)} & ntext{if }nexists kntext{ s.t. }m+k=d ntext{ and }m'+k=d'nn nmathbf{0} & ntext{otherwise} nend{array}nright.$
Example numbering I Various packages I use gb4e. I Copy on website adapted to not conict with memoir. I Another popular one is linguex. I Easy to do automatic cross-references: (2) (1) Alfonso is a lawyer. (2) * Alfonso seems a lawyer. (3) a. Who is Alfonso talking to? b. Who on earth is Alfonso talking to?
Including gures I I usually use the graphicx package.
Including gures I I usually use the graphicx package. nincludegraphics[scale=0.3]{cat_proximity}
Including gures I I usually use the graphicx package. nincludegraphics[scale=0.3]{cat_proximity}
Tree diagrams I Many popular packages: I pst-jtree. reportedly the best modern one, but requires pstricks, and consequently, does not work with pdatex. I qtree. Pretty easy to use, no dependencies. I parsetree. Actually designed for programming language theory, but works well for linguistics. I TikZ. General purpose drawing package, really really nice. But does less tree formatting automatically. I Examples: (download source to see details)
qtree I Note: I pulled this out of a homework from about 7 years ago, so I have no idea why you'd use this constituent structure. (4) DP D a NP N 0 AP? A temporal hhetihshetiii former hhshetiihetii N teacher heti
parsetree (5) DP D a NP N 0 AP? A former hhshetiihetii temporal hhetihshetiii N teacher heti
Trees in TikZ (6) DP D a NP N 0 AP? A? N former hhshetiihetii temporal hhetihshetiii teacher heti
More trees in TikZ (7) Negative question, negative answer Is Alfonso not coming to the party? P AdvP P Adv TP no [uneg] [uneg,e] DP he Neg NegP VP concord [ineg] is coming to the party
Tableaux I Can do many tableaux with simple tabular environments. I This example is also using the tipa package for IPA fonts, and the arydshln package for the dashed line. I Actually, this uses my own custom tableau environment based on tabular, there is probably something better around. (Colin?) I Major drawback: it is a pain to add columns, especially in large tableau. It is a huge pain to re-order columns. /k-haratat-s/ FtBin FtHdR Dep a. [kha.(rá:).tats] * b. [kha.(rá).tats] *! c. [(khá.ra).tats] *! Tableau 1: Lengthening of stressed vowels
Presentations I This presentation is made with the beamer package. Seems like the best option by far. I Pretty easy to use, well-documented. (Same author as PGF/TikZ.) I Source for this le available. I I've also put up a beamer template (which is really just the example from the beamer site). I To see what can be done, I will now switch to a dierent le.
Posters I I use the a0poster class along with textpos. I Produces A0-sized PDF les. (European size.) I Pretty easy to get to work with the poster printer upstairs.