This document provides an introduction and overview of LaTeX. It discusses what LaTeX is, its advantages over word processors, and how to get started using it. The document covers LaTeX document structure, basic text formatting, math mode, citations and references, and other common elements like environments. It serves as a tutorial for getting acquainted with the basics of the LaTeX markup language.
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
LaTeX Tutorial Guide for Beginners
1. LATEX
Tutorial
Jhoirene B Clemente
Sanggumay Residence Hall
University of the Philippines Diliman
Nov 14, 2014
2. 34
LATEXTutorial
JB Clemente
2 Introduction
Getting Started
Document Types
Typesetting
Math Mode
Citation and References
Using Style Files
Other Tools
References
Sanggumay Residence Hall
University of the Philippines
Diliman
Nov 13, 2014
What is LATEX?
1. Latex is a document preparation system
2. Pronunciation: “LAY-tek" or “LAH-tek" (definitely not
"“LAH-teks")
3. Markup language for mathematical symbols and formulas
3. 34
LATEXTutorial
JB Clemente
3 Introduction
Getting Started
Document Types
Typesetting
Math Mode
Citation and References
Using Style Files
Other Tools
References
Sanggumay Residence Hall
University of the Philippines
Diliman
Nov 13, 2014
WYSIWIYG Word Processors
What You See Is What You Get (WYSIWYG)
4. 34
LATEXTutorial
JB Clemente
4 Introduction
Getting Started
Document Types
Typesetting
Math Mode
Citation and References
Using Style Files
Other Tools
References
Sanggumay Residence Hall
University of the Philippines
Diliman
Nov 13, 2014
WYSIWYG Word Processors vs Markup
5. 34
LATEXTutorial
JB Clemente
4 Introduction
Getting Started
Document Types
Typesetting
Math Mode
Citation and References
Using Style Files
Other Tools
References
Sanggumay Residence Hall
University of the Philippines
Diliman
Nov 13, 2014
WYSIWYG Word Processors vs Markup
6. 34
LATEXTutorial
JB Clemente
5 Introduction
Getting Started
Document Types
Typesetting
Math Mode
Citation and References
Using Style Files
Other Tools
References
Sanggumay Residence Hall
University of the Philippines
Diliman
Nov 13, 2014
Why LATEX?
I Mathematical typesetting
I Superior typographic quality
I Output device independence
I Portability
I Document longevity
I Macros and other programmatic features
I Formatting presets are automatic
7. 34
LATEXTutorial
JB Clemente
6 Introduction
Getting Started
Document Types
Typesetting
Math Mode
Citation and References
Using Style Files
Other Tools
References
Sanggumay Residence Hall
University of the Philippines
Diliman
Nov 13, 2014
What is bad about LATEX?
I Difficulty knowing/remembering markup commands
I Previewing delay
I Possibility of syntax errors
I Adding new fonts
8. 34
LATEXTutorial
JB Clemente
Introduction
7 Getting Started
Document Types
Typesetting
Math Mode
Citation and References
Using Style Files
Other Tools
References
Sanggumay Residence Hall
University of the Philippines
Diliman
Nov 13, 2014
Getting Started: What you need to Install
You need the following
1. LATEXDistribution: MacTeX, LaTeX, MikTeX
2. TeX Editor: notepad, gedit, TeXmaker, etc.
3. Document Previewer: Adobe Acrobat reader, Foxit, Preview
9. 34
LATEXTutorial
JB Clemente
Introduction
8 Getting Started
Document Types
Typesetting
Math Mode
Citation and References
Using Style Files
Other Tools
References
Sanggumay Residence Hall
University of the Philippines
Diliman
Nov 13, 2014
General Document Structure
documentclass{article}
.
PREAMBLE
.
begin{document}
.
BODY
.
end{document}
10. 34
LATEXTutorial
JB Clemente
Introduction
8 Getting Started
Document Types
Typesetting
Math Mode
Citation and References
Using Style Files
Other Tools
References
Sanggumay Residence Hall
University of the Philippines
Diliman
Nov 13, 2014
General Document Structure
documentclass{article}
.
PREAMBLE
.
begin{document}
.
BODY
.
end{document}
Definition (Preamble)
Consists of the overall, document-wide LaTeX formatting
commands
11. 34
LATEXTutorial
JB Clemente
Introduction
8 Getting Started
Document Types
Typesetting
Math Mode
Citation and References
Using Style Files
Other Tools
References
Sanggumay Residence Hall
University of the Philippines
Diliman
Nov 13, 2014
General Document Structure
documentclass{article}
.
PREAMBLE
.
begin{document}
.
BODY
.
end{document}
Definition (Preamble)
Consists of the overall, document-wide LaTeX formatting
commands
Definition (Body)
Contains the text of the document and text formatting commands
12. 34
LATEXTutorial
JB Clemente
Introduction
9 Getting Started
Document Types
Typesetting
Math Mode
Citation and References
Using Style Files
Other Tools
References
Sanggumay Residence Hall
University of the Philippines
Diliman
Nov 13, 2014
General Principles
1. Spaces and line breaks are not important. A blank line starts
a new paragraph, however.
13. 34
LATEXTutorial
JB Clemente
Introduction
9 Getting Started
Document Types
Typesetting
Math Mode
Citation and References
Using Style Files
Other Tools
References
Sanggumay Residence Hall
University of the Philippines
Diliman
Nov 13, 2014
General Principles
1. Spaces and line breaks are not important. A blank line starts
a new paragraph, however.
2. Commands all start with backslash:
documentclass
14. 34
LATEXTutorial
JB Clemente
Introduction
9 Getting Started
Document Types
Typesetting
Math Mode
Citation and References
Using Style Files
Other Tools
References
Sanggumay Residence Hall
University of the Philippines
Diliman
Nov 13, 2014
General Principles
1. Spaces and line breaks are not important. A blank line starts
a new paragraph, however.
2. Commands all start with backslash:
documentclass
3. Braces are used for “arguments"
documentclass{article}
15. 34
LATEXTutorial
JB Clemente
Introduction
9 Getting Started
Document Types
Typesetting
Math Mode
Citation and References
Using Style Files
Other Tools
References
Sanggumay Residence Hall
University of the Philippines
Diliman
Nov 13, 2014
General Principles
1. Spaces and line breaks are not important. A blank line starts
a new paragraph, however.
2. Commands all start with backslash:
documentclass
3. Braces are used for “arguments"
documentclass{article}
4. Brackets are used for“optional arguments":
documentclass[11pt]{article}
16. 34
LATEXTutorial
JB Clemente
Introduction
9 Getting Started
Document Types
Typesetting
Math Mode
Citation and References
Using Style Files
Other Tools
References
Sanggumay Residence Hall
University of the Philippines
Diliman
Nov 13, 2014
General Principles
1. Spaces and line breaks are not important. A blank line starts
a new paragraph, however.
2. Commands all start with backslash:
documentclass
3. Braces are used for “arguments"
documentclass{article}
4. Brackets are used for“optional arguments":
documentclass[11pt]{article}
5. Commands are case sensitive.
documentclass not DocumentClass
17. 34
LATEXTutorial
JB Clemente
Introduction
Getting Started
10 Document Types
Typesetting
Math Mode
Citation and References
Using Style Files
Other Tools
References
Sanggumay Residence Hall
University of the Philippines
Diliman
Nov 13, 2014
Document Types
1. article - for short documents for publication
2. report - for longer technical documents; like articles, but has
chapters
3. book - for large documents, such as books
4. letter - for writing letters
5. Beamer - for presentation slides
18. 34
LATEXTutorial
JB Clemente
Introduction
Getting Started
11 Document Types
Typesetting
Math Mode
Citation and References
Using Style Files
Other Tools
References
Sanggumay Residence Hall
University of the Philippines
Diliman
Nov 13, 2014
Simple Article
documentclass{article}
begin{document}
% Content
end{document}
19. 34
LATEXTutorial
JB Clemente
Introduction
Getting Started
12 Document Types
Typesetting
Math Mode
Citation and References
Using Style Files
Other Tools
References
Sanggumay Residence Hall
University of the Philippines
Diliman
Nov 13, 2014
Simple Article with Preamble
Commands for specifying
1. Title
2. Author
3. Date
title{LaTex Tutorial}
author{Jhoirene B Clemente}
date{Nov 20, 2014}
20. 34
LATEXTutorial
JB Clemente
Introduction
Getting Started
12 Document Types
Typesetting
Math Mode
Citation and References
Using Style Files
Other Tools
References
Sanggumay Residence Hall
University of the Philippines
Diliman
Nov 13, 2014
Simple Article with Preamble
Commands for specifying
1. Title
2. Author
3. Date
title{LaTex Tutorial}
author{Jhoirene B Clemente}
date{Nov 20, 2014}
To include title, author, and date in the document.
We will use the command
maketitle
21. 34
LATEXTutorial
JB Clemente
Introduction
Getting Started
13 Document Types
Typesetting
Math Mode
Citation and References
Using Style Files
Other Tools
References
Sanggumay Residence Hall
University of the Philippines
Diliman
Nov 13, 2014
Environments
Environment declaration
begin{<environment>}
....
end{<environment>}
22. 34
LATEXTutorial
JB Clemente
Introduction
Getting Started
13 Document Types
Typesetting
Math Mode
Citation and References
Using Style Files
Other Tools
References
Sanggumay Residence Hall
University of the Philippines
Diliman
Nov 13, 2014
Environments
Environment declaration
begin{<environment>}
....
end{<environment>}
Basic Environments
I document
I enumerate
I itemize
I figure
I table
23. 34
LATEXTutorial
JB Clemente
Introduction
Getting Started
14 Document Types
Typesetting
Math Mode
Citation and References
Using Style Files
Other Tools
References
Sanggumay Residence Hall
University of the Philippines
Diliman
Nov 13, 2014
Example Environment: list with bullets
Basic environments
begin{itemize}
item document
item itemize
item enumerate
item figure
item table
end{itemize}
24. 34
LATEXTutorial
JB Clemente
Introduction
Getting Started
15 Document Types
Typesetting
Math Mode
Citation and References
Using Style Files
Other Tools
References
Sanggumay Residence Hall
University of the Philippines
Diliman
Nov 13, 2014
Example Environment: enumerate
Basic environments
begin{enumerate}
item document
item itemize
item enumerate
item figure
item table
end{enumerate}
25. 34
LATEXTutorial
JB Clemente
Introduction
Getting Started
16 Document Types
Typesetting
Math Mode
Citation and References
Using Style Files
Other Tools
References
Sanggumay Residence Hall
University of the Philippines
Diliman
Nov 13, 2014
Example Environment: enumerate
Basic environments
1. document
2. itemize
3. enumerate
4. figure
5. table
26. 34
LATEXTutorial
JB Clemente
Introduction
Getting Started
17 Document Types
Typesetting
Math Mode
Citation and References
Using Style Files
Other Tools
References
Sanggumay Residence Hall
University of the Philippines
Diliman
Nov 13, 2014
Other useful environments
1. definition
2. theorem
3. proof
4. lemma
5. claim
27. 34
LATEXTutorial
JB Clemente
Introduction
Getting Started
Document Types
18 Typesetting
Math Mode
Citation and References
Using Style Files
Other Tools
References
Sanggumay Residence Hall
University of the Philippines
Diliman
Nov 13, 2014
Basic Text Formatting
The quick brown fox jump over the lazy dog
28. 34
LATEXTutorial
JB Clemente
Introduction
Getting Started
Document Types
18 Typesetting
Math Mode
Citation and References
Using Style Files
Other Tools
References
Sanggumay Residence Hall
University of the Philippines
Diliman
Nov 13, 2014
Basic Text Formatting
The quick brown fox jump over the lazy dog
The textbf{quick} brown textit{fox}
jump over the underline{lazy}
textbf{textit{dog}}
29. 34
LATEXTutorial
JB Clemente
Introduction
Getting Started
Document Types
19 Typesetting
Math Mode
Citation and References
Using Style Files
Other Tools
References
Sanggumay Residence Hall
University of the Philippines
Diliman
Nov 13, 2014
Other Text Formatting Commands
30. 34
LATEXTutorial
JB Clemente
Introduction
Getting Started
Document Types
Typesetting
20 Math Mode
Citation and References
Using Style Files
Other Tools
References
Sanggumay Residence Hall
University of the Philippines
Diliman
Nov 13, 2014
Math mode usepackage{amsmath}
Let f be the function defined by f (x) = 3x + 7, and let
a be a positive real number.
31. 34
LATEXTutorial
JB Clemente
Introduction
Getting Started
Document Types
Typesetting
20 Math Mode
Citation and References
Using Style Files
Other Tools
References
Sanggumay Residence Hall
University of the Philippines
Diliman
Nov 13, 2014
Math mode usepackage{amsmath}
Let f be the function defined by f (x) = 3x + 7, and let
a be a positive real number.
32. 34
LATEXTutorial
JB Clemente
Introduction
Getting Started
Document Types
Typesetting
20 Math Mode
Citation and References
Using Style Files
Other Tools
References
Sanggumay Residence Hall
University of the Philippines
Diliman
Nov 13, 2014
Math mode usepackage{amsmath}
Let f be the function defined by f (x) = 3x + 7, and let
a be a positive real number.
33. 34
LATEXTutorial
JB Clemente
Introduction
Getting Started
Document Types
Typesetting
21 Math Mode
Citation and References
Using Style Files
Other Tools
References
Sanggumay Residence Hall
University of the Philippines
Diliman
Nov 13, 2014
Math mode usepackage{amsmath}
cos(2) = cos2 − sin2
limx!1 exp(−x) = 0
a mod b
kn+1 = n2 + k2
n − kn−1
n!
k!(n−k)! =
nk
x a (mod b)
34. 34
LATEXTutorial
JB Clemente
Introduction
Getting Started
Document Types
Typesetting
Math Mode
22 Citation and References
Using Style Files
Other Tools
References
Sanggumay Residence Hall
University of the Philippines
Diliman
Nov 13, 2014
Citation and References
35. 34
LATEXTutorial
JB Clemente
Introduction
Getting Started
Document Types
Typesetting
Math Mode
22 Citation and References
Using Style Files
Other Tools
References
Sanggumay Residence Hall
University of the Philippines
Diliman
Nov 13, 2014
Citation and References
36. 34
LATEXTutorial
JB Clemente
Introduction
Getting Started
Document Types
Typesetting
Math Mode
23 Citation and References
Using Style Files
Other Tools
References
Sanggumay Residence Hall
University of the Philippines
Diliman
Nov 13, 2014
Bibfiles
Collection of bibliographic entries stored in “filename.bib
Figure: Sample bibfile
37. 34
LATEXTutorial
JB Clemente
Introduction
Getting Started
Document Types
Typesetting
Math Mode
Citation and References
24 Using Style Files
Other Tools
References
Sanggumay Residence Hall
University of the Philippines
Diliman
Nov 13, 2014
Using Style Files
38. 34
LATEXTutorial
JB Clemente
Introduction
Getting Started
Document Types
Typesetting
Math Mode
Citation and References
25 Using Style Files
Other Tools
References
Sanggumay Residence Hall
University of the Philippines
Diliman
Nov 13, 2014
Using Style Files
39. 34
LATEXTutorial
JB Clemente
Introduction
Getting Started
Document Types
Typesetting
Math Mode
Citation and References
26 Using Style Files
Other Tools
References
Sanggumay Residence Hall
University of the Philippines
Diliman
Nov 13, 2014
LATEXStyle File
You are recommended to use the Elsevier article class elsarticle.cls
http://www.ctan.org/tex-archive/macros/latex/
contrib/elsarticle to prepare your manuscript and BibTeX
(http://www.bibtex.org) to generate your bibliography. For
detailed submission instructions, templates and other information
on LaTeX, see http://www.elsevier.com/latex.
40. 34
LATEXTutorial
JB Clemente
Introduction
Getting Started
Document Types
Typesetting
Math Mode
Citation and References
Using Style Files
27 Other Tools
References
Sanggumay Residence Hall
University of the Philippines
Diliman
Nov 13, 2014
Easier Option: LYX
What You See Is What You Mean
41. 34
LATEXTutorial
JB Clemente
Introduction
Getting Started
Document Types
Typesetting
Math Mode
Citation and References
Using Style Files
28 Other Tools
References
Sanggumay Residence Hall
University of the Philippines
Diliman
Nov 13, 2014
Easier Option: LYX
42. 34
LATEXTutorial
JB Clemente
Introduction
Getting Started
Document Types
Typesetting
Math Mode
Citation and References
Using Style Files
29 Other Tools
References
Sanggumay Residence Hall
University of the Philippines
Diliman
Nov 13, 2014
Easier Option: LYX
43. 34
LATEXTutorial
JB Clemente
Introduction
Getting Started
Document Types
Typesetting
Math Mode
Citation and References
Using Style Files
30 Other Tools
References
Sanggumay Residence Hall
University of the Philippines
Diliman
Nov 13, 2014
TeX with Collaboration
44. 34
LATEXTutorial
JB Clemente
Introduction
Getting Started
Document Types
Typesetting
Math Mode
Citation and References
Using Style Files
31 Other Tools
References
Sanggumay Residence Hall
University of the Philippines
Diliman
Nov 13, 2014
TeX with Collaboration
45. 34
LATEXTutorial
JB Clemente
Introduction
Getting Started
Document Types
Typesetting
Math Mode
Citation and References
Using Style Files
32 Other Tools
References
Sanggumay Residence Hall
University of the Philippines
Diliman
Nov 13, 2014
Must have Apps
46. 34
LATEXTutorial
JB Clemente
Introduction
Getting Started
Document Types
Typesetting
Math Mode
Citation and References
Using Style Files
33 Other Tools
References
Sanggumay Residence Hall
University of the Philippines
Diliman
Nov 13, 2014
Thank you for listening.
47. 34
LATEXTutorial
JB Clemente
Introduction
Getting Started
Document Types
Typesetting
Math Mode
Citation and References
Using Style Files
34 Other Tools
References
Sanggumay Residence Hall
University of the Philippines
Diliman
Nov 13, 2014
References