SlideShare une entreprise Scribd logo
1  sur  26
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
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
Thank you

Contenu connexe

Tendances

documents writing with LATEX
documents writing with LATEXdocuments writing with LATEX
documents writing with LATEXAnusha Vajrapu
 
The LaTeX Workshop: Document design in LaTeX: Invocation
The LaTeX Workshop: Document design in LaTeX: InvocationThe LaTeX Workshop: Document design in LaTeX: Invocation
The LaTeX Workshop: Document design in LaTeX: InvocationSuddhasheel GHOSH, PhD
 
LaTeX Introduction for Word Users
LaTeX Introduction for Word UsersLaTeX Introduction for Word Users
LaTeX Introduction for Word UsersGuy K. Kloss
 
Introduction to latex by Rouhollah Nabati
Introduction to latex by Rouhollah NabatiIntroduction to latex by Rouhollah Nabati
Introduction to latex by Rouhollah Nabatinabati
 
Latex intro s_dutta_v2
Latex intro s_dutta_v2Latex intro s_dutta_v2
Latex intro s_dutta_v2SoumyoDutta
 
ASP.NET Session 7
ASP.NET Session 7ASP.NET Session 7
ASP.NET Session 7Sisir Ghosh
 
Research 101 - Paper Writing with LaTeX
Research 101 - Paper Writing with LaTeXResearch 101 - Paper Writing with LaTeX
Research 101 - Paper Writing with LaTeXJia-Bin Huang
 
LaTeX Part 1
LaTeX Part 1LaTeX Part 1
LaTeX Part 1awv7t
 
Introduction to LaTeX - Workshop Day 1
Introduction to LaTeX - Workshop Day 1Introduction to LaTeX - Workshop Day 1
Introduction to LaTeX - Workshop Day 1Suddhasheel GHOSH, PhD
 
How to use LaTeX and Beamer to prepare presentation for Slideshare
How to use LaTeX and Beamer to prepare presentation for SlideshareHow to use LaTeX and Beamer to prepare presentation for Slideshare
How to use LaTeX and Beamer to prepare presentation for SlideshareVesa Linja-aho
 
358 33 powerpoint-slides_16-files-their-organization_chapter-16
358 33 powerpoint-slides_16-files-their-organization_chapter-16358 33 powerpoint-slides_16-files-their-organization_chapter-16
358 33 powerpoint-slides_16-files-their-organization_chapter-16sumitbardhan
 

Tendances (20)

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
 
The LaTeX Workshop: Document design in LaTeX: Invocation
The LaTeX Workshop: Document design in LaTeX: InvocationThe LaTeX Workshop: Document design in LaTeX: Invocation
The LaTeX Workshop: Document design in LaTeX: Invocation
 
Latex slides
Latex slidesLatex slides
Latex slides
 
LaTeX Introduction for Word Users
LaTeX Introduction for Word UsersLaTeX Introduction for Word Users
LaTeX Introduction for Word Users
 
LaTeX Basics
LaTeX BasicsLaTeX Basics
LaTeX Basics
 
Technical writing using LaTeX
Technical writing using LaTeXTechnical writing using LaTeX
Technical writing using LaTeX
 
Introduction to LaTeX
Introduction to LaTeXIntroduction to LaTeX
Introduction to LaTeX
 
Introduction to latex by Rouhollah Nabati
Introduction to latex by Rouhollah NabatiIntroduction to latex by Rouhollah Nabati
Introduction to latex by Rouhollah Nabati
 
Latex intro s_dutta_v2
Latex intro s_dutta_v2Latex intro s_dutta_v2
Latex intro s_dutta_v2
 
ASP.NET Session 7
ASP.NET Session 7ASP.NET Session 7
ASP.NET Session 7
 
LaTeX Tutorial
LaTeX TutorialLaTeX Tutorial
LaTeX Tutorial
 
Steady
SteadySteady
Steady
 
Research 101 - Paper Writing with LaTeX
Research 101 - Paper Writing with LaTeXResearch 101 - Paper Writing with LaTeX
Research 101 - Paper Writing with LaTeX
 
Database tables
Database tablesDatabase tables
Database tables
 
LaTeX Part 1
LaTeX Part 1LaTeX Part 1
LaTeX Part 1
 
Introduction to LaTeX - Workshop Day 1
Introduction to LaTeX - Workshop Day 1Introduction to LaTeX - Workshop Day 1
Introduction to LaTeX - Workshop Day 1
 
How to use LaTeX and Beamer to prepare presentation for Slideshare
How to use LaTeX and Beamer to prepare presentation for SlideshareHow to use LaTeX and Beamer to prepare presentation for Slideshare
How to use LaTeX and Beamer to prepare presentation for Slideshare
 
Training basic latex
Training basic latexTraining basic latex
Training basic latex
 
358 33 powerpoint-slides_16-files-their-organization_chapter-16
358 33 powerpoint-slides_16-files-their-organization_chapter-16358 33 powerpoint-slides_16-files-their-organization_chapter-16
358 33 powerpoint-slides_16-files-their-organization_chapter-16
 

Similaire à LaTeX for B.Sc. Mathematics,an introduction

Introduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu.pptIntroduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu.pptrajinooka
 
Introduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu.pptIntroduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu.pptanandmaheshwari15
 
Introduction to LaTeX - Dumitrescu.ppt - It is a slide on the internet explai...
Introduction to LaTeX - Dumitrescu.ppt - It is a slide on the internet explai...Introduction to LaTeX - Dumitrescu.ppt - It is a slide on the internet explai...
Introduction to LaTeX - Dumitrescu.ppt - It is a slide on the internet explai...akuysal1
 
Introduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu.pptIntroduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu.pptTaraLeander
 
Introduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu.pptIntroduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu.pptGhufranKhan42
 
Introduction to LaTeX - Dumitrescu (1).ppt
Introduction to LaTeX - Dumitrescu (1).pptIntroduction to LaTeX - Dumitrescu (1).ppt
Introduction to LaTeX - Dumitrescu (1).pptAmit Bairwa
 
Latex for beginners
Latex for beginnersLatex for beginners
Latex for beginnersKaushik Naik
 
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.TechSandhya Gandham
 
LaTeX로 문서 작성하자
LaTeX로 문서 작성하자LaTeX로 문서 작성하자
LaTeX로 문서 작성하자Kangjun Heo
 
Latex - Companion for a Researcher - A Review.ppt
Latex - Companion for a Researcher - A Review.pptLatex - Companion for a Researcher - A Review.ppt
Latex - Companion for a Researcher - A Review.pptLadallaRajKumar
 
LaTeX_tutorial_Syed_Jan09.ppt
LaTeX_tutorial_Syed_Jan09.pptLaTeX_tutorial_Syed_Jan09.ppt
LaTeX_tutorial_Syed_Jan09.pptMichalis33
 
Latex Introduction for Beginners
Latex Introduction for BeginnersLatex Introduction for Beginners
Latex Introduction for Beginnersssuser9e8fa4
 
LaTex tutorial with Texstudio
LaTex tutorial with TexstudioLaTex tutorial with Texstudio
LaTex tutorial with TexstudioHossein Babashah
 

Similaire à LaTeX for B.Sc. Mathematics,an introduction (20)

Introduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu.pptIntroduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu.ppt
 
Introduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu.pptIntroduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu.ppt
 
Introduction to LaTeX - Dumitrescu.ppt - It is a slide on the internet explai...
Introduction to LaTeX - Dumitrescu.ppt - It is a slide on the internet explai...Introduction to LaTeX - Dumitrescu.ppt - It is a slide on the internet explai...
Introduction to LaTeX - Dumitrescu.ppt - It is a slide on the internet explai...
 
Introduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu.pptIntroduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu.ppt
 
Introduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu.pptIntroduction to LaTeX - Dumitrescu.ppt
Introduction to LaTeX - Dumitrescu.ppt
 
Introduction to LaTeX - Dumitrescu (1).ppt
Introduction to LaTeX - Dumitrescu (1).pptIntroduction to LaTeX - Dumitrescu (1).ppt
Introduction to LaTeX - Dumitrescu (1).ppt
 
LaTeX for Engineer.ppt
LaTeX for Engineer.pptLaTeX for Engineer.ppt
LaTeX for Engineer.ppt
 
Latex for beginners
Latex for beginnersLatex for beginners
Latex for beginners
 
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
 
LaTeX로 문서 작성하자
LaTeX로 문서 작성하자LaTeX로 문서 작성하자
LaTeX로 문서 작성하자
 
Latex - Companion for a Researcher - A Review.ppt
Latex - Companion for a Researcher - A Review.pptLatex - Companion for a Researcher - A Review.ppt
Latex - Companion for a Researcher - A Review.ppt
 
LaTeX_tutorial_Syed_Jan09.ppt
LaTeX_tutorial_Syed_Jan09.pptLaTeX_tutorial_Syed_Jan09.ppt
LaTeX_tutorial_Syed_Jan09.ppt
 
latex.pptx
latex.pptxlatex.pptx
latex.pptx
 
Latex Introduction for Beginners
Latex Introduction for BeginnersLatex Introduction for Beginners
Latex Introduction for Beginners
 
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 Tutorial
Latex TutorialLatex Tutorial
Latex Tutorial
 
Latex workshop
Latex workshopLatex workshop
Latex workshop
 
LaTex tutorial with Texstudio
LaTex tutorial with TexstudioLaTex tutorial with Texstudio
LaTex tutorial with Texstudio
 
Learn Latex
Learn LatexLearn Latex
Learn Latex
 
Head first latex
Head first latexHead first latex
Head first latex
 

Dernier

social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
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
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 

Dernier (20)

social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
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...
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 

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