-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.tex
318 lines (246 loc) · 9.47 KB
/
demo.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
% ===
%
% Official LaTeX beamer template of
% Chair for AI Methodology (AIM)
% RWTH Aachen University, Aachen, Germany
%
% Author: Jakob Bossek ([email protected])
% Based on earlier presentation slide templates by
% Jakob Bossek and Holger H. Hoos.
%
% AIM website: https://aim.rwth-aachen.de/
%
% ===
% HINT: add option aspectratio=169 for 16:9 aspect ratio
% HINT: add 'handout' to activate handout mode (without overlays for printing)
\documentclass[t,english]{beamer}
% include package import and macro defintions
\input{includes/preamble}
\input{includes/rgb}
\input{includes/macros/general}
\input{includes/macros/commenting}
% add (multiple) bibliography sources for biblatex
\addbibresource{bib.bib}
% NOTE: the predefined options are best practices of AIM!
% Do not change for seminar talks!
% Set authorinfo={0,1} to (de)activate short author and short title in footer
% Set progress={0,1} to switch between x and x/total display of pages in the bottom right corner
% Set outline={0,1} to (de)activate outline slides at the beginning of each section
\usetheme[authorinfo=1, progress=0, outline=0]{AIM}
% metadata
\title[The AIM \LaTeX{} Beamer Template]{Official \LaTeX{} Beamer Template \newline of the Chair for AI Methodology~(\textbf{AIM})
\newline
RWTH Aachen University}
\subtitle{Quick Guide}
\author[Bossek \& Hoos]{\underline{Jakob Bossek}\inst{1} \and Holger H. Hoos\inst{1,2}}
\institute{
\inst{1}Dept. of Computer Science, RWTH Aachen University, Germany\\
\inst{2}LIACS, Universiteit Leiden, The Netherlands
}
\date{\small\today}
% optional
\titlegraphic{
\includegraphics[width=2cm]{figures/rwth-logo.png}
}
%%% NOTE: do not remove the following marker. We use it for automatic compilation of multiple versions
%%% of the slides (e.g., handout, presentation with overlays) via compile.py
%%%pythonmarker
\begin{document}
\begin{frame}[plain]
\titlepage
\end{frame}
\addtocounter{framenumber}{-1}
% BASICS
% ======
\begin{frame}
\frametitle{Introduction}
\begin{itemize}
\item Use an introductory slide (or introductory slides) to motivate the topic and to raise interest.
\item You can show an outline of the talk (table of contents) if you want, but we strongly recommend to place it after the introduction and \emph{not} before.
\end{itemize}
\end{frame}
\section{Basics}
\begin{frame}
\frametitle{Blocks}
\begin{block}{Regular block}
This is a plain and simple block.
\end{block}
\begin{exampleblock}{Example block}
This is for examples.
\end{exampleblock}
\begin{alertblock}{Alert block}
Use this one to state important information.
\end{alertblock}
\end{frame}
\begin{frame}
\frametitle{Lists}
\begin{itemize}[<+->]
\item Lorem ipsum ...
\item dolor sit amet ...
\begin{itemize}
\item Consequetur amibilisque utero
\item Anhilore deus et arendum
\end{itemize}
\item[$\leadsto$] Custom label
\begin{enumerate}
\item Idiquit et collequt deribur
\item Canum meum id comedid
\end{enumerate}
\end{itemize}
\end{frame}
\begin{frame}[fragile]
\frametitle{Citations with biblatex}
\framesubtitle{Good alternative to natbib}
Sample citation:~\cite{BNPS2019}\\
Sample citation in parenthesis:~\parencite{BNPS2019}\\
Sample full citation via \verb|\fullcite|\\[0.5cm]
\fullcite{BNPS2019}.\\[0.5cm]
\end{frame}
\begin{frame}[fragile]
\frametitle{Images}
Use macro \verb|\ig{width}{path-to-file}| for a single \textbf{centered} image:
\ig{0.4}{example-image-a}
\end{frame}
\begin{frame}
\frametitle{Figure environment}
Feel free to use the figure environment. Note that in the captions (also for tables) out template deliberately omits the label 'Figure:' before the caption:
\begin{figure}[H]
\includegraphics[width=0.5\textwidth]{example-image-a}
\caption{test}
\end{figure}
\end{frame}
\begin{frame}
\frametitle{Tables}
We recommend to take a look at the presentation \href{https://people.inf.ethz.ch/markusp/teaching/guides/guide-tables.pdf}{Small Guide to Making Nice Tables} by Markus P\"uschel.
\begin{center}
\renewcommand{\tabcolsep}{4pt}
\renewcommand{\arraystretch}{1.1}
\begin{footnotesize}
\begin{tabular}{ccrrrrrr}
\toprule
\multirow{2}{*}{\textbf{TSP Set}} & \multirow{2}{*}{\textbf{Mutation}} & \multicolumn{2}{c}{\bfseries RTS\textsuperscript{*}} & \multicolumn{2}{c}{\bfseries FR\textsuperscript{\dag}} & \multicolumn{2}{c}{\bfseries PAR10} \\
\cmidrule(l{2pt}r{2pt}){3-4} \cmidrule(l{2pt}r{2pt}){5-6} \cmidrule(l{2pt}r{2pt}){7-8}
& & \textbf{EAX} & \textbf{LKH} & \textbf{EAX} & \textbf{LKH} & \textbf{EAX} & \textbf{LKH}\\
\midrule
RUE & - & 1.26 & 0.74 & 0.00 & 0.00 & 1.26 & 0.74\\
\midrule
Easy for & simple & 1.34 & 912.78 & 0.00 & 0.20 & 1.34 & 7\,608.11\\
\cmidrule{2-8}
EAX & sophistic. & 0.97 & 830.80 & 0.00 & 0.22 & 0.97 & 8\,230.61\\
\midrule
Easy for & simple & 117.97 & 0.74 & 0.00 & 0.00 & 117.97 & 0.74\\
\cmidrule{2-8}
LKH & sophistic. & 67.90 & 0.88 & 0.00 & 0.00 & 67.90 & 0.88\\
\bottomrule
\multicolumn{8}{l}{\textsuperscript{*} \tiny RTS: Running time of successful runs, \textsuperscript{\dag} FR: Failure ratio}\\%
\end{tabular}
\end{footnotesize}
\end{center}
\end{frame}
\begin{frame}[fragile]
\frametitle{Columns}
The \verb|\twocol{...}{...}|-macro aligns stuff on top and uses two equally sized columns:
\twocol{
\begin{itemize}
\item Lorem ipsum
\item dolor sit amet
\item consequetur deribilis auret
\begin{itemize}
\item Alamat deceductovo ameritol
\item Consequencias pavit
\end{itemize}
\end{itemize}
}{
\vskip-15pt
\ig{1}{example-image-b}
}
\end{frame}
% MATHEMATICS
% ===========
\begin{frame}
\frametitle{Math}
\framesubtitle{... looks awesome in \LaTeX{}}
\begin{block}{Sample formula}
Math looks so \alert<2->{awesome} in \LaTeX{}!
\begin{align*}
\hat{\theta}_{\text{ML}} = T(X_1, \ldots, X_n) = \frac{n}{n-1} \sum_{\frac{i=1}{i \neq k}}^{m} \left(X_i^2 - \exp(X_i - X_k)\right)^{k/2}
\end{align*}
\end{block}
\begin{theorem}[\cite{BNPS2019}]
For every tree with $n$ nodes and maximum degree $\Delta$ the expected time until RLS and (1+1) EA find an optimal $\Delta$-edge-coloring is $O(\Delta \ell^2 m \log m)$ where $\ell$ is the length of the longest path in the tree.
\end{theorem}
\end{frame}
% SOURCE CODE
% ===========
\begin{frame}[fragile]
\frametitle{Pseudo-code}
\framesubtitle{... with \texttt{algorithm2e}}
% NOTE: H is necessary as well as the fragile option for the frame
\begin{algorithm}[H]
\caption{Sample algorithm (taken from Overleaf docs)}\label{alg:sample_algorithm}
\KwData{$n \geq 0$}
\KwResult{$y = x^n$}
$y \gets 1$, $X \gets x$, $N \gets n$\;
\While{$N \neq 0$}{
\eIf{$N$ is even}{
$X \gets X \times X$\;
$N \gets \frac{N}{2}$\tcp*[r]{This is a comment!}
}{\If{$N$ is odd}{
$y \gets y \times X$\;
$N \gets N - 1$\;
}
}
}
\end{algorithm}
\end{frame}
% PREDEFINED MACROS
% =================
\section{Predefined macros}
\begin{frame}[fragile]
\frametitle{Useful macros}
\begin{itemize}
\item Use \verb|\refer{...}| to refer a paper quickly (without the need for a bibfile entry): \refer{Bossek et al., 2019}
\item Use \verb|\hide{...}| to temporarily hide block of code.
\item Use \verb|\plainframe{...}| for a visually reduced frame with horizontally and vertically centered message/image (see next slides for examples).
\item Use \verb|\plainframe[mycolor]{...}| to change the default background.
\end{itemize}
\end{frame}
% no header, just some centred text
\plainframe{\textcolor{rwth-blue-100}{Plain slide (focus on certain element)}}
% set specific background color with an optional argument
\plainframe[black]{\includegraphics[width=0.5\textwidth]{example-image-a}}
\begin{frame}[fragile]
\frametitle{Commenting macros}
It is often useful to comment on different things while writing a report, adding ToDos or highlight changed or added parts. To this end the file \texttt{includes/commenting.tex} defines some useful macros.
\begin{itemize}
\item Use \verb|\todo{...}| to add a ToDo:\newline \todo{Do this, do that}
\item Use \verb|\changed{...}| to indicate changes:\newline \changed{This text was changed.}
\item Use \verb|\added{...}| to highlight additions:\newline \added{This text was added.}
\item Use author-specific macros, e.g., \verb|\jane{...}| or \verb|\john| for our two sample authors Jane and Joe, to add comments. Feel free to edit \texttt{includes/commenting.tex} to add/adapt the author-specific macros.\newline{}
\jane{Comment by Jane.}\newline
\john{Comment by Joe.}
\end{itemize}
\end{frame}
% CONCLUSION
% ==========
\begin{frame}
\frametitle{Take-home message}
\begin{itemize}
\item Briefly summarise the main finding. What are the most important aspects the audience should keep in mind?
\item Your presentation should never end with a slide showing the references or a plain slide with \emph{Questions?} I.e., our recommendation is to end the presentation with the take-home messages.
\end{itemize}
\end{frame}
\appendix
% REFERENCES
% ==========
\begin{frame}[allowframebreaks]
\frametitle{References}
\printbibliography[heading=none]
\end{frame}
% BACKUP SLIDES
% =============
\begin{frame}
\frametitle{Backup slides}
Sequence of additional slides. Useful to keep more information in the background which can be revealed during discussions.
\end{frame}
\end{document}