summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/beamertheme-gotham/section-Gotham.tex
blob: eb9b4bef0dd8491098867dc467986ab2585f2004 (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
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
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
\documentclass[aspectratio=169]{beamer}
\usetheme{gotham}

	\usepackage{standalone}
	\usepackage{tikz}
	\usepackage{pgfplots}
	\usepackage{tabularray} % Typeset tabulars and arrays (contains equivalent of longtable, booktabs and dcolumn at least) 
		\UseTblrLibrary{booktabs} % to load extra commands from booktabs
	\usepackage{changepage}

	\newcommand{\themename}{\textbf{\textsc{Gotham}}}


\begin{document} 

\section{Gotham Theme}

	% FRAME
	\begin{frame}[fragile]{Gotham}
	
		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 Vogelgesang (and some other Beamer themes).

		Yet, \themename{} is highly extendable and versatile.
		\bigskip
		
		First, enable the theme by classically loading it:
		
		\begin{verbatim}
			\documentclass{beamer}
			\usetheme{gotham}
		\end{verbatim}
		
		Then, the all customization can be performed at any moment in the presentation using:

		\begin{verbatim}
			\gothamset{<option>=...}
		\end{verbatim}
	\end{frame}


\subsection{Fonts}

	% FRAME	
	\begin{frame}[fragile]{Gotham title formats}
		Note, that you have to have Mozilla's \emph{Fira Sans} font and XeTeX or LuaTeX installed to enjoy this wonderful typography.

		\begin{columns}[T,onlytextwidth]
		\column{0.49\textwidth}
			\themename{} supports 4 different title formats \verb|\gothamset{format frametitle=}|
			\begin{itemize}
				\item regular
				\item \MakeLowercase{Lower}
				\item \MakeUppercase{Upper}
				\item \MakeTitlecase{Title Case}
			\end{itemize}
		\column{0.49\textwidth}
			\themename{} supports 3 different title shape \verb|\gothamset{shape frametitle=...}|:
			\begin{itemize}
				\item regular
				\item \textsc{Small caps}
				\item \textit{italic}
			\end{itemize}
		\end{columns}
		
		\vspace{2em}
		They can either be set at once for every title type or individually.
	\end{frame}

	{
	\gothamset{shape frametitle=smallcaps, format frametitle=titlecase}
	% FRAME
	\begin{frame}{Titles: Small caps and titlecase}
		This frame uses the title format options: \texttt{shape frametitle=smallcaps, format frametitle=titlecase}.

		\begin{alertblock}{Potential Problems}
			Be aware that not every font supports small caps. 
			If for example you typeset your presentation with pdfTeX and the Computer Modern Sans Serif font, every text in small caps will be typeset with the Computer Modern Serif font instead.
			Please refer to the documentation if you consider using it.

			As a rule of thumb: just use it for plaintext-only titles.
		\end{alertblock}
	\end{frame}
	}

	{
	\gothamset{format frametitle=upper, shape frametitle=italic}
	% FRAME
	\begin{frame}{Titles: Upper and italic}
		This frame uses the title format options: \texttt{format frametitle=upper, shape frametitle=smallcaps}.

		\begin{alertblock}{Potential problems}
			As this title format also uses small caps you face the same problems as with the \texttt{smallcaps} title format. 
			Additionally this format can cause some other problems. 
			Please refer to the documentation if you consider using it.

			
		\end{alertblock}
	\end{frame}
	}

	{
	\gothamset{format frametitle=lower}
	% FRAME
	\begin{frame}{Titles: LOWER and regular}
		This frame uses the title format options: \texttt{format frametitle=lower, shape frametitle=regular}.
	\end{frame}
	}


\subsection{Colors}

	{
	\gothamset{background=dark}
	% FRAME
	\begin{frame}[fragile]{Presentation style via background color}
		The color mode (a.k.a. background color) can be changed using:
		\begin{verbatim} \gothamset{background=dark | light | transparent} \end{verbatim}
	\end{frame}
	}

	% FRAME	
	\begin{frame}[fragile]{Blocks}
		Three different block environments are pre-defined and may be styled with an optional background color.
		
		\begin{columns}[T,onlytextwidth]
		 \column{0.3\textwidth}
		 	\begin{verbatim}\gothamset{
				block=native}\end{verbatim}

		   \begin{block}{Default}
		     Block content.
		   \end{block}
		
		   \begin{alertblock}{Alert}
		     Block content.
		   \end{alertblock}
		
		   \begin{exampleblock}{Example}
		     Block content.
		   \end{exampleblock}
		
		 \column{0.3\textwidth}
		
		   \gothamset{block=transparent}
			\begin{verbatim}\gothamset{
				block=transparent}\end{verbatim}
		
		   \begin{block}{Default}
		     Block content.
		   \end{block}
		
		   \begin{alertblock}{Alert}
		     Block content.
		   \end{alertblock}
		
		   \begin{exampleblock}{Example}
		     Block content.
		   \end{exampleblock}

		\column{0.3\textwidth}
		
		   \gothamset{block=fill}
			\begin{verbatim}\gothamset{
				block=fill}\end{verbatim}
		
		   \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}

	% FRAME
	\begin{frame}[fragile]{Color customization}
		The colors can be changed using:
		\begin{verbatim}
		\colorlet{colorPale}{gPaleYell} % BG in light/normal mode
		\colorlet{colorDark}{gDarkBlack} % FG in light/normal mode
		\colorlet{colorA}{gDarkTeal} % frametitle, standin.out,
		\colorlet{colorAreversed}{gLightTeal} % frametitle, standin.in,
		\colorlet{colorB}{gMidGrey} % gray BG : progress bar, blocks
		\colorlet{colorC}{gDeepYellOr} % progress bar
		\colorlet{colorD}{gLightOrange} % alert
		\colorlet{colorE}{gLightGreen} % example 
		\end{verbatim}
	\end{frame}


\subsection{Inner}

	% FRAME
	\begin{frame}[fragile]{Title page}
		\themename{} offers the possibility to adapt the title page layout (printed with \verb|\maketitle| or \verb|\titlepage|).
		This can be achieved using:

		\begin{verbatim}   \defbeamertemplate{title page}{your name}{your defintion}
			\gothamset{title page= your name}\end{verbatim}
		
		\themename{} also predefined several templates such as: 
		\verb$gotham normal | gotham splitvert | gotham dividedpic$ \verb$| gotham reversed$
	\end{frame}

	% FRAME
	\begin{frame}[fragile]{Table of contents}
		\themename{} come with the possibility to apply different style for your table of contents (ToC) page.
		You can define your own ToC style as it follows:
		\begin{verbatim}
			\defbeamertemplate{toc page}{your name}{your def}
			\gothamset{tocframe template= your name}
		\end{verbatim}
		Then, referring to this template using the frame option \verb|[toc]| in your presentation: 
		\begin{verbatim}
			\begin{frame}[toc]{Table of contents}
				\tableofcontents%[hideallsubsections]
			\end{frame }\end{verbatim}

		Or using one of the \themename{} predefined template, such as: \verb$gotham simple | gotham bullet$
	\end{frame}

	% FRAME
	\begin{frame}[fragile]{Sections}
		\themename{} provides a multiple options to tune sections (respectively \verb|part|, \verb|section|, \verb|subsection| and \verb|subsubsection|).
		Thus, using the setting controls:
		
		The section command \verb|\section{Elements}| from Beamer will appear very differently.
		The section page will appear or disappear thanks to: \verb$\gothamset{sectionframe default=<on|off>}$, while its layout (when appearing) is controlled by: 
		\begin{verbatim}
			\defbeamertemplate{part|sub|subsub|section frame}
				{your name}{your def}
			\gothamset{sectionframe template= your name}\end{verbatim}

		\themename{} predefined template are: \verb$gotham progressbar | gotham simple |$ \verb$gotham splitvert progressbar |$ \verb$gotham splitvert simple | gotham progressvert$
	\end{frame}

	% FRAME
	\begin{frame}[fragile]{Sections contents}
		After the section page, you can (de)activate a page with table of contents in the section using \verb$\gothamset{sectiontocframe default=<on|off>}$, and its layout is controlled by: 
		\begin{verbatim}
			\defbeamertemplate{toc subsection frame}{your name}{your def}
			\gothamset{sectionframe template= your name}
		\end{verbatim}

		\themename{} predefined template are: \verb$gotham simple | gotham bullet$
	\end{frame}

	% FRAME
	\begin{frame}[fragile, watermark]{Watermark}

		With \themename{} you can locally or globally add watermark to your slides by using:
		\begin{verbatim}  \defbeamertemplate{background}{watermark/your name}{your def}
		  \gothamset{watermark template= your name}\end{verbatim}
		
		Then, this watermark can be turn on locally using \verb|\begin{frame}[watermark]| or globally with \verb|\gothamset{watermark default= on}| .
 	\end{frame}

	% FRAME
	\begin{standinenv}
	\begin{frame}[fragile]{Standin}

		\themename{} comes with 2 environments/specials layouts named \verb|standin| and \verb|standout|.
		These specials layouts can be used to emphasize some content or last slide\textellipsis

		This layout can be turn on using \verb|\begin{frame}[standin]| or using the dedicated environment (\verb|\begin{standinenv}\begin{frame}...\end{frame}\end{standinenv}|).

		Note that the background can also be tuned using:
		\begin{verbatim}  \defbeamertemplate{background canvas}{standin/name}{your def}
		  \gothamset{standin template= name}\end{verbatim}
		
	\end{frame}
	\end{standinenv}

	% FRAME
	\begin{frame}[fragile, standout, watermark]{Standout}
		Here is an example of standout (working as standin), that can be combined with a watermark.

		Another difference, apart the obvious color change is the font size and series.
	\end{frame}


\subsection{Outer}
	
	{%
		\setbeamertemplate{frame footer}{My custom footer}
	% FRAME
	\begin{frame}[fragile]{Frame footer}
	   \themename{} defines a custom Beamer template to add a text to the footer. 
		It can be set via
	   \begin{verbatim}\setbeamertemplate{frame footer}{My custom footer}\end{verbatim}

		Even after redefining (or not) your frame footer template, you can locally remove it with the frame option \verb|\begin{frame}[nofooter]|.
	\end{frame}
	}

	\title[your shorttitle]{Gotham}
	\date[shortdate]{\today}
	\author[your shortauthor name]{Romain NOËL}
	% FRAME
	\begin{frame}[fragile, rotateFooter]{rotateFooter}
		The default footer from \themename{}, it displays the \verb|shortdate|, \verb|shorttitle| and \verb|shortauthor|.
		So by filling these fields in your document setup, you will see them appear in your footer:
		\begin{verbatim}   \title[your shorttitle]{Your title}
			\date[shortdate]{\today}
			\author[your shortauthor name]{John DOE} \end{verbatim}

		Since, we always need some extra space on some frames that would like to overlay a bit the footer, \themename{}'s footer offers also possibility to be put on side locally using \verb|\begin{frame}[rotateFooter]|, or globally with 
		\begin{verbatim} \gothamset{rotateFooter default=on} \end{verbatim}
		If it has set globally, it can be deactivated locally with the frame option \verb|\begin{frame}[norotateFooter]|.
	\end{frame}

	\title[]{Gotham}
	\date[]{\today}
	\renewcommand{\gothamRightFiligrane}{%
		\rotatebox{90}{gotham right filigrane pattern}
	}
	% FRAME
	\begin{frame}[edging, fragile]{Edging}
		\themename{} has two hook commands, \verb|\gothamRightFiligrane| and \verb|\gothamLeftFiligrane|, that can be redefined to customize what to display in the edgings (a.k.a. filigrane, a.k.a. sidebar).
		As example, one could do:
		\begin{verbatim}
			\renewcommand{\gothamRightFiligrane}{%
				\rotatebox{90}{gotham right filigrane pattern}
			}\end{verbatim}

		Then, to set if it should be displayed or not, globally \begin{verbatim} \gothamset{edging default=on} \end{verbatim}
		or locally with the frame option \verb|\begin{frame}[edging]| or \verb|\begin{frame}[noedging]|.
	\end{frame}

	% FRAME
	% \begin{nofootlineenv}
	\begin{frame}[fragile,noedging,nofooter]{Really wide contents}
		\begin{adjustwidth}{-2em}{-2em}
			If you want a really wide content in your frame, you can change the size of your margin (requires \verb|\usepackage{changepage}| in your preamble).
			You can also suppress the edging (\verb|[noedging]|) and footer (\verb|[nofooter]|) or even more radically footline (\verb|[nofootline]|).

			Here is an example combining them: 
			\begin{verbatim}
				\begin{frame}[noedging,nofootline]{extended frame}
					\begin{adjustwidth}{-2em}{-2em}% 2em extra to the left and 2em for right margin.
						wide content
					\end{adjustwidth}
				\end{frame }
			\end{verbatim}
		\end{adjustwidth}
	\end{frame}
	% \end{nofootlineenv}

	{%
	\renewcommand{\gothamInstituteLogoSquare}[1][4ex]{%
      \includegraphics[height=#1]{gotham-logo.pdf}
   }
	\logo{extra LOGO}
	% FRAME
	\begin{frame}[fragile]{Frametitle}
		\framesubtitle{with a subtitle}
		The frametile template brought by \themename{} is relatively classic: it supports \verb|\subframetitle| and frame continuation (with \verb|[allowframebreaks]|) through templates that can be tuned.
		Nevertheless, it the frametitle template also includes a hook for your institute logo in the top right corner, leaving the command \verb|\logo{}| free for your extra logos.
		
		So, one can have both logos using:
		\begin{verbatim}
			\renewcommand{\gothamInstituteLogoSquare}[1][4ex]{
				\includegraphics[height=#1]{gotham-logo.pdf}
			}
			\logo{extra LOGO}
		\end{verbatim}
	\end{frame}
	}

	\author[]{Romain NOËL}
	{%
		\gothamset{progressbar position=foot, numbering= totalframenumber}
	% FRAME
	\begin{frame}[fragile]{Numbering and progressbar}

		\themename{} theme can numbering your frames in the bottom right corner using different styles. 
		You can also decide to use a progression bar to indicate how much of your presentation remains.

		The setup of numbering and progression bar can be performed through:
		\begin{verbatim}
			\gothamset{numbering= totalframenumber, progressbar position=foot}
		\end{verbatim}

		Numbering available options are: \verb$none | framenumber | totalframenumber | appendixframenumber | pagenumber | totalpagenumber | circle$

		Progressbar position available options are: \verb$none | head | frametitle | foot | circlehead$
	\end{frame}
	}


\end{document}
%EoF