THIS IS AN
INTRODUCTION TO
LaTeX
Introduction to Latex
Jimmy Broomfield
University of Minnesota, November 7, 2016
Jimmy Broomfield Introduction to LaTeX 1/22
1/22
LaTeX Introduction to Latex Jimmy Broomfield University of - - PowerPoint PPT Presentation
THIS IS AN INTRODUCTION TO LaTeX Introduction to Latex Jimmy Broomfield University of Minnesota , November 7, 2016 1 / 22 Jimmy Broomfield Introduction to LaTeX 1/22 Outline Introduction Installation Getting Started Basic
Introduction to Latex
University of Minnesota, November 7, 2016
Jimmy Broomfield Introduction to LaTeX 1/22
1/22
Outline
Jimmy Broomfield Introduction to LaTeX 2/22
2/22
Introduction
Why L
A
T EX?
whereas typesetting is the “process” of applying typographic elements to text in an artful way.
resumes/cvs, etc.
Jimmy Broomfield Introduction to LaTeX 3/22
3/22
Introduction
Why L
A
T EX?
whereas typesetting is the “process” of applying typographic elements to text in an artful way.
resumes/cvs, etc.
Jimmy Broomfield Introduction to LaTeX 3/22
3/22
Introduction
Why L
A
T EX?
whereas typesetting is the “process” of applying typographic elements to text in an artful way.
resumes/cvs, etc.
Jimmy Broomfield Introduction to LaTeX 3/22
3/22
Introduction
Word vs L
A
T EX
Jimmy Broomfield Introduction to LaTeX 4/22
4/22
Installation
Installing L
AT
EX
Windows
Miktex/TexWorks will have to be installed by the user.
Mac OS
MacTeX comes pre-installed.
Linux
Will come pre-installed with your distro.
Online
If you prefer to not install L
A
T EX, you can use overleaf.com or sharelatex.com.
Jimmy Broomfield Introduction to LaTeX 5/22
5/22
Installation
Installing L
AT
EX
Windows
Miktex/TexWorks will have to be installed by the user.
Mac OS
MacTeX comes pre-installed.
Linux
Will come pre-installed with your distro.
Online
If you prefer to not install L
A
T EX, you can use overleaf.com or sharelatex.com.
Jimmy Broomfield Introduction to LaTeX 5/22
5/22
Installation
Installing L
AT
EX
Windows
Miktex/TexWorks will have to be installed by the user.
Mac OS
MacTeX comes pre-installed.
Linux
Will come pre-installed with your distro.
Online
If you prefer to not install L
A
T EX, you can use overleaf.com or sharelatex.com.
Jimmy Broomfield Introduction to LaTeX 5/22
5/22
Installation
Installing L
AT
EX
Windows
Miktex/TexWorks will have to be installed by the user.
Mac OS
MacTeX comes pre-installed.
Linux
Will come pre-installed with your distro.
Online
If you prefer to not install L
A
T EX, you can use overleaf.com or sharelatex.com.
Jimmy Broomfield Introduction to LaTeX 5/22
5/22
Your First Document
The basics
\documentclass{article} \begin{document} Hello world! \end{document}
Jimmy Broomfield Introduction to LaTeX 6/22
6/22
Your First Document
A little more
\documentclass{article} \begin{document} \section{Introduction} This is and introduction to the article! \section{Section} This is a section! \subsection{Subsection} This is a subsection! \subsubsection{Subsubsection} This is as far as it goes for sections \end{document}
Jimmy Broomfield Introduction to LaTeX 7/22
7/22
Caution
Characters and Spaces
Special Characters
\# , \$ , \% , \ˆ , \& , \_ , \{ , \} , \˜ , \textbackslash , \LaTeX
Horizontal Space
\, \; \. \hspace{}, \phantom{1cm}, \indent, \noindent, \quad, \qquad, \hfill
Vertical Space
\\, \newline, \vpsace{1cm}, \ \\, \newpage, \vfill
Jimmy Broomfield Introduction to LaTeX 8/22
8/22
Exercise
Using Special Characters and Spacing
Use L
A
T EXto produce the following text.
Jimmy Broomfield Introduction to LaTeX 9/22
9/22
Basic Commands
Changes to Font
is produced by using \texttt{ }
Jimmy Broomfield Introduction to LaTeX 10/22
10/22
Basic Commands
Changes to Font Size
Text
Text
Text
Text
Text
Text
Text
Jimmy Broomfield Introduction to LaTeX 11/22
11/22
Basic Commands
Alignment
Left Flush alignment is default Center alignment is produced by \begin{center} \end{center} Right alignment is produced by \begin{flushright} \end{flushright}
Jimmy Broomfield Introduction to LaTeX 12/22
12/22
Basic Commands
Bulleted Lists
Bulleted lists are produced by: \begin{itemize} \item Text 1 \item Text 2 \end{itemize}
Numbered Lists
Numbered lists are produced by: \begin{enumerate} \item Text 1 \item Text 2 \end{enumerate}
Jimmy Broomfield Introduction to LaTeX 13/22
13/22
Basic Commands
Preamble
\documentclass[12pt, letterpaper]{article} \usepackage{package 1, package 2} \title{First document} \author{Your Name} \date{November 2016} \begin{document} \begin{titlepage} \maketitle \end{titlepage} In this document some extra packages were added. There are two packages and fontsize parameters have changed. \end{document}
Jimmy Broomfield Introduction to LaTeX 14/22
14/22
Exercise
More Advanced Document
Write a basic L
A
T EXdocument with the following requirements
A
T EXDocument.”
Jimmy Broomfield Introduction to LaTeX 15/22
15/22
Debug Exercise 1
Don’t Be Scared
Debug the following
\documentclass{article} \begin{document} Hello world! This is \meph{italics} & it is great! \end{document}
Jimmy Broomfield Introduction to LaTeX 16/22
16/22
Mathematics
L
AT
EXunleashed
Let’s dive in!
Jimmy Broomfield Introduction to LaTeX 17/22
17/22
Mathematics
L
AT
EXunleashed
Let’s dive in!
Jimmy Broomfield Introduction to LaTeX 17/22
17/22
Mathematics
L
AT
EXunleashed
Let’s dive in!
Jimmy Broomfield Introduction to LaTeX 17/22
17/22
Graphics
How To Add Graphics
\end{figure}
but this is more advanced.
Jimmy Broomfield Introduction to LaTeX 18/22
18/22
Graphics
How To Add Graphics
\end{figure}
but this is more advanced.
Jimmy Broomfield Introduction to LaTeX 18/22
18/22
Graphics
How To Add Graphics
\end{figure}
but this is more advanced.
Jimmy Broomfield Introduction to LaTeX 18/22
18/22
Graphics
How To Add Graphics
\end{figure}
but this is more advanced.
Jimmy Broomfield Introduction to LaTeX 18/22
18/22
Graphics
How To Add Graphics
\end{figure}
but this is more advanced.
Jimmy Broomfield Introduction to LaTeX 18/22
18/22
Graphics
How To Add Graphics
\end{figure}
but this is more advanced.
Jimmy Broomfield Introduction to LaTeX 18/22
18/22
Tables
How To Add Graphics
\end{table}
\end{tabular}
Jimmy Broomfield Introduction to LaTeX 19/22
19/22
Tables
How To Add Graphics
\end{table}
\end{tabular}
Jimmy Broomfield Introduction to LaTeX 19/22
19/22
Tables
How To Add Graphics
\end{table}
\end{tabular}
Jimmy Broomfield Introduction to LaTeX 19/22
19/22
Tables
How To Add Graphics
\end{table}
\end{tabular}
Jimmy Broomfield Introduction to LaTeX 19/22
19/22
Tables
How To Add Graphics
\end{table}
\end{tabular}
Jimmy Broomfield Introduction to LaTeX 19/22
19/22
Tables
How To Add Graphics
\end{table}
\end{tabular}
Jimmy Broomfield Introduction to LaTeX 19/22
19/22
Custom Commands
You Mean I Can Make It My Own
User Defined Commands
In L
AT
EX, you have the power to create your own custom commands.These are shortcuts for doing certain tasks without having to write out the full length command.i.e. instead of typing \mathbb{R} every time you want to add R to your document, you can instead add a command in the preamble to do this with the command: \R
Jimmy Broomfield Introduction to LaTeX 20/22
20/22
Custom Commands
You Mean I Can Make It My Own
User Defined Commands
In L
AT
EX, you have the power to create your own custom commands.These are shortcuts for doing certain tasks without having to write out the full length command.i.e. instead of typing \mathbb{R} every time you want to add R to your document, you can instead add a command in the preamble to do this with the command: \R
Jimmy Broomfield Introduction to LaTeX 20/22
20/22
Custom Commands
You Mean I Can Make It My Own
User Defined Commands
In L
AT
EX, you have the power to create your own custom commands.These are shortcuts for doing certain tasks without having to write out the full length command.i.e. instead of typing \mathbb{R} every time you want to add R to your document, you can instead add a command in the preamble to do this with the command: \R
Jimmy Broomfield Introduction to LaTeX 20/22
20/22
Custom Commands
You Mean I Can Make It My Own
User Defined Commands
In L
AT
EX, you have the power to create your own custom commands.These are shortcuts for doing certain tasks without having to write out the full length command.i.e. instead of typing \mathbb{R} every time you want to add R to your document, you can instead add a command in the preamble to do this with the command: \R
Jimmy Broomfield Introduction to LaTeX 20/22
20/22
Bibliographies
Cite Your Sources
Jimmy Broomfield Introduction to LaTeX 21/22
21/22
Resources for further learning
Introduction to L
A
T EX 2ε, https://tobi.oetiker.ch/lshort/lshort.pdf.
https://en.wikibooks.org/wiki/LaTeX
http://www.math.boun.edu.tr/instructors/gurel/symbols-a4.pdf
https://www.sharelatex.com/templates
Jimmy Broomfield Introduction to LaTeX 22/22
22/22