-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathslides.tex
executable file
·344 lines (303 loc) · 10.2 KB
/
slides.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
%! tex program = xelatex
\documentclass[aspectratio=43]{beamer}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{mdframed}
\usepackage{hyperref}
\hypersetup{colorlinks = true, linkcolor = black}
\usetheme{default}
\title{\LaTeX \ Workshop}
\author{Theodore Nguyen}
\date{September 15th, 2022}
\beamertemplatenavigationsymbolsempty
\setbeamercovered{invisible}
\begin{document}
\begin{frame}{}{}
\maketitle
\end{frame}
\begin{frame}{A Little Bit About Me}{}
\begin{columns}
\column{0.5\textwidth}
\begin{itemize}
\item LQ Class of 2019
\item UCLA Applied Math with a Specialization in Computing
\item Tennis
\end{itemize}
\column{0.5\textwidth}
\includegraphics[width = 2.75in, angle = 270]{me.jpeg}
\end{columns}
\end{frame}
\begin{frame}{What is \LaTeX?}
\begin{center}
\begin{itemize}
\item<2-> {\Large Typesetting system that is widely used in academia
to create professional-looking documents}
\item<2->
{\Large \href{https://github.com/theodoretnguyen/latex-workshop}{Examples
(click here)}}
\end{itemize}
\medskip
\end{center}
\end{frame}
\begin{frame}{Workshop Outline}
\tableofcontents
\end{frame}
\section{1. Creating and Using Overleaf}
\begin{frame}{1. Creating and Using Overleaf}{What is Overleaf}
\begin{itemize}
\item Collaborative and cloud-based (think Google Docs!)
\item Removes the need for you to install \LaTeX \ on your device
\end{itemize}
\end{frame}
\begin{frame}{1. Creating and Using Overleaf}{Setting up an Overleaf Account}
\begin{enumerate}
\item Go to \url{www.overleaf.com} and click ``Register'' in the top right
corner
\item Enter an email and password
\item Click ``Create First Project $\rightarrow$ Blank Project'' and name
it!
\end{enumerate}
\end{frame}
\section{2. Basic \LaTeX \ Document Setup}
\begin{frame}[fragile]{2. Basic \LaTeX \ Document Setup}
\begin{center}
\begin{verbatim}
\documentclass{article}
\usepackage[utf8]{inputenc}
\title{Example}
\author{theodoretnguyen}
\date{September 2022}
\begin{document}
\maketitle
\section{Introduction}
\end{document}
\end{verbatim}
\end{center}
\end{frame}
\begin{frame}[fragile]{2. Basic \LaTeX \ Document Setup}{Breakdown}
\begin{enumerate}
\item<1-> \verb|\documentclass{article}|
\begin{itemize}
\item Type of document
\end{itemize}
\item<2-> \verb|\usepackage[utf8]{inputenc}|
\begin{itemize}
\item Use \verb|\usepackage{}| for adding packages
\end{itemize}
\item<3->
\begin{verbatim}
\title{Example}
\author{theodoretnguyen}
\date{September 2022}
\end{verbatim}
\begin{itemize}
\item Title, author, date (preamble)
\end{itemize}
\item<4-> \verb|\begin{document}|
\begin{itemize}
\item Begins the actual document
\end{itemize}
\item<5-> \verb|\maketitle|
\begin{itemize}
\item Shows title, author, date
\end{itemize}
\item<6-> \verb|\section{Introduction}|
\begin{itemize}
\item Begins a new section with the name \verb|Introduction|
\end{itemize}
\item<7-> \verb|\end{document}|
\begin{itemize}
\item Ends the document. Nothing goes after this line.
\end{itemize}
\end{enumerate}
\end{frame}
\section{3. Formatting Your Document}
\begin{frame}[fragile]{3. Formatting Your Document}{Local Settings Throughout
Your Document}
\begin{columns}
\column{0.75\textwidth}
\begin{itemize}
\item[]<1-> {\Large Local Font Size}
\begin{itemize}
\item Sizing changes can be contained in braces \verb|{}|
\begin{itemize}
\item<1-> Example: \verb|{\tiny hello}|
$\rightarrow$ {\tiny hello}
\end{itemize}
\end{itemize}
\item[]<2-> {\Large Text Styling}
\begin{itemize}
\item Italics : \verb|\textit{hello}| $\rightarrow$
\textit{hello}
\item Bold : \verb|\textbf{hello}| $\rightarrow$
\textbf{hello}
\item Underline : \verb|\underline{hello}| $\rightarrow$
\underline{hello}
\end{itemize}
\end{itemize}
\column{0.25\textwidth}
\includegraphics[width = 0.75in]{font-sizes.png}
\end{columns}
\end{frame}
\begin{frame}{}{}
\begin{center}
{\Huge Exercise 1}
\end{center}
\end{frame}
\section{4. Math Mode and Text Mode}
\begin{frame}[fragile]{4. Math Mode and Text Mode}{}
\begin{itemize}
\item<1-> The text that you have been writing in the document's body is
in \textbf{text mode}.
\item<1-> To go into \textbf{math mode}, type your math between a pair
of dollar signs.
\begin{itemize}
\item<1-> It is also worthwhile to include \verb|amsmath| and
\verb|amsfonts| packages.
\end{itemize}
\item<1-> Example:
\begin{mdframed}
\begin{verbatim}
$E = mc^2$ is cool, but $e^{i \pi} + 1 = 0$
is cooler.
\end{verbatim}
\begin{exampleblock}{Output:}<2->
$E = mc^2$ is cool, but $e^{i \pi} + 1 = 0$ is cooler.
\end{exampleblock}
\end{mdframed}
\end{itemize}
\end{frame}
\section{5. Common Math Symbols and Commands}
\begin{frame}[fragile]{5. Common Math Symbols and Commands}{}
{\small
\begin{center}
\begingroup
\setlength{\tabcolsep}{8pt}
\renewcommand{\arraystretch}{1.5}
\begin{tabular}{| l | r |}
\hline
\verb|\leq| & $\leq$ \\\hline
\verb|\geq| & $\geq$ \\\hline
\verb|x^2| & $x^2$ \\\hline
\verb|A_1| & $A_1$ \\\hline
\verb|\alpha| & $\alpha$ \\\hline
\verb|\mu| & $\mu$ \\\hline
\verb|\sum_{n=1}^{\infty}| & $\sum_{n=1}^{\infty}$ \\\hline
\verb|\int_{a}^{b}| & $\int_{a}^{b}$ \\\hline
\verb|\frac{a}{b}| & $\frac{a}{b}$ \\\hline
\verb|\sqrt{x}| & $\sqrt{x}$ \\\hline
\verb|\pm| & $\pm$ \\\hline
\verb|\sin| & $\sin$ \\\hline
\end{tabular}
\endgroup
\end{center}}
\end{frame}
\begin{frame}{}{}
\begin{center}
{\Huge Exercise 2}
\end{center}
\end{frame}
\section{6. Useful Applications for \LaTeX}
\begin{frame}{6. Useful Applications for \LaTeX}{Detexify}
\url{https://detexify.kirelabs.org/classify.html}
\medskip
See or know a symbol and don’t know what its command would be in \LaTeX?
Draw it on your computer and Detexify will guess for you!
\begin{center}
\includegraphics[scale = 0.25]{detexify.png}
\end{center}
\end{frame}
\begin{frame}{6. Useful Applications for \LaTeX}{Mathpix}
\url{https://mathpix.com/}
\medskip
Take a screenshot of a \LaTeX \ PDF and this application instantly writes
the commands out for you!
\begin{center}
\includegraphics[width = 4in]{mathpix.png}
\end{center}
\end{frame}
\begin{frame}{6. Useful Applications for \LaTeX}{Mathb.in}
\url{http://mathb.in/}
\medskip
If you want to share LaTeX with your friends but don’t feel like typing up
an entire Overleaf document, use this application to share quick excerpts!
\begin{center}
\includegraphics[width = 2.5in]{mathbin.png}
\end{center}
\end{frame}
\section{7. Utilizing Common Environments}
\begin{frame}[fragile]{7. Utilizing Common Environments}{Math Mode Environments:
equation}
\begin{itemize}
\item<1-> \verb|equation|: one line of math
\begin{itemize}
\item<1-> Example:
\begin{mdframed}
\begin{verbatim}
\begin{equation}
e^{i \pi} + 1 = 0
\end{equation}
\end{verbatim}
\begin{exampleblock}{Output:}<2->
\begin{equation}
e^{i \pi} + 1 = 0
\end{equation}
\end{exampleblock}
\end{mdframed}
\end{itemize}
\end{itemize}
\end{frame}
\begin{frame}{}{}
\begin{center}
{\Huge Exercise 3}
\end{center}
\end{frame}
\begin{frame}[fragile]{7. Utilizing Common Environments}{Math Mode Environments:
align} \begin{itemize}
\item \verb|align|: aligns multiple lines of math using \& sign
\begin{itemize}
\item<1-> Example:
\begin{mdframed}
\begin{verbatim}
\begin{align}
x + 2x + 3x &= 12 \\
6x &= 12 \\
x &= 2
\end{align}
\end{verbatim}
\begin{exampleblock}{Output:}<2->
\begin{align}
x + 2x + 3x &= 12 \\
6x &= 12 \\
x &= 2
\end{align}
\end{exampleblock}
\end{mdframed}
\end{itemize}
\end{itemize}
\end{frame}
\begin{frame}{}{}
\begin{center}
{\Huge Exercise 4}
\end{center}
\end{frame}
\section{8. Other Resources}
\begin{frame}{8. Other Resources}{}
\begin{itemize}
\item \href{https://www.overleaf.com/learn}{Overleaf Documentation}
\item \href{https://katex.org/docs/supported.html}{Extensive List of
Symbols}
\item \href{https://www.michellekrummel.com/tutorials}{Ms. Krummel}
\item
\href{https://www.youtube.com/playlist?list=PL-p5XmQHB_JSQvW8_mhBdcwEyxdVX0c1T}{Luke
Smith}
\end{itemize}
\end{frame}
\section{9. Questions, Comments, Concerns?}
\begin{frame}[fragile]{9. Questions, Comments, Concerns?}{}
\begin{center}
Contact: \verb|[email protected]|
\end{center}
\end{frame}
\end{document}