-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.tex
420 lines (350 loc) · 15.5 KB
/
main.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
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
\documentclass{beamer}
\usetheme{gt}
\usepackage{amsfonts,amsmath,oldgerm,algorithmic,algorithm}
\usepackage[font=small,labelfont=bf]{caption}
\usepackage{animate}
\usepackage{media9}
\usepackage{tikz}
\newcommand{\hrefcol}[2]{\textcolor{gtbuzzgold}{\href{#1}{#2}}}
\newcommand{\testcolor}[1]{\colorbox{#1}{\textcolor{#1}{test}}~\texttt{#1}}
\usepackage[backend=biber,style=ieee,note=false,isbn=false,doi=false,eprint=false,sorting=none,citestyle=authortitle]{biblatex}
\addbibresource{sample.bib}
\xapptobibmacro{cite}{\setunit{\nametitledelim}\printfield{year}}{}{}
\AtEveryBibitem{
\clearfield{note}
}
% \usefonttheme[onlymath]{serif}
% \usefonttheme{serif} % use this if you would like Serif font throughout (and not just for math)
\title{Get started with the GT SSDL Beamer Theme}
\titlebackground{images/gt_landscape.jpg}
% an asterisk will split the background:
% \titlebackground*{images/gt_landscape.jpg}
\subtitle{Using \LaTeX\ to prepare slides}
\author{\href{mailto:[email protected]}{Tomohiro Sasaki}\\Ph.D. Student at Georgia Institute of Technology}
\date{\today}
\newcommand{\insertfootlinetitle}{2023}% Define footline title
\AtBeginSection[]{
\frame{\vspace{-15mm}\tableofcontents[currentsection, hideallsubsections]} %目次スライド
}
\begin{document}
% \themecolor{lightnologo}
\themecolor{title}
\maketitle
\themecolor{light}
% % default is no footline, but page numbers are incredibly useful for the audience to ask questions later
\footlinecolor{gtblue}
\themecolor{lightnologo}
\frame{\vspace{-15mm}\tableofcontents[hideallsubsections]}
\themecolor{light}
\section{Beamer for GT SSDL presentations}
\begin{frame}{Beamer for GT SSDL presentations}
If you would like \LaTeX in your presentation, Beamer is a great way to go!
\begin{itemize}
\item Beamer has a detailed
\hrefcol{https://www.ctan.org/tex-archive/macros/latex/contrib/beamer/doc/beameruserguide.pdf}{user
manual}, but we will go over the most common features.
\item The most common of all slide types involve bulleted points, like these.
\item Regular \LaTeX commands will help you type math, as below\footnotemark.
\begin{equation*}
\mathcal{L} (\theta) = \log \sum_{k=1}^{\lvert Z \rvert} Q(z_k \mid y) \frac{P( z_k, y \mid \theta)}{Q(z_k \mid y)} \geq \sum_{k=1}^{\lvert Z \rvert} Q(z_k \mid y) \log \frac{P( z_k, y \mid \theta)}{Q(z_k \mid y)}
\end{equation*}
\end{itemize}
\footnotetext{A test footnote for both columns}
\end{frame}
\section{Chapter}
\begin{chapter}[images/gt_tower_night.jpg]{gtblue}{Slide Layouts}
\textit{An overview of some different slide types you can have.}
\end{chapter}
\begin{frame}[fragile]{More with bullet points}
\framesubtitle{Unrolling}
\begin{itemize}[<+->]
\item You could also unroll the slides in a sequence.
\item Just added \verb|[<+->]| option to \verb|\begin{itemize}| in this frame.
\item P.S. If you end up using verbatim text (i.e. \verb|\verb| command) as I did to typeset the bullet point above, make sure to add \verb|[fragile]| option to your frame :)
\end{itemize}
\end{frame}
\begin{frame}[fragile]{More with bullet points}
\framesubtitle{Global alerts}
Sequential slide unrolling can be further enhanced using alerts.
\begin{itemize}[<alert@2>]
\item We will shortly show what they are.
\item<2- | alert@2> This is what they are :)
\end{itemize}
\end{frame}
\begin{frame}[fragile]{More with bullet points}
\framesubtitle{Local alerts}
Alerts can also be localized.
\begin{itemize}
\item The \verb|\alert{}| command provides this functionality.
\item Like \alert<2>{this}.
\item You may as well choose the highlighting to stick.
\begin{itemize}
\item Previous one did not, but \alert<3->{this one} will.
\end{itemize}
\item Another common slide type involves columns and/or images.
\begin{itemize}
\item We show them in the \alert<4>{next slides}.
\end{itemize}
\end{itemize}
\end{frame}
\begin{frame}[fragile]{Images and columns}
\begin{columns}
\begin{column}{0.7\textwidth}
Adding images works like in normal \LaTeX:
\begin{block}{Code for Adding Images}
\begin{verbatim}
\end{verbatim}
\end{block}
This slide layout was achieved using the \verb|columns| feature. The number and widths of the columns is totally user preference. Another columns example follows on the next slide.
\end{column}
\begin{column}{0.3\textwidth}
\includegraphics[width=\textwidth]
{images/gt_tower.jpg}
\end{column}
\end{columns}
\end{frame}
\begin{frame}{Another images/columns example}
\begin{columns}
\begin{column}{0.35\textwidth}
\includegraphics[width=\textwidth]{plots/min_fuel.png}
\captionof{figure}{Minimum fuel trajectory}
\end{column}
\begin{column}{0.3\textwidth}
\textbf{Left:} Solving for optimal fuel consumption \textbf{Right:} Solving for optimal time taken
\end{column}
\begin{column}{0.35\textwidth}
\includegraphics[width=\textwidth]{plots/min_time.png}
\captionof{figure}{Minimum time trajectory}
\end{column}
\end{columns}
\end{frame}
\begin{frame}{Embed GIF}
Use "magick convert -coalesce something.gif something.png"
\centering
\animategraphics[autoplay, loop,width=4cm]{10}{videos/gifs/blinking-eyes-huh-}{0}{33}
\end{frame}
\begin{frame}{Embed Video}
\centering
% \movie[label=show3,width=0.5\textwidth,autostart,showcontrols,loop] {\includegraphics[width=0.5\textwidth]{plots/pendulum.png}}{pendulum.mp4}
\includemedia[
height=0.4\textwidth,
activate=pageopen,
addresource=videos/pendulum.mov,
flashvars={
source=videos/pendulum.mov
&autoPlay=true
&scaleMode=letterbox
&modestbranding=1 % no YT logo in control bar
&autohide=1 % controlbar autohide
&showinfo=0 % no title and other info before start
&rel=0 % no related videos after end
},
]{\includegraphics[height=0.4\textwidth]{plots/pendulum.png}}{VPlayer.swf}
\end{frame}
\begin{frame}{Tikz Figure}
\begin{tikzpicture}
\draw[gray, thick] (-1,2) -- (2,-4);
\draw[gray, thick] (-1,-1) -- (2,2);
\filldraw[black] (0,0) circle (2pt) node[anchor=west]{Intersection point};
\end{tikzpicture}
\end{frame}
\begin{frame}[fragile]{Blocks for theorems}
Blocks are a great UI element and can be used for typesetting theorems.
\begin{block}{Theorem}
If $\mid \mathcal{H} \mid < \infty$, then $\mathcal{H}$ is PAC Learnable.
\end{block}
\end{frame}
\begin{frame}[fragile]{Blocks for partitioning}
Blocks are also a great way to partition your slide. They can be combined with columns, as shown here.
\begin{columns}
\begin{column}{0.3\textwidth}
\begin{block}{Standard Blocks}
For the light theme, their color matches the footline. We will discuss light and dark themes soon.
\begin{verbatim}
\begin{block}{title}
content...
\end{block}
\end{verbatim}
\end{block}
\end{column}
\begin{column}{0.7\textwidth}
\begin{colorblock}[black]{gtbuzzgold}{Color Blocks}
Similar to the ones on the left, but you pick the color. Text will be white by
default, but you may set it with an optional argument.
\small
\begin{verbatim}
\begin{colorblock}[black]{uihteal}{title}
content...
\end{colorblock}
\end{verbatim}
\end{colorblock}
\end{column}
\end{columns}
\end{frame}
\begin{sidepic}{images/gt_seal_rgb}{Side-Picture Slides}
Just another another layout you may want to use.
\begin{itemize}
\item These type of slides are created using \texttt{$\backslash$begin\{sidepic\}\{<image>\}\{<title>\}}
\item Otherwise, \texttt{sidepic} works just like \texttt{frame}
\end{itemize}
\end{sidepic}
\renewcommand{\algorithmicrequire}{\textbf{Input:}}
\renewcommand{\algorithmicensure}{\textbf{Output:}}
\newcommand*\CALL[2]{\textsc{#1}(#2)}
% \newcommand*\ANNOTATE[1]{\hfill\{#1\}}%
% \newcommand*\ANNOTATE[1]{\hskip3em$\rightarrow$ #1}
\newcommand*\ANNOTATE[1]{\hfill\(\triangleright\) #1}%
\footlinecolor{}
\begin{frame}[fragile]{Pseudocode Example}
\begin{algorithm}[H]
\fontsize{8}{1}\selectfont
\caption{Running EM using the joint PMFs, $P$, $Q$, $\hat P$}
\begin{algorithmic}
\REQUIRE A belief network $\mathcal{G}$ and dataset $ \mathcal{D}$
\ENSURE ML estimate of network parameter matrix $\hat P$
\STATE $\hat P \gets$ \CALL{RandomPMF}{}
\STATE $\text{LogLikelihood} \gets \text{empty list}$
\STATE $t \gets 0$
\REPEAT
\STATE $\text{CurrentLogLikelihood} \gets 0$
\STATE $Q \gets 0$
\FOR{$d \in \mathcal{D}$}
\STATE $\hat P(z_d \mid y_d) \gets \hat P(z_d, y_d) \delta(y_d)$
\STATE $\text{CurrentLogLikelihood} \gets \text{CurrentLogLikelihood}$ + \CALL{Sum}{$\hat P(z_d \mid y_d)$}
\STATE $Q \gets Q + \hat P(z_d \mid y_d) \times \delta(y_d)$ \ANNOTATE{E-step}
\ENDFOR
\STATE $\text{LogLikelihood}[t] = \text{CurrentLogLikelihood}$
\STATE $\hat P \gets$ \CALL{Normalize}{$Q$} \ANNOTATE{M-step}
\STATE $t \gets t + 1$
\UNTIL{convergence}
\RETURN $\hat P$
\end{algorithmic}
\end{algorithm}
\end{frame}
\footlinecolor{gtblue}
\begin{chapter}[images/gt_seal_gold.png]{gtblue}{Personalization}
\textit{Themes, fonts and colors}
\end{chapter}
\begin{frame}[fragile]{Let's talk themes}
Three fundamental features greatly affect the look and feel of your slides. Two of them can be controlled with the \verb|\themecolor| command.
\begin{itemize}
\item The background color.
\begin{itemize}
\item The default is \verb|light| theme, which has a light background, which we are currently using.
\end{itemize}
\item The foreground color.
\begin{itemize}
\item The \verb|light| theme has a \verb|dark| foreground (i.e. text color) and vice versa.
\end{itemize}
\item The third, the footer color can be set using \verb|\footlinecolor| command.
\begin{itemize}
\item We are currently using \testcolor{gtblue} color for our footer.
\item The default is no footline, but I believe page numbers are incredibly helpful for your audience to ask questions later.
\end{itemize}
\end{itemize}
\end{frame}
\themecolor{dark}
\usebeamercolor[fg]{normal text}
\footlinecolor{gtgold}
\begin{frame}[fragile]{Let's talk themes}
\begin{itemize}
\item I just called \verb|\themecolor{dark}| before \verb|\begin{frame}| for this slide.
\begin{itemize}
\item Ideally you should set the theme globally in the preamble (i.e. before \verb|\begin{document}|). Default is light.
\item If you switch the theme from light to dark or vice versa in the middle of the presentation (like we just did), you \textbf{may} have to follow up with \verb|\usebeamercolor[fg]{normal text}| as well, as we did for this slide, otherwise the foreground color might not be automatically updated.
\end{itemize}
\item You can also change the footer color with \verb|\footlinecolor{color}|, as we did for this slide.
\item All the changes we talked about here happen for the current \textbf{as well as subsequent} frames.
\begin{itemize}
\item I will manually revert all the changes for the next slide.
\end{itemize}
\end{itemize}
\end{frame}
\begin{frame}{Adding Bibliography}
\begin{itemize}
\item Footnote citation command is \texttt{$\backslash$footenote\{$\backslash$cite\{YOUR-REFERENCE-KEY\}\}}\footnote[1]{\cite{Sasaki.Lightsey.2022}}
\item Footnote number can also be modified \footnote[3]{\cite{Sasaki.Lightsey.2022}}
\item If you want to add reference without footnote use \texttt{$\backslash$nocite\{YOUR-REFERENCE-KEY\}}[Sasaki, 2023]\nocite{Sasaki.Lightsey.2023} (Reference is still added at the end)
\end{itemize}
\end{frame}
\begin{frame}{References}
\AtNextBibliography{\footnotesize}
{
\printbibliography[heading=none]
}
\end{frame}
\begin{frame}{Changing Footers}
Footers can be modified by
\texttt{$\backslash$newcommand\{$\backslash$insertfootlinetitle\}\{<YOUR-FOOTNOTE?\}}
\end{frame}
\begin{frame}{Changing Back Matter}
The back matter can be modified in the "beamerthemegy.sty."
\includegraphics[width=\textwidth]{plots/backmatter.png}
\end{frame}
% \themecolor{light}
% \usebeamercolor[fg]{normal text}
% \footlinecolor{gtblue}
% \begin{frame}[fragile]{Fonts}
% \begin{itemize}
% \item Fonts play a huge role in the look and feel of your presentation
% \begin{itemize}
% \item Their main purpose however, is clarity!
% \end{itemize}
% \item \textrm{Serif} vs \textsf{Sans-Serif} fonts
% \begin{itemize}
% \item \hrefcol{https://www.adobe.com/creativecloud/design/discover/serif-vs-sans-serif.html}{This} is a good read on when to use which.
% \item \textbf{Open Sans} and \textbf{IBM Plex Serif} have been provided with this template.
% \item To conveniently switch from Open Sans to IBM Plex Serif, please use \verb|\usefonttheme{serif}| in the preamble.
% \begin{itemize}
% \item IBM Plex Serif is not available on \verb|pdfLaTeX|, so Caladea will be used instead.
% \end{itemize}
% \end{itemize}
% \item The fonts provided in the \verb|fonts| folder (or your own fonts) can only be used with \verb|XeLaTeX|.
% \begin{itemize}
% \item The Overleaf version of this template uses \verb|XeLaTeX| by default.
% \item Next few slides talk about font formats and how they work with different compilers.
% \end{itemize}
% \end{itemize}
% \end{frame}
% \begin{frame}[fragile]{Font formats over time}
% Here are the \textbf{old} formats (still used in the LaTeX ecosystem):
% \begin{itemize}
% \item \emph{PostScript Type 1} format developed by Adobe in 1980s
% \begin{itemize}
% \item Support officially ended by Adobe in January 2023
% \end{itemize}
% \item \emph{TrueType format} (\verb|.ttf|) developed by Apple, also in 1980s, licensed to Microsoft
% \end{itemize}
% The \textbf{new} font formats are \emph{OpenType}, developed jointly by Microsoft and Adobe in the 1990s as an extension of Apple's TrueType font format. \emph{OpenType} fonts are either
% \begin{itemize}
% \item \emph{PostScript flavor OpenType} (\verb|.otf|) that supercedes Adobe's PostScript Type 1
% \item \emph{TrueType flavor OpenType} (also \verb|.ttf|!) that supercedes Apple's TrueType
% \begin{itemize}
% \item Distinguishing them from the old TrueType format is therefore non trivial.
% \end{itemize}
% \end{itemize}
% \end{frame}
% \begin{frame}[fragile]{Font formats compatibility}
% The new \emph{OpenType} fonts have several new features over the old formats. They are however, supported natively only by \verb|XeLaTeX| and \verb|LuaLaTeX| compilers. The most popular \verb|pdfLaTeX| compiler has limited support for them:
% \begin{itemize}
% \item \emph{OpenType} fonts are not \verb|pdfLaTeX|-ready by default.
% \item They require the production of TeX font metrics and other ancillary files in order to be used with LaTeX.
% \item The production of these files is not easy for the average user.
% \end{itemize}
% Consequently, if using \verb|pdfLaTeX|, the most convenient option is to restrict yourself to the fonts packages available at the \hrefcol{https://tug.org/FontCatalogue/}{LaTeX Font Catalogue}, which are already \verb|pdfLaTeX|-ready.
% \end{frame}
% \begin{frame}[fragile]{Font formats compatibility}
% If you want to use fonts beyond those in the \hrefcol{https://tug.org/FontCatalogue/}{LaTeX Font Catalogue} (for example, fonts from Google Fonts), the recommended approach is to use \verb|XeLaTeX|.
% \begin{itemize}
% \item \verb|XeLaTeX| is set as the default compiler on the Overleaf version of this template.
% \item The fonts included in the \verb|fonts| folder are \emph{TrueType flavor OpenType} fonts.
% \item You can still use \verb|pdfLaTeX|, except that the included fonts will not be applied.
% \end{itemize}
% UIC signature font is Theinhardt, also available as \emph{OpenType}.
% \begin{itemize}
% \item Due to licensing issues, I cannot distribute Theinhardt with this template.
% \item A licensed copy of Theinhardt can be obtained by UIC students and faculty \hrefcol{https://marketing.uic.edu/marketing-toolbox/uic-fonts/}{here}.
% \end{itemize}
% \end{frame}
\backmatter
\end{document}