-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathslides.tex
281 lines (260 loc) · 8.09 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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%% Mainmatter -- The slides %%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{A section}
\subsection{Blind Text}
\begin{frame}{Jabberwocky}
\framesubtitle{Lewis Carroll}%
\begin{tikzpicture}[overlay,remember picture]
\node[anchor=south east,xshift=-30pt,yshift=35pt]
at (current page.south east) {
\includegraphics[width=35mm]{resources/jabberwocky-light}
};
\end{tikzpicture}%
'Twas brillig, and the slithy toves\\
Did gyre and gimble in the wabe;\\
All mimsy were the borogoves,\\
And the mome raths outgrabe.\\\bigskip
“Beware the Jabberwock, my son!\\
The jaws that bite, the claws that catch!\\
Beware the Jubjub bird, and shun\\
The frumious Bandersnatch!”\\
\end{frame}
\begin{frame}[label=lists]{Lists and locales}
\framesubtitle{Lorem ipsum dolor sit amet}
\begin{columns}[onlytextwidth]
\column{.5\textwidth}
\begin{itemize}
\item Nulla nec lacinia odio. Curabitur urna tellus.
\begin{itemize}
\item Fusce id sodales dolor. Sed id metus dui.
\begin{itemize}
\item Cupio virtus licet mi vel feugiat.
\end{itemize}
\end{itemize}
\end{itemize}
\column{.5\textwidth}
\begin{enumerate}
\item Donec porta, risus porttitor egestas scelerisque video.
\begin{enumerate}
\item Nunc non ante fringilla, manus potentis cario.
\begin{enumerate}
\item Pellentesque servus morbi tristique.
\end{enumerate}
\end{enumerate}
\end{enumerate}
\end{columns}
\bigskip
\justifying
{\uselanguage{czech}Nechť již hříšné saxofony ďáblů
rozzvučí síň úděsnými tóny waltzu, tanga a quickstepu!}
{\uselanguage{slovak} Nezvyčajné kŕdle šťastných figliarskych
ďatľov učia pri kótovanom ústí Váhu mĺkveho koňa Waldemara
obžierať väč\-šie kusy exkluzívnej kôry.}
{\uselanguage{english}The quick, brown fox jumps over a lazy
dog. DJs flock by when MTV ax quiz prog. “Now fax quiz Jack!”}
\end{frame}
\subsection{Structuring Elements}
\begin{frame}[label=simmonshall]{Text blocks}
\framesubtitle{In plain, example, and \alert{alert} flavour}
\alert{This text} is highlighted.
\begin{block}{A plain block}
This is a plain block containing some \alert{highlighted text}.
\end{block}
\begin{exampleblock}{An example block}
This is an example block containing some \alert{highlighted text}.
\end{exampleblock}
\begin{alertblock}{An alert block}
This is an alert block containing some \alert{highlighted text}.
\end{alertblock}
\end{frame}
\begin{frame}[label=proof]{Definitions, theorems, and proofs}
\framesubtitle{All integers divide zero}
\begin{definition}
$\forall a,b\in\mathds{Z}: a\mid b\iff\exists c\in\mathds{Z}:a\cdot c=b$
\end{definition}
\begin{theorem}
$\forall a\in\mathds{Z}: a\mid 0$
\end{theorem}
\begin{proof}[Proof\nopunct]
$\forall a\in\mathds{Z}: a\cdot 0=0$
\end{proof}
\end{frame}
\section{Another section}
\subsection{Numerals and Mathematics}
\begin{frame}[label=math]{Numerals and Mathematics}
\framesubtitle{Formulae, equations, and expressions}
\begin{columns}[onlytextwidth]
\column{.20\textwidth}
1234567890
\column{.20\textwidth}
\oldstylenums{1234567890}
\column{.20\textwidth}
$\hat{x}$, $\check{x}$, $\tilde{a}$,
$\bar{a}$, $\dot{y}$, $\ddot{y}$
\column{.40\textwidth}
$\int \!\! \int f(x,y,z)\,\mathsf{d}x\mathsf{d}y\mathsf{d}z$
\end{columns}
\begin{columns}[onlytextwidth]
\column{.5\textwidth}
$$\frac{1}{\displaystyle 1+
\frac{1}{\displaystyle 2+
\frac{1}{\displaystyle 3+x}}} +
\frac{1}{1+\frac{1}{2+\frac{1}{3+x}}}$$
\column{.5\textwidth}
$$F:\left| \begin{array}{ccc}
F''_{xx} & F''_{xy} & F'_x \\
F''_{yx} & F''_{yy} & F'_y \\
F'_x & F'_y & 0
\end{array}\right| = 0$$
\end{columns}
\begin{columns}[onlytextwidth]
\column{.3\textwidth}
$$\mathop{\int \!\!\! \int}_{\mathbf{x} \in \mathds{R}^2}
\! \langle \mathbf{x},\mathbf{y}\rangle\,\mathsf{d}\mathbf{x}$$
\column{.33\textwidth}
$$\overline{\overline{a\alpha}^2+\underline{b\beta}
+\overline{\overline{d\delta}}}$$
\column{.37\textwidth}
$\left] 0,1\right[ + \lceil x \rfloor - \langle x,y\rangle$
\end{columns}
\begin{columns}[onlytextwidth]
\column{.4\textwidth}
\begin{eqnarray*}
e^x &\approx& 1+x+x^2/2! + \\
&& {}+x^3/3! + x^4/4!
\end{eqnarray*}
\column{.6\textwidth}
$${n+1\choose k} = {n\choose k} + {n \choose k-1}$$
\end{columns}
\end{frame}
\subsection{Figures and Code Listings}
\begin{frame}[label=figs1]{Figures}
\framesubtitle{Tables, graphs, and images}
\begin{table}[!b]
{\carlitoTLF % Use monospaced lining figures
\begin{tabularx}{\textwidth}{Xrrr}
\textbf{Faculty} & \textbf{With \TeX} & \textbf{Total} &
\textbf{\%} \\
\toprule
Faculty of Informatics & 1\,716 & 2\,904 &
59.09 \\% 1433
Faculty of Science & 786 & 5\,275 &
14.90 \\% 1431
Faculty of $\genfrac{}{}{0pt}{}{\textsf{Economics and}}{%
\textsf{Administration}}$ & 64 & 4\,591 &
1.39 \\% 1456
Faculty of Arts & 69 & 10\,000 &
0.69 \\% 1421
Faculty of Medicine & 8 & 2\,014 &
0.40 \\% 1411
Faculty of Law & 15 & 4\,824 &
0.31 \\% 1422
Faculty of Education & 19 & 8\,219 &
0.23 \\% 1441
Faculty of Social Studies & 12 & 5\,599 &
0.21 \\% 1423
Faculty of Sports Studies & 3 & 2\,062 &
0.15 \\% 1451
\bottomrule
\end{tabularx}}
\caption{The distribution of theses written using \TeX\ during 2010--15 at MU}
\end{table}
\end{frame}
\begin{frame}[label=figs2]{Figures}
\framesubtitle{Tables, graphs, and images}
\begin{figure}[b]
\centering
% Flipping a coin
% Author: cis
\tikzset{
head/.style = {fill = none, label = center:\textsf{H}},
tail/.style = {fill = none, label = center:\textsf{T}}}
\scalebox{0.65}{\begin{tikzpicture}[
scale = 1.5, transform shape, thick,
every node/.style = {draw, circle, minimum size = 10mm},
grow = down, % alignment of characters
level 1/.style = {sibling distance=3cm},
level 2/.style = {sibling distance=4cm},
level 3/.style = {sibling distance=2cm},
level distance = 1.25cm
]
\node[shape = rectangle,
minimum width = 6cm, font = \sffamily] {Coin flipping}
child { node[shape = circle split, draw, line width = 1pt,
minimum size = 10mm, inner sep = 0mm, rotate = 30] (Start)
{ \rotatebox{-30}{H} \nodepart{lower} \rotatebox{-30}{T}}
child { node [head] (A) {}
child { node [head] (B) {}}
child { node [tail] (C) {}}
}
child { node [tail] (D) {}
child { node [head] (E) {}}
child { node [tail] (F) {}}
}
};
% Filling the root (Start)
\begin{scope}[on background layer, rotate=30]
\fill[head] (Start.base) ([xshift = 0mm]Start.east) arc (0:180:5mm)
-- cycle;
\fill[tail] (Start.base) ([xshift = 0pt]Start.west) arc (180:360:5mm)
-- cycle;
\end{scope}
% Labels
\begin{scope}[nodes = {draw = none}]
\path (Start) -- (A) node [near start, left] {$0.5$};
\path (A) -- (B) node [near start, left] {$0.5$};
\path (A) -- (C) node [near start, right] {$0.5$};
\path (Start) -- (D) node [near start, right] {$0.5$};
\path (D) -- (E) node [near start, left] {$0.5$};
\path (D) -- (F) node [near start, right] {$0.5$};
\begin{scope}[nodes = {below = 11pt}]
\node [name = X] at (B) {$0.25$};
\node at (C) {$0.25$};
\node [name = Y] at (E) {$0.25$};
\node at (F) {$0.25$};
\end{scope}
\end{scope}
\end{tikzpicture}}
\caption{Tree of probabilities -- Flipping a coin\footnote[frame]{%
A derivative of a diagram from \url{texample.net} by cis, CC BY 2.5 licensed}}
\end{figure}
\end{frame}
\defverbatim[colored]\sleepSort{
\begin{lstlisting}[language=C,tabsize=2]
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
// This is a comment
int main(int argc, char **argv)
{
while (--c > 1 && !fork());
sleep(c = atoi(v[c]));
printf("%d\n", c);
wait(0);
return 0;
}
\end{lstlisting}}
\begin{frame}{Code listings}{An example source code in C}
\sleepSort
\end{frame}
\begin{frame}{This is an animation}
\framesubtitle{Works with Adobe Reader}
\animategraphics[width=\textwidth]{12}{resources/gif/frame-}{0}{36}
\end{frame}
\section{End}
\subsection{Citations and Bibliography}
\begin{frame}[label=citations]{Citations}
\framesubtitle{\TeX, \LaTeX, and Beamer}
\justifying Der Duden\cite{Duden}
\end{frame}
\begin{frame}[allowframebreaks]
\frametitle{Quellen}
\printbibliography
\end{frame}
\begin{frame}
\frametitle{Quellen}
Weitere Quellen:
\cite{Dudem}
\end{frame}