demo.tex 10.7 KB
Newer Older
1
2
3
4
% Set to Handout if filename contains "_handout"
\RequirePackage{substr}
\IfSubStringInString{\detokenize{_handout}}{\jobname}{\PassOptionsToClass{handout}{beamer}}{}

Sebastian Endres's avatar
Sebastian Endres committed
5
\documentclass[12pt,aspectratio=169]{beamer}
6
% or try: \documentclass[aspectratio=1610,12pt]{beamer}
Bernhard Heinloth's avatar
Bernhard Heinloth committed
7
\usetheme[book]{neo}
8

Bernhard Heinloth's avatar
Bernhard Heinloth committed
9
10
\usepackage{appendixnumberbeamer}

Michael Eischer's avatar
Michael Eischer committed
11
12
\usepackage{booktabs} % nice tables
\usepackage[scale=2]{ccicons} % creative commons icons
Bernhard Heinloth's avatar
Bernhard Heinloth committed
13

Michael Eischer's avatar
Michael Eischer committed
14
\usepackage{pgfplots} % draw all kinds of fancy plots
Bernhard Heinloth's avatar
Bernhard Heinloth committed
15
16
\usepgfplotslibrary{dateplot}

Michael Eischer's avatar
Michael Eischer committed
17
\usepackage{xspace} % space macro for the following command
Bernhard Heinloth's avatar
Bernhard Heinloth committed
18
19
\newcommand{\themename}{\textbf{\textsc{neo}}\xspace}

Michael Eischer's avatar
Michael Eischer committed
20
\usepackage{listings} % code listings
21

Sebastian Endres's avatar
Sebastian Endres committed
22
23
24
\usepackage{makecell}
\usepackage{colortbl}

Bernhard Heinloth's avatar
Bernhard Heinloth committed
25
% Multiple slides on a page if filename contains "_1x2" or "_2x2"
26
27
28
29
30
31
32
33
34
35
36
\IfSubStringInString{\detokenize{_2x2}}{\jobname}{
	\pgfpagesuselayout{4 on 1}[letterpaper,landscape,border shrink=2.5mm]
	\neoset{background=white}
}{
	\IfSubStringInString{\detokenize{_1x2}}{\jobname}{
		\pgfpagesuselayout{2 on 1}[letterpaper,border shrink=5mm]
		\neoset{background=white}
	}{}
}

% Show notes in neo
37
\neoset{notes=show}
Sebastian Endres's avatar
Sebastian Endres committed
38
%\neoset{progressbar=foot}
Bernhard Heinloth's avatar
Bernhard Heinloth committed
39

Sebastian Endres's avatar
Sebastian Endres committed
40
\title[i7\themename Theme Demo]{i7\themename}
Bernhard Heinloth's avatar
Bernhard Heinloth committed
41
\subtitle{Proposal for a modern Beamer theme}
Bernhard Heinloth's avatar
Bernhard Heinloth committed
42
43
44
\date{\today}
\author{Wolfgang Händler}
\institute{Friedrich-Alexander-Universität Erlangen-Nürnberg}
Sebastian Endres's avatar
Sebastian Endres committed
45
46

\titlegraphic{\includegraphics[height=1.2cm]{theme/images/logo-i7-de.pdf} \hfill \includegraphics[height=1.2cm]{theme/images/logo-fau-tf.pdf}}
Bernhard Heinloth's avatar
Bernhard Heinloth committed
47
48
49

\begin{document}

50
\maketitle[intern]
Bernhard Heinloth's avatar
Bernhard Heinloth committed
51

Michael Eischer's avatar
Michael Eischer committed
52
\begin{frame}{Table of Contents}
Bernhard Heinloth's avatar
Bernhard Heinloth committed
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
  \setbeamertemplate{section in toc}[sections numbered]
  \tableofcontents[hideallsubsections]
\end{frame}

\section{Introduction}

\begin{frame}[fragile]
  The \themename theme is a Beamer theme with minimal visual noise
  based on the \href{https://github.com/matze/mtheme}{\textsc{Metropolis} Beamer Theme} by Matthias Vogelgesang and inspired by the \href{https://github.com/hsrmbeamertheme/hsrmbeamertheme}{\textsc{hsrm} Beamer Theme} by Benjamin Weiss.

  Enable the theme by loading

  \begin{verbatim}    \documentclass{beamer}
    \usetheme{neo}\end{verbatim}

\end{frame}
\begin{frame}[fragile]{Sections}
  Sections group slides of the same topic

  \begin{verbatim}    \section{Elements}\end{verbatim}

  for which \themename provides a nice progress indicator \ldots
\end{frame}

Michael Eischer's avatar
Michael Eischer committed
77
\begin{frame}[fragile]{Presentation notes}
78
  The theme has built-in support for notes
Michael Eischer's avatar
Michael Eischer committed
79
80
81

  \begin{verbatim}    \pnote{Important presentation note}\end{verbatim}

82
83
  \themename can not only create pdfpc files but also full note pages, either located on the side for presentation or embedded for printing
  \begin{verbatim}    \neoset{notes=show}\end{verbatim}
Michael Eischer's avatar
Michael Eischer committed
84
  \pnote{Hi there!}
85
86
  \pnote{We have some text in \textbf{here}!}
  \pnote{Try to use \texttt{notes=preview-right} with \texttt{pdfpc --notes=right ./out/presentation.pdf}}
87
  \pnote<1>{By the way, the command is overlay-aware!}
Michael Eischer's avatar
Michael Eischer committed
88
89
\end{frame}

Bernhard Heinloth's avatar
Bernhard Heinloth committed
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
\section{Elements}

\begin{frame}[fragile]{Typography}
      \begin{verbatim}The theme provides sensible defaults to
\emph{emphasize} text, \alert{accent} parts
or show \textbf{bold} results.\end{verbatim}

  \begin{center}becomes\end{center}

  The theme provides sensible defaults to \emph{emphasize} text,
  \alert{accent} parts or show \textbf{bold} results.
\end{frame}

\begin{frame}{Font feature test}
  \begin{itemize}
    \item Regular
    \item \textit{Italic}
    \item \textsc{SmallCaps}
    \item \textbf{Bold}
    \item \textbf{\textit{Bold Italic}}
    \item \textbf{\textsc{Bold SmallCaps}}
    \item \texttt{Monospace}
    \item \texttt{\textit{Monospace Italic}}
    \item \texttt{\textbf{Monospace Bold}}
    \item \texttt{\textbf{\textit{Monospace Bold Italic}}}
  \end{itemize}
\end{frame}

Sebastian Endres's avatar
Sebastian Endres committed
118
\newcommand{\colorsample}[3]{\makecell{\textcolor{nDark#1}{nDark#1} / \textcolor{#3}{#3}} & \makecell{\textcolor{n#1}{n#1} / \textcolor{#2}{#2}} & \cellcolor{FAUBlau}\textcolor{nLight#1}{nLight#1}}
Bernhard Heinloth's avatar
Bernhard Heinloth committed
119
120
121
\begin{frame}{Predefined Colors}
  \begin{center}
    \begin{tabular}{ccc}
Sebastian Endres's avatar
Sebastian Endres committed
122
123
124
125
126
127
128
129
      \colorsample{Red}{RWRot}{RWDunkelrot} \\
      \colorsample{Green}{NatGrün}{NatDunkelgrün} \\
      \colorsample{Blue}{FAUBlau}{FAUDunkelblau} \\
      \colorsample{Cyan}{MedBlau}{MedDunkelblau} \\
      \colorsample{Yellow}{PhilGelb}{PhilOrange} \\
      \colorsample{Grey}{TFMetallic}{TFDunkelmetallic} \\
      & \textcolor{nBlack}{nBlack} / \textcolor{FAUSchwarz}{FAUSchwarz} \\
      & \colorbox{nBlack}{\textcolor{nWhite}{nWhite}} / \colorbox{FAUSchwarz}{\textcolor{FAUWeiß}{FAUWeiß}} \\
Bernhard Heinloth's avatar
Bernhard Heinloth committed
130
131
132
133
    \end{tabular}
  \end{center}
\end{frame}

Bernhard Heinloth's avatar
Bernhard Heinloth committed
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
\begin{frame}{Lists}
  \begin{columns}[T,onlytextwidth]
    \column{0.33\textwidth}
      Items
      \begin{itemize}
        \item Milk \item Eggs \item Potatos
      \end{itemize}

    \column{0.33\textwidth}
      Enumerations
      \begin{enumerate}
        \item First, \item Second and \item Last.
      \end{enumerate}

    \column{0.33\textwidth}
      Descriptions
      \begin{description}
        \item[PowerPoint] Meeh. \item[Beamer] Yeeeha.
      \end{description}
  \end{columns}
\end{frame}
\begin{frame}{Animation}
  \begin{itemize}[<+->]
    \item \alert<4>{This is\only<4>{ really} important}
    \item Now this
    \item And now this
  \end{itemize}
\end{frame}
\begin{frame}{Figures}
  \begin{figure}
    \newcounter{density}
    \setcounter{density}{20}
    \begin{tikzpicture}
      \def\couleur{alerted text.fg}
      \path[coordinate] (0,0)  coordinate(A)
                  ++( 90:5cm) coordinate(B)
                  ++(0:5cm) coordinate(C)
                  ++(-90:5cm) coordinate(D);
      \draw[fill=\couleur!\thedensity] (A) -- (B) -- (C) --(D) -- cycle;
      \foreach \x in {1,...,40}{%
          \pgfmathsetcounter{density}{\thedensity+20}
          \setcounter{density}{\thedensity}
          \path[coordinate] coordinate(X) at (A){};
          \path[coordinate] (A) -- (B) coordinate[pos=.10](A)
                              -- (C) coordinate[pos=.10](B)
                              -- (D) coordinate[pos=.10](C)
                              -- (X) coordinate[pos=.10](D);
          \draw[fill=\couleur!\thedensity] (A)--(B)--(C)-- (D) -- cycle;
      }
    \end{tikzpicture}
    \caption{Rotated square from
    \href{http://www.texample.net/tikz/examples/rotated-polygons/}{texample.net}.}
  \end{figure}
\end{frame}
\begin{frame}{Tables}
  \begin{table}
    \caption{Largest cities in the world (source: Wikipedia)}
    \begin{tabular}{@{} lr @{}}
      \toprule
      City & Population\\
      \midrule
      Mexico City & 20,116,842\\
      Shanghai & 19,210,000\\
      Peking & 15,796,450\\
      Istanbul & 14,160,467\\
      \bottomrule
    \end{tabular}
  \end{table}
\end{frame}
\begin{frame}{Blocks}
  Three different block environments are pre-defined and may be styled with an
  optional background color.

  \begin{columns}[T,onlytextwidth]
    \column{0.5\textwidth}
      \begin{block}{Default}
        Block content.
      \end{block}

      \begin{alertblock}{Alert}
        Block content.
      \end{alertblock}

      \begin{exampleblock}{Example}
        Block content.
      \end{exampleblock}

    \column{0.5\textwidth}

      \neoset{block=fill}

      \begin{block}{Default}
        Block content.
      \end{block}

      \begin{alertblock}{Alert}
        Block content.
      \end{alertblock}

      \begin{exampleblock}{Example}
        Block content.
      \end{exampleblock}

  \end{columns}
\end{frame}
\begin{frame}[fragile]{Code}
240
  \begin{lstlisting}[language=C,basicstyle=\ttfamily]
Bernhard Heinloth's avatar
Bernhard Heinloth committed
241
242
#include <stdio.h>

243
244
245
int main() {
    printf("Hello World!");
    return 0;
Bernhard Heinloth's avatar
Bernhard Heinloth committed
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
}
  \end{lstlisting}
\end{frame}
\begin{frame}{Math}
  \begin{equation*}
    e = \lim_{n\to \infty} \left(1 + \frac{1}{n}\right)^n
  \end{equation*}
\end{frame}
\begin{frame}{Line plots}
  \begin{figure}
    \begin{tikzpicture}
      \begin{axis}[
        mlineplot,
        width=0.9\textwidth,
        height=6cm,
      ]

        \addplot {sin(deg(x))};
        \addplot+[samples=100] {sin(deg(2*x))};

      \end{axis}
    \end{tikzpicture}
  \end{figure}
\end{frame}
\begin{frame}{Bar charts}
  \begin{figure}
    \begin{tikzpicture}
      \begin{axis}[
        mbarplot,
        xlabel={Foo},
        ylabel={Bar},
        width=0.9\textwidth,
        height=6cm,
      ]

      \addplot plot coordinates {(1, 20) (2, 25) (3, 22.4) (4, 12.4)};
      \addplot plot coordinates {(1, 18) (2, 24) (3, 23.5) (4, 13.2)};
      \addplot plot coordinates {(1, 10) (2, 19) (3, 25) (4, 15.2)};

      \legend{lorem, ipsum, dolor}

      \end{axis}
    \end{tikzpicture}
  \end{figure}
\end{frame}
\begin{frame}{Quotes}
  \begin{quote}
    Veni, Vidi, Vici
  \end{quote}
\end{frame}

{%
298

Sebastian Endres's avatar
Sebastian Endres committed
299
\neoset{frametitle icon=i7}
300
301
\neoset{footer style=standout}
\neoset{footer=author title}
Bernhard Heinloth's avatar
Bernhard Heinloth committed
302
\begin{frame}[fragile]{Header icon and frame footer}
Sebastian Endres's avatar
Sebastian Endres committed
303
304
    You can embed the i7 (or FAU) logo on the top right corner using
    \verb|    \neoset{frametitle icon=i7}|
305
306
307
308

    A footer for conferences can be displayed using
    \verb|    \neoset{footer=author title}|

Bernhard Heinloth's avatar
Bernhard Heinloth committed
309
    In adddition, \themename defines a custom beamer template to add a text to the footer. It can be set via
310
311
312
    \verb|    \setbeamertemplate{frame footer}{My custom footer}|

    To change the background color of the footer, simply use \verb|    \neoset{footer style=standout}|
Bernhard Heinloth's avatar
Bernhard Heinloth committed
313
\end{frame}
314
315
316
317
318
319

\begin{frame}[fragile]{Header icon}{with a frame subtitle}
    Be cautious when mixing framtitel icons and frame subtitles.

    If a frame subtitle is given for the current slide, the frametitle icon is replaced.
\end{frame}
Bernhard Heinloth's avatar
Bernhard Heinloth committed
320
321
322
323
}

\begin{frame}{References}
  Some references to showcase [allowframebreaks] \cite{knuth92,ConcreteMath,Simpson,Er01,greenwade93}
324
  References can also be added in place as footnote\footnote{Just use a normal footnote which contains lots and lots of text and can be created using \texttt{$\backslash$footnote\{\}}}
Bernhard Heinloth's avatar
Bernhard Heinloth committed
325
326
327
328
329
330
331
332
\end{frame}

\section{Conclusion}

\begin{frame}{Summary}

  Get the source of this theme from

Sebastian Endres's avatar
Sebastian Endres committed
333
  \begin{center}\url{https://gitlab.cs.fau.de/sedrubal/masterarbeit/i7neo.git}\end{center}
Bernhard Heinloth's avatar
Bernhard Heinloth committed
334
335
336
337
338
339
340
341
342

  The theme \emph{itself} is licensed under a
  \href{http://creativecommons.org/licenses/by-sa/4.0/}{Creative Commons
  Attribution-ShareAlike 4.0 International License}.

  \begin{center}\ccbysa\end{center}

\end{frame}

343
344
% Not visible in handout
\begin{frame}<handout:0>[standout]
Bernhard Heinloth's avatar
Bernhard Heinloth committed
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
  Questions?
\end{frame}

\appendix

\begin{frame}[fragile]{Backup slides}
  Sometimes, it is useful to add slides at the end of your presentation to
  refer to during audience questions.

  The best way to do this is to include the \verb|appendixnumberbeamer|
  package in your preamble and call \verb|\appendix| before your backup slides.

  \themename will automatically turn off slide numbering and progress bars for
  slides in the appendix.
\end{frame}

\begin{frame}[allowframebreaks]{References}

  \bibliography{demo}
  \bibliographystyle{abbrv}

\end{frame}

\end{document}