Debian Codegraph @

texmf-dist/doc/latex/beamer-theme-albi/beamer-theme-albi-doc.tex

raw
1 \documentclass[9pt]{beamer}
2
3 \usepackage[T1]{fontenc}
4 %\usepackage{sourcesanspro}
5 %\usepackage[scaled=.9]{DejaVuSansCondensed}
6 %\usepackage[sfdefault,lining,scaled=.95]{FiraSans}
7 \usepackage{lmodern}
8 \usepackage[scale=.8,lining,type1]{FiraMono}
9
10 \usepackage{fontawesome}
11 \usepackage{multicol}
12
13
14 \usepackage{tikz}
15 \usetikzlibrary{shadows,arrows.meta,backgrounds,fit,calc,positioning}
16
17 \usepackage{fancyvrb}
18 \usepackage{listings}
19
20 \usepackage{hologo}
21 \hologoFontSetup{general=\normalfont\fontfamily{lmr}\selectfont\mdseries}
22 \AtBeginDocument{
23 \def\LaTeX{\hologo{LaTeX}}
24 \def\TeX{\hologo{TeX}}
25 }
26
27
28 \newenvironment{fragileframe}[1][]
29 {\begin{frame}[fragile,environment=fragileframe,#1]}
30 {\end{frame}}
31
32 \setbeamercolor{code}{parent=normal text,bg=albi blue!5!bg}
33 \setbeamercolor{code keyword}{parent=code,fg=albi blue!50!albi cyan!80!fg}
34 \setbeamercolor{code comment}{parent=code,fg=albi red!75!fg}
35 \setbeamercolor{code string}{parent=code,fg=albi green!50!fg}
36
37 \lstdefinestyle{textsmall}{basicstyle=\usebeamercolor[fg]{code}\small\mdseries\ttfamily}
38 \lstdefinestyle{textfootnotesize}{basicstyle=\usebeamercolor[fg]{code}\footnotesize\mdseries\ttfamily}
39 \lstdefinestyle{textscriptsize}{basicstyle=\usebeamercolor[fg]{code}\scriptsize\mdseries\ttfamily}
40 \lstdefinestyle{textsemitiny}{basicstyle=\usebeamercolor[fg]{code}\semitiny\mdseries\ttfamily}
41 \lstdefinestyle{texttiny}{basicstyle=\usebeamercolor[fg]{code}\tiny\mdseries\ttfamily}
42
43 \lstdefinestyle{LaTeX}{
44 style=textsmall,
45 fancyvrb=true,
46 language=[LaTeX]TeX,
47 keywordstyle=\usebeamercolor[fg]{code keyword}\bfseries,
48 commentstyle=\usebeamercolor[fg]{code comment}\itshape,
49 stringstyle=\usebeamercolor[fg]{code string}\ttfamily,
50 stepnumber=1,
51 numbersep=5pt,
52 showspaces=false,
53 showstringspaces=false,
54 backgroundcolor=\usebeamercolor*{code}\color{bg},
55 fontadjust=true,
56 aboveskip=.3\baselineskip,
57 belowskip=.3\baselineskip,
58 emphstyle=\color{albi red},
59 keepspaces=true,
60 flexiblecolumns=true,
61 upquote,
62 moretexcs={
63 defminesalbilogo,usetheme,institute,maketitle,frametitle,usefonttheme,
64 setbeamercolor,scalebox,insertlogo,titlegraphic,includegraphics,subtitle,
65 Albikeys,rotatebox,node,logo,titlepage,setbeamerfont,setbeamertemplate,
66 Albisetlogofilename,
67 }
68 }
69 \lstdefinestyle{LaTeXsmall}{style=LaTeX,style=textsmall}
70 \lstdefinestyle{LaTeXfootnotesize}{style=LaTeX,style=textfootnotesize}
71 \lstdefinestyle{LaTeXscriptsize}{style=LaTeX,style=textscriptsize}
72 \lstdefinestyle{LaTeXsemitiny}{style=LaTeX,style=textsemitiny}
73 \lstdefinestyle{LaTeXtiny}{style=LaTeX,style=texttiny}
74
75 \def\code{\lstinline[basicstyle=\mdseries\ttfamily\color{albi blue!50!albi cyan!80!fg}]}
76
77 \usetheme{Albi}
78
79 \def\logoone{%
80 \begin{tikzpicture}
81 \node[node font=\Large\bfseries,inner xsep=1em,
82 inner ysep=.5em,fill=cyan!50!green,text=white]
83 {\rotatebox{30}{Logo}};
84 \end{tikzpicture}
85 }
86
87 \def\bmt{\emph{beamer-template} \code}
88 \def\bmf{\emph{beamer-font} \code}
89 \def\bmc{\emph{beamer-color} \code}
90 \def\bmtf{\emph{beamer-template/-font} \code}
91 \def\bmtc{\emph{beamer-template/-color} \code}
92 \def\bmfc{\emph{beamer-font/-color} \code}
93 \def\bmtfc{\emph{beamer-template/-font/-color} \code}
94 \def\ab{\emph{albi-keys} \code}
95
96 \def\bmparen#1#2{\hbox{{\footnotesize(#1{#2})}}}
97
98 \NewDocumentEnvironment{lwcolumns}{}{
99 \columns[onlytextwidth]
100 \column{\dimexpr\textwidth-\linewidth}
101 }{
102 \endcolumns
103 }
104
105 \newbool{dark theme}
106 \setbool{dark theme}{false}
107
108 \ifbool{dark theme}{
109 \setbeamercolor{albi title page.title}{fg=white,bg=black!80!white}
110 \setbeamercolor{albi title page.logo}{fg=white,bg=black!70!white}
111 \setbeamercolor{albi title page.author}{fg=white,bg=black!60!white}
112 \setbeamercolor{albi title page.empty}{fg=white,bg=black!90!white}
113
114 \setbeamercolor{frametitle}{bg=albi yellow,fg=albi green}
115
116 \setbeamercolor{albi part page.title}{fg=yellow,bg=black!80!white}
117 \setbeamercolor{albi part page.logo}{fg=orange,bg=black!70!white}
118 \setbeamercolor{albi part page.empty}{fg=white,bg=black!60!white}
119
120 \setbeamercolor{footline}{fg=white,bg=albi black!90!albi blue}
121 \setbeamercolor{date in head/foot}{parent=footline,fg=gray}
122 \setbeamercolor{institute in head/foot}{parent=footline,fg=gray}
123
124 \setbeamercolor{frametitle}{bg=blue!20!black,fg=gray!20!white}
125
126 \setbeamercolor{subsection in head/foot}{bg=cyan!20!black,fg=albi green!30}
127
128 \setbeamercolor{albi section page.toc}{fg=yellow,bg=black!80!white}
129 \setbeamercolor{albi section page.logo}{fg=orange,bg=black!70!white}
130 \setbeamercolor{albi section page.part}{fg=white,bg=black!60!white}
131
132 \setbeamercolor{alerted text}{fg=albi red!50!albi orange!50!fg}
133 \setbeamercolor{example text}{fg=albi green!50!white}
134 \setbeamercolor{normal text}{bg=albi black,fg=albi silver!50!white}
135
136 \setbeamercolor{block title}{bg=albi blue!50!bg,fg=white}
137 \setbeamercolor{block body}{parent=normal text,bg=albi blue!30!bg,fg=albi blue!30!fg}
138
139 \setbeamercolor{background canvas}{bg=albi black,fg=white}
140 \setbeamertemplate{background canvas}[default]
141
142 \setbeamercolor{code}{parent=normal text,bg=albi cyan!20!bg}
143 \setbeamercolor{code keyword}{parent=code,fg=albi cyan!50!fg}
144 \setbeamercolor{code comment}{parent=code,fg=albi red!50!fg}
145 \def\code{\lstinline[basicstyle=\mdseries\ttfamily\color{albi cyan!50!fg}]}
146
147 }{}
148
149 \title{Albi Beamer Theme}
150 \subtitle{Documentation}
151 \author{Paul Gaborit}
152 \institute{Albi, France}
153 \date{\today}
154 \logo{\logoone}
155
156
157 \begin{document}
158
159 \begin{frame}[plain]
160 \titlepage
161 \end{frame}
162
163 \begin{frame}
164 \frametitle{Contents}
165
166 \partname~\ref{part:one} \nameref{part:one}
167
168 \tableofcontents[part=1]
169
170 \partname~\ref{part:epilogue} \nameref{part:epilogue}
171
172 \end{frame}
173
174 \part{User manual}
175 \label{part:one}
176
177 \section{Usage}
178
179 % ------------------------------------------------------------
180 % activation
181 % ------------------------------------------------------------
182 \subsection{Albi theme and options}
183
184 \def\initialvalue#1{{\footnotesize\mbox{(initially: \code{#1})}}}
185
186 \begin{fragileframe}
187 \frametitle{How to use Albi theme}
188
189 \begin{itemize}
190 \item In the preamble of the beamer document:
191
192 \begin{lstlisting}[style=LaTeX]
193 \usetheme{Albi}
194 \end{lstlisting}
195
196 \vfill
197
198 \item Boolean options:
199
200 \begin{description}[\mdseries\texttt{compactfootline}]
201 \item[\mdseries\texttt{compactfootline}] Compact the footline
202 \initialvalue{false}.
203
204 \item[\mdseries\texttt{compacttitle}] Compact the frame title
205 \initialvalue{false}.
206
207 \item[\mdseries\texttt{partpage}] Add a part page at the beginning
208 of every part \initialvalue{true}.
209
210 \item[\mdseries\texttt{sectionpage}] Add a section page at the
211 beginning of every section \initialvalue{true}.
212 \end{description}
213
214 \vfill
215
216 \begin{lstlisting}[style=LaTeX]
217 % compact
218 \usetheme[compactfootline,compacttitle]{Albi}
219 \end{lstlisting}
220
221 \vfill
222
223 \begin{lstlisting}[style=LaTeX]
224 % suppress part pages and section pages
225 \usetheme[partpage=false,sectionpage=false]{Albi}
226 \end{lstlisting}
227
228
229 \item Change options during the document:
230
231 \begin{lstlisting}[style=LaTeX]
232 \Albikeys{compactfootline,compacttitle,partpage=false,sectionpage=false}
233 \end{lstlisting}
234
235 \end{itemize}
236 \end{fragileframe}
237
238
239 % ------------------------------------------------------------
240 % title page
241 % ------------------------------------------------------------
242 \subsection{Title page}
243
244 \begin{fragileframe}
245
246 \frametitle{How to insert a title page}
247
248 \begin{itemize}
249 \item In the preamble of the beamer document:
250
251 \begin{lstlisting}[style=LaTeX]
252 \title{A Good Title}
253 \subtitle{with a good subtitle} % optional
254 \author{My name}
255 \institute{Organization name}
256 \date{\today}
257 \logo{\includegraphics{logo}}
258 \end{lstlisting}
259
260 \item To insert a title page:
261
262 \begin{lwcolumns}
263
264 \column{.45\linewidth}
265
266 \begin{lstlisting}[style=LaTeX]
267 \begin{frame}[plain]
268 \titlepage
269 \end{frame}
270 \end{lstlisting}
271
272 \column{.1\linewidth}
273
274 {\centering or \par}
275
276 \column{.45\linewidth}
277
278 \begin{lstlisting}[style=LaTeX]
279 \begin{frame}[plain]
280 \maketitle
281 \end{frame}
282 \end{lstlisting}
283
284 \end{lwcolumns}
285 \end{itemize}
286
287 \end{fragileframe}
288
289 % ------------------------------------------------------------
290 % main logo
291 % ------------------------------------------------------------
292 \subsection{Logos}
293
294 \begin{fragileframe}
295 \frametitle{How to choose logos}
296
297
298 % --------------------
299 \begin{onlyenv}<+>
300
301 \begin{itemize}
302 \item Via a picture (\code{mylogo.pdf}, \code{mylogo.png} or \code{mylogo.jpg}):
303
304 \begin{lstlisting}[style=LaTeX]
305 \logo{\includegraphics{mylogo}}
306 \end{lstlisting}
307
308 or:
309
310 \begin{lstlisting}[style=LaTeX]
311 \Albisetlogofilename{mylogo}
312 \end{lstlisting}
313
314 or:
315
316 \begin{lstlisting}[style=LaTeX]
317 \Albikeys{all logos={\includegraphics{mylogo}}}
318 \end{lstlisting}
319
320 \begin{itemize}
321 \item[\faHandORight] The logo picture is automatically scaled and
322 inserted in the \emph{footline}, \emph{title page}, \emph{part
323 pages} and \emph{section pages}.
324 \end{itemize}
325 \end{itemize}
326 \end{onlyenv}
327
328 % --------------------
329 \begin{onlyenv}<+>
330
331 \begin{itemize}
332 \item With different logos:
333
334 \begin{lstlisting}[style=LaTeX]
335 \Albikeys{
336 footline logo={\includegraphics{logo-for-footline}},
337 logo={\includegraphics{logo-for-title-page}},
338 part logo={\includegraphics{logo-for-part-page}},
339 section logo={\includegraphics{logo-for-section-page}},
340 }
341 \end{lstlisting}
342
343
344 \begin{itemize}
345 \item[\faHandORight] Logos pictures are automatically scaled and
346 inserted in the \emph{footline}, \emph{title page}, \emph{part
347 pages} and \emph{section pages}.
348 \end{itemize}
349 \end{itemize}
350
351 \end{onlyenv}
352
353 % --------------------
354 \begin{onlyenv}<+>
355
356 \begin{itemize}
357 \item Using any \LaTeX{} code (as in this document):
358
359 \begin{lstlisting}[style=LaTeX]
360 \Albikeys{
361 all logos={%
362 \begin{tikzpicture}
363 \node[node font=\Large\bfseries,inner xsep=1em,
364 inner ysep=.5em,fill=cyan!50!green,text=white]
365 {\rotatebox{30}{Logo}};
366 \end{tikzpicture}%
367 },
368 }
369 \end{lstlisting}
370
371 \begin{itemize}
372 \item[\faHandORight] Content is automatically scaled and inserted
373 in the \emph{footline}, \emph{title page}, \emph{part pages} and
374 \emph{section pages}.
375 \item[\faGear] Scaling is computed according to the bounding box
376 of the provided code.
377 \item[\faHandORight] A specific code can be provided to each specific
378 key (\code{footline logo}, \code{logo}, \code{part logo}
379 and \code{section logo}).
380 \end{itemize}
381 \end{itemize}
382 \end{onlyenv}
383 \end{fragileframe}
384
385
386 \section{Colors and texts}
387
388 \subsection{Color scheme}
389
390 \begin{fragileframe}
391 \frametitle{Color scheme}
392
393 {
394 \centering
395
396 \begin{tikzpicture}[x=5mm,y=5mm,line width=.5pt,remember picture,inner sep=0]
397
398 \path (0,-.3)
399 node[minimum width=30mm,minimum height=6mm,font=\ttfamily\scriptsize]
400 (pure){pure};
401
402 \path (pure.west) ++(.5,0) coordinate (w-pure);
403 \path (pure.east) ++(-.5,0) coordinate (b-pure);
404
405 \foreach \val [count=\nv] in {90,80,60,50,40,20,10}{
406 \path (w-pure) ++(-\nv,0) coordinate (w-\val)
407 node[font=\ttfamily\scriptsize,anchor=base] {\val};
408 \path (b-pure) ++(\nv,0) coordinate (b-\val)
409 node[font=\ttfamily\scriptsize,anchor=base] {\val};
410 }
411
412 \path (b-10) ++(0,.5) node[anchor=base east,font=\ttfamily\scriptsize]
413 {$\rightarrow$ black};
414
415 \path (w-10) ++(0,.5) node[anchor=base west,font=\ttfamily\scriptsize]
416 {white $\leftarrow$};
417
418 \path (b-10) ++(1.5,0) node[anchor=base,font=\ttfamily\scriptsize]
419 {gray};
420
421 \foreach \mycol[count=\nc] in {
422 albi blue,
423 albi dark blue,
424 albi black,
425 albi green,
426 albi red,
427 albi gray,
428 albi cyan,
429 albi orange,
430 albi yellow,
431 albi silver%
432 }{\usebeamercolor{\mycol}%
433 \extractcolorspecs{fg}{\mymodelspec}{\mycolorspec}
434 \node[font=\ttfamily\semitiny,inner sep=0,
435 minimum width=30mm,minimum height=.9*5mm,
436 fill=fg,
437 align=center,text=bg,draw=fg,
438 rounded corners=1mm] (\mycol) at (0,-\nc)
439 {%
440 \textbf{\mycol}\\[-.2em]
441 \semitiny\mymodelspec(\foreach \val[count=\c] in \mycolorspec {%
442 \pgfmathsetmacro\valcent{int(round(\val*255))}\valcent%
443 \ifnum\c=3\relax\else,\fi%
444 })%
445 };
446
447 \foreach \val [count=\nv] in {90,80,60,50,40,20,10}{
448 \path (w-\val |- \mycol) coordinate (\mycol!\val!white);
449 \fill[fill=fg!\val!white,draw=fg,rounded corners=1mm]
450 (\mycol!\val!white) +(-.45,-.45) rectangle +(.45,.45);
451
452 \path (b-\val |- \mycol) coordinate (\mycol!\val!black);
453 \fill[fill=fg!\val!black,draw=fg,rounded corners=1mm]
454 (\mycol!\val!black) +(-.45,-.45) rectangle +(.45,.45);
455 }
456
457 \colorlet{gray color}[gray]{\mycol}
458 \fill[fill=gray color,draw=gray color,rounded corners=1mm]
459 (\mycol!10!black) ++(1.5,0) +(-.45,-.45) rectangle +(.45,.45);
460 }
461
462 \end{tikzpicture}
463
464 \vfill
465
466 \begin{tikzpicture}[remember picture,x=5mm,y=3mm,inner sep=0]
467 \foreach \exa/\out/\in [count=\c] in {
468 albi green/0/0,
469 albi blue!60!white/180/270,
470 albi red!60!black/0/270%
471 }
472 {
473 \node[font=\ttfamily\scriptsize,anchor=base west,text=\exa,text depth=0]
474 (a) at (0,-\c){\rule{.8em}{.8em} \exa};
475 \begin{scope}[overlay]
476 \draw[{Stealth[{fill=fg}]-},draw=bg,double=fg,line cap=round]
477 (a) to[out=\out,in=\in] (\exa);
478 \end{scope}
479 }
480 \end{tikzpicture}
481
482 }
483
484
485 \begin{itemize}
486 \footnotesize
487 \item[\faGear] All colors are also define as \bmc{} (with black or white background color).
488 \end{itemize}
489
490 \end{fragileframe}
491
492 \begin{frame}
493 \frametitle{Distribution in color space}
494
495 \centering
496 \begin{tikzpicture}
497 \def\myradius{1.5pt}
498
499 \coordinate (red) at (60:3cm);
500 \coordinate (green) at (180:3cm);
501 \coordinate (blue) at (-60:3cm);
502
503 \tikzset{
504 line style/.style={draw=gray!50,line width=1pt,dashed,line join=round,line cap=round},
505 pastille/.style={fill=####1,draw=gray,line width=0.01pt},
506 lab/.style={font=\semitiny,fill=white,fill opacity=.25,text opacity=1,inner sep=.01mm,####1=1.5mm}
507 }
508 \draw[line style] (red) -- (blue) -- (green) -- cycle;
509 \foreach \mycol/\pos in {red/right,green/right,blue/right}{
510 \fill[pastille=\mycol] (\mycol) circle (\myradius) node[text=\mycol,lab=\pos]{\mycol};
511 }
512
513 \foreach \mycol/\pos[count=\nc] in {
514 albi blue/right,
515 albi dark blue/right,
516 albi black/above,
517 albi gray/below,
518 albi silver/right,
519 albi orange/right,
520 albi red/right,
521 albi yellow/below,
522 albi cyan/right,
523 albi green/above%
524 }{
525 \usebeamercolor{\mycol}
526 \extractcolorspecs{\mycol}{\mymodelspec}{\mycolorspec}
527 \pgfmathsetmacro\myred{int(round(array({\mycolorspec},0)*100))}
528 \pgfmathsetmacro\mygreen{int(round(array({\mycolorspec},1)*100))}
529 \pgfmathsetmacro\myblue{int(round(array({\mycolorspec},2)*100))}
530 \fill[\mycol,draw=black]
531 (barycentric cs:red=\myred,green=\mygreen,blue=\myblue)
532 circle (\myradius)
533 node[text=bg,lab=\pos,fill=fg,fill opacity=1,inner sep=.1em]{\mycol};
534 }
535
536 \path (current bounding box.west) ++(-2cm,0) coordinate(grayline);
537 \coordinate (white) at (red -| grayline);
538 \coordinate (black) at (blue -| grayline);
539
540 \draw[line style] (white) -- (black);
541 \foreach \mycol in {white,black}{
542 \fill[pastille=\mycol]
543 (\mycol) circle (\myradius) node[lab=left]{\mycol};
544 }
545
546 \foreach \mycol/\pos[count=\nc] in {
547 albi blue/left,
548 albi dark blue/right,
549 albi black/right,
550 albi gray/left,
551 albi silver/left,
552 albi orange/right,
553 albi red/right,
554 albi yellow/right,
555 albi cyan/right,
556 albi green/below left%
557 }{
558 \usebeamercolor{\mycol}
559 \colorlet{current gray color}[gray]{\mycol}
560 \extractcolorspecs{current gray color}{\mymodelspec}{\mycolorspec}
561 \path (black) -- (white) coordinate[pos=\mycolorspec] (g);
562 \fill[pastille=\mycol] (g) circle (\myradius)
563 node[text=bg,lab=\pos,fill=fg,fill opacity=1,inner sep=.1em]{\mycol};
564 }
565 \end{tikzpicture}
566 \end{frame}
567
568 \subsection{Text sizes}
569
570 \begin{fragileframe}
571 \frametitle{Text sizes}
572
573 \begin{multicols}{2}
574 \def\demotext{Example}
575 \begin{description}[\ttfamily\string\footnotesize]
576 \item[\ttfamily\string\TINY] {\TINY\demotext\par}
577 \item[\ttfamily\string\Tiny] {\Tiny\demotext\par}
578 \item[\ttfamily\string\tiny] {\tiny\demotext\par}
579 \item[\ttfamily\string\semitiny] {\semitiny\demotext\par}
580 \item[\ttfamily\string\scriptsize] {\scriptsize\demotext\par}
581 \item[\ttfamily\string\footnotesize] {\footnotesize\demotext\par}
582 \item[\ttfamily\string\small] {\small\demotext\par}
583 \item[\ttfamily\string\normalsize] {\normalsize\demotext\par}
584 \item[\ttfamily\string\large] {\large\demotext\par}
585 \item[\ttfamily\string\Large] {\Large\demotext\par}
586 \item[\ttfamily\string\LARGE] {\LARGE\demotext\par}
587 \item[\ttfamily\string\huge] {\huge\demotext\par}
588 \item[\ttfamily\string\Huge] {\Huge\demotext\par}
589 \item[\ttfamily\string\HUGE] {\HUGE\demotext\par}
590 \end{description}
591 \end{multicols}
592
593 \begin{itemize}
594 \item[\faHandORight] \code{\HUGE} and \code{\semitiny} don't exist in beamer
595 \end{itemize}
596
597 \end{fragileframe}
598
599 % ------------------------------------------------------------
600 % Blocks
601 % ------------------------------------------------------------
602
603 \subsection{Blocks}
604
605 \begin{filecontents*}[overwrite]{\jobname-example1.vrb}
606 \begin{block}{Title}
607 Content of \texttt{block}...
608 \end{block}
609 \end{filecontents*}
610
611 \begin{filecontents*}[overwrite]{\jobname-example2.vrb}
612 \begin{alertblock}{Title}
613 Content of \texttt{alertblock}...
614 \end{alertblock}
615 \end{filecontents*}
616
617 \begin{filecontents*}[overwrite]{\jobname-example3.vrb}
618 \begin{exampleblock}{Title}
619 Content of \texttt{exampleblock}...
620 \end{exampleblock}
621 \end{filecontents*}
622
623 \begin{fragileframe}
624 \frametitle{Blocks}
625
626 \begin{columns}[onlytextwidth]
627 \column{.425\linewidth}
628 \lstinputlisting[style=LaTeX]{\jobname-example1.vrb}
629 \input{\jobname-example1.vrb}
630
631 \column{.525\linewidth}
632 \lstinputlisting[style=LaTeX]{\jobname-example2.vrb}
633 \input{\jobname-example2.vrb}
634 \end{columns}
635
636 \begin{columns}[onlytextwidth]
637 \column{.425\linewidth}
638 \begin{itemize}
639 \item[\faHandORight] Do not overuse it !
640 \end{itemize}
641
642 \column{.525\linewidth}
643 \lstinputlisting[style=LaTeX]{\jobname-example3.vrb}
644 \input{\jobname-example3.vrb}
645 \end{columns}
646
647 \end{fragileframe}
648
649
650
651 \section{Customizations}
652
653 \subsection{Special pages: title, part, section}
654
655 \begin{fragileframe}
656 \frametitle{Customize the title page}
657
658 The predefined option \code{[albi]} \bmparen\bmt{title page} is
659 divided into four areas:
660
661 \begin{enumerate}
662 \item the logo area \bmparen\bmc{albi title page.logo} contains the
663 logo.
664
665
666 \begin{lstlisting}[style=LaTeXsemitiny]
667 \setbeamercolor{albi title page.logo}{fg=black,bg=white}
668 \end{lstlisting}
669
670 \item the title area \bmparen\bmc{albi title page.title} contains the
671 title \bmparen\bmfc{title} and the subtitle \bmparen\bmfc{subtitle}.
672
673 \begin{lstlisting}[style=LaTeXsemitiny]
674 \setbeamercolor{albi title page.title}{use=albi orange,fg=albi orange.bg,bg=albi orange.fg}
675 \setbeamerfont{title}{series=\bfseries,size=\LARGE}
676 \end{lstlisting}
677
678 \item the author area \bmparen\bmc{albi title page.author} contains
679 the author \bmparen\bmfc{author}, the institute
680 \bmparen\bmfc{institute}, date \bmparen\bmfc{date} and titlegraphic
681 \bmparen\bmfc{titlegraphic}.
682
683 \begin{lstlisting}[style=LaTeXsemitiny]
684 \setbeamercolor{albi title page.author}{use=albi cyan,fg=albi cyan.bg,bg=albi cyan.fg}
685 \setbeamerfont{author}{series=\bfseries,size=\large}
686 \end{lstlisting}
687
688 \item the empty area \bmparen\bmc{albi title page.empty}.
689
690 \begin{lstlisting}[style=LaTeXsemitiny]
691 \setbeamercolor{albi title page.empty}{use=albi dark blue,fg=albi dark blue.bg,bg=albi dark blue.fg}
692 \end{lstlisting}
693
694 \end{enumerate}
695
696 \end{fragileframe}
697
698 \begin{fragileframe}
699 \frametitle{Customize part pages}
700
701 The predefined option \code{[albi]} \bmparen\bmt{part page} is divided
702 into three areas:
703
704 \begin{enumerate}
705 \item the empty area \bmparen\bmc{albi part page.empty}.
706
707 \begin{lstlisting}[style=LaTeXsemitiny]
708 \setbeamercolor{albi part page.empty}{use=albi orange,fg=albi orange.bg,bg=albi orange.fg}
709 \end{lstlisting}
710
711 \item the title area \bmparen\bmc{albi part page.title} contains the
712 part name \bmparen\bmfc{part name} and the part title
713 \bmparen\bmfc{part title}.
714
715 \begin{lstlisting}[style=LaTeXsemitiny]
716 \setbeamercolor{albi part page.title}{use=albi cyan,fg=albi cyan.bg,bg=albi cyan.fg}
717 \setbeamerfont{part name in part page}{parent=part name}
718 \setbeamerfont{part title in part page}{parent=part title}
719 \end{lstlisting}
720
721 \item the logo area \bmparen\bmc{albi part page.logo} contains the logo.
722
723 \begin{lstlisting}[style=LaTeXsemitiny]
724 \setbeamercolor{albi part page.logo}{fg=black,bg=white}
725 \end{lstlisting}
726
727 \end{enumerate}
728
729 \end{fragileframe}
730
731 \begin{fragileframe}
732 \frametitle{Customize section pages}
733
734 The predefined option \code{[albi]} \bmparen\bmt{section page} is divided
735 into three areas:
736
737 \begin{enumerate}
738 \item the toc area \bmparen\bmc{albi section page.toc} contains the
739 table of content of the current part with current section details.
740
741 \begin{lstlisting}[style=LaTeXsemitiny]
742 \setbeamercolor{albi section page.toc}{parent=normal text}
743 \end{lstlisting}
744
745 \item the part area \bmparen\bmc{albi section page.part} contains the
746 part name \bmparen\bmfc{part name in section page} and the part title
747 \bmparen\bmfc{part title in section page}.
748
749 \begin{lstlisting}[style=LaTeXsemitiny]
750 \setbeamercolor{albi section page.part}{use=albi orange,fg=albi orange.bg,bg=albi orange.fg}
751 \setbeamerfont{part name in section page}{parent=part name,size=\normalsize}
752 \setbeamerfont{part title in section page}{parent=part title,size=\normalsize}
753 \end{lstlisting}
754
755 \item the logo area \bmparen\bmc{albi section page.logo} contains the logo.
756
757 \begin{lstlisting}[style=LaTeXsemitiny]
758 \setbeamercolor{albi section page.logo}{use=albi silver,fg=albi silver.bg,bg=albi silver.fg}
759 \end{lstlisting}
760
761 \end{enumerate}
762
763 \end{fragileframe}
764
765 \subsection{Frame title, headline and footline}
766
767 \begin{fragileframe}
768 \frametitle{Frame title}
769
770 \begin{itemize}
771 \item The predefined option \code{[albi]} \bmparen\bmt{frametitle}
772 displays the frame title \bmparen\bmfc{frametitle}, the frame
773 subtitle \bmparen\bmfc{framesubtitle} if exists and the frame number
774 \bmparen\bmfc{frame number}.
775
776 \item Predefined options for frame number \bmparen\bmt{frame number}:
777
778 {
779 \footnotesize
780 \begin{description}[\mdseries\texttt{[frame+slide with total]}]
781 \item[\mdseries\texttt{[none]}] no frame number.
782 \item[\mdseries\texttt{[frame]}] frame number.
783 \item[\mdseries\texttt{[frame with total]}] frame number/total.
784 \item[\mdseries\texttt{[frame+slide]}] frame number with slide number if exists.
785 \item[\mdseries\texttt{[frame+slide with total]}] frame number with slide number if exists/total
786 \end{description}
787 }
788
789 \begin{itemize}
790 \item[\faHandORight] The default option is \code{[frame+slide with total]}:
791
792 \begin{lstlisting}[style=LaTeXfootnotesize]
793 \setbeamertemplate{frame number}[frame+slide with total]
794 \end{lstlisting}
795 \end{itemize}
796
797 \end{itemize}
798
799 \end{fragileframe}
800
801 \begin{fragileframe}
802 \frametitle{Headline (navigation bar)}
803
804 \begin{itemize}
805 \item The predefined option \code{[albi]} \bmparen\bmt{headline} displays on the...
806
807 \begin{description}[...right]
808
809 \item[...left] all sections \bmparen\bmtfc{section in head/foot} with
810 the current section highlighted \bmparen\bmt{section in head/foot
811 shaded}.
812
813 \item[...right] all subsections \bmparen\bmtfc{subsection in
814 head/foot} of the current section with the current
815 subsection highlighted \bmparen\bmt{subsection in head/foot shaded}.
816
817 \end{description}
818
819 \begin{lstlisting}[style=LaTeXscriptsize]
820 \setbeamercolor{section in head/foot}{use=albi dark blue,fg=albi dark blue.bg,bg=albi dark blue.fg}
821 \setbeamercolor{subsection in head/foot}{use=albi orange,fg=albi orange.bg,bg=albi orange.fg}
822
823 \setbeamerfont{section in head/foot}{parent={headline},series=\bfseries}
824 \setbeamerfont{subsection in head/foot}{parent={headline},series=\bfseries}
825 \end{lstlisting}
826
827 \begin{itemize}
828 \item[\faHandORight] The predefined options
829 \code{[albi with number]} \bmparen\bmt{section in head/foot}
830 \bmparen\bmt{subsection in head/foot} displays the number of
831 sections and subsections. The default predefined option is
832 \code{[albi]}.
833 \end{itemize}
834
835 \item[\faHandORight] The headline can be \emph{compressed} (showing
836 only current section and subsection) using the class option or the
837 theme option \code{compress}:
838
839 \begin{lstlisting}[style=LaTeXscriptsize]
840 \documentclass[compress]{beamer}
841 \end{lstlisting}
842
843 \begin{lstlisting}[style=LaTeXscriptsize]
844 \Albikeys{compress=true}
845 \end{lstlisting}
846
847 \end{itemize}
848 \end{fragileframe}
849
850 \begin{filecontents*}[force]{\jobname-example1.vrb}
851 \Albikeys{other logos list={example-image-b/8mm,example-image-c/4mm,example-image-a/7mm}}
852 \end{filecontents*}
853
854 \input{\jobname-example1.vrb}
855
856 \begin{fragileframe}
857 \frametitle{Footline}
858
859 \begin{itemize}
860 \item The predefined option \code{[albi]} \bmparen\bmt{footline} displays:
861
862 \begin{itemize}
863 \item the footline logo if defined \bmparen\ab{footline logo},
864 \item the title \bmparen\bmfc{title in head/foot} and the date \bmparen\bmfc{date in head/foot},
865 \item the author \bmparen\bmfc{author in head/foot} and the
866 institute \bmparen\bmfc{institute in head/foot},
867 \item others logos if defined \bmparen\ab{other logos list}.
868 \end{itemize}
869
870 \begin{lstlisting}[style=LaTeXscriptsize]
871 \setbeamercolor{footline}{fg=black,bg=albi silver}
872 \setbeamercolor{author in head/foot}{parent=footline}
873 \setbeamercolor{date in head/foot}{parent=footline}
874 \setbeamercolor{title in head/foot}{parent=footline}
875 \setbeamercolor{institute in head/foot}{parent=footline}
876
877 \setbeamerfont{author in head/foot}{parent={footline}}
878 \setbeamerfont{title in head/foot}{parent={footline}}
879 \setbeamerfont{institute in head/foot}{parent={footline}}
880 \setbeamerfont{date in head/foot}{parent={footline}}
881 \end{lstlisting}
882
883
884 \item[\faHandORight] The \code{other logos list} is a list (possibly
885 empty) of pairs \emph{image/width}:
886 \lstinputlisting[style=LaTeXscriptsize]{\jobname-example1.vrb}
887 \end{itemize}
888 \end{fragileframe}
889
890 \Albikeys{other logos list={}}
891
892 \begin{filecontents*}[force]{\jobname-example1.vrb}
893 \setbeamercolor{block title}{bg=albi orange,fg=white}
894 \setbeamercolor{block body}{bg=albi orange!10!white,fg=albi black}
895
896 \setbeamercolor{block title alerted}{bg=albi gray,fg=white}
897 \setbeamercolor{block body alerted}{bg=albi black!10!white,fg=albi black}
898
899 \setbeamercolor{block title example}{bg=albi blue,fg=white}
900 \setbeamercolor{block body example}{bg=albi blue!10!white,fg=albi black}
901 \end{filecontents*}
902
903 \subsection{Blocks}
904
905 \begin{fragileframe}
906 \frametitle{Blocks with custom colors}
907
908 \begin{itemize}
909 \item Default colors :
910
911 \begin{lwcolumns}
912
913 \column{.29\linewidth}
914 \begin{block}{Title (\texttt{block})}
915 Content...
916 \end{block}
917
918 \column{.03333\linewidth}
919
920 \column{.3\linewidth}
921 \begin{alertblock}{Title (\texttt{alertblock})}
922 Content...
923 \end{alertblock}
924
925 \column{.03333\linewidth}
926
927 \column{.31\linewidth}
928 \begin{exampleblock}{Title (\texttt{exampleblock})}
929 Content...
930 \end{exampleblock}
931
932 \end{lwcolumns}
933
934 \item Custom colors :
935
936 \lstinputlisting[style=LaTeXscriptsize]{\jobname-example1.vrb}
937
938 \input{\jobname-example1.vrb}
939
940 \begin{lwcolumns}
941 \column{.29\linewidth}
942 \begin{block}{Title (\texttt{block})}
943 Content...
944 \end{block}
945
946 \column{.03333\linewidth}
947
948 \column{.3\linewidth}
949 \begin{alertblock}{Title (\texttt{alertblock})}
950 Content...
951 \end{alertblock}
952
953 \column{.03333\linewidth}
954
955 \column{.31\linewidth}
956 \begin{exampleblock}{Title (\texttt{exampleblock})}
957 Content...
958 \end{exampleblock}
959
960 \end{lwcolumns}
961 \end{itemize}
962 \end{fragileframe}
963
964
965 \part{Epilogue}
966 \label{part:epilogue}
967
968 \begin{frame}[plain]
969
970 \centering
971 \color{albi red}
972
973 \HUGE \textbf{Thank you for your time}
974
975 \vfill
976
977 \huge
978 Questions, comments, suggestions, bugs...\\
979 \href{mailto:[email protected]}{\[email protected]}
980
981 \end{frame}
982
983 \end{document}
984
985
986 % LocalWords: Albi beamer compactfootline footline compacttitle mylogo
987 % LocalWords: partpage sectionpage pdf png jpg alertblock exampleblock
988 % LocalWords: albi titlegraphic toc frametitle framesubtitle bg fg
989
990 %%% Local Variables:
991 %%% mode: LaTeX
992 %%% TeX-master: t
993 %%% LaTeX-verbatim-macros-with-braces-local: ("code")
994 %%% End: