SlideShare a Scribd company logo
1 of 24
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
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}
In the Front Matter
• begin{document}
• title{}
• author{}
• maketitle
• begin{abstract}
• end{abstract}
• pagebreak
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/)
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

Similar to Introduction to LaTeX - Dumitrescu.ppt - It is a slide on the internet explaining latex usage

Similar to Introduction to LaTeX - Dumitrescu.ppt - It is a slide on the internet explaining latex usage (20)

latex document for IT workshop Lab . B.Tech
latex document for IT workshop Lab . B.Techlatex document for IT workshop Lab . B.Tech
latex document for IT workshop Lab . B.Tech
 
Inroduction to Latex
Inroduction to LatexInroduction to Latex
Inroduction to Latex
 
Latex Introduction for Beginners
Latex Introduction for BeginnersLatex Introduction for Beginners
Latex Introduction for Beginners
 
latex.pptx
latex.pptxlatex.pptx
latex.pptx
 
Latex Tutorial
Latex TutorialLatex Tutorial
Latex Tutorial
 
Introduction Latex
Introduction LatexIntroduction Latex
Introduction Latex
 
LaTeX Survival Guide
LaTeX Survival Guide LaTeX Survival Guide
LaTeX Survival Guide
 
documents writing with LATEX
documents writing with LATEXdocuments writing with LATEX
documents writing with LATEX
 
LatexTutorial
LatexTutorialLatexTutorial
LatexTutorial
 
LatexTutorial
LatexTutorialLatexTutorial
LatexTutorial
 
LaTeX_tutorial_Syed_Jan09.ppt
LaTeX_tutorial_Syed_Jan09.pptLaTeX_tutorial_Syed_Jan09.ppt
LaTeX_tutorial_Syed_Jan09.ppt
 
Latex Tutorial by Dr. M. C. Hanumantharaju
Latex Tutorial by Dr. M. C. HanumantharajuLatex Tutorial by Dr. M. C. Hanumantharaju
Latex Tutorial by Dr. M. C. Hanumantharaju
 
Latex workshop
Latex workshopLatex workshop
Latex workshop
 
firststeps
firststepsfirststeps
firststeps
 
Latex Notes
Latex NotesLatex Notes
Latex Notes
 
LaTeX Tutorial
LaTeX TutorialLaTeX Tutorial
LaTeX Tutorial
 
How to Start Using LaTeX and BibTeX
How to Start Using LaTeX and BibTeXHow to Start Using LaTeX and BibTeX
How to Start Using LaTeX and BibTeX
 
Head first latex
Head first latexHead first latex
Head first latex
 
Electronic Grading of Paper Assessments
Electronic Grading of Paper AssessmentsElectronic Grading of Paper Assessments
Electronic Grading of Paper Assessments
 
Research 101 - Paper Writing with LaTeX
Research 101 - Paper Writing with LaTeXResearch 101 - Paper Writing with LaTeX
Research 101 - Paper Writing with LaTeX
 

Recently uploaded

भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerunnathinaik
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 

Recently uploaded (20)

भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developer
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 

Introduction to LaTeX - Dumitrescu.ppt - It is a slide on the internet explaining latex usage

  • 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
  • 4.
  • 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}
  • 10.
  • 11. In the Front Matter • begin{document} • title{} • author{} • maketitle • begin{abstract} • end{abstract} • pagebreak
  • 12.
  • 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/)
  • 16.
  • 17.
  • 18.
  • 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