SlideShare a Scribd company logo
TeX is usually pronounced teck, making lah-teck, and
lay-teck the logical choices; but language is not
always logical, so lay-tecks is also possible.
– Leslie Lamport
LaTeX can be
intimidating!
Commands
Classes
Packages
Environments
Commands
• Indicated by a backslash or yen symbol
• Anyone can create commands
• Collection of commands is called syntax
Huge
includegraphics
newcommand
tableofcontentsmulticolumn
author
frenchspacing
frac{}{}
emph
caption
Classes
• The first command is always documentclass
• 4 main classes of documents
• Classes differ according to:
1. hierarchies
2. commands
3. environments
documentclass{book}
documentclass[11pt]{book}
title{bf An Example of Book Class}
author{Robert Conti}
date{today}
begin{document}
frontmatter
maketitle
tableofcontents
mainmatter
part{Who are you?}
chapter{Who who who who?}
``Who Are You", composed by Pete
Townshend, is the title track on The
Who's 1978 album, Who Are You.
section{I really wanna know}
That’s it really.
end{document}
documentclass{article}
documentclass{article}
usepackage{blindtext}
title{bf Paper title}
author{Robert Conti}
date{today}
begin{document}
begin{abstract}
blindtext
end{abstract}
section{The first section}
blindtext
subsection{Yoyoyoyoyoyo}
blindtext
end{document}
Packages
• Packages give you flexibility in appearance
• Only appear in the preamble, and are called
on by a command.
• Do not come standard with basic distro
usepackage{fancyhdr}
usepackage{hyperref}
usepackage{amsmath}
usepackage[a4paper]{geometry}
usepackage{natbib}
Environments
• Self contained,
begin{environment}
end{environment}
• Can be placed within other environmentsbegin{array}
begin{minipage}
begin{verbatim}
begin{titlepage}
begin{tabular}
begin{figure}
example
documentclass{article}
usepackage{times}
usepackage{blindtext}
begin{document}
title{The Basics of LaTeX{} Documents}
author{Robert Conti
Copy Editor
Edanz Group
texttt{www.edanzediting.com}}
date{today}
maketitle
begin{abstract}
blindtext
end{abstract}
- (hyphen)
-- (en-dash)
--- (em-dash)
$3^3$ 3
$3^{33}$ 33
$3_3$
3
$alpha$
$omega$
$y=sin{x}$
y = sin x
$sqrt{2}$
$sqrt[3]{8}$
$sqrt{1+sqrt{x}}$
About 2/3 of the glass is full.
About 2/3 of the glass is full.
About $frac{2}{3}$ of the
glass is full.
About ⅔ of the glass is full.
``To the windows!” said Lil’ Jon. “To the wall!”
“To the windows!” said Lil’ Jon. ’’To the wall!”
$B$ = -5.6G
$B$ = ─5.6G
B = -5.6 G
B = 5.6 G
begin{tabular}
hline
QC member & Eggs eaten & Egg variety  
Alan & 5 & Sandwich  
Jenah & 2 & Raw  
Robert & 18 & Ramen  
hline
end{tabular}
QC Member Eggs eaten Egg variety
Alan 5 Sandwich
Jenah 2 Raw
Robert 18 Ramen
QC Member Eggs eaten Egg variety
Alan 5 Sandwich
Jenah 2 Raw
Robert 18 Ramen
QC Member Eggs eaten Egg variety
Alan 5 Sandwich
Jenah 2 Raw
Robert 18 Ramen
{ l c c }{| l | c | c | }
documentclass[12pt]{article}
usepackage{natbib}
@book{rumpelstiltskin12,
author = “Jonathan Rumpelstiltskin and Frank Grimes and Bob Jo”,
title = “Turn Straw to Gold: The Power of Positive Thinking”,
year = “2012”,
publisher = “Grimm”,
address = “Fukuoka, Japan”
}
Save as…
myrefs.bib
forcing his mouth wide open, and producing
reams and reams of gold thread. This
thread may be used according to whatever
purpose you wish, as long as it is
positive. cite{rumpelstiltskin12} For
example, you could make a large golden net
in which to trap young people, and promise
them trips to strange places in exchange
for large chunks of their time. It’s up to
you!
section{Acknowledgements}
To my love, my only, Celine Dion.
bibliographystyle{plain}
bibliography{myrefs}
forcing his mouth wide open, and producing reams
and reams of gold thread. This thread may be used
according to whatever purpose you wish, as long as it
is positive.[1] For example, you could make a large
golden net in which to trap young people, and promise
them trips to strange places in exchange for large
chunks of their time. It’s up to you!
5 Acknowledgements.
To my love, my only, Celine Dion.
References
[1] Jonathan Rumpelstiltskin, Frank Grimes, and Bob
Jo. Turn Straw to Gold: The Power of Positive
Thinking. Grimm, Fukuoka, Japan, 2012.
10
bibliographystyle{plainnat}
forcing his mouth wide open, and producing reams
and reams of gold thread. This thread may be used
according to whatever purpose you wish, as long as it
is positive.[Rumpelstiltskin, 2012] For example, you
could make a large golden net in which to trap young
people, and promise them trips to strange places in
exchange for large chunks of their time. It’s up to you!
5 Acknowledgements.
To my love, my only, Celine Dion.
References
Jonathan Rumpelstiltskin, Frank Grimes, and Bob Jo.
Turn Straw to Gold: The Power of Positive
Thinking. Grimm, Fukuoka, Japan, 2012.
10
citep{rumpelstiltskin12}
[Rumpelstiltskin, 2012]citep{rumpelstiltskin12}
bibliographystyle{plainnat}
References
Jonathan Rumpelstiltskin, Frank Grimes, and Bob Jo.
Turn Straw to Gold: The Power of Positive
Thinking. Grimm, Fukuoka, Japan, 2012.
bibliographystyle{acm}
References
RUMPELSTILTSKIN, J.,GRIMES, F., AND JO, B.
Turn Straw to Gold: The Power of Positive
Thinking. Grimm, Fukuoka, Japan, 2012.
citeauthor{rumpelstiltskin12} [Rumpelstiltskin et al.]citeyear{rumpelstiltskin12} 2012citeyearpar{rumpelstiltskin12} (2012)
bibliographystyle{unsrt}
References
J. Rumpelstiltskin, F. Grimes, and B. Jo.
Turn Straw to Gold: The Power of Positive
Thinking. Grimm, 2012.
citealt{rumpelstiltskin12} Rumpelstiltskin et al. 2012
bibliographystyle{siam}
References
J. RUMPELSTILTSKIN, F. GRIMES, AND B. JO.
Turn Straw to Gold: The Power of Positive
Thinking, (2012) Grimm; Fukuoka, Japan.
LaTeX isn’t that bad!
i.) Check if the author is using a template.
ii.) Check if the editor or author has messed with the
template, or any other code.
iii.) If the editor has messed with the template, see if you
can compile it vs. the original document we sent the editor.
iv.) Google the code the editor has inserted if you can’t
figure it out. Our editors usually know what they’re doing!
Excellent tutorial for very beginners: http://www.andy-roberts.net/writing/latex
Basic definitions and examples: https://www.sharelatex.com/learn/
Free templates showing each document class: http://www.rpi.edu/dept/arc/training/latex/Examples/
More free, more fancy templates: http://www.latextemplates.com/
More basics: http://texblog.org/ (The dumbest tagline: because LaTeX matters*)
LaTeX message board: tex.stackexchange.com
Explanations of common environments: http://www.personal.ceu.hu/tex/environ.htm
Explanations of document classes and packages: http://www.math.uiuc.edu/~hildebr/tex/packages.html
Citation and Reference styles: http://sites.stat.psu.edu/~surajit/present/bib.htm
LaTeX editors http://tex.stackexchange.com/questions/339/latex-editors-ides/
predictive, suggestive input, immediate output, automatically download packages
http://miktex.org/2.9/setup MIKTEX INSTALLATION (most basic)
https://www.overleaf.com/ ONLINE PAID CLOUD SERVICE
https://www.sharelatex.com/ ONLINE PAID CLOUD SERVICE
*not that much, you overenthusiastic slogan

More Related Content

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
Christy Abraham Joy
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
MindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

LaTeX

  • 1. TeX is usually pronounced teck, making lah-teck, and lay-teck the logical choices; but language is not always logical, so lay-tecks is also possible. – Leslie Lamport
  • 4. Commands • Indicated by a backslash or yen symbol • Anyone can create commands • Collection of commands is called syntax Huge includegraphics newcommand tableofcontentsmulticolumn author frenchspacing frac{}{} emph caption
  • 5. Classes • The first command is always documentclass • 4 main classes of documents • Classes differ according to: 1. hierarchies 2. commands 3. environments
  • 6. documentclass{book} documentclass[11pt]{book} title{bf An Example of Book Class} author{Robert Conti} date{today} begin{document} frontmatter maketitle tableofcontents mainmatter part{Who are you?} chapter{Who who who who?} ``Who Are You", composed by Pete Townshend, is the title track on The Who's 1978 album, Who Are You. section{I really wanna know} That’s it really. end{document}
  • 7. documentclass{article} documentclass{article} usepackage{blindtext} title{bf Paper title} author{Robert Conti} date{today} begin{document} begin{abstract} blindtext end{abstract} section{The first section} blindtext subsection{Yoyoyoyoyoyo} blindtext end{document}
  • 8. Packages • Packages give you flexibility in appearance • Only appear in the preamble, and are called on by a command. • Do not come standard with basic distro usepackage{fancyhdr} usepackage{hyperref} usepackage{amsmath} usepackage[a4paper]{geometry} usepackage{natbib}
  • 9. Environments • Self contained, begin{environment} end{environment} • Can be placed within other environmentsbegin{array} begin{minipage} begin{verbatim} begin{titlepage} begin{tabular} begin{figure}
  • 10. example documentclass{article} usepackage{times} usepackage{blindtext} begin{document} title{The Basics of LaTeX{} Documents} author{Robert Conti Copy Editor Edanz Group texttt{www.edanzediting.com}} date{today} maketitle begin{abstract} blindtext end{abstract}
  • 11.
  • 12.
  • 13.
  • 15.
  • 16.
  • 17.
  • 27. About 2/3 of the glass is full. About 2/3 of the glass is full.
  • 28. About $frac{2}{3}$ of the glass is full. About ⅔ of the glass is full.
  • 29. ``To the windows!” said Lil’ Jon. “To the wall!” “To the windows!” said Lil’ Jon. ’’To the wall!” $B$ = -5.6G $B$ = ─5.6G B = -5.6 G B = 5.6 G
  • 30.
  • 31. begin{tabular} hline QC member & Eggs eaten & Egg variety Alan & 5 & Sandwich Jenah & 2 & Raw Robert & 18 & Ramen hline end{tabular} QC Member Eggs eaten Egg variety Alan 5 Sandwich Jenah 2 Raw Robert 18 Ramen QC Member Eggs eaten Egg variety Alan 5 Sandwich Jenah 2 Raw Robert 18 Ramen QC Member Eggs eaten Egg variety Alan 5 Sandwich Jenah 2 Raw Robert 18 Ramen { l c c }{| l | c | c | }
  • 32.
  • 34. @book{rumpelstiltskin12, author = “Jonathan Rumpelstiltskin and Frank Grimes and Bob Jo”, title = “Turn Straw to Gold: The Power of Positive Thinking”, year = “2012”, publisher = “Grimm”, address = “Fukuoka, Japan” } Save as… myrefs.bib
  • 35. forcing his mouth wide open, and producing reams and reams of gold thread. This thread may be used according to whatever purpose you wish, as long as it is positive. cite{rumpelstiltskin12} For example, you could make a large golden net in which to trap young people, and promise them trips to strange places in exchange for large chunks of their time. It’s up to you! section{Acknowledgements} To my love, my only, Celine Dion. bibliographystyle{plain} bibliography{myrefs} forcing his mouth wide open, and producing reams and reams of gold thread. This thread may be used according to whatever purpose you wish, as long as it is positive.[1] For example, you could make a large golden net in which to trap young people, and promise them trips to strange places in exchange for large chunks of their time. It’s up to you! 5 Acknowledgements. To my love, my only, Celine Dion. References [1] Jonathan Rumpelstiltskin, Frank Grimes, and Bob Jo. Turn Straw to Gold: The Power of Positive Thinking. Grimm, Fukuoka, Japan, 2012. 10 bibliographystyle{plainnat} forcing his mouth wide open, and producing reams and reams of gold thread. This thread may be used according to whatever purpose you wish, as long as it is positive.[Rumpelstiltskin, 2012] For example, you could make a large golden net in which to trap young people, and promise them trips to strange places in exchange for large chunks of their time. It’s up to you! 5 Acknowledgements. To my love, my only, Celine Dion. References Jonathan Rumpelstiltskin, Frank Grimes, and Bob Jo. Turn Straw to Gold: The Power of Positive Thinking. Grimm, Fukuoka, Japan, 2012. 10 citep{rumpelstiltskin12}
  • 36. [Rumpelstiltskin, 2012]citep{rumpelstiltskin12} bibliographystyle{plainnat} References Jonathan Rumpelstiltskin, Frank Grimes, and Bob Jo. Turn Straw to Gold: The Power of Positive Thinking. Grimm, Fukuoka, Japan, 2012. bibliographystyle{acm} References RUMPELSTILTSKIN, J.,GRIMES, F., AND JO, B. Turn Straw to Gold: The Power of Positive Thinking. Grimm, Fukuoka, Japan, 2012. citeauthor{rumpelstiltskin12} [Rumpelstiltskin et al.]citeyear{rumpelstiltskin12} 2012citeyearpar{rumpelstiltskin12} (2012) bibliographystyle{unsrt} References J. Rumpelstiltskin, F. Grimes, and B. Jo. Turn Straw to Gold: The Power of Positive Thinking. Grimm, 2012. citealt{rumpelstiltskin12} Rumpelstiltskin et al. 2012 bibliographystyle{siam} References J. RUMPELSTILTSKIN, F. GRIMES, AND B. JO. Turn Straw to Gold: The Power of Positive Thinking, (2012) Grimm; Fukuoka, Japan.
  • 38. i.) Check if the author is using a template. ii.) Check if the editor or author has messed with the template, or any other code. iii.) If the editor has messed with the template, see if you can compile it vs. the original document we sent the editor. iv.) Google the code the editor has inserted if you can’t figure it out. Our editors usually know what they’re doing!
  • 39. Excellent tutorial for very beginners: http://www.andy-roberts.net/writing/latex Basic definitions and examples: https://www.sharelatex.com/learn/ Free templates showing each document class: http://www.rpi.edu/dept/arc/training/latex/Examples/ More free, more fancy templates: http://www.latextemplates.com/ More basics: http://texblog.org/ (The dumbest tagline: because LaTeX matters*) LaTeX message board: tex.stackexchange.com Explanations of common environments: http://www.personal.ceu.hu/tex/environ.htm Explanations of document classes and packages: http://www.math.uiuc.edu/~hildebr/tex/packages.html Citation and Reference styles: http://sites.stat.psu.edu/~surajit/present/bib.htm LaTeX editors http://tex.stackexchange.com/questions/339/latex-editors-ides/ predictive, suggestive input, immediate output, automatically download packages http://miktex.org/2.9/setup MIKTEX INSTALLATION (most basic) https://www.overleaf.com/ ONLINE PAID CLOUD SERVICE https://www.sharelatex.com/ ONLINE PAID CLOUD SERVICE *not that much, you overenthusiastic slogan