intro to latex - jacobs school of...

20
Intro to LaTeX Winter 2018 8 David P. Larson © 2018 David P. Larson © 2018 David P. Larson © 2018 David P

Upload: others

Post on 08-Jul-2020

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Intro to LaTeX - Jacobs School of Engineeringjacobsschool.ucsd.edu/idea/programs/docs/talks/Winter...\title{Intro to LaTeX} \author{Bob Smith} \begin{document} \maketitle \section{Introduction}

Intro to LaTeXWinter 2018

© 2018 David P. Larson © 2018 David P. Larson ©

2018 David P. Larson © 2018 David P. Larson

Page 2: Intro to LaTeX - Jacobs School of Engineeringjacobsschool.ucsd.edu/idea/programs/docs/talks/Winter...\title{Intro to LaTeX} \author{Bob Smith} \begin{document} \maketitle \section{Introduction}

Who am I?

• David P. Larson

• PhD Candidate, MAE and CER

• Coimbra Research Group

• Affiliated with IDEA Student Center

• ENG 10 instructor: eng10.ucsd.edu ieng6.ucsd.edu/~dplarson/

© 2018 David P. Larson © 2018 David P. Larson ©

2018 David P. Larson © 2018 David P. Larson

Page 3: Intro to LaTeX - Jacobs School of Engineeringjacobsschool.ucsd.edu/idea/programs/docs/talks/Winter...\title{Intro to LaTeX} \author{Bob Smith} \begin{document} \maketitle \section{Introduction}

© 2018 David P. Larson © 2018 David P. Larson ©

2018 David P. Larson © 2018 David P. Larson

Page 4: Intro to LaTeX - Jacobs School of Engineeringjacobsschool.ucsd.edu/idea/programs/docs/talks/Winter...\title{Intro to LaTeX} \author{Bob Smith} \begin{document} \maketitle \section{Introduction}

LaTeX = LAH-tek

⌧✏� TeX

© 2018 David P. Larson © 2018 David P. Larson ©

2018 David P. Larson © 2018 David P. Larson

Page 5: Intro to LaTeX - Jacobs School of Engineeringjacobsschool.ucsd.edu/idea/programs/docs/talks/Winter...\title{Intro to LaTeX} \author{Bob Smith} \begin{document} \maketitle \section{Introduction}

Why use LaTeX?

• Open-source/free

• The standard for writing technical documents

• Separates content from formatting

• Many useful features (e.g. auto re-numbering of

citations, figures, etc.)

© 2018 David P. Larson © 2018 David P. Larson ©

2018 David P. Larson © 2018 David P. Larson

Page 6: Intro to LaTeX - Jacobs School of Engineeringjacobsschool.ucsd.edu/idea/programs/docs/talks/Winter...\title{Intro to LaTeX} \author{Bob Smith} \begin{document} \maketitle \section{Introduction}

SetupOpen up a LaTeX editor:

• TeX Live (local install)

• ShareLaTeX (website)

• Overleaf (website) (what we’ll use today)

© 2018 David P. Larson © 2018 David P. Larson ©

2018 David P. Larson © 2018 David P. Larson

Page 7: Intro to LaTeX - Jacobs School of Engineeringjacobsschool.ucsd.edu/idea/programs/docs/talks/Winter...\title{Intro to LaTeX} \author{Bob Smith} \begin{document} \maketitle \section{Introduction}

overleaf.com

© 2018 David P. Larson © 2018 David P. Larson ©

2018 David P. Larson © 2018 David P. Larson

Page 8: Intro to LaTeX - Jacobs School of Engineeringjacobsschool.ucsd.edu/idea/programs/docs/talks/Winter...\title{Intro to LaTeX} \author{Bob Smith} \begin{document} \maketitle \section{Introduction}

Workflow

1. Edit source file (.tex)

2. Typeset source file to produce .pdf

3. Repeat

© 2018 David P. Larson © 2018 David P. Larson ©

2018 David P. Larson © 2018 David P. Larson

Page 9: Intro to LaTeX - Jacobs School of Engineeringjacobsschool.ucsd.edu/idea/programs/docs/talks/Winter...\title{Intro to LaTeX} \author{Bob Smith} \begin{document} \maketitle \section{Introduction}

© 2018 David P. Larson © 2018 David P. Larson ©

2018 David P. Larson © 2018 David P. Larson

Page 10: Intro to LaTeX - Jacobs School of Engineeringjacobsschool.ucsd.edu/idea/programs/docs/talks/Winter...\title{Intro to LaTeX} \author{Bob Smith} \begin{document} \maketitle \section{Introduction}

© 2018 David P. Larson © 2018 David P. Larson ©

2018 David P. Larson © 2018 David P. Larson

Page 11: Intro to LaTeX - Jacobs School of Engineeringjacobsschool.ucsd.edu/idea/programs/docs/talks/Winter...\title{Intro to LaTeX} \author{Bob Smith} \begin{document} \maketitle \section{Introduction}

\documentclass{article}

\title{Intro to LaTeX}

\author{Bob Smith}

\begin{document}

\maketitle

\section{Introduction}

Words go here!

\end{document}

setup}

} content

© 2018 David P. Larson © 2018 David P. Larson ©

2018 David P. Larson © 2018 David P. Larson

Page 12: Intro to LaTeX - Jacobs School of Engineeringjacobsschool.ucsd.edu/idea/programs/docs/talks/Winter...\title{Intro to LaTeX} \author{Bob Smith} \begin{document} \maketitle \section{Introduction}

\documentclass{article}

\title{Intro to LaTeX}

\author{Bob Smith}

\begin{document}

\maketitle

\section{Introduction}

Words go here!

\end{document}

document style

title and author data

insert the title section

insert a section

© 2018 David P. Larson © 2018 David P. Larson ©

2018 David P. Larson © 2018 David P. Larson

Page 13: Intro to LaTeX - Jacobs School of Engineeringjacobsschool.ucsd.edu/idea/programs/docs/talks/Winter...\title{Intro to LaTeX} \author{Bob Smith} \begin{document} \maketitle \section{Introduction}

\documentclass{article}

\title{Intro to LaTeX}

\author{Bob Smith}

\begin{document}

\maketitle

\section{Introduction}

Words go here!

\end{document}

Intro to LaTeX

Bob Smith

January 29, 2016

1 Introduction

Words go here!

1

© 2018 David P. Larson © 2018 David P. Larson ©

2018 David P. Larson © 2018 David P. Larson

Page 14: Intro to LaTeX - Jacobs School of Engineeringjacobsschool.ucsd.edu/idea/programs/docs/talks/Winter...\title{Intro to LaTeX} \author{Bob Smith} \begin{document} \maketitle \section{Introduction}

Equations

\begin{equation}

f(x) = a x + b

\end{equation}

f(x) = ax+ b

© 2018 David P. Larson © 2018 David P. Larson ©

2018 David P. Larson © 2018 David P. Larson

Page 15: Intro to LaTeX - Jacobs School of Engineeringjacobsschool.ucsd.edu/idea/programs/docs/talks/Winter...\title{Intro to LaTeX} \author{Bob Smith} \begin{document} \maketitle \section{Introduction}

Greek symbols

\begin{equation}

y = \alpha x + \beta

\end{equation}

y = ↵x+ �

© 2018 David P. Larson © 2018 David P. Larson ©

2018 David P. Larson © 2018 David P. Larson

Page 16: Intro to LaTeX - Jacobs School of Engineeringjacobsschool.ucsd.edu/idea/programs/docs/talks/Winter...\title{Intro to LaTeX} \author{Bob Smith} \begin{document} \maketitle \section{Introduction}

Math symbols

\begin{equation}

z(x, y) = \int x^2 dx + e^y

\end{equation}

z(x, y) =

Zx

2dx+ e

y

© 2018 David P. Larson © 2018 David P. Larson ©

2018 David P. Larson © 2018 David P. Larson

Page 17: Intro to LaTeX - Jacobs School of Engineeringjacobsschool.ucsd.edu/idea/programs/docs/talks/Winter...\title{Intro to LaTeX} \author{Bob Smith} \begin{document} \maketitle \section{Introduction}

Labels and cross-referencing

\begin{equation}

L(x, y) = \int_a^b f(x) dx

\label{eq:integral}

\end{equation}

Equation \ref{eq:integral} shows...

© 2018 David P. Larson © 2018 David P. Larson ©

2018 David P. Larson © 2018 David P. Larson

Page 18: Intro to LaTeX - Jacobs School of Engineeringjacobsschool.ucsd.edu/idea/programs/docs/talks/Winter...\title{Intro to LaTeX} \author{Bob Smith} \begin{document} \maketitle \section{Introduction}

In-line equations

...where $\gamma = 0.1$ and $x_0 = 57.3$.

We assume there exists a linear mapping

$f : R^n \mapsto R$ such that...

...with $L(x, \lambda, \nu)$ defined as...

© 2018 David P. Larson © 2018 David P. Larson ©

2018 David P. Larson © 2018 David P. Larson

Page 19: Intro to LaTeX - Jacobs School of Engineeringjacobsschool.ucsd.edu/idea/programs/docs/talks/Winter...\title{Intro to LaTeX} \author{Bob Smith} \begin{document} \maketitle \section{Introduction}

© 2018 David P. Larson © 2018 David P. Larson ©

2018 David P. Larson © 2018 David P. Larson

Page 20: Intro to LaTeX - Jacobs School of Engineeringjacobsschool.ucsd.edu/idea/programs/docs/talks/Winter...\title{Intro to LaTeX} \author{Bob Smith} \begin{document} \maketitle \section{Introduction}

Questions?

© 2018 David P. Larson © 2018 David P. Larson ©

2018 David P. Larson © 2018 David P. Larson