0
Introduction   A
               L TEX Commands     Time-Savers   A
                                                L TEX F...
Introduction   A
               L TEX Commands   Time-Savers   A
                                              L TEX Front...
Introduction      A
                  L TEX Commands   Time-Savers   A
                                                 L ...
Introduction      A
                  L TEX Commands   Time-Savers   A
                                                 L ...
Introduction        A
                    L TEX Commands            Time-Savers        A
                                 ...
Introduction   A
               L TEX Commands   Time-Savers   A
                                              L TEX Front...
Introduction   A
               L TEX Commands   Time-Savers   A
                                              L TEX Front...
Introduction       A
                   L TEX Commands   Time-Savers   A
                                                 ...
Introduction       A
                   L TEX Commands   Time-Savers   A
                                                 ...
Introduction   A
               L TEX Commands   Time-Savers   A
                                              L TEX Front...
Introduction   A
               L TEX Commands   Time-Savers   A
                                              L TEX Front...
Introduction   A
               L TEX Commands   Time-Savers   A
                                              L TEX Front...
Introduction   A
               L TEX Commands   Time-Savers   A
                                              L TEX Front...
Introduction   A
               L TEX Commands   Time-Savers   A
                                              L TEX Front...
Introduction   A
               L TEX Commands   Time-Savers   A
                                              L TEX Front...
Introduction   A
               L TEX Commands   Time-Savers   A
                                              L TEX Front...
Introduction   A
               L TEX Commands       Time-Savers   A
                                                  L T...
Introduction   A
               L TEX Commands   Time-Savers   A
                                              L TEX Front...
Introduction      A
                  L TEX Commands   Time-Savers   A
                                                 L ...
Introduction   A
               L TEX Commands   Time-Savers   A
                                              L TEX Front...
Introduction   A
               L TEX Commands   Time-Savers     A
                                                L TEX F...
Introduction   A
               L TEX Commands        Time-Savers        A
                                               ...
Introduction       A
                   L TEX Commands   Time-Savers   A
                                                 ...
Introduction   A
               L TEX Commands   Time-Savers   A
                                              L TEX Front...
Introduction   A
               L TEX Commands   Time-Savers   A
                                              L TEX Front...
Introduction   A
               L TEX Commands   Time-Savers   A
                                              L TEX Front...
Introduction   A
               L TEX Commands   Time-Savers   A
                                              L TEX Front...
Introduction   A
               L TEX Commands   Time-Savers   A
                                              L TEX Front...
Introduction   A
               L TEX Commands   Time-Savers   A
                                              L TEX Front...
Introduction     A
                 L TEX Commands    Time-Savers   A
                                                 L T...
Introduction   A
               L TEX Commands   Time-Savers   A
                                              L TEX Front...
Introduction   A
               L TEX Commands   Time-Savers   A
                                              L TEX Front...
Introduction   A
               L TEX Commands   Time-Savers   A
                                              L TEX Front...
Introduction   A
               L TEX Commands   Time-Savers   A
                                              L TEX Front...
Introduction      A
                  L TEX Commands   Time-Savers   A
                                                 L ...
Introduction   A
               L TEX Commands   Time-Savers   A
                                              L TEX Front...
Introduction   A
               L TEX Commands   Time-Savers   A
                                              L TEX Front...
Introduction      A
                  L TEX Commands   Time-Savers   A
                                                 L ...
Introduction   A
               L TEX Commands   Time-Savers   A
                                              L TEX Front...
Introduction   A
               L TEX Commands   Time-Savers   A
                                              L TEX Front...
Introduction   A
               L TEX Commands   Time-Savers   A
                                              L TEX Front...
Upcoming SlideShare
Loading in...5
×

LaTeX for Undergraduate Linguists

1,805

Published on

A presentation for getting started with LaTeX for undergraduate linguistics students at The University of Edinburgh

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,805
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
38
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Transcript of "LaTeX for Undergraduate Linguists"

  1. 1. Introduction A L TEX Commands Time-Savers A L TEX Frontends A Compiling L TEX Conclusion A Using LTEX A Primer for Linguists 6 October 2009 Denise Wood d.n.wood@sms.ed.ac.uk Denise Wood A Using L TEX
  2. 2. Introduction A L TEX Commands Time-Savers A L TEX Frontends A Compiling L TEX Conclusion What Will This Talk Cover? 1 Introduction A 2 LTEX Commands 3 Time-Savers A 4 LTEX Frontends A 5 Compiling LTEX 6 Conclusion Denise Wood A Using L TEX
  3. 3. Introduction A L TEX Commands Time-Savers A L TEX Frontends A Compiling L TEX Conclusion A What is LTEX ? A LTEX is a markup language used for typesetting documents. 1 Write up your document in plain text 2 Add short commands to tell the computer how to format the document 3 When you’re finished, the document is compiled and output as a PDF Denise Wood A Using L TEX
  4. 4. Introduction A L TEX Commands Time-Savers A L TEX Frontends A Compiling L TEX Conclusion How does the output look? A LTEX follows rules to writing nice-looking documents, including: Wide Margins Indentation Image placement Ligatures and kerning A LTEX knows everything in the Style Guide! Denise Wood A Using L TEX
  5. 5. Introduction A L TEX Commands Time-Savers A L TEX Frontends A Compiling L TEX Conclusion A Typesetting of LTEX - Ligatures Figure: Microsoft Word A Figure: LTEX (images taken from http://nitens.org/taraborelli/latex) Denise Wood A Using L TEX
  6. 6. Introduction A L TEX Commands Time-Savers A L TEX Frontends A Compiling L TEX Conclusion Figure: Microsoft Word A Figure: LTEX Denise Wood A Using L TEX
  7. 7. Introduction A L TEX Commands Time-Savers A L TEX Frontends A Compiling L TEX Conclusion A Writing LTEX commands A LTEX commands are not difficult. Primarily, they consist of: Short Commands Perform this command over a few words command{some text} Section Commands Perform this command over a small bit of text begin{command} block of text end{command} Document-wide Commands Perform this command throughout the document unless I later tell you to stop command document of text Denise Wood A Using L TEX
  8. 8. Introduction A L TEX Commands Time-Savers A L TEX Frontends A Compiling L TEX Conclusion Sample Commands Emphasized Text emph{Emphasized Text} Bold Text textbf{Bold Text} Long Quote begin{quote} Double-spacing doublespacing Centering centering But before we get carried away... Denise Wood A Using L TEX
  9. 9. Introduction A L TEX Commands Time-Savers A L TEX Frontends A Compiling L TEX Conclusion Creating a new LaTeX document A Any LTEX document will need a header and a body. The Header tells the document what it is. The Body is where your content goes. Denise Wood A Using L TEX
  10. 10. Introduction A L TEX Commands Time-Savers A L TEX Frontends A Compiling L TEX Conclusion Headers For my linguistics projects, my headers generally look like this: documentclass[a4paper,12pt]{report} usepackage{tipa,graphicx,setspace,mircotype} usepackage[left=2in,right=1in]{geometry} usepackage{fancyhdr} pagestyle{fancy} rhead{s0675940} lhead{shortened project name here} cfoot{thepage} title{project name here} author{Denise Wood and s0675940} date{date that the project is due} Denise Wood A Using L TEX
  11. 11. Introduction A L TEX Commands Time-Savers A L TEX Frontends A Compiling L TEX Conclusion Headers Setting the margins is also in the header. A The default of LTEX is roughly 1-inch-wide margins. Narrow Margins usepackage{fullpage} Specific Margin Widths usepackage[left=2in,right=1in]{geometry} Denise Wood A Using L TEX
  12. 12. Introduction A L TEX Commands Time-Savers A L TEX Frontends A Compiling L TEX Conclusion Body After the headers, all of the content of the document goes between document tags. begin{document} All of the content of your document goes here end{document} Denise Wood A Using L TEX
  13. 13. Introduction A L TEX Commands Time-Savers A L TEX Frontends A Compiling L TEX Conclusion A Example LTEX Body — Markup section*{The use of -ing versus -in’?} This section covers variations in realisations of word-final $langle -ing rangle$ in English. Recent studies in varieties of English show that there is a strong correlation between the use of the textipa{/In/} variant in the lower classes, such as in Norwich, England and Chicago, USA cite[168]{Meyerhoff}. Denise Wood A Using L TEX
  14. 14. Introduction A L TEX Commands Time-Savers A L TEX Frontends A Compiling L TEX Conclusion A Example LTEX Document — Output The use of -ing versus -in’ ? This section covers variations in realisations of word-final −ing in English. Recent studies in varieties of English show that there is a strong correlation between the use of the /In/ variant in the lower classes, such as in Norwich, England and Chicago, USA [Meyerhoff, 2006, 168]. Denise Wood A Using L TEX
  15. 15. Introduction A L TEX Commands Time-Savers A L TEX Frontends A Compiling L TEX Conclusion Images Include in the header: usepackage{graphicx} Include in the document: begin{figure}[htbp] includegraphics{UoE_crest.png} caption{University of Edinburgh Crest} label{edcrest} end{figure} To later cite this image: See figure: ref{edcrest} Denise Wood A Using L TEX
  16. 16. Introduction A L TEX Commands Time-Savers A L TEX Frontends A Compiling L TEX Conclusion Images Figure 16: University of Edinburgh Crest See figure: 16 Denise Wood A Using L TEX
  17. 17. Introduction A L TEX Commands Time-Savers A L TEX Frontends A Compiling L TEX Conclusion Time-Savers A Reason #1 for using LTEX is: IT’LL SAVE YOU TIME! (And look more professional when you’ve finished) Denise Wood A Using L TEX
  18. 18. Introduction A L TEX Commands Time-Savers A L TEX Frontends A Compiling L TEX Conclusion Lists begin{enumerate} item Enumerated List end{enumerate} begin{itemize} item Itemized List subitem Subcategory end{itemize} begin{description} item[Word] Explanation end{description} Denise Wood A Using L TEX
  19. 19. Introduction A L TEX Commands Time-Savers A L TEX Frontends A Compiling L TEX Conclusion International Phonetic Alphabet Requires the tipa package: usepackage{tipa} Orthography: Explaining Phonetics Orthography: Explaining Phonetics Citation Form: / Ekspl"EInIN f2"nEtIks/ Citation Form: textipa{/""Ekspl"EInINf2"nEtIks/} Connected Speech:[EksplEIn@nfnERIks] Connected Speech: textipa{[EksplEIn@nfnERIks]} Denise Wood A Using L TEX
  20. 20. Introduction A L TEX Commands Time-Savers A L TEX Frontends A Compiling L TEX Conclusion Glosses Requires the linguex package: usepackage{linguex} ex. Hola, mi amigo (1) Hola, mi amigo Hello my friend Hello my friend (2) Bonjour, mon ami ex. Bonjour, mon ami Hello my friend Hello my friend Denise Wood A Using L TEX
  21. 21. Introduction A L TEX Commands Time-Savers A L TEX Frontends A Compiling L TEX Conclusion Tree diagrams IP Requires the qtree package usepackage{qtree} NPi I CDs I0 VP Tree [.IP [ CDs ].NP_i[.I1 are ti V [ are ].I^0 [.VP t_i [ [ going ].V^0 qroof{out of style} V0 PP .PP ].V1 ].VP ].I1 ] going out of style Denise Wood A Using L TEX
  22. 22. Introduction A L TEX Commands Time-Savers A L TEX Frontends A Compiling L TEX Conclusion Tree diagrams - a simpler example S NP VP Det N returned the hero Standard bracket notation: [S [NP [Det the][N hero]][VP returned]] Tree [.S [.NP [ the ].Det [ hero ].N ] [ returned ].VP ] Denise Wood A Using L TEX
  23. 23. Introduction A L TEX Commands Time-Savers A L TEX Frontends A Compiling L TEX Conclusion Tables /In/ /IN/ TOTAL A Tables in LTEX are Adjective 7 5 12 automatically Expletive 3 0 3 adjusted to fit the Noun 6 4 10 contents of the table Verb 69 35 104 Tables will also centre TOTAL 85 44 129 themselves on the Table: Usage if /In/ or /IN/ page rather than be by Part of speech inline Denise Wood A Using L TEX
  24. 24. Introduction A L TEX Commands Time-Savers A L TEX Frontends A Compiling L TEX Conclusion Tables begin{table} begin{tabular}{l|ccr} &textipa{/In/} &textipa{/IN/} &TOTAL hline Adjective & 7 & 5 & 12 Expletive & 3 & 0 & 3 Noun & 6 & 4 & 10 Verb & 69 & 35 & 104 TOTAL & 85 & 44 & 129 end{tabular} caption{Usage if textipa{/In/} or textipa{/IN/} by Part of speech} label{POS} end{table} Denise Wood A Using L TEX
  25. 25. Introduction A L TEX Commands Time-Savers A L TEX Frontends A Compiling L TEX Conclusion Automatic Reference Pages A LTEX can create Reference pages with simple commands Title page maketitle Tables of Contents tableofcontents Bibliography bibliography{mybibliography.bib} Bibliography Style bibliographystyle{jmb} Denise Wood A Using L TEX
  26. 26. Introduction A L TEX Commands Time-Savers A L TEX Frontends A Compiling L TEX Conclusion Automatic Reference Pages - Title Pages Denise Wood A Using L TEX
  27. 27. Introduction A L TEX Commands Time-Savers A L TEX Frontends A Compiling L TEX Conclusion Automatic Reference Pages - Bibliography Denise Wood A Using L TEX
  28. 28. Introduction A L TEX Commands Time-Savers A L TEX Frontends A Compiling L TEX Conclusion Including Other Documents In the main document: input{filename} In the document to be included: Document Contents Denise Wood A Using L TEX
  29. 29. Introduction A L TEX Commands Time-Savers A L TEX Frontends A Compiling L TEX Conclusion Including Other Documents section{Results} input{results.tex} appendix section{Transcription} I have taken the extra steps of transcribing the dialogue for ease of reference. The transcription follows below: input{transcription.tex} Denise Wood A Using L TEX
  30. 30. Introduction A L TEX Commands Time-Savers A L TEX Frontends A Compiling L TEX Conclusion A LTEX frontends A A For writing LTEX , any text editor will do with some form of LTEX compiler is necessary to compile it. There are many frontends and compilers available: LyX (any OS) MikTEX with WinEdt (Windows XP, Vista) TeXShop (Mac OSX) Kile (Linux, KDE) And Many Others! Denise Wood A Using L TEX
  31. 31. Introduction A L TEX Commands Time-Savers A L TEX Frontends A Compiling L TEX Conclusion MikTEX with WinEdt (Windows) MikTEX and WinEdt are available on the University computers. For a how-to guide on using WinEdt, check their website at www.winedt.com Click on Winedt and TeX for a step-by-step guide Denise Wood A Using L TEX
  32. 32. Introduction A L TEX Commands Time-Savers A L TEX Frontends A Compiling L TEX Conclusion WinEdt for Windows Denise Wood A Using L TEX
  33. 33. Introduction A L TEX Commands Time-Savers A L TEX Frontends A Compiling L TEX Conclusion TeXShop TEXShop is available for Mac users For a how-to guide on using TEXShop, check their website at www.uoregon.edu/ koch/texshop Denise Wood A Using L TEX
  34. 34. Introduction A L TEX Commands Time-Savers A L TEX Frontends A Compiling L TEX Conclusion TeXShop for Mac Denise Wood A Using L TEX
  35. 35. Introduction A L TEX Commands Time-Savers A L TEX Frontends A Compiling L TEX Conclusion A Compling LTEX Some notes about compiling: A You must compile the LTEX code twice to match up references Different frontends have different ways of compiling - use PDF LaTeX Don’t worry about problems compiling - there IS a solution Denise Wood A Using L TEX
  36. 36. Introduction A L TEX Commands Time-Savers A L TEX Frontends A Compiling L TEX Conclusion Run PDF LaTeX Denise Wood A Using L TEX
  37. 37. Introduction A L TEX Commands Time-Savers A L TEX Frontends A Compiling L TEX Conclusion Files Created Denise Wood A Using L TEX
  38. 38. Introduction A L TEX Commands Time-Savers A L TEX Frontends A Compiling L TEX Conclusion A LTEX errors A There are 3 different types of problems that LTEX will notify you about: 1 A Errors - LTEX will not compile 2 A Warnings - LTEX will compile - maybe ignore 3 A Badboxes - LTEX will compile - can be ignored When in doubt - query “LaTeX (problem)”. The internet is your friend. Denise Wood A Using L TEX
  39. 39. Introduction A L TEX Commands Time-Savers A L TEX Frontends A Compiling L TEX Conclusion Resources LaTeX cheat-sheet: http://stdout.org/ winston/latex/ latexsheet-a4.pdf TIPA chart: www.ling.ohio-state.edu/events/lcc/ tutorials/tipachart/tipachart.pdf Tipa Manual: http://home.uchicago.edu/ jkirby/latex/ tipaman.pdf Trees tutorial: www.ling.upenn.edu/advice/latex/qtree/ qtreenotes.pdf Linguex Manual: http://mirror.cps.cmich.edu/ctan/ macros/latex/contrib/linguex/linguex-doc.pdf Denise Wood A Using L TEX
  40. 40. Introduction A L TEX Commands Time-Savers A L TEX Frontends A Compiling L TEX Conclusion Conclusion A If you have any questions about LTEX or this presentation, feel free to ask now or e-mail me at: d.n.wood@sms.ed.ac.uk If you’d like a copy of these slides, just send me an e-mail. Denise Wood A Using L TEX
  41. 41. Introduction A L TEX Commands Time-Savers A L TEX Frontends A Compiling L TEX Conclusion Thanks for listening! Denise Wood A Using L TEX
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×