SlideShare a Scribd company logo
Introduction to LaTeX
PRISM Brownbag Series
June 9th, 2009
Byungwon Woo
What is LaTeX?
• LaTeX is pronounced “lay-tech” or “lah-tech,”
not “la-teks.”
• LaTeX is a document preparation system for
high-quality typesetting.
• LaTeX is most often used to produce technical
or scientific documents, but it can be used for
almost any form of publishing.
Why Use LaTeX?
• Designed by academics and easily accommodates academic
use.
• Professionally crafted predefined layouts make a document
really look as if “printed.”
• Mathematical symbols and equations are easily integrated.
• Even complex structures such as footnotes, references, table
of contents, and bibliographies can be generated easily.
• Forces author to focus on logical instead of aesthetic structure
of a document.
• Creates more beautiful documents.
• Portable, compatible, flexible, versatile, and cheap (or free)!
Images from Dario Taraborelli’s Blog
Introduction to LaTeX - Dumitrescu.ppt
Installing LaTeX
• In Windows
• MiKTeX
– MiKTeX is a typesetting system for the Windows.
– Download from www.miktex.org for free
– It is generally recommended to install MiKTeX first,
then WinEdt.
• WinEdt
– WinEdt is a text editor.
– WinEdt creates the source file (.tex and others).
– Download from www.winedt.com for free for 30 days.
– WinEdt costs $30.
Installing LaTeX
• Other text editors
– There are other text editors.
– Winshell for free (http://www.winshell.de/)
– Scientific Workplace
• Combination of LaTeX and Mathematics program
• Does a good job of calculating and graphing, very user friendly, but
expensive
• In Mac
• TexShop
– Download for free
http://www.uoregon.edu/~koch/texshop/
– Includes everything!
DIY
Basic Document Structure
• The format of a document is pretty simple.
– In the preamble
• Documentclass
• Packages
– In the front matter
• Title/author
– In the body
• Contents
– In the back matter
• bibliography
In the Preamble
• You specify your document class.
– Document classes: letter, article, report, book,
slides(beamer, prosper)
• documentclass[12pt]{article}
• Backslash – at the beginning of text markup command
– Packages: numerous packages are available
• usepackage[margin=1in]{geometry}
• usepackage{setspace}
• usepackage{harvard}
Introduction to LaTeX - Dumitrescu.ppt
In the Front Matter
• begin{document}
• title{}
• author{}
• maketitle
• begin{abstract}
• end{abstract}
• pagebreak
Introduction to LaTeX - Dumitrescu.ppt
In the Body
• To begin a new section
• section{}
– Similarly, subsection{}, subsubsection{},
subsubsubsection{}
– LaTeX does automatic numbering. If you don’t like it,
use section*{}
• emph{}, textbf{}
• singlespacing, doublespacing, onehalfspacing
• centering or begin{centering} & end{centering}
Footnotes/Quotes/Equations
• footnote{}
• begin{quote} & end{quote}
• ` ’, `` ’’ for quatations
• Mathematical Equations
– Math always in between $ & $
• Alternatively, begin{equation} & end{equation}
– $ 1+4=5 $
– frac{}{}, sqrt{}, sum_{k=1}^{n}
– ^{}, _{}
– greek letters (e.g. alpha or Alpha)
– WinEdt also provides click and type functions.
Citations
• cite{bibtexkey}, citeyear{bibtexkey}
• It is more convenient to create a bibliography
file, called bibtex file(.bib) and use it as
needed.
• WinEdt is capable of creating a bib file, but
there are more convenient tools out there.
• JabRef (http://jabref.sourceforge.net/)
Introduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu.ppt
Creating a Table
• Add numbered table
– begin{table} caption{}
• Creating a table
• Simple tables can be produced by
– begin{tabular}[pos]{tablespec}
– Within the {tablespec} section, one details the number of columns, the
alignment, and the number of vertical lines of the table.
• {lrc}, {|l|r|c}
– Then type in from left to right, the values for each cell with & in
between.
– Put “” at the end of each row, then input another row of values if
needed.
– hline
– For STATA users, after downloading the “outtex” package online, one
can simply type “outtex” after any estimation and STATA will spit out
LaTeX code for the results table presented.
Creating a 4*3 Table
• begin{table}[h]
• caption{Summary of Conclusions from Diagnostic Tests}
• begin{tabular}{llll}
• hline
• hline
• & Macropartisanship & Consumer Sentiment & Presidential
Approval
• hline
• Joint F test & $d=1$ & $d=1$ & $d=0$
• VR test & $0<dleq1$ & $d=1$ & $0<dleq1$ 
• hline
• end{tabular}
• end{table}
In the Back Matter
• Don’t forget bibliography{filename}
– Make sure that the bibtex file is saved in the same
location where the main tex file is saved.
• Don’t forget end{document}
Seeing the Document
Press on the
smiling bear to
convert to .dvi
Press on the
PDF/LaTeX to
convert to .pdf
Press on the
PDF+happy bear
to convert to
.pdf and open it
Common Mistakes
• Often times, you make a mistake when
creating a document. You will notice the log
file reporting a problem.
• There are some common mistakes:
– “end” doesn’t follow “begin”
– $ doesn’t follow $
– Using commands from packages lot defined in the
preamble
– Don’t forget “”s.
Other Resources
• Books
– Leslie Lampert. 1994. LaTeX: A Document Preparation
System.
– Helmut Kopta and Patrick W. Daly. 2004.Guide to
LaTex
– Frank Mittelbach et al. 2004. The LaTeX Companion
• Online Guides
– http://en.wikibooks.org/wiki/LaTeX
– http://tobi.oetiker.ch/lshort/lshort.pdf
– CV and dissertation templates are available on line

More Related Content

PPTX
LaTeX for B.Sc. Mathematics,an introduction
PPT
Introduction to LaTeX - Dumitrescuee.ppt
PPT
Latex for beginners
PPTX
Latex ppt copy
PPT
Introduction to latex by Rouhollah Nabati
PPTX
Technical writing workshop Latex producing a professional paper
PPT
latex power point presentation to learn latex
LaTeX for B.Sc. Mathematics,an introduction
Introduction to LaTeX - Dumitrescuee.ppt
Latex for beginners
Latex ppt copy
Introduction to latex by Rouhollah Nabati
Technical writing workshop Latex producing a professional paper
latex power point presentation to learn latex

Similar to Introduction to LaTeX - Dumitrescu.ppt (20)

PDF
LaTeX로 문서 작성하자
PPT
Latex intro
PPTX
TECHNICAL WRITING USING LATEX POWER POIN
PPT
Latex - Companion for a Researcher - A Review.ppt
PPT
latex document for IT workshop Lab . B.Tech
PPTX
Inroduction to Latex
PPTX
Introduction to LaTeX9very important )..
PDF
Latex Introduction for Beginners
PPTX
latex.pptx
PDF
Latex Tutorial
PPTX
Introduction Latex
PDF
LaTeX Survival Guide
PPT
documents writing with LATEX
PDF
LatexTutorial
PDF
LatexTutorial
PPTX
Basic structure of a LaTeX 2e with examples
PPT
LaTeX_tutorial_Syed_Jan09.ppt
PPT
latex document how it is preapred, guide
PDF
Latex Tutorial by Dr. M. C. Hanumantharaju
PPTX
Latex workshop
LaTeX로 문서 작성하자
Latex intro
TECHNICAL WRITING USING LATEX POWER POIN
Latex - Companion for a Researcher - A Review.ppt
latex document for IT workshop Lab . B.Tech
Inroduction to Latex
Introduction to LaTeX9very important )..
Latex Introduction for Beginners
latex.pptx
Latex Tutorial
Introduction Latex
LaTeX Survival Guide
documents writing with LATEX
LatexTutorial
LatexTutorial
Basic structure of a LaTeX 2e with examples
LaTeX_tutorial_Syed_Jan09.ppt
latex document how it is preapred, guide
Latex Tutorial by Dr. M. C. Hanumantharaju
Latex workshop
Ad

More from TaraLeander (7)

PPTX
2.5 Case study.pptx
PDF
Design_of_Leachate_Collection_System.pdf
PPTX
MSWM MODULE 1.pptx
PPTX
BCE 1.pptx
PPTX
BCE - MOD 2 - SURVEYING - Copy.pptx
PPT
cs1538.ppt
PPT
9_Forms_of_Communication_Oral_Communications.ppt
2.5 Case study.pptx
Design_of_Leachate_Collection_System.pdf
MSWM MODULE 1.pptx
BCE 1.pptx
BCE - MOD 2 - SURVEYING - Copy.pptx
cs1538.ppt
9_Forms_of_Communication_Oral_Communications.ppt
Ad

Recently uploaded (20)

PPTX
web development for engineering and engineering
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PDF
PPT on Performance Review to get promotions
DOCX
573137875-Attendance-Management-System-original
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
Geodesy 1.pptx...............................................
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPT
Mechanical Engineering MATERIALS Selection
PPTX
Fundamentals of safety and accident prevention -final (1).pptx
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PPTX
bas. eng. economics group 4 presentation 1.pptx
PPTX
OOP with Java - Java Introduction (Basics)
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PPTX
Artificial Intelligence
PDF
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
web development for engineering and engineering
CYBER-CRIMES AND SECURITY A guide to understanding
PPT on Performance Review to get promotions
573137875-Attendance-Management-System-original
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
Geodesy 1.pptx...............................................
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Mechanical Engineering MATERIALS Selection
Fundamentals of safety and accident prevention -final (1).pptx
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
bas. eng. economics group 4 presentation 1.pptx
OOP with Java - Java Introduction (Basics)
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
Artificial Intelligence
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Operating System & Kernel Study Guide-1 - converted.pdf

Introduction to LaTeX - Dumitrescu.ppt

  • 1. Introduction to LaTeX PRISM Brownbag Series June 9th, 2009 Byungwon Woo
  • 2. What is LaTeX? • LaTeX is pronounced “lay-tech” or “lah-tech,” not “la-teks.” • LaTeX is a document preparation system for high-quality typesetting. • LaTeX is most often used to produce technical or scientific documents, but it can be used for almost any form of publishing.
  • 3. Why Use LaTeX? • Designed by academics and easily accommodates academic use. • Professionally crafted predefined layouts make a document really look as if “printed.” • Mathematical symbols and equations are easily integrated. • Even complex structures such as footnotes, references, table of contents, and bibliographies can be generated easily. • Forces author to focus on logical instead of aesthetic structure of a document. • Creates more beautiful documents. • Portable, compatible, flexible, versatile, and cheap (or free)! Images from Dario Taraborelli’s Blog
  • 5. Installing LaTeX • In Windows • MiKTeX – MiKTeX is a typesetting system for the Windows. – Download from www.miktex.org for free – It is generally recommended to install MiKTeX first, then WinEdt. • WinEdt – WinEdt is a text editor. – WinEdt creates the source file (.tex and others). – Download from www.winedt.com for free for 30 days. – WinEdt costs $30.
  • 6. Installing LaTeX • Other text editors – There are other text editors. – Winshell for free (http://www.winshell.de/) – Scientific Workplace • Combination of LaTeX and Mathematics program • Does a good job of calculating and graphing, very user friendly, but expensive • In Mac • TexShop – Download for free http://www.uoregon.edu/~koch/texshop/ – Includes everything!
  • 7. DIY
  • 8. Basic Document Structure • The format of a document is pretty simple. – In the preamble • Documentclass • Packages – In the front matter • Title/author – In the body • Contents – In the back matter • bibliography
  • 9. In the Preamble • You specify your document class. – Document classes: letter, article, report, book, slides(beamer, prosper) • documentclass[12pt]{article} • Backslash – at the beginning of text markup command – Packages: numerous packages are available • usepackage[margin=1in]{geometry} • usepackage{setspace} • usepackage{harvard}
  • 11. In the Front Matter • begin{document} • title{} • author{} • maketitle • begin{abstract} • end{abstract} • pagebreak
  • 13. In the Body • To begin a new section • section{} – Similarly, subsection{}, subsubsection{}, subsubsubsection{} – LaTeX does automatic numbering. If you don’t like it, use section*{} • emph{}, textbf{} • singlespacing, doublespacing, onehalfspacing • centering or begin{centering} & end{centering}
  • 14. Footnotes/Quotes/Equations • footnote{} • begin{quote} & end{quote} • ` ’, `` ’’ for quatations • Mathematical Equations – Math always in between $ & $ • Alternatively, begin{equation} & end{equation} – $ 1+4=5 $ – frac{}{}, sqrt{}, sum_{k=1}^{n} – ^{}, _{} – greek letters (e.g. alpha or Alpha) – WinEdt also provides click and type functions.
  • 15. Citations • cite{bibtexkey}, citeyear{bibtexkey} • It is more convenient to create a bibliography file, called bibtex file(.bib) and use it as needed. • WinEdt is capable of creating a bib file, but there are more convenient tools out there. • JabRef (http://jabref.sourceforge.net/)
  • 19. Creating a Table • Add numbered table – begin{table} caption{} • Creating a table • Simple tables can be produced by – begin{tabular}[pos]{tablespec} – Within the {tablespec} section, one details the number of columns, the alignment, and the number of vertical lines of the table. • {lrc}, {|l|r|c} – Then type in from left to right, the values for each cell with & in between. – Put “” at the end of each row, then input another row of values if needed. – hline – For STATA users, after downloading the “outtex” package online, one can simply type “outtex” after any estimation and STATA will spit out LaTeX code for the results table presented.
  • 20. Creating a 4*3 Table • begin{table}[h] • caption{Summary of Conclusions from Diagnostic Tests} • begin{tabular}{llll} • hline • hline • & Macropartisanship & Consumer Sentiment & Presidential Approval • hline • Joint F test & $d=1$ & $d=1$ & $d=0$ • VR test & $0<dleq1$ & $d=1$ & $0<dleq1$ • hline • end{tabular} • end{table}
  • 21. In the Back Matter • Don’t forget bibliography{filename} – Make sure that the bibtex file is saved in the same location where the main tex file is saved. • Don’t forget end{document}
  • 22. Seeing the Document Press on the smiling bear to convert to .dvi Press on the PDF/LaTeX to convert to .pdf Press on the PDF+happy bear to convert to .pdf and open it
  • 23. Common Mistakes • Often times, you make a mistake when creating a document. You will notice the log file reporting a problem. • There are some common mistakes: – “end” doesn’t follow “begin” – $ doesn’t follow $ – Using commands from packages lot defined in the preamble – Don’t forget “”s.
  • 24. Other Resources • Books – Leslie Lampert. 1994. LaTeX: A Document Preparation System. – Helmut Kopta and Patrick W. Daly. 2004.Guide to LaTex – Frank Mittelbach et al. 2004. The LaTeX Companion • Online Guides – http://en.wikibooks.org/wiki/LaTeX – http://tobi.oetiker.ch/lshort/lshort.pdf – CV and dissertation templates are available on line