Debian Codegraph @

texmf-dist/doc/latex/beamertheme-gotham/section-Gotham.tex

raw
1 \documentclass[aspectratio=169]{beamer}
2 \usetheme{gotham}
3
4 \usepackage{standalone}
5 \usepackage{tikz}
6 \usepackage{pgfplots}
7 \usepackage{tabularray} % Typeset tabulars and arrays (contains equivalent of longtable, booktabs and dcolumn at least)
8 \UseTblrLibrary{booktabs} % to load extra commands from booktabs
9 \usepackage{changepage}
10 \usepackage{minted}
11 \definecolor{codeback}{rgb}{0.90,0.91,0.92}
12 \definecolor{codebackdark}{rgb}{0.10,0.11,0.12}
13
14 \newcommand{\famName}[1]{\textsc{#1}}
15 \newcommand{\themename}{\textbf{\textsc{Gotham}}}
16
17
18 \begin{document}
19
20 \section{Gotham Theme}
21
22 % FRAME
23 \begin{frame}[fragile]{Gotham package}
24
25 The \themename{} theme is a Beamer theme with a minimal-ish visual style largely inspired by the \href{https://github.com/matze/mtheme}{\textsc{Metropolis} Beamer Theme} by Matthias \famName{Vogelgesang} (and some other Beamer themes).
26
27 Yet, \themename{} is highly extendable and versatile.
28 \bigskip
29
30 First, enable the theme by classically loading it:
31
32 \begin{minted}{tex}
33 \documentclass{beamer}
34 \usetheme{gotham}
35 \end{minted}
36
37 Then, all the customization can be performed at any moment in the presentation using:
38
39 \begin{minted}{tex}
40 \gothamset{<option>=...}
41 \end{minted}
42 \end{frame}
43
44
45 \subsection{Fonts}
46
47 % FRAME
48 \begin{frame}[fragile]{Gotham title formats}
49 Note, that you have to have Mozilla's \emph{Fira Sans} font and XeTeX or LuaTeX installed to enjoy this wonderful typography.
50
51 \begin{columns}[T,onlytextwidth]
52 \column{0.49\textwidth}
53 \themename{} supports 4 different title formats \mintinline{tex}|\gothamset{format frametitle=}|
54 \begin{itemize}
55 \item regular
56 \item \MakeLowercase{Lower}
57 \item \MakeUppercase{Upper}
58 \item \MakeTitlecase{Title Case}
59 \end{itemize}
60 \column{0.49\textwidth}
61 \themename{} supports 3 different title shape \mintinline{tex}|\gothamset{shape frametitle=...}|:
62 \begin{itemize}
63 \item regular
64 \item \textsc{Small caps}
65 \item \textit{italic}
66 \end{itemize}
67 \end{columns}
68
69 \vspace{2em}
70 They can either be set at once for every title type or individually.
71 \end{frame}
72
73 { \gothamset{format frametitle=upper, shape frametitle=italic}
74 % FRAME
75 \begin{frame}{Titles: Upper and italic}
76 This frame uses the title format options: \mintinline{tex}|format frametitle=upper|, \mintinline{tex}|shape frametitle=italic|.
77 \end{frame}
78 }
79
80 { \gothamset{shape frametitle=smallcaps, format frametitle=titlecase}
81 % FRAME
82 \begin{frame}{Titles: Small caps and titlecase}
83 This frame uses the title format options: \mintinline{tex}|shape frametitle=smallcaps|, \mintinline{tex}|format frametitle=titlecase|.
84
85 \begin{alertblock}{Potential Problems}
86 Be aware that not every font supports small caps.
87 If for example you typeset your presentation with pdfTeX and the Computer Modern Sans Serif font, every text in \mintinline{tex}{smallcaps} will be typeset with the Computer Modern Serif font instead.
88 Please refer to the documentation if you consider using it.
89
90 As a rule of thumb: just use it for plaintext-only titles.
91 \end{alertblock}
92 \end{frame}
93 }
94
95 { \gothamset{format frametitle=lower}
96 % FRAME
97 \begin{frame}{Titles: LOWER and regular}
98 This frame uses the title format options: \mintinline{tex}{format frametitle=lower}, \mintinline{tex}{shape frametitle=regular}.
99 \end{frame}
100 }
101
102
103 \subsection{Colors}
104
105 { \gothamset{background=dark}
106 % FRAME
107 \begin{frame}[fragile]{Presentation style via background color}
108 The color mode (a.k.a. background color) can be changed using:
109 \begin{minted}[bgcolor=codebackdark]{tex}
110 \gothamset{background=dark | light | transparent}
111 \end{minted}
112 \end{frame}
113 }
114
115 % FRAME
116 \begin{frame}[fragile]{Blocks}
117 Three different block environments are pre-defined and may be styled with an optional background color.
118
119 \begin{columns}[T,onlytextwidth]
120 \column{0.3\textwidth}
121 \begin{minted}{tex}
122 \gothamset{
123 block=native}
124 \end{minted}
125
126 \gothamset{block=native}
127 \begin{block}{Default}
128 Block content.
129 \end{block}
130
131 \begin{alertblock}{Alert}
132 Block content.
133 \end{alertblock}
134
135 \begin{exampleblock}{Example}
136 Block content.
137 \end{exampleblock}
138
139 \column{0.3\textwidth}
140
141 \gothamset{block=transparent}
142 \begin{minted}{tex}
143 \gothamset{
144 block=transparent}
145 \end{minted}
146
147 \begin{block}{Default}
148 Block content.
149 \end{block}
150
151 \begin{alertblock}{Alert}
152 Block content.
153 \end{alertblock}
154
155 \begin{exampleblock}{Example}
156 Block content.
157 \end{exampleblock}
158
159 \column{0.3\textwidth}
160
161 \gothamset{block=fill}
162 \begin{minted}{tex}
163 \gothamset{
164 block=fill}
165 \end{minted}
166
167 \begin{block}{Default}
168 Block content.
169 \end{block}
170
171 \begin{alertblock}{Alert}
172 Block content.
173 \end{alertblock}
174
175 \begin{exampleblock}{Example}
176 Block content.
177 \end{exampleblock}
178
179 \end{columns}
180 \end{frame}
181
182 {\gothamset{colorset=red}
183 % FRAME
184 \begin{frame}[fragile]{Color customization}
185 The color theme can be used only in preamble with \mintinline{tex}|\usecolortheme{wolverine}| and without guarantees on the visual aspect.
186
187 \themename{} offers predefined color setup at any time through \mintinline{tex}|\gothamset{colorset=red}|
188
189 Otherwise, the colors can be changed manually using:
190 \begin{minted}{tex}
191 \colorlet{colorPale}{gPaleYell} % BG in light/normal mode
192 \colorlet{colorDark}{gDarkBlack} % FG in light/normal mode
193 \colorlet{colorA}{gDarkTeal} % frametitle, standin.out,
194 \colorlet{colorAreversed}{gLightTeal} % frametitle, standin.in,
195 \colorlet{colorB}{gMidGrey} % gray BG : progress bar, blocks
196 \colorlet{colorC}{gDeepYellOr} % progress bar
197 \colorlet{colorD}{gLightOrange} % alert
198 \colorlet{colorE}{gLightGreen} % example
199 \end{minted}
200 \end{frame}
201 }
202
203
204 \subsection{Inner}
205
206 % FRAME
207 \begin{frame}[fragile]{Title page}
208 \themename{} offers the possibility to adapt the title page layout (printed with \mintinline{tex}|\maketitle| or \mintinline{tex}|\titlepage|).
209 This can be achieved using:
210 \begin{minted}{tex}
211 \defbeamertemplate{title page}{your name}{your defintion}
212 \gothamset{title page= your name}
213 \end{minted}
214
215 \themename{} also predefined several templates such as:
216 \mintinline{tex}$gotham normal$ | \mintinline{tex}$gotham splitvert$ | \mintinline{tex}$gotham dividedpic$ | \mintinline{tex}$gotham reversed$
217 \end{frame}
218
219 % FRAME
220 \begin{frame}[fragile]{Table of contents}
221 \themename{} comes with the possibility to apply different styles for your table of contents (ToC) page.
222 You can define your own ToC style as it follows:
223 \begin{minted}{tex}
224 \defbeamertemplate{toc page}{your name}{your def}
225 \gothamset{tocframe template= your name}
226 \end{minted}
227 Then, referring to this template using the frame option \mintinline{tex}|[toc]| in your presentation:
228 \begin{minted}{tex}
229 \begin{frame}[toc]{Table of contents}
230 \tableofcontents%[hideallsubsections]
231 \end{frame }
232 \end{minted}
233
234 Or using one of the \themename{} predefined templates, such as: \mintinline{tex}$gotham simple | gotham bullet$
235 \end{frame}
236
237 % FRAME
238 \begin{frame}[fragile]{Sections}
239 \themename{} provides a multiple options to tune sections (respectively \mintinline{tex}|part|, \mintinline{tex}|section|, \mintinline{tex}|subsection| and \mintinline{tex}|subsubsection|).
240
241 The section command \mintinline{tex}|\section{Elements}| from Beamer will appear very different.
242 The section page will appear or disappear thanks to: \mintinline{tex}$\gothamset{sectionframe default=<on|off>}$, while its layout (when appearing) is controlled by:
243 \begin{minted}{tex}
244 \defbeamertemplate{part|sub|subsub|section frame}
245 {your name}{your def}
246 \gothamset{sectionframe template= your name}
247 \end{minted}
248
249 \themename{} predefined template are: \mintinline{tex}$gotham progressbar | gotham simple |$ \mintinline{tex}$gotham splitvert progressbar |$ \mintinline{tex}$gotham splitvert simple | gotham progressvert$
250 \end{frame}
251
252 % FRAME
253 \begin{frame}[fragile]{Sections contents}
254 After the section page, you can (de)activate a page with a table of contents for the section using \mintinline{tex}$\gothamset{sectiontocframe default=<on|off>}$, and its layout is controlled by:
255 \begin{minted}{tex}
256 \defbeamertemplate{toc subsection frame}{your name}{your def}
257 \gothamset{sectionframe template= your name}
258 \end{minted}
259
260 \themename{} predefined template are: \mintinline{tex}$gotham simple | gotham bullet$
261 \end{frame}
262
263 % FRAME
264 \begin{frame}[fragile, watermark]{Watermark}
265
266 With \themename{} you can locally or globally add watermark to your slides by using:
267 \begin{minted}{tex}
268 \defbeamertemplate{background}{watermark/your name}{your def}
269 \gothamset{watermark template= your name}
270 \end{minted}
271
272 Then, this watermark can be turned on locally using \mintinline{tex}|\begin{frame}[watermark]| or globally with \mintinline{tex}|\gothamset{watermark default= on}| .
273 \end{frame}
274
275 % FRAME
276 \begin{standinenv}
277 \begin{frame}[fragile]{Standin}
278
279 \themename{} comes with 2 environments/special layouts named \mintinline{tex}|standin| and \mintinline{tex}|standout|.
280 These special layouts can be used to emphasize some content or last slide\textellipsis
281
282 This layout can be turned on using \mintinline{tex}|\begin{frame}[standin]| or using the dedicated environment (\mintinline{tex}|\begin{standinenv}\begin{frame}...\end{frame}\end{standinenv}|).
283
284 Note that the background can also be tuned using:
285 \begin{minted}{tex}
286 \defbeamertemplate{background canvas}{standin/name}{your def}
287 \gothamset{standin BG template= name}
288 \end{minted}
289
290 \end{frame}
291 \end{standinenv}
292
293 % FRAME
294 \begin{frame}[standout, watermark]{Standout}
295 Here is an example of standout (working as standin), which can be combined with a watermark.
296
297 Another difference, apart the obvious color change is the font size and series.
298 \end{frame}
299
300
301 \subsection{Outer}
302
303 {\setbeamertemplate{frame footer}{My custom footer}
304 % FRAME
305 \begin{frame}[fragile]{Frame footer}
306 \themename{} defines a custom Beamer template to add a text to the footer.
307 It can be set via
308 \begin{minted}{tex}
309 \setbeamertemplate{frame footer}{My custom footer}
310 \end{minted}
311
312 Even after redefining (or not) your frame footer template, you can locally remove it with the frame option \mintinline{tex}|\begin{frame}[nofooter]|.
313 \end{frame}
314 }
315
316 \title[your shorttitle]{Gotham}
317 \date[shortdate]{\today}
318 \author[your shortauthor name]{Romain NOËL}
319 % FRAME
320 \begin{frame}[fragile, rotateFooter]{rotateFooter}
321 The default footer from \themename{}, it displays the \mintinline{tex}|shortdate|, \mintinline{tex}|shorttitle| and \mintinline{tex}|shortauthor|.
322 So by filling these fields in your document setup, you will see them appear in your footer:
323 \begin{minted}{tex}
324 \title[your shorttitle]{Your title}
325 \date[shortdate]{\today}
326 \author[your shortauthor name]{John DOE}
327 \end{minted}
328
329 Since we always need some extra space on some frames that would like to overlay a bit the footer, \themename{}'s footer also offers possibility to be put locally on the side using \mintinline{tex}|\begin{frame}[rotateFooter]|, or globally with
330 \begin{minted}{tex}
331 \gothamset{rotateFooter default=on}
332 \end{minted}
333 If it has set globally, it can be deactivated locally with the frame option \mintinline{tex}|\begin{frame}[norotateFooter]|.
334 \end{frame}
335
336 \title[]{Gotham}
337 \date[]{\today}
338 \renewcommand{\gothamRightFiligrane}{%
339 \rotatebox{90}{gotham right filigrane pattern}
340 }
341 % FRAME
342 \begin{frame}[edging, fragile]{Edging}
343 \themename{} has two hook commands, \mintinline{tex}|\gothamRightFiligrane| and \mintinline{tex}|\gothamLeftFiligrane|, that can be redefined to customize what to display in the edgings (a.k.a. filigrane, a.k.a. sidebar).
344 As an example, one could do:
345 \begin{minted}{tex}
346 \renewcommand{\gothamRightFiligrane}{%
347 \rotatebox{90}{gotham right filigrane pattern}
348 }
349 \end{minted}
350
351 Then, to set if it should be displayed or not, globally
352 \begin{minted}{tex}
353 \gothamset{edging default=on}
354 \end{minted}
355 or locally with the frame option \mintinline{tex}|\begin{frame}[edging]| or \mintinline{tex}|\begin{frame}[noedging]|.
356 \end{frame}
357
358 % FRAME
359 % \begin{nofootlineenv}
360 \begin{frame}[fragile,noedging,nofooter]{Really wide contents}
361 \begin{adjustwidth}{-2em}{-2em}
362 If you want a really wide content in your frame, you can change the size of your margin (requires \mintinline{tex}|\usepackage{changepage}| in your preamble).
363 You can also suppress the edging (\mintinline{tex}|[noedging]|) and footer (\mintinline{tex}|[nofooter]|) or even more radically footline (\mintinline{tex}|[nofootline]|).
364
365 Here is an example combining them:
366 \begin{minted}{tex}
367 \begin{frame}[noedging,nofootline]{extended frame}
368 \begin{adjustwidth}{-2em}{-2em}% 2em extra to the left and 2em for right margin.
369 wide content
370 \end{adjustwidth}
371 \end{frame }
372 \end{minted}
373 \end{adjustwidth}
374 \end{frame}
375 % \end{nofootlineenv}
376
377 {%
378 \renewcommand{\gothamInstituteLogoSquare}[1][4ex]{%
379 \includegraphics[height=#1]{gotham-logo.pdf}
380 }
381 \logo{extra LOGO}
382 % FRAME
383 \begin{frame}[fragile]{Frametitle}
384 \framesubtitle{with a subtitle}
385 The frametile template brought by \themename{} is relatively classic: it supports \mintinline{tex}|\subframetitle| and frame continuation (with \mintinline{tex}|[allowframebreaks]|) through templates that can be tuned.
386 Nevertheless, it the frametitle template also includes a hook for your institute logo in the top right corner, leaving the command \mintinline{tex}|\logo{}| free for your extra logos.
387
388 So, one can have both logos using:
389 \begin{minted}{tex}
390 \renewcommand{\gothamInstituteLogoSquare}[1][4ex]{
391 \includegraphics[height=#1]{gotham-logo.pdf}
392 }
393 \logo{extra LOGO}
394 \end{minted}
395 \end{frame}
396 }
397
398 \author[]{Romain NOËL}
399 {\gothamset{progressbar position=left, progressbar style= rounded box, progressbar advancement= brlt, numbering= circle}
400 % FRAME
401 \begin{frame}[fragile]{Numbering and progressbar}
402
403 \themename{} theme can numbering your frames in the bottom right corner using different styles.
404 You can also decide to use a progression bar to indicate how much of your presentation remains.
405
406 The setup of numbering and progression bar can be performed through:
407 \begin{minted}{tex}
408 \gothamset{numbering= totalframenumber, progressbar position=foot}
409 \end{minted}
410
411 Numbering available options are: \mintinline{tex}$none | framenumber | totalframenumber | appendixframenumber | pagenumber $ \mintinline{tex}$| totalpagenumber | circle$
412
413 Progressbar position available options are: \mintinline{tex}$none | head | frametitle | foot | circlehead | left | right$
414 \end{frame}
415 }
416
417
418 \end{document}
419 %EoF