Introduction Features A Basic LATEX Document Some LATEX Examples Installing and Using LATEX References

Introduction to LATEX & Overleaf

Ricky Patterson

UVa Library

27 Sep 2018 (View source: https://www.overleaf.com/read/vshrryxvbhjw)

Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 1 / 18 Introduction Features A Basic LATEX Document Some LATEX Examples Installing and Using LATEX References Outline Introduction Features A Basic LATEX Document Example Document Preamble \documentclass Packages Body Typing Text Caveats Formatting Some LATEX Examples Tables and Figures Mathematics AIntro to LATEX & Overleaf 27 Sep 2018, (View source: InstallingRicky and Patterson Using Lhttps://www.overleaf.com/read/vshrryxvbhjw)TEX 2 / 18 References Introduction Features A Basic LATEX Document Some LATEX Examples Installing and Using LATEX References Introduction

I LATEX is a document preparation system for high quality typesetting

I Not a Word Processor - Allows authors to focus on content rather than appearance.

I Frequently used in the preparation of scientific or technical documents, but can be used to create letters, dissertations, music scores, calendars, presentations, etc., etc., etc.

Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 3 / 18 However...

I Steep learning curve

I Not WYSIWYG

I Can’t easily convert to and from Word, etc.

Introduction Features A Basic LATEX Document Some LATEX Examples Installing and Using LATEX References LATEX Features

I Typesetting articles, reports, books, presentations

I Typesetting complex formulas

I Control sectioning, cross-references, tables and figures

I Automatic generation of bibliographies, indexes, and TOCs

I Free, and Multi-platform (Win/Mac/Linux)

I Support: CTAN, TUG

Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 4 / 18 Introduction Features A Basic LATEX Document Some LATEX Examples Installing and Using LATEX References LATEX Features

I Typesetting articles, reports, books, presentations

I Typesetting complex formulas

I Control sectioning, cross-references, tables and figures

I Automatic generation of bibliographies, indexes, and TOCs

I Free, and Multi-platform (Win/Mac/Linux)

I Support: CTAN, TUG However...

I Steep learning curve

I Not WYSIWYG

I Can’t easily convert to and from Word, etc.

Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 4 / 18 Introduction Features Example Document A Basic LATEX Document Preamble Some LATEX Examples Body Installing and Using LATEX Typing Text References Basic Document

\documentclass{article} \title{My First \LaTeX{}Document} \author{Ricky Patterson} \institute{UVa Library} \date{September 2018} \begin{document} \maketitle Hello world! \end{document} Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 5 / 18 Introduction Features Example Document A Basic LATEX Document Preamble Some LATEX Examples Body Installing and Using LATEX Typing Text References

My First LATEX Document

Ricky Patterson

UVa Library

September 2016

Hello world!

Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 6 / 18 I Commands placed here will apply to the entire document

I Can customize line width, margins, paragraph spacing, fonts, page height and width

I Load additional packages here

I At minimum, it must contain a \documentclass[options]{document type} statement...

Introduction Features Example Document A Basic LATEX Document Preamble Some LATEX Examples Body Installing and Using LATEX Typing Text References LATEX Document Preamble

I Everything before the \begin{document}

Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 7 / 18 I Can customize line width, margins, paragraph spacing, fonts, page height and width

I Load additional packages here

I At minimum, it must contain a \documentclass[options]{document type} statement...

Introduction Features Example Document A Basic LATEX Document Preamble Some LATEX Examples Body Installing and Using LATEX Typing Text References LATEX Document Preamble

I Everything before the \begin{document}

I Commands placed here will apply to the entire document

Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 7 / 18 I Load additional packages here

I At minimum, it must contain a \documentclass[options]{document type} statement...

Introduction Features Example Document A Basic LATEX Document Preamble Some LATEX Examples Body Installing and Using LATEX Typing Text References LATEX Document Preamble

I Everything before the \begin{document}

I Commands placed here will apply to the entire document

I Can customize line width, margins, paragraph spacing, fonts, page height and width

Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 7 / 18 I At minimum, it must contain a \documentclass[options]{document type} statement...

Introduction Features Example Document A Basic LATEX Document Preamble Some LATEX Examples Body Installing and Using LATEX Typing Text References LATEX Document Preamble

I Everything before the \begin{document}

I Commands placed here will apply to the entire document

I Can customize line width, margins, paragraph spacing, fonts, page height and width

I Load additional packages here

Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 7 / 18 Introduction Features Example Document A Basic LATEX Document Preamble Some LATEX Examples Body Installing and Using LATEX Typing Text References LATEX Document Preamble

I Everything before the \begin{document}

I Commands placed here will apply to the entire document

I Can customize line width, margins, paragraph spacing, fonts, page height and width

I Load additional packages here

I At minimum, it must contain a \documentclass[options]{document type} statement...

Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 7 / 18 I \documentclass[options]{document type} I document types:

I article: Default. contains: parts, sections, subsections... I report: also contains chapters I book: like report, but treats even/odd pages differently I letter: for writing letters I Options

I Font Size (10pt,11pt,12pt) I Paper Size (letterpaper), and Orientation (landscape) I Page Format (twocolumn, oneside) I and others...

Introduction Features Example Document A Basic LATEX Document Preamble Some LATEX Examples Body Installing and Using LATEX Typing Text References \documentclass

I The only required line in a preamble

Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 8 / 18 I document types:

I article: Default. contains: parts, sections, subsections... I report: also contains chapters I book: like report, but treats even/odd pages differently I letter: for writing letters I Options

I Font Size (10pt,11pt,12pt) I Paper Size (letterpaper), and Orientation (landscape) I Page Format (twocolumn, oneside) I and others...

Introduction Features Example Document A Basic LATEX Document Preamble Some LATEX Examples Body Installing and Using LATEX Typing Text References \documentclass

I The only required line in a preamble

I \documentclass[options]{document type}

Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 8 / 18 I Options

I Font Size (10pt,11pt,12pt) I Paper Size (letterpaper), and Orientation (landscape) I Page Format (twocolumn, oneside) I and others...

Introduction Features Example Document A Basic LATEX Document Preamble Some LATEX Examples Body Installing and Using LATEX Typing Text References \documentclass

I The only required line in a preamble

I \documentclass[options]{document type} I document types:

I article: Default. contains: parts, sections, subsections... I report: also contains chapters I book: like report, but treats even/odd pages differently I letter: for writing letters

Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 8 / 18 Introduction Features Example Document A Basic LATEX Document Preamble Some LATEX Examples Body Installing and Using LATEX Typing Text References \documentclass

I The only required line in a preamble

I \documentclass[options]{document type} I document types:

I article: Default. contains: parts, sections, subsections... I report: also contains chapters I book: like report, but treats even/odd pages differently I letter: for writing letters I Options

I Font Size (10pt,11pt,12pt) I Paper Size (letterpaper), and Orientation (landscape) I Page Format (twocolumn, oneside) I and others...

Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 8 / 18 I CTAN (The Comprehensive TEX Archive Network) currently hosts over 5000 packages at http://www.ctan.org

I You can write your own packages (or more likely edit/tweak an existing package to alter the behavior in order to meet your needs). They are simply lines of LATEX commands.

Introduction Features Example Document A Basic LATEX Document Preamble Some LATEX Examples Body Installing and Using LATEX Typing Text References Packages

I You can further customize the behavior of some commands, and add additional commands by invoking additional packages, with \usepackage[option1,options2...]{package1,package2...}

Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 9 / 18 I You can write your own packages (or more likely edit/tweak an existing package to alter the behavior in order to meet your needs). They are simply lines of LATEX commands.

Introduction Features Example Document A Basic LATEX Document Preamble Some LATEX Examples Body Installing and Using LATEX Typing Text References Packages

I You can further customize the behavior of some commands, and add additional commands by invoking additional packages, with \usepackage[option1,options2...]{package1,package2...} I CTAN (The Comprehensive TEX Archive Network) currently hosts over 5000 packages at http://www.ctan.org

Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 9 / 18 Introduction Features Example Document A Basic LATEX Document Preamble Some LATEX Examples Body Installing and Using LATEX Typing Text References Packages

I You can further customize the behavior of some commands, and add additional commands by invoking additional packages, with \usepackage[option1,options2...]{package1,package2...} I CTAN (The Comprehensive TEX Archive Network) currently hosts over 5000 packages at http://www.ctan.org

I You can write your own packages (or more likely edit/tweak an existing package to alter the behavior in order to meet your needs). They are simply lines of LATEX commands.

Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 9 / 18 I End the body (and the entire document) with \end{document}

I Simplest possible document: \documentclass{article} \begin{document} \end{document}

I But it will produce a blank page

Introduction Features Example Document A Basic LATEX Document Preamble Some LATEX Examples Body Installing and Using LATEX Typing Text References Body of Document

I End the preamble and begin the body with \begin{document}

Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 10 / 18 I Simplest possible document: \documentclass{article} \begin{document} \end{document}

I But it will produce a blank page

Introduction Features Example Document A Basic LATEX Document Preamble Some LATEX Examples Body Installing and Using LATEX Typing Text References Body of Document

I End the preamble and begin the body with \begin{document}

I End the body (and the entire document) with \end{document}

Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 10 / 18 I But it will produce a blank page

Introduction Features Example Document A Basic LATEX Document Preamble Some LATEX Examples Body Installing and Using LATEX Typing Text References Body of Document

I End the preamble and begin the body with \begin{document}

I End the body (and the entire document) with \end{document}

I Simplest possible document: \documentclass{article} \begin{document} \end{document}

Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 10 / 18 Introduction Features Example Document A Basic LATEX Document Preamble Some LATEX Examples Body Installing and Using LATEX Typing Text References Body of Document

I End the preamble and begin the body with \begin{document}

I End the body (and the entire document) with \end{document}

I Simplest possible document: \documentclass{article} \begin{document} \end{document}

I But it will produce a blank page

Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 10 / 18 Introduction Features Example Document A Basic LATEX Document Preamble Some LATEX Examples Body Installing and Using LATEX Typing Text References Document

I Hello World document: \documentclass{article} \begin{document} Hello World! \end{document}

Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 11 / 18 I Special Characters: #, %, ˆ, $, &, , {, },˜, and \ They can’t be used in regular text without first “escaping” them, usually by prepending a \ I Some symbols are only available in math mode. You can temporarily enter math mode by enclosing the command in dollar signs ($). For instance $ \alpha $ will produce α I Guides to symbols are easy to find online; you can even draw a symbol to find the proper code using Detexify (http://detexify.krelabs.org) I Double quotes are produced by typing two of the opening quote (‘) or closing quote (’)

Introduction Features Example Document A Basic LATEX Document Preamble Some LATEX Examples Body Installing and Using LATEX Typing Text References Typing Text

I Two basic modes or environments: text and math

Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 12 / 18 I Some symbols are only available in math mode. You can temporarily enter math mode by enclosing the command in dollar signs ($). For instance $ \alpha $ will produce α I Guides to symbols are easy to find online; you can even draw a symbol to find the proper code using Detexify (http://detexify.krelabs.org) I Double quotes are produced by typing two of the opening quote (‘) or closing quote (’)

Introduction Features Example Document A Basic LATEX Document Preamble Some LATEX Examples Body Installing and Using LATEX Typing Text References Typing Text

I Two basic modes or environments: text and math I Special Characters: #, %, ˆ, $, &, , {, },˜, and \ They can’t be used in regular text without first “escaping” them, usually by prepending a \

Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 12 / 18 I Guides to symbols are easy to find online; you can even draw a symbol to find the proper code using Detexify (http://detexify.krelabs.org) I Double quotes are produced by typing two of the opening quote (‘) or closing quote (’)

Introduction Features Example Document A Basic LATEX Document Preamble Some LATEX Examples Body Installing and Using LATEX Typing Text References Typing Text

I Two basic modes or environments: text and math I Special Characters: #, %, ˆ, $, &, , {, },˜, and \ They can’t be used in regular text without first “escaping” them, usually by prepending a \ I Some symbols are only available in math mode. You can temporarily enter math mode by enclosing the command in dollar signs ($). For instance $ \alpha $ will produce α

Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 12 / 18 I Double quotes are produced by typing two of the opening quote (‘) or closing quote (’)

Introduction Features Example Document A Basic LATEX Document Preamble Some LATEX Examples Body Installing and Using LATEX Typing Text References Typing Text

I Two basic modes or environments: text and math I Special Characters: #, %, ˆ, $, &, , {, },˜, and \ They can’t be used in regular text without first “escaping” them, usually by prepending a \ I Some symbols are only available in math mode. You can temporarily enter math mode by enclosing the command in dollar signs ($). For instance $ \alpha $ will produce α I Guides to symbols are easy to find online; you can even draw a symbol to find the proper code using Detexify (http://detexify.krelabs.org)

Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 12 / 18 Introduction Features Example Document A Basic LATEX Document Preamble Some LATEX Examples Body Installing and Using LATEX Typing Text References Typing Text

I Two basic modes or environments: text and math I Special Characters: #, %, ˆ, $, &, , {, },˜, and \ They can’t be used in regular text without first “escaping” them, usually by prepending a \ I Some symbols are only available in math mode. You can temporarily enter math mode by enclosing the command in dollar signs ($). For instance $ \alpha $ will produce α I Guides to symbols are easy to find online; you can even draw a symbol to find the proper code using Detexify (http://detexify.krelabs.org) I Double quotes are produced by typing two of the opening quote (‘) or closing quote (’)

Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 12 / 18 I Similarly \textit{italicize}: italicize, \texttt{fixed width}: fixed width, and \textsc{Small Caps}:SMALL CAPS. I \underline{underlined} produces underlined, \textcolor{color name}{pretty} produces pretty. I text$ {sub}$ yields textsub while text$^ {sup}$ yields textsup. Note that any text in math mode will by default have an italic face. Use \rm to get a normal (roman) font face. text$ {\rm sub}$ yields textsub I The overall font size is set in preamble, but you can change font size temporarily: {\tiny tiny text} gives tiny text. Other sizes: scriptsize, footnotesize, small, normalsize, large, Large, LARGE, huge, and Huge.

Introduction Features Example Document A Basic LATEX Document Preamble Some LATEX Examples Body Installing and Using LATEX Typing Text References Formatting

I Change style: \textbf{strong} or {\bf strong}: strong

Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 13 / 18 I \underline{underlined} produces underlined, \textcolor{color name}{pretty} produces pretty. I text$ {sub}$ yields textsub while text$^ {sup}$ yields textsup. Note that any text in math mode will by default have an italic face. Use \rm to get a normal (roman) font face. text$ {\rm sub}$ yields textsub I The overall font size is set in preamble, but you can change font size temporarily: {\tiny tiny text} gives tiny text. Other sizes: scriptsize, footnotesize, small, normalsize, large, Large, LARGE, huge, and Huge.

Introduction Features Example Document A Basic LATEX Document Preamble Some LATEX Examples Body Installing and Using LATEX Typing Text References Formatting

I Change style: \textbf{strong} or {\bf strong}: strong I Similarly \textit{italicize}: italicize, \texttt{fixed width}: fixed width, and \textsc{Small Caps}:SMALL CAPS.

Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 13 / 18 I text$ {sub}$ yields textsub while text$^ {sup}$ yields textsup. Note that any text in math mode will by default have an italic face. Use \rm to get a normal (roman) font face. text$ {\rm sub}$ yields textsub I The overall font size is set in preamble, but you can change font size temporarily: {\tiny tiny text} gives tiny text. Other sizes: scriptsize, footnotesize, small, normalsize, large, Large, LARGE, huge, and Huge.

Introduction Features Example Document A Basic LATEX Document Preamble Some LATEX Examples Body Installing and Using LATEX Typing Text References Formatting

I Change style: \textbf{strong} or {\bf strong}: strong I Similarly \textit{italicize}: italicize, \texttt{fixed width}: fixed width, and \textsc{Small Caps}:SMALL CAPS. I \underline{underlined} produces underlined, \textcolor{color name}{pretty} produces pretty.

Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 13 / 18 I The overall font size is set in preamble, but you can change font size temporarily: {\tiny tiny text} gives tiny text. Other sizes: scriptsize, footnotesize, small, normalsize, large, Large, LARGE, huge, and Huge.

Introduction Features Example Document A Basic LATEX Document Preamble Some LATEX Examples Body Installing and Using LATEX Typing Text References Formatting

I Change style: \textbf{strong} or {\bf strong}: strong I Similarly \textit{italicize}: italicize, \texttt{fixed width}: fixed width, and \textsc{Small Caps}:SMALL CAPS. I \underline{underlined} produces underlined, \textcolor{color name}{pretty} produces pretty. I text$ {sub}$ yields textsub while text$^ {sup}$ yields textsup. Note that any text in math mode will by default have an italic face. Use \rm to get a normal (roman) font face. text$ {\rm sub}$ yields textsub

Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 13 / 18 Introduction Features Example Document A Basic LATEX Document Preamble Some LATEX Examples Body Installing and Using LATEX Typing Text References Formatting

I Change style: \textbf{strong} or {\bf strong}: strong I Similarly \textit{italicize}: italicize, \texttt{fixed width}: fixed width, and \textsc{Small Caps}:SMALL CAPS. I \underline{underlined} produces underlined, \textcolor{color name}{pretty} produces pretty. I text$ {sub}$ yields textsub while text$^ {sup}$ yields textsup. Note that any text in math mode will by default have an italic face. Use \rm to get a normal (roman) font face. text$ {\rm sub}$ yields textsub I The overall font size is set in preamble, but you can change font size temporarily: {\tiny tiny text} gives tiny text. Other sizes: scriptsize, footnotesize, small, normalsize, large,

Intro to LATEX & Overleaf 27 Sep 2018, (View source: LargeRicky Patterson, LARGEhttps://www.overleaf.com/read/vshrryxvbhjw), huge, and Huge . 13 / 18 I \begin{itemize} generates bulleted list, for each line beginning with \item{symbol} item in list. Symbol is optional, but can be used to customize bullet type.

I \begin{enumerate} is similar to itemize, but the list is now numbered. You can control the style (arabic, roman, letter, etc.) and starting value of the numbers.

I \begin{description} also produces a list with each \item[Point I] text yields: Point I text

Introduction Features Example Document A Basic LATEX Document Preamble Some LATEX Examples Body Installing and Using LATEX Typing Text References More Formatting

I Three environments for Lists: Itemize, Enumerate, and Description

Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 14 / 18 I \begin{enumerate} is similar to itemize, but the list is now numbered. You can control the style (arabic, roman, letter, etc.) and starting value of the numbers.

I \begin{description} also produces a list with each \item[Point I] text yields: Point I text

Introduction Features Example Document A Basic LATEX Document Preamble Some LATEX Examples Body Installing and Using LATEX Typing Text References More Formatting

I Three environments for Lists: Itemize, Enumerate, and Description

I \begin{itemize} generates bulleted list, for each line beginning with \item{symbol} item in list. Symbol is optional, but can be used to customize bullet type.

Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 14 / 18 I \begin{description} also produces a list with each \item[Point I] text yields: Point I text

Introduction Features Example Document A Basic LATEX Document Preamble Some LATEX Examples Body Installing and Using LATEX Typing Text References More Formatting

I Three environments for Lists: Itemize, Enumerate, and Description

I \begin{itemize} generates bulleted list, for each line beginning with \item{symbol} item in list. Symbol is optional, but can be used to customize bullet type.

I \begin{enumerate} is similar to itemize, but the list is now numbered. You can control the style (arabic, roman, letter, etc.) and starting value of the numbers.

Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 14 / 18 Introduction Features Example Document A Basic LATEX Document Preamble Some LATEX Examples Body Installing and Using LATEX Typing Text References More Formatting

I Three environments for Lists: Itemize, Enumerate, and Description

I \begin{itemize} generates bulleted list, for each line beginning with \item{symbol} item in list. Symbol is optional, but can be used to customize bullet type.

I \begin{enumerate} is similar to itemize, but the list is now numbered. You can control the style (arabic, roman, letter, etc.) and starting value of the numbers.

I \begin{description} also produces a list with each \item[Point I] text yields: Point I text

Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 14 / 18 Introduction Features A Basic LATEX Document Tables and Figures Some LATEX Examples Mathematics Installing and Using LATEX References Tables and Figures

I Use tabular for basic tables — see Table1, for example.

I To include a figure in your document, use the includegraphics command (see the comment below in the source code).

Item Quantity Widgets 42 Gadgets 13 Table 1: An example table.

Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 15 / 18 Introduction Features A Basic LATEX Document Tables and Figures Some LATEX Examples Mathematics Installing and Using LATEX References Readable Mathematics

Let X1, X2,..., Xn be a sequence of independent and identically distributed random variables with E[Xi ] = µ and 2 Var[Xi ] = σ < ∞, and let

n X1 + X2 + ··· + Xn 1 X S = = X n n n i i=1 denote their√ mean. Then as n approaches infinity, the random variables n(Sn − µ) converge in distribution to a normal N (0, σ2).

Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 16 / 18 Introduction Features A Basic LATEX Document Some LATEX Examples Installing and Using LATEX References Installing and Using

I There are several browser/cloud-based solutions. Overleaf, ShareLaTeX and Authorea all provide collaborative editing capabilities and LATEX package and template support. There are free and paid versions of each. The UVa Library has purchased a site license for the paid version of Overleaf, available to everyone at UVa. I You can also install LATEX locally. TeXLive (MacTeX on Macs) is one good (and free) choice. It can be configured to check for package updates at CTAN automatically. I When you try to write valid LATEX you’ll want an editor that has a LATEX mode. TeXShop (part of TeXLive) is one, TeXStudio is another. Emacs and VIM have good support.

Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 17 / 18 Introduction Features A Basic LATEX Document Some LATEX Examples Installing and Using LATEX References References/Resources

I CTAN (Comprehensive TEX Archive Network): ctan.org I TUG (TEX Users Group): tug.org I TEX Stack Exchange: .stackexchange.com I The LATEX Companion (Mittelbach & Goossens, 2004) ebook I A Guide to LATEX (Kopka and Daly, 1999) book I The Not So Short Intro to LATEX (Oetiker, updated Feb 2018 → lshort.pdf) I This presentation: overleaf.com/read/vshrryxvbhjwh I Materials from our previous LATEX workshops: data.library.virginia.edu/training/past-workshops/ I overleaf.com/edu/virginia Templates and Guides I overleaf.com/learn/latex/Learn LaTeX in 30 minutes Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 18 / 18