summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/beamer-contrib/themes/beamertheme-pure-minimalistic/beamertheme-pure-minimalistic-demo.tex
blob: 888f85b64dca08cded6c74312b277ccf91cf2c7e (plain)
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
% A pure minimalistic LaTeX-Beamer theme for everyone to use.
% Copyright (C) 2020 Kai Norman Clasen

% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.

% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
% GNU General Public License for more details.

% You should have received a copy of the GNU General Public License
% along with this program.  If not, see <https://www.gnu.org/licenses/>.

% This file is part of beamerthemepureminimalistic.

% If problems/bugs are found or enhancements are desired, please contact
% me over: https://github.com/kai-tub/latex-beamer-pure-minimalistic

\documentclass[aspectratio=169]{beamer}
% should also look nice for the classic aspectratio
% of course, than the text has to be refitted
% \documentclass{beamer} 
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{tikz}
\usetheme[showmaxslides, darkmode]{pureminimalistic}

\usepackage[backend=biber, doi=false, maxbibnames=2, maxcitenames=2,%
            style=numeric, sorting=none, url=false, eprint=false]{biblatex}
\addbibresource{demo_bib.bib}
% this makes it possible to add backup slides, without counting them
\usepackage{appendixnumberbeamer}
\renewcommand{\appendixname}{\texorpdfstring{\translate{appendix}}{appendix}}

% if loaded after begin{document} a warning will appear: "pdfauthor already used"
\title[short title]{This is the normal length of a research paper:
always longer than you would expect}
\author{Kai Norman Clasen}
\institute{Insitute name} 
\date{\today}

\begin{document}
% has to be loaded outside of a frame to work!
\maketitle

% For longer table of contents, I find it cleaner to
% use no footline.
\begin{frame}[plain, noframenumbering]{Outline}
  \tableofcontents
\end{frame}

\section{Aspect ratio}
\begin{frame}[fragile]{Aspect ratio}
  This pdf uses a 16:9 aspect ratio. To utilize
  this version, simply use:
  \begin{verbatim}
    \documentclass[aspectratio=169]{beamer}
    \end{verbatim}
  \vfill
  The default is a 4:3 aspect ratio.
  \begin{verbatim}
    \documentclass{beamer}
  \end{verbatim}
\end{frame}

\section{vfilleditems}
\begin{frame}[fragile]{Using vfilleditems}
  \begin{verbatim}
    Use the provided \vfilleditems environment 
    to create nicely spaced bullet points.

    \begin{vfilleditems}
      \item I like it to have my bullet points
      \item evenly spaced from one another
      \item then few bullet points, are not crammed on 
      the upper part of the slide
    \end{vfilleditems}
    \end{verbatim}
\end{frame}

\begin{frame}{Using vfilleditems}
  \begin{vfilleditems}
    \item I like it to have my bullet points
    \item evenly spaced from one another
    \item then few bullet points, are not crammed on
    the upper part of the slide
  \end{vfilleditems}
\end{frame}

\section{Fonts}
\begin{frame}[fragile]{Fonts}
  Fonts:

  {\small This is small}

  This is normal size

    {\large This is large}
  \vfill
  Per default the \emph{Fira Font} Package is
  used. The \emph{Helvetica Font} is also bundled into this
  package.
\end{frame}

\begin{frame}[fragile]{Fonts}
  To use \emph{Helvetica} instead of \emph{Fira Fonts}
  \begin{verbatim}
    \usetheme[helvetica]{pureminimalistic}
  \end{verbatim}
  \vfill
  To disable the \emph{Fira Fonts} and use the default font
  \begin{verbatim}
    \usetheme[nofirafonts]{pureminimalistic}
  \end{verbatim}
\end{frame}

\section{Color}
\begin{frame}[fragile]{Color}
  To overwrite the theme color
  \begin{enumerate}
    \item Define a new color
    \item redefine the themes color (before document begins)
  \end{enumerate}
\end{frame}

\begin{frame}[fragile]{Change color example}
  \small
  \begin{verbatim}
  \usetheme{pureminimalistic}
  \definecolor{textcolor}{RGB}{0, 0, 120}
  \definecolor{title}{RGB}{0, 0, 0}
  \definecolor{footercolor}{RGB}{133, 133, 133}
  \definecolor{bg}{RGB}{25, 116, 210}

  \renewcommand{\beamertextcolor}{textcolor}
  \renewcommand{\beamerbgcolor}{bg}
  \renewcommand{\beamerfootertextcolor}{footercolor}
  \renewcommand{\beamertitlecolor}{title}
  \end{verbatim}
\end{frame}

\begin{frame}[fragile]{Dark mode}
  I've included a simple way to use a dark mode
  color theme. To use the dark color mode, provide the \texttt{darkmode}
  option.
  \begin{verbatim}
    \usetheme[darkmode]{pureminimalistic}
    \end{verbatim}
  Sometimes, the logos have to be changed to look nice on a
  dark background. For now, I am simply loading different
  files if \texttt{darkmode} is used.
\end{frame}

\section{Graphics}
\begin{frame}{Logos}
  Commands setting the logos:
  \begin{vfilleditems}
    \item \texttt{\textbackslash{}logotitle} -- Command used for the title page.
    Here \texttt{\textbackslash{}linewidth} corresponds to the entire paper width.
    \item \texttt{\textbackslash{}logoheader} -- Command used for the header.
    Here \texttt{\textbackslash{}linewidth} corresponds to a smaller box,
    as the horizontal space is shared with the title.
    \item \texttt{\textbackslash{}logofooter} -- Command used for the footer.
    Here \texttt{\textbackslash{}linewidth} corresponds to a smaller box,
    as the horizontal space is shared with the footer text.
  \end{vfilleditems}
\end{frame}

\begin{frame}[fragile]{Logos -- Load own logo}
  To use your own logos, simply redefine the commands and adjust the sizes.
  \begin{verbatim}
 \renewcommand{\logotitle}{\includegraphics%
   [width=.2\linewidth]{alternative_logo/gameboy.png}}
 \renewcommand{\logoheader}{\includegraphics%
   [width=.5\linewidth]{alternative_logo/gameboy.png}}
 \renewcommand{\logofooter}{\includegraphics%
   [width=.15\linewidth]{alternative_logo/console.png}}
  \end{verbatim}
\end{frame}

\begin{frame}[fragile]{Logos -- Disable logo}
  To disable the logo, overwrite the default logo command with an empty
  command.
  \begin{verbatim}
 \renewcommand{\logofooter}{}
  \end{verbatim}
\end{frame}

\begin{frame}{Figures}
  I also changed the default caption settings to not 
  include \texttt{Figure:} and reduced the font size.
    \begin{figure}[H]
        \centering
        \begin{columns}[T]
            \begin{column}{.3\linewidth}
                \includegraphics[width=\linewidth]{example-image-a}
                \caption{Example A}
            \end{column}
            \begin{column}{.3\linewidth}
                \includegraphics[width=\linewidth]{example-image-b}
                \caption{Example B}
            \end{column}
        \end{columns}
    \end{figure}
\end{frame}

\begin{frame}[fragile]{Figures -- Set background watermark}
  There is no extra option to define a background watermark, but here
  is a command that could be used to create one manually:
  \vfill
  \begin{verbatim}
\setbeamertemplate{background}{%
  \tikz[overlay,remember picture]%
  \node[opacity=0.8]at (current page.center)%
  {\includegraphics[width=.2\linewidth]%
  {example-image-a}};%
}
  \end{verbatim}
\end{frame}

{
  \setbeamertemplate{background}{%
    \tikz[overlay,remember picture]%
    \node[opacity=0.8]at (current page.center)%
    {\includegraphics[width=.2\linewidth]%
    {example-image-a}};%
  }
\begin{frame}{Figures -- Set background watermark}
  Usually you would add this command to specific
  frames by enclosing this command and all desired frames with
  curly brackets.
  \vfill
  See the source code of this \emph{*.tex} file for an
  example.
\end{frame}
}


\section{Footer options}
\begin{frame}[fragile]{Disable footer}
  If you do not want to use a footer, disable it with:
  \begin{verbatim}
    \usetheme[nofooter]{pureminimalistic}
  \end{verbatim}
\end{frame}

\begin{frame}[fragile]{Show max slide numbers}
  For these slides, I used the option to
  show the maximum number of slides. To activate it
  one has to activate it with:
  \begin{verbatim}
    \usetheme[showmaxslides]{pureminimalistic}
  \end{verbatim}
  Usually, I prefer to not show the maximum number of
  slides, as the people tend to lose focus if they know
  the last few slides are shown.
\end{frame}

\section{Citations}
\begin{frame}{Citations}
  I've also changed the bibliography options to be minimalistic:

  Just showing a simple \texttt{\textbackslash{}cite} \cite{AlexNet}
  \vfill 
  \printbibliography
\end{frame}

\appendix % do not count the following slides for the total number
\section*{Backup Slides}
\begin{frame}[plain, noframenumbering]
  \centering
  \vfill
  {\fontsize{40}{50}\selectfont Backup Slides}
  \vfill
\end{frame}

\begin{frame}{What happened to the page numbering?}
  \begin{vfilleditems}
    \item I've used the \texttt{appendixnumberbeamer}
    package, which resets the frame counting after calling
    \texttt{\textbackslash{}appendix}
    \item Depending on the used pdf viewer, the total
    count of frames shouldn't include the backup slides and
    won't demotivate the audience.
    \item Usually, I would use a \texttt{plain} frame
    for the backup slides.
  \end{vfilleditems}
\end{frame}

\end{document}