SlideShare a Scribd company logo
Welcome to JK Classes
Introduction to LaTeX
Jayakumar C
Assistant Professor of Mathematics
Christian College, Kattakada
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
LaTeX for B.Sc. Mathematics,an introduction
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}
LaTeX for B.Sc. Mathematics,an introduction
In the Front Matter
 begin{document}
 title{}
 author{}
 maketitle
 begin{abstract}
 end{abstract}
 pagebreak
LaTeX for B.Sc. Mathematics,an introduction
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/)
LaTeX for B.Sc. Mathematics,an introduction
LaTeX for B.Sc. Mathematics,an introduction
LaTeX for B.Sc. Mathematics,an introduction
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
Thank you

More Related Content

PPTX
Ethernet Cable Configuration PPT.pptx
PPTX
LAN Cabling
PPT
Crimping and Testing
PPTX
Html list
PPTX
Array implementation and linked list as datat structure
PDF
PPTX
System_Servicing_(NCII)_Tools_and_Equipment_in_CSS.pptx
PDF
K to 12 carpentry learning modules
Ethernet Cable Configuration PPT.pptx
LAN Cabling
Crimping and Testing
Html list
Array implementation and linked list as datat structure
System_Servicing_(NCII)_Tools_and_Equipment_in_CSS.pptx
K to 12 carpentry learning modules

What's hot (20)

DOCX
Tle9 q1 w6-10_mod1_draft-floor-plan-v3
PPT
Web Development using HTML & CSS
PDF
Introduction to Latex
PDF
Data types in python
PPTX
Python Programming Language
PDF
Introduction to Computer Programming
PDF
PHP Arrays - indexed and associative array.
PPTX
PPTX
Microsoft Word. Typing Feature.PPT.pptx
PPTX
Use of Lists and Tables in HTML
DOC
Fist periodical exam 2011 elec
PPTX
Learn html Basics
PPT
Data structure
PPTX
Programming flowcharts for C Language
ODP
Htmltag.ppt
PDF
Technical Drafting Module 5
PPTX
E - TECH : File Image Formats
PPTX
QUEUE.pptx
PPTX
Visual Basic Controls ppt
PPT
Program design and problem solving techniques
Tle9 q1 w6-10_mod1_draft-floor-plan-v3
Web Development using HTML & CSS
Introduction to Latex
Data types in python
Python Programming Language
Introduction to Computer Programming
PHP Arrays - indexed and associative array.
Microsoft Word. Typing Feature.PPT.pptx
Use of Lists and Tables in HTML
Fist periodical exam 2011 elec
Learn html Basics
Data structure
Programming flowcharts for C Language
Htmltag.ppt
Technical Drafting Module 5
E - TECH : File Image Formats
QUEUE.pptx
Visual Basic Controls ppt
Program design and problem solving techniques
Ad

Similar to LaTeX for B.Sc. Mathematics,an introduction (20)

PPT
Introduction to LaTeX - Dumitrescu.ppt - It is a slide on the internet explai...
PPT
Introduction to LaTeX:for begi nners to
PPT
Introduction to LaTeX - Dumitrescu.ppt
PPT
Introduction to LaTeX - Dumitrescu.ppt
PPT
Introduction to LaTeX - Dumitrescu.ppt
PPT
LaTeX for Engineer.ppt
PPT
Introduction to LaTeX - Dumitrescu.ppt
PPT
Introduction to LaTeX - Dumitrescu (1).ppt
PPT
Introduction to LaTeX some content related to LATEX
PPT
Introduction to LaTeX - Dumitrescuee.ppt
PDF
Latex slides
PPTX
LaTex tutorial with Texstudio
PPT
latex_intro.ppt
PPT
latex_intro.ppt
PPT
latex_intro.ppt
PPT
latex_intro.ppt
PPTX
latex-workshop Dr: Mohamed A. Alrshah
PDF
Introduction to LaTeX
PDF
Learn Latex
PPT
Introduction to latex by Rouhollah Nabati
Introduction to LaTeX - Dumitrescu.ppt - It is a slide on the internet explai...
Introduction to LaTeX:for begi nners to
Introduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu.ppt
LaTeX for Engineer.ppt
Introduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu (1).ppt
Introduction to LaTeX some content related to LATEX
Introduction to LaTeX - Dumitrescuee.ppt
Latex slides
LaTex tutorial with Texstudio
latex_intro.ppt
latex_intro.ppt
latex_intro.ppt
latex_intro.ppt
latex-workshop Dr: Mohamed A. Alrshah
Introduction to LaTeX
Learn Latex
Introduction to latex by Rouhollah Nabati
Ad

Recently uploaded (20)

PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PDF
A systematic review of self-coping strategies used by university students to ...
PDF
Trump Administration's workforce development strategy
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
Computing-Curriculum for Schools in Ghana
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
Pharma ospi slides which help in ospi learning
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PPTX
Cell Structure & Organelles in detailed.
PDF
Classroom Observation Tools for Teachers
PDF
Yogi Goddess Pres Conference Studio Updates
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PPTX
Lesson notes of climatology university.
PDF
Complications of Minimal Access Surgery at WLH
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
Microbial disease of the cardiovascular and lymphatic systems
202450812 BayCHI UCSC-SV 20250812 v17.pptx
A systematic review of self-coping strategies used by university students to ...
Trump Administration's workforce development strategy
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Computing-Curriculum for Schools in Ghana
Module 4: Burden of Disease Tutorial Slides S2 2025
Pharma ospi slides which help in ospi learning
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
Cell Structure & Organelles in detailed.
Classroom Observation Tools for Teachers
Yogi Goddess Pres Conference Studio Updates
Microbial diseases, their pathogenesis and prophylaxis
FourierSeries-QuestionsWithAnswers(Part-A).pdf
2.FourierTransform-ShortQuestionswithAnswers.pdf
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
Lesson notes of climatology university.
Complications of Minimal Access Surgery at WLH
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Anesthesia in Laparoscopic Surgery in India
Microbial disease of the cardiovascular and lymphatic systems

LaTeX for B.Sc. Mathematics,an introduction

  • 1. Welcome to JK Classes
  • 2. Introduction to LaTeX Jayakumar C Assistant Professor of Mathematics Christian College, Kattakada
  • 3. 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.
  • 4. 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
  • 6. 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.
  • 7. 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!
  • 8. DIY
  • 9. 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
  • 10. 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}
  • 12. In the Front Matter  begin{document}  title{}  author{}  maketitle  begin{abstract}  end{abstract}  pagebreak
  • 14. 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}
  • 15. 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.
  • 16. 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/)
  • 20. 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.
  • 21. 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}
  • 22. 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}
  • 23. 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
  • 24. 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.
  • 25. 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