demo.tex 15.2 KB
Newer Older
Alija Sabic's avatar
Alija Sabic committed
1
2
3
\documentclass{beamer}
% \usepackage[texcoord,grid,gridunit=mm,gridcolor=red!10,subgridcolor=green!10]{eso-pic}

4
5
6
7
8
9
10
11
12
13
14
\usepackage{pgfpages} % multi screen mode

% Enable two-screen mode only for notes
\makeatletter
\@ifclasswith{beamer}{notes}{\setbeameroption{show notes on second screen=right}}{}
\makeatother

% ----------------------------------------------------------------------------------------------------------------------------
% Bibliography/References
% ----------------------------------------------------------------------------------------------------------------------------
\usepackage[square,numbers,sort]{natbib}
15
% TODO: provide examples
16
17
18
19
\usepackage{usebib}
\bibinput{references}

\setlength{\bibsep}{1em}
20
21
22
% \bibliographystyle{./../\bstpath IEEEtranSNC}
\bibliographystyle{IEEEtranSNC}
% \interfootnotelinepenalty=10000
23
24
25
26
27
28
29
30
31

% ----------------------------------------------------------------------------------------------------------------------------
% Languagues
% ----------------------------------------------------------------------------------------------------------------------------
\usepackage[french,german,english]{babel}

% ----------------------------------------------------------------------------------------------------------------------------
% Styles & Packages
% ----------------------------------------------------------------------------------------------------------------------------
Alija Sabic's avatar
Alija Sabic committed
32
\usepackage{fhtw}
33
34
35
\usepackage{custom}
\usepackage{lipsum}
\usepackage{adjustbox}
Alija Sabic's avatar
Alija Sabic committed
36
37
38
39
40
41
42
\usepackage{appendixnumberbeamer}
% ----------------------------------------------------------------------------------------------------------------------------
% Customization
% ----------------------------------------------------------------------------------------------------------------------------
% Title
\makeatletter \def\currentdate{\@date} \makeatother
\def\title{Presentation Title}
43
\def\shorttitle{\hspace{1.75em}\title}
Alija Sabic's avatar
Alija Sabic committed
44
\def\authorname{Robin Forest}
45
\def\authortext{\href{mailto:me@technikum-wien.at;other@technikum-wien.at?subject=\title}{Ausgef\"uhrt von: \authorname}}
Alija Sabic's avatar
Alija Sabic committed
46
47
48
49
50
51
52
53
54
55
\def\studentid{Personenkennzeichen: 1234567890}
\def\supervisortitle{Betreuer:}
\def\supervisor{1\textsuperscript{st} Supervisor}
\def\secondsupervisor{2\textsuperscript{nd} Supervisor}
\def\place{Vienna}
% Colors
\def\primarycolor{tw-blue}
\def\secondarycolor{tw-green}
\def\accentcolor{tw-gray}
% Misc
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
\author{\authorname}


% ----------------------------------------------------------------------------------------------------------------------------
% Units
% ----------------------------------------------------------------------------------------------------------------------------
\usepackage[binary-units]{siunitx}
\usepackage{xfrac}
\sisetup{quotient-mode=fraction,fraction-function=\sfrac,product-units=single,exponent-product=\times}

% ----------------------------------------------------------------------------------------------------------------------------
% Tables
% ----------------------------------------------------------------------------------------------------------------------------
\usepackage{booktabs,tabu}
\usepackage{multirow}
\usepackage{multicol}
Alija Sabic's avatar
Alija Sabic committed
72

73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
% ----------------------------------------------------------------------------------------------------------------------------
% Hyperlinks
% ----------------------------------------------------------------------------------------------------------------------------
\usepackage{hyperref}
\hypersetup{
    % colorlinks = false, linkbordercolor = {white}, linkbordercolor = tw-green!50, linkbordercolor = white,
    % anchorcolor= tw-green, anchorcolor= white!0, citebordercolor = tw-gray!50, urlbordercolor = tw-blue!50,
    colorlinks = true,
    anchorcolor = black,
    linkcolor = \primarycolor,
    citecolor = \primarycolor,
    urlcolor = \primarycolor
}

% ----------------------------------------------------------------------------------------------------------------------------
% Acronyms
% ----------------------------------------------------------------------------------------------------------------------------
\usepackage[hyperref=true]{acro}
Alija Sabic's avatar
Alija Sabic committed
91
\acsetup{first-long-format=\itshape}
92
93
\input{acronyms}

94
% ----------------------------------------------------------------------------------------------------------------------------
95
96
% ----------------------------------------------------------------------------------------------------------------------------

Alija Sabic's avatar
Alija Sabic committed
97
98
99
100
101
% Required for correct coloring of frames created because of `allowframebreaks` option.
\setbeamercolor{frametitle}{fg=tw-blue}

\begin{document}

102
% Add acronyms used in images or not used at all by adding to the list
103
\acuse{FHTW,FG}
104

Alija Sabic's avatar
Alija Sabic committed
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
% ----------------------------------------------------------------------------------------------------------------------------
% Title & ToC
% ----------------------------------------------------------------------------------------------------------------------------
    \begin{frame}[plain]
        \titlepage
        \addtocounter{framenumber}{-1}
    \end{frame}
    
    \begin{frame}[plain]{Outline}
        \tableofcontents[subsubsectionstyle=hide]
        \addtocounter{framenumber}{-1}
    \end{frame}

% ----------------------------------------------------------------------------------------------------------------------------
% Intro
% ----------------------------------------------------------------------------------------------------------------------------
\section{Intro}
Alija Sabic's avatar
Alija Sabic committed
122
123

    \begin{frame}{Introduction}
124
        \ac{ES}-style beamer template of \acs{UAS} Technikum Wien.
Alija Sabic's avatar
Alija Sabic committed
125
126
    \end{frame}

127
128
129
130
131
132
133
134
135
136
    \note{
        Introduction

        \begin{itemize}
            \item Issue 1
            \item Issue 2
            \item Issue 3
        \end{itemize}
    }

Alija Sabic's avatar
Alija Sabic committed
137
138
139
140
% ----------------------------------------------------------------------------------------------------------------------------
% Main Content
% ----------------------------------------------------------------------------------------------------------------------------
\section{Content}
141
    \begin{frame}[allowframebreaks]{Demonstration}
Alija Sabic's avatar
Alija Sabic committed
142
        \begin{itemize}\itemsep3em
143
            \item References
Alija Sabic's avatar
Alija Sabic committed
144
145
146
            \item Itemize
            \item Enumerate
            \item Description
147
            \item Block
Alija Sabic's avatar
Alija Sabic committed
148
            \item Figures
149
150
            \item Tables
            \item Listings
Alija Sabic's avatar
Alija Sabic committed
151
152
153
        \end{itemize}
    \end{frame}

154
\subsection{References}
155
156
157
158
159
160
161
162
163
164
165
    \begin{frame}{Demonstration}{References}
        \begin{itemize}\itemsep2em
            \item \citet{einstein1905}
            \item \citet{pentz2004}
            \item \citet{latexcompanion}
            \item \citet{daniel1998}
            \item \citet{knuthwebsite}
            \item \cite{article, book, booklet}
        \end{itemize}
    \end{frame}

166
\subsection{Textual}
Alija Sabic's avatar
Alija Sabic committed
167
168
169
170
171
    \begin{frame}{Demonstration}{Itemize}
        \begin{itemize}\itemsep3em
            \item<1-> One
            \item<2-> Two
            \item<3-> Three
172
173
174
175
176
            \begin{itemize}\itemsep1em
                \item<4-> Four
                \item<5-> Five
                \item<6-> Six
            \end{itemize}
Alija Sabic's avatar
Alija Sabic committed
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
        \end{itemize}
    \end{frame}

    \begin{frame}{Demonstration}{Enumerate}
        \begin{enumerate}\itemsep3em
            \item<1-> One
            \item<2-> Two
            \item<3-> Three
        \end{enumerate}
    \end{frame}

    \begin{frame}{Demonstration}{Description}
        \begin{description}\itemsep2em
            \item<1-> [Ant] Ameise
            \item<2-> [Elephant] Elefant
            \item<3-> [Bee] Biene
            \item<4-> [Honey] Honig
        \end{description}
    \end{frame}

197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
    \begin{frame}{Demonstration}{Block}

        \begin{block}<1->{This is a block}
            Lipsum ipsum dolor sit amet, consectetur elit. Morbi ac arcu est, vel poseuere velit.
            In congue erat vel lorem ornare pretium.
        \end{block}

        \begin{exampleblock}<2->{This is an exampleblock}
            Lipsum ipsum dolor sit amet, consectetur elit. Morbi ac arcu est, vel poseuere velit.
            In congue erat vel lorem ornare pretium.
        \end{exampleblock}

        \begin{alertblock}<3->{This is an alertblock}
            Lipsum ipsum dolor sit amet, consectetur elit. Morbi ac arcu est, vel poseuere velit.
            In congue erat vel lorem ornare pretium.
        \end{alertblock}

    \end{frame}

\subsection{Illustrations}
Alija Sabic's avatar
Alija Sabic committed
217
218
219
    \begin{frame}{Demonstration}{Figures}
        \begin{figure}
            \centering
220
221
222
223
224
225
            \includegraphics<1|handout:0>[width=0.4\textwidth]{dilbert1.pdf}%
            \includegraphics<2|handout:0>[width=0.4\textwidth]{dilbert2.pdf}%
            \includegraphics<3|handout:0>[width=0.4\textwidth]{dilbert3.pdf}%
            \includegraphics<handout>[width=0.3\textwidth]{dilbert1.pdf}%
            \includegraphics<handout>[width=0.3\textwidth]{dilbert2.pdf}%
            \includegraphics<handout>[width=0.3\textwidth]{dilbert3.pdf}%
Alija Sabic's avatar
Alija Sabic committed
226
            \caption{\textcopyright~2018 Scott Adams, \url{dilbert.com}}
227
            \label{fig:figure1}
Alija Sabic's avatar
Alija Sabic committed
228
229
230
        \end{figure}
    \end{frame}

231
232
233
234
235
236
237
238
    \begin{frame}{Demonstration}{Listings}
        \begin{adjustbox}{center,max width=0.85\textwidth,max height=\textheight}
            \lstinputlisting[
                caption={C Syntax Highlighting},
                label=lst:listing1,
                style=c,
                emph={EXIT_SUCCESS},
                breaklines=true,
239
            ]{main.c}
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
        \end{adjustbox}
    \end{frame}

\subsection{Tables}
    \begin{frame}{Demonstration}{Tables}
        \begin{table}
            \setlength{\leftmargini}{4mm}
    
            \centering\scriptsize

            \begin{tabu} to 0.95\linewidth {X[2]XXX} \toprule
                
                Material & Symbol & $E_{\textup{g}}$ (\si{\electronvolt}) & Type \\
                \midrule

                \rowfont\bfseries
                \multicolumn{4}{c}{Elements} \\
                diamond   & $C$  & 5.46 & i \\
                silicon   & $Si$ & 1.12 & i \\
                germanium & $Ge$ & 0.67 & i \\
                selenium  & $Se$ & 1.74 & d \\
                \midrule

                \rowfont\bfseries
                \multicolumn{4}{c}{IV-IV Compounds} \\
                silicon carbide & $SiC 3C$ & \num{2.36} & i \\
                silicon carbide & $SiC 4H$ & \num{3.28} & i \\
                silicon carbide & $SiC 6H$ & \num{3.03} & i \\
                \midrule

                \rowfont\bfseries
                \multicolumn{4}{c}{III-V Compounds} \\
                indium phosphide  & $InP$  & \num{1.27}  & d \\
                indium arsenide   & $InAs$ & \num{0.355} & d \\
                gallium nitride   & $GaN$  & \num{3.37}  & d \\
                gallium arsenide  & $GaAs$ & \num{1.42}  & d \\
                aluminium nitride & $AlN$  & \num{6.2}   & d \\

                \bottomrule
            \end{tabu}

            \caption{The bandgab of some semiconductors.}
            \label{tab:table1}
        \end{table}
    \end{frame}

    \begin{frame}{Demonstration}{Tables}
        \begin{table}
            % \tabulinesep=0mm
            % \extrarowsep=0mm
            % \extratabsurround=0mm
            \setlength{\leftmargini}{4mm}
    
            \centering
            \resizebox{0.95\linewidth}{!}{%

            \begin{tabu} to 2.5\linewidth {X[0.2,m]X[0.25,m]X[0.35,m]X[0.3,m]X[c,m]} \toprule
                % \everyrow{\midrule}

                \rowfont{\large\bfseries}
                Unit name & Unit Symbol & Dimension symbol & Quanitity name & Definition\textsuperscript{\normalfont 1}
                \\ \midrule

                \rowfont{\Large}
                \textbf{metre} & \si{\m} & L & length &
                \begin{itemize}\footnotesize
                    \item \textbf{Prior} (\num{1793}): \SI{1/10000000}{} of the meridian through Paris between the North Pole and the Equator.\textsuperscript{FG}
                    \item \textbf{Interim} (\num{1960}): \SI{1650763.73}{} wavelengths in a vacuum of the radiation corresponding to the transition
                          between the $\num{2} \textmd{p}^{\num{10}}$ and $\num{5} \textmd{d}^{\num{5}}$ quantum levels of the krypton-\num{86} atom.
                    \item \textbf{Current} (\num{1983}): The distance travelled by light in vacuum in \SI{1/299792458}{\second}.
                \end{itemize}
                \\ \midrule

                \rowfont{\Large}
                \textbf{kilogram}\textsuperscript{\normalfont 2} & \si{\kg} & M & mass &
                \begin{itemize}\footnotesize
                    \item \textbf{Prior} (\num{1793}): The grave was defined as being the mass (then called weight) of one litre of pure water at its freezing point.\textsuperscript{FG}
                    \item \textbf{Current} (\num{1889}): The mass of a small squat cylinder of $\sim$\SI{47}{\cubic\cm} of platinum-iridium alloy kept in the Pavillon de Breteuil, France.
                          Also, in practice, any of numerous official replicas of it.
                    \item \textbf{Future} (\num{2019}): The \si{\kg} is defined by taking the Planck constant h as exactly
                          \SI{6.62607015e-34}{\joule\second} (\si{\joule} = \si{\kg\square\meter\per\square\second}), given the definitions of the \si{\meter} and the \si{\second}.
                \end{itemize}
                \\ \midrule

                \rowfont{\Large}
                \textbf{second} & \si{\second} & T & time &
                \begin{itemize}\footnotesize
                    \item \textbf{Prior}: \SI{1/86400}{} of a day of \SI{24}{\hour} of \SI{60}{\minute} of \SI{60}{\second}.
                    \item \textbf{Interim} (\num{1956}): \SI{1/31556925.9747}{} of the tropical year for \num{1900} January \num{0} at \SI{12}{\hour} ephemeris time.
                    \item \textbf{Current} (\num{1967}): The duration of \num{9192631770} periods of the radiation corresponding to the transition between the two hyperfine levels of the ground state of the caesium-\num{133} atom.
                \end{itemize}
                \\ \midrule

                \multicolumn{5}{l}{\textsuperscript{1} Interim definitions are given here only when there has been a significant difference in the definition.} \\
                \multicolumn{5}{l}{\textsuperscript{2} Despite the prefix ``kilo-'', the kilogram is the base unit of mass.} \\
                \multicolumn{5}{l}{\textsuperscript{FG} \acf{FG}.} \\

                \bottomrule

            \end{tabu}

            }
            \caption{\acs{SI} base units}
            \label{tab:table2}
        \end{table}
    \end{frame}

Alija Sabic's avatar
Alija Sabic committed
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
% ----------------------------------------------------------------------------------------------------------------------------
% Outro
% ----------------------------------------------------------------------------------------------------------------------------
\section{Outro}
    \begin{frame}{Outro}
    \end{frame}

% ----------------------------------------------------------------------------------------------------------------------------
% Appendix
% ----------------------------------------------------------------------------------------------------------------------------
\section{Appendix}
    \appendix

    % Acronyms
    \begin{frame}[allowframebreaks]{Acronyms}
        \label{acronyms}
363
        \printacronyms
Alija Sabic's avatar
Alija Sabic committed
364
365
366
367
368
    \end{frame}

    % References
    \begin{frame}[allowframebreaks]{References}
        \label{references}
369
        \bibliography{references}
Alija Sabic's avatar
Alija Sabic committed
370
371
372
373
    \end{frame}


\end{document}