| 1 |
% Copyright (C) 2022 by Maxime CHUPIN |
| 2 |
% <chupin at ceremade.dauphine.fr> |
| 3 |
% ------------------------------------------------------- |
| 4 |
% |
| 5 |
% This work may be distributed and/or modified under the |
| 6 |
% conditions of the LaTeX Project Public License, either version 1.3 |
| 7 |
% of this license or (at your option) any later version. |
| 8 |
% The latest version of this license is in |
| 9 |
% http://www.latex-project.org/lppl.txt |
| 10 |
% and version 1.3 or later is part of all distributions of LaTeX |
| 11 |
% version 2005/12/01 or later. |
| 12 |
% |
| 13 |
% Author: Maxime CHUPIN |
| 14 |
% chupin at ceremade.dauphine.fr |
| 15 |
% |
| 16 |
% This work has the LPPL maintenance status "author-maintained". |
| 17 |
|
| 18 |
\documentclass[10pt,aspectratio=169,english]{beamer} |
| 19 |
%\usepackage[charter]{mathdesign} |
| 20 |
\usepackage{xcharter-otf} |
| 21 |
\usepackage{hologo} |
| 22 |
\usepackage{luamesh} |
| 23 |
|
| 24 |
\usepackage{babel} |
| 25 |
\usepackage{tcolorbox} |
| 26 |
\usepackage{biblatex} |
| 27 |
\usepackage{cleveref} |
| 28 |
% \hypersetup{colorlinks=true} |
| 29 |
|
| 30 |
\tcbuselibrary{listings,breakable} |
| 31 |
\tcbuselibrary{documentation} |
| 32 |
\tcbset{ |
| 33 |
color command=AmurmapleRed, |
| 34 |
color environment=AmurmapleRed, |
| 35 |
color option=AmurmapleGreen |
| 36 |
} |
| 37 |
\usetheme[ |
| 38 |
%nogauge, |
| 39 |
nomail, |
| 40 |
delaunay, |
| 41 |
%amurmapleblue |
| 42 |
]{Amurmaple} |
| 43 |
|
| 44 |
\lstset{ |
| 45 |
numberstyle=\footnotesize\color{gray}, |
| 46 |
keywordstyle=\ttfamily\bfseries\color{structure}, |
| 47 |
basicstyle=\ttfamily\normalsize, |
| 48 |
commentstyle=\itshape\color{gray}, |
| 49 |
stringstyle=\ttfamily, |
| 50 |
showstringspaces=false, |
| 51 |
language=[LaTeX]TeX, |
| 52 |
breaklines=true, |
| 53 |
breakindent=30pt, |
| 54 |
defaultdialect=[LaTeX]TeX, |
| 55 |
morekeywords={usetheme,definecolor, beamerbutton, beamerskipbutton, |
| 56 |
beamerreturnbutton, structure, alert, sectionpage, mail, webpage, |
| 57 |
collaboration, subtitle, institute, titlegraphic, sepframe, includegraphics, |
| 58 |
thanksframe, inserttitlegraphic, framesection, boxalert,appendix,logo} |
| 59 |
% frame=tb |
| 60 |
} |
| 61 |
|
| 62 |
|
| 63 |
\newtcblisting{Code}{% |
| 64 |
arc=0pt,outer arc=0pt, |
| 65 |
colback=structure!3, |
| 66 |
colframe=structure, |
| 67 |
breakable, |
| 68 |
boxsep=0pt,left=5pt,right=5pt,top=5pt,bottom=5pt, bottomtitle = |
| 69 |
3pt, toptitle=3pt, |
| 70 |
boxrule=0pt,bottomrule=0.5pt,toprule=0.5pt, toprule at break = |
| 71 |
0pt, bottomrule at break = 0pt, |
| 72 |
listing options={breaklines,basicstyle=\ttfamily},listing only, |
| 73 |
} |
| 74 |
|
| 75 |
\newtcblisting{Exemple}{% |
| 76 |
arc=0pt,outer arc=0pt, |
| 77 |
colback=structure!3, |
| 78 |
colframe=structure, |
| 79 |
breakable, |
| 80 |
boxsep=0pt,left=3pt,right=3pt,top=2pt,bottom=2pt, bottomtitle = |
| 81 |
0pt, toptitle=0pt, |
| 82 |
boxrule=0pt,bottomrule=0.5pt,toprule=0.5pt, toprule at break = |
| 83 |
0pt, bottomrule at break = 0pt, |
| 84 |
listing options={breaklines,basicstyle=\ttfamily}, |
| 85 |
} |
| 86 |
|
| 87 |
\newtcblisting{CodePreambule}{% |
| 88 |
arc=0pt,outer arc=0pt, |
| 89 |
colback=AmurmapleBlue!5, |
| 90 |
colframe=AmurmapleBlue, |
| 91 |
breakable, |
| 92 |
boxsep=0pt,left=5pt,right=5pt,top=5pt,bottom=5pt, bottomtitle = |
| 93 |
3pt, toptitle=3pt, |
| 94 |
boxrule=0pt,bottomrule=0.5pt,toprule=0.5pt, toprule at break = |
| 95 |
0pt, bottomrule at break = 0pt, |
| 96 |
enhanced, |
| 97 |
overlay ={% |
| 98 |
\node[ minimum width=1cm, |
| 99 |
anchor=south east,yshift=-0cm,fill=AmurmapleBlue] at (frame.south east) |
| 100 |
{\itshape\color{white} preamble}; |
| 101 |
% \node[ minimum width=1cm, |
| 102 |
% anchor=south east,yshift=-0cm,color=gray,opacity=0.7] at (frame.south east) |
| 103 |
% {\itshape\small préambule}; |
| 104 |
}, |
| 105 |
listing options={ |
| 106 |
breaklines, |
| 107 |
basicstyle=\ttfamily, |
| 108 |
},listing only, |
| 109 |
} |
| 110 |
|
| 111 |
|
| 112 |
|
| 113 |
|
| 114 |
\title[Amurmaple documentation]{Amurmaple Beamer Theme} |
| 115 |
\author[M.~Chupin]{Maxime Chupin} |
| 116 |
\subtitle{documentation\quad v.1.3} |
| 117 |
\institute[CNRS]{CNRS\\ |
| 118 |
University of Paris-Dauphine} |
| 119 |
\date{February 7, 2024} |
| 120 |
\titlegraphic{\includegraphics[width=4cm]{logo.png}} |
| 121 |
\mail{[email protected]} |
| 122 |
\webpage{www.ceremade.dauphine.fr/~chupin/} |
| 123 |
\collaboration{in collaboration with Beamer and \hologo{LaTeX3}} |
| 124 |
|
| 125 |
\bibliography{biblio.bib} |
| 126 |
\usefonttheme{serif} |
| 127 |
|
| 128 |
|
| 129 |
|
| 130 |
|
| 131 |
|
| 132 |
|
| 133 |
\begin{document} |
| 134 |
|
| 135 |
\maketitle |
| 136 |
|
| 137 |
\sepframe[title={Table of contents}] |
| 138 |
\section{Introduction} |
| 139 |
|
| 140 |
\begin{frame}{Introduction} |
| 141 |
\begin{information} |
| 142 |
This Beamer theme is a suitable theme for my use of Beamer in applied |
| 143 |
mathematics research. |
| 144 |
|
| 145 |
It meets my needs in my work. However, if you like this theme, and if you want |
| 146 |
to ask for or make improvements, don't hesitate to write to me ! |
| 147 |
|
| 148 |
Obviously, we refer to the documentation of the Beamer class for details, and we |
| 149 |
will assume in this little documentation that the reader is familiar with the |
| 150 |
Beamer class. |
| 151 |
\end{information} |
| 152 |
Thanks to Denis Bitouzé for the tests and recommendations to improve this |
| 153 |
theme. |
| 154 |
\end{frame} |
| 155 |
|
| 156 |
|
| 157 |
\section{How to use it} |
| 158 |
|
| 159 |
\sepframe |
| 160 |
|
| 161 |
\begin{frame}[fragile]{How to use Amurmaple theme} |
| 162 |
\begin{itemize} |
| 163 |
\item The Amurmaple beamer theme consists in the file |
| 164 |
\texttt{beamerthemeAmurmaple.sty} that you can put in your local |
| 165 |
\texttt{\~{}/texmf/tex/latex/contrib/beamer-contrib/themes/beamer-amurmaple} |
| 166 |
directory. |
| 167 |
\item Simply add in your preamble\footnote{Note that the listing environments |
| 168 |
of this document are not provided by Amurmaple theme.} |
| 169 |
\begin{CodePreambule} |
| 170 |
\documentclass{beamer} |
| 171 |
\usetheme{Amurmaple} |
| 172 |
\end{CodePreambule} |
| 173 |
\item This theme depends on the following packages: |
| 174 |
\begin{multicols}{2} |
| 175 |
\begin{itemize} |
| 176 |
\item \lstinline+tcolorbox+; |
| 177 |
\item \lstinline+multicol+; |
| 178 |
\item \lstinline+xparse+; |
| 179 |
\item \lstinline+xfp+; |
| 180 |
\item \lstinline+expl3+; |
| 181 |
\item \lstinline+iftex+; |
| 182 |
\item \lstinline+tikz+; |
| 183 |
\item \lstinline+fontawesome5+. |
| 184 |
\end{itemize} |
| 185 |
\end{multicols} |
| 186 |
\end{itemize} |
| 187 |
\end{frame} |
| 188 |
|
| 189 |
\subsection{Theme Options} |
| 190 |
|
| 191 |
\begin{frame}[fragile,allowframebreaks]{Theme Options} |
| 192 |
There are some options available : |
| 193 |
\begin{description} |
| 194 |
\item[nogauge:] that suppresses the gauge at the top of the vertical side bar |
| 195 |
of the current slide ; |
| 196 |
\item[nomail:] that suppresses the mail in the right margin of |
| 197 |
the current slide\footnote{Since the v1.2, the mail is not in the left sidebar but in the right margin.} ; |
| 198 |
\item[delaunay:] that produces a Delaunay mesh of random points in |
| 199 |
the ``structure'' slides (title, section, etc.). \alert{This option can only be |
| 200 |
used with \hologo{LuaLaTeX}} and depends on the |
| 201 |
package~\lstinline{luamesh}\footfullcite{Luamesh}; |
| 202 |
\framebreak |
| 203 |
\item[sidebar:] that provides a \emph{sidebar} as shown below\footnote{In |
| 204 |
general, we strongly recommend the use of the \texttt{aspectratio=169} |
| 205 |
option of beamer, but even more strongly with the \texttt{sidebar} |
| 206 |
option.}. |
| 207 |
\begin{center} |
| 208 |
\includegraphics[width=0.5\linewidth,page=13]{beamer-amurmaple-sidebar} |
| 209 |
\end{center} |
| 210 |
\item[sidebarwidth=\meta{value} (with dimension):] when using the sidebar |
| 211 |
option, you can adjust the sidebar width (default 58pt). |
| 212 |
\item[toplogo:] that puts the logo at the top of the sidebar (option |
| 213 |
available if the sidebar option is used). By default, the logo, if sets, is |
| 214 |
at the bottom of the sidebar. |
| 215 |
\framebreak |
| 216 |
\item[rule:] that add a rule between the color areas in the different |
| 217 |
slides: title (see p.~\cref{title}), section and part (see p.~\ref{sectionpart}), |
| 218 |
\lstinline+sepframe+ frame(see p.~\ref{sepframe}), thanks frame (see p.~\ref{thanks}), as |
| 219 |
well as classical slides, between the left bar (sidebar or not) and the |
| 220 |
text area. |
| 221 |
\begin{center} |
| 222 |
\includegraphics[width=0.4\linewidth,page=1]{beamer-amurmaple-test}\quad\includegraphics[width=0.4\linewidth,page=4]{beamer-amurmaple-test} |
| 223 |
\par\itshape Examples using the \lstinline+rule+ option. |
| 224 |
\end{center} |
| 225 |
\item[rulecolor=\meta{color}:] that allows to choose the color for the |
| 226 |
rule of the \lstinline+rule+ option (default black). |
| 227 |
\item[leftframetitle:] that aligns the \lstinline+frametitle+ to the left of |
| 228 |
the slide. |
| 229 |
\end{description} |
| 230 |
|
| 231 |
For example, these slides are produced with the following call\footnote{We use |
| 232 |
the \emph{Bitstream Charter} font family provided by the package |
| 233 |
\emph{Xcharter-Math} with the serif Beamer theme. \fullcite{xcharter-math}.}: |
| 234 |
\begin{CodePreambule} |
| 235 |
\usetheme[nomail,delaunay]{Amurmaple} |
| 236 |
\end{CodePreambule} |
| 237 |
\end{frame} |
| 238 |
|
| 239 |
\section{Color Options} |
| 240 |
|
| 241 |
\sepframe |
| 242 |
|
| 243 |
\begin{frame}[allowframebreaks,fragile]{Color Options}\label{sec:coloroptions} |
| 244 |
Amurmaple theme provides differents color themes that we can chose calling |
| 245 |
one of the following options. The different color themes are illustrated after. |
| 246 |
\begin{description} |
| 247 |
\item[amurmapleblue:] that changes the main color (\lstinline+structure+) to a |
| 248 |
certain blue (see slide~\ref{sl:color}) ; |
| 249 |
\item[amurmaplegreen:] that changes the main color (\lstinline+structure+) to a |
| 250 |
certain green (see slide~\ref{sl:color}); |
| 251 |
\item[amurmapleblack:] that changes the main color (\lstinline+structure+) to a |
| 252 |
certain black (see slide~\ref{sl:color}). |
| 253 |
\end{description} |
| 254 |
\framebreak |
| 255 |
\framesection{\texttt{amurmapleblue} illustration} |
| 256 |
\begin{center} |
| 257 |
\includegraphics[width=0.4\linewidth,page=1]{beamer-amurmaple-blue}\quad\includegraphics[width=0.4\linewidth,page=4]{beamer-amurmaple-blue} |
| 258 |
\par\itshape Examples using the \lstinline+amurmapleblue+ option. |
| 259 |
\end{center} |
| 260 |
\framebreak |
| 261 |
\framesection{\texttt{amurmaplegreen} illustration} |
| 262 |
\begin{center} |
| 263 |
\includegraphics[width=0.4\linewidth,page=1]{beamer-amurmaple-green}\quad\includegraphics[width=0.4\linewidth,page=4]{beamer-amurmaple-green} |
| 264 |
\par\itshape Examples using the \lstinline+amurmaplegreen+ option. |
| 265 |
\end{center} |
| 266 |
\framebreak |
| 267 |
\framesection{\texttt{amurmapleblack} illustration} |
| 268 |
\begin{center} |
| 269 |
\includegraphics[width=0.4\linewidth,page=1]{beamer-amurmaple-black}\quad\includegraphics[width=0.4\linewidth,page=4]{beamer-amurmaple-black} |
| 270 |
\par\itshape Examples using the \lstinline+amurmapleblack+ option. |
| 271 |
\end{center} |
| 272 |
\end{frame} |
| 273 |
|
| 274 |
|
| 275 |
\section{Classical Beamer Tools} |
| 276 |
\sepframe |
| 277 |
\subsection{Colors} |
| 278 |
|
| 279 |
\begin{frame}[fragile, allowframebreaks]{Colors of the theme} |
| 280 |
This theme provides some colors : |
| 281 |
\begin{Code} |
| 282 |
\definecolor{AmurmapleRed}{rgb}{0.6,0.,0.} |
| 283 |
\definecolor{AmurmapleBlack}{rgb}{0.17,0.17,0.17} |
| 284 |
\definecolor{AmurmapleOrange}{RGB}{230,108,17} |
| 285 |
\definecolor{AmurmapleBlue}{RGB}{55,119,231} |
| 286 |
\definecolor{AmurmapleGreen}{rgb}{0.1,0.4,0.1} |
| 287 |
\definecolor{AmurmapleRemarkColor}{rgb}{0.2,0.2,0.2} |
| 288 |
\end{Code} |
| 289 |
|
| 290 |
\textcolor{AmurmapleRed}{\lstinline+AmurmapleRed+} is used to redefine the \lstinline+structure+ |
| 291 |
Beamer color\footnote{So if you redefine the \lstinline+structure+ color, the Amurmaple |
| 292 |
theme should change correctly.}, \textcolor{AmurmapleOrange}{\lstinline+AmurmapleOrange+} is used to redefine |
| 293 |
the \lstinline+text alerted+ Beamer color, \textcolor{AmurmapleGreen}{\lstinline+AmurmapleGreen+} is |
| 294 |
used for the math definition (see slide~\ref{sl:definition}) and for the |
| 295 |
\lstinline+block title example+ Beamer color, the |
| 296 |
\textcolor{AmurmapleBlue}{\lstinline+AmurmapleBlue+} for the new environment |
| 297 |
\lstinline+information+ (see slide~\ref{sl:information}) and \textcolor{AmurmapleRemarkColor}{\lstinline+AmurmapleRemarkColor+} for the \lstinline+remark+ environment (see slide~\pageref{sl:remark}). |
| 298 |
|
| 299 |
Of course, these definitions depend on the chosen color theme (see page~\pageref{sec:coloroptions}) |
| 300 |
\end{frame} |
| 301 |
|
| 302 |
\subsection{Classical commands} |
| 303 |
|
| 304 |
\begin{frame}[fragile]{Classical Beamer Commands} |
| 305 |
\framesubtitle{Customization} |
| 306 |
\framesection{Beamer buttons} |
| 307 |
\begin{Exemple} |
| 308 |
\beamerbutton{Button}~\beamerskipbutton{Skip Button}~\beamerreturnbutton{Return} |
| 309 |
\end{Exemple} |
| 310 |
\framesection{Alert and structure commands} |
| 311 |
\begin{Exemple} |
| 312 |
\structure{Test structure} \alert{Test alert} |
| 313 |
\end{Exemple} |
| 314 |
\end{frame} |
| 315 |
|
| 316 |
\begin{frame}[fragile]{Results of \texttt{$\backslash$tableofcontents}} |
| 317 |
\tableofcontents |
| 318 |
\end{frame} |
| 319 |
|
| 320 |
\subsection{Classical environments} |
| 321 |
|
| 322 |
\begin{frame}[allowframebreaks,fragile]{Classical Beamer environments} |
| 323 |
\framesection{Block environments} |
| 324 |
\begin{block}{Block} |
| 325 |
Test of the \lstinline+\begin{block}...\end{block}+ Beamer environment. |
| 326 |
\end{block} |
| 327 |
\begin{alertblock}{Alert Block} |
| 328 |
Test of the \lstinline+\begin{alertblock}...\end{alertblock}+ Beamer environment. |
| 329 |
\end{alertblock} |
| 330 |
\begin{exampleblock}{Example Block} |
| 331 |
Test of the \lstinline+\begin{exampleblock}...\end{exampleblock}+ Beamer environment. |
| 332 |
\end{exampleblock} |
| 333 |
|
| 334 |
\framebreak |
| 335 |
|
| 336 |
\framesection{Abstract environment} |
| 337 |
|
| 338 |
\begin{abstract} |
| 339 |
This is the result of the \lstinline+\begin{abstract}...\end{abstract}+ |
| 340 |
environment. |
| 341 |
\end{abstract} |
| 342 |
|
| 343 |
\framesection{Quotation environment} |
| 344 |
|
| 345 |
The environment \lstinline+\begin{quotation}[+\meta{author(s)}\lstinline+]...\end{quotation}+ has been |
| 346 |
redefined allowing an optional argument to provide the author(s) of the |
| 347 |
quotation. |
| 348 |
|
| 349 |
\begin{quotation}[Donald E. Knuth, \emph{The \TeX book}] |
| 350 |
Gentle reader: This is a handbook about \TeX, a new typesetting system G |
| 351 |
intended for the creation of beautiful books—and especially for books that |
| 352 |
contain a lot of mathematics. |
| 353 |
\end{quotation} |
| 354 |
|
| 355 |
\framebreak |
| 356 |
\framesection{Lists} |
| 357 |
|
| 358 |
The style of the standard enumerate and itemize lists has been modified as you |
| 359 |
can see below |
| 360 |
|
| 361 |
\begin{multicols}{2} |
| 362 |
\begin{itemize} |
| 363 |
\item Eggs |
| 364 |
\item Plants |
| 365 |
\begin{itemize} |
| 366 |
\item Flowers |
| 367 |
\end{itemize} |
| 368 |
\item Animals |
| 369 |
\end{itemize} |
| 370 |
\columnbreak |
| 371 |
\begin{enumerate} |
| 372 |
\item Eggs |
| 373 |
\item Plants |
| 374 |
\item Animals |
| 375 |
\begin{enumerate} |
| 376 |
\item Dogs |
| 377 |
\item Cats |
| 378 |
\end{enumerate} |
| 379 |
\end{enumerate} |
| 380 |
\end{multicols} |
| 381 |
\end{frame} |
| 382 |
|
| 383 |
|
| 384 |
\subsection{Section and Part Frames} |
| 385 |
|
| 386 |
\newsavebox{\codebox}% To store any verbatim content |
| 387 |
\begin{lrbox}{\codebox} |
| 388 |
\begin{Code} |
| 389 |
\begin{frame} |
| 390 |
\sectionpage |
| 391 |
\end{frame} |
| 392 |
|
| 393 |
%\begin{frame} |
| 394 |
%\partpage |
| 395 |
%\end{frame} |
| 396 |
\end{Code} |
| 397 |
\end{lrbox} |
| 398 |
|
| 399 |
\begin{frame}[fragile]{Section and Part Frames}\label{sectionpart} |
| 400 |
The standard \texttt{section page} and \texttt{part page} have been modified. |
| 401 |
|
| 402 |
The following code produce the next slide (the part slide is not generated |
| 403 |
because this document does not use part sectioning). |
| 404 |
|
| 405 |
\usebox{\codebox} |
| 406 |
|
| 407 |
\end{frame} |
| 408 |
|
| 409 |
\begin{frame} |
| 410 |
\sectionpage |
| 411 |
\end{frame} |
| 412 |
|
| 413 |
\subsection{Maths} |
| 414 |
|
| 415 |
\begin{frame}[fragile,allowframebreaks]{Maths environments} |
| 416 |
\begin{itemize} |
| 417 |
\item \lstinline+\begin{theorem}+\oarg{Title of th. (optional)}\lstinline+...\end{theorem}+ |
| 418 |
\begin{theorem}[Title of th. (optional)] |
| 419 |
There exists an infinite set. |
| 420 |
\end{theorem} |
| 421 |
\item \lstinline+\begin{example}...\end{example}+ |
| 422 |
\begin{example} |
| 423 |
The set of natural numbers is infinite. |
| 424 |
\end{example} |
| 425 |
\item \lstinline+\begin{definition}+\oarg{Title of def. (optional)}\lstinline+...\end{definition}+\label{sl:definition} |
| 426 |
\begin{definition}[Title of def. (optional)] |
| 427 |
A simple definition. |
| 428 |
\end{definition} |
| 429 |
\framebreak |
| 430 |
\item \lstinline+\begin{corollary}+\oarg{Title of corollary (optional)}\lstinline+...\end{corollary}+ |
| 431 |
\begin{corollary}[Title of corollary (optional)] |
| 432 |
A simple corollary. |
| 433 |
\end{corollary} |
| 434 |
\item \lstinline+\begin{proof}...\end{proof}+ |
| 435 |
\begin{proof} |
| 436 |
This follows from the axiom of infinity. |
| 437 |
\end{proof} |
| 438 |
\end{itemize} |
| 439 |
\end{frame} |
| 440 |
|
| 441 |
|
| 442 |
|
| 443 |
\section{Title Page} |
| 444 |
|
| 445 |
\sepframe |
| 446 |
|
| 447 |
\begin{frame}[fragile,allowframebreaks]{Title Page}\label{title} |
| 448 |
As shown in this document, the title page has been customized. |
| 449 |
In addition to the classic commands for making the title page, the Amurmaple |
| 450 |
theme provides new commands. |
| 451 |
|
| 452 |
The new commands are : |
| 453 |
\begin{itemize} |
| 454 |
\item \lstinline+\mail+\marg{mail}: that is used to provide the mail. Without the theme option |
| 455 |
\lstinline+nomail+, it is also added on the vertical sidebar on the current |
| 456 |
slide. |
| 457 |
\item \lstinline+\webpage+\marg{webpage}: that is used to provide the personal webpage of |
| 458 |
the speaker (or the project website). |
| 459 |
\item \lstinline+\collaboration+\marg{collaboration(s)}: that is used to provide the collaborators |
| 460 |
for the presented work. |
| 461 |
\end{itemize} |
| 462 |
|
| 463 |
The \lstinline+\logo+ command can be used to add a logo to each slide. In the |
| 464 |
standard theme, the logo is put in the bottom right corner of the slide, just |
| 465 |
above the page numbering. When the option \lstinline+sidebar+, the logo is put |
| 466 |
at the bottom of the sidebar (above the gauge if it is used). |
| 467 |
|
| 468 |
\framebreak |
| 469 |
|
| 470 |
Here the example used to generate this documentation. |
| 471 |
\begin{Code} |
| 472 |
\title[Amurmaple documentation]{Amurmaple Beamer Theme} |
| 473 |
\author[M.~Chupin]{Maxime Chupin} |
| 474 |
\subtitle{documentation} |
| 475 |
\institute[CNRS]{CNRS\\ |
| 476 |
University of Paris-Dauphine} |
| 477 |
\date{Mai 08, 2022} |
| 478 |
\titlegraphic{\includegraphics[width=4cm]{logo.png}} |
| 479 |
\mail{[email protected]} |
| 480 |
\webpage{www.ceremade.dauphine.fr/~chupin/} |
| 481 |
\collaboration{in collaboration with Beamer and \hologo{LaTeX3}} |
| 482 |
\end{Code} |
| 483 |
|
| 484 |
\end{frame} |
| 485 |
|
| 486 |
\section{New Frame Commands} |
| 487 |
|
| 488 |
\sepframe |
| 489 |
|
| 490 |
\begin{frame}[fragile]{\texttt{sepframe} command}\label{sepframe} |
| 491 |
\bigskip |
| 492 |
\begin{docCommand}{sepframe}{\oarg{title=\meta{mytitle},image=\meta{my image}}} |
| 493 |
The new command \lstinline+\sepframe+ is provided by the Amurmaple theme. This |
| 494 |
command allows you to generate a slide in the manner of a section page but with |
| 495 |
a slight improvement. In the red part below is generated the table of contents |
| 496 |
(with depth 1). |
| 497 |
|
| 498 |
Moreover, this command admits two optional arguments: |
| 499 |
\begin{description} |
| 500 |
\item[title:] this optional argument allows to modify the default title of the |
| 501 |
frame (which is the current section name) ; |
| 502 |
\item[image:] this optional argument allows to add an image to the frame (no |
| 503 |
image by default). |
| 504 |
\end{description} |
| 505 |
|
| 506 |
\end{docCommand} |
| 507 |
|
| 508 |
|
| 509 |
|
| 510 |
For exemple, we could use |
| 511 |
\begin{Code} |
| 512 |
\sepframe[title={My title},image={\includegraphics[width=5cm]{logo.png}}] |
| 513 |
\end{Code} |
| 514 |
|
| 515 |
The result is the next frame. |
| 516 |
\end{frame} |
| 517 |
|
| 518 |
\sepframe[title={My title},image={\includegraphics[width=5cm]{logo.png}}] |
| 519 |
|
| 520 |
\begin{frame}[fragile]{\texttt{thanksframe} command}\label{thanks} |
| 521 |
|
| 522 |
\begin{docCommand}{thanksframe}{\marg{thanking message}} |
| 523 |
The new command \lstinline+\thanksframe+ is provided by the Amurmaple |
| 524 |
theme. This command allows you to generate a slide to thank the audience. |
| 525 |
The text written to thank is a mandatory argument (e.g. ``\emph{The end}'') |
| 526 |
and the optional argument allows to change the default image which is the |
| 527 |
\emph{title graphics} (\lstinline+\inserttitlegraphic+ exactly). |
| 528 |
\end{docCommand} |
| 529 |
The following code produces the next slide. |
| 530 |
\begin{Code} |
| 531 |
\thanksframe{Merci beaucoup~!} |
| 532 |
\end{Code} |
| 533 |
\end{frame} |
| 534 |
|
| 535 |
\thanksframe{Merci beaucoup~!} |
| 536 |
|
| 537 |
\section{New Commands and Environments} |
| 538 |
|
| 539 |
\begin{frame}[fragile,allowframebreaks]{Some New Commands and Environments} |
| 540 |
The Amurmaple theme provides some other commands and environments. |
| 541 |
|
| 542 |
\framesection{New Commands} |
| 543 |
|
| 544 |
\begin{docCommand}{framesection}{\marg{text}} |
| 545 |
Command to add a section title inside a frame. |
| 546 |
|
| 547 |
The following example produced the previous frame sectioning \emph{New Commands} |
| 548 |
\begin{Code} |
| 549 |
\framesection{New Commands} |
| 550 |
\end{Code} |
| 551 |
\end{docCommand} |
| 552 |
\begin{docCommand}{boxalert}{\marg{text}} |
| 553 |
Another \lstinline+\alert+ command with a colored box. |
| 554 |
\begin{Exemple} |
| 555 |
\boxalert{This is another} command box to compare to \alert{this one}. |
| 556 |
\end{Exemple} |
| 557 |
\end{docCommand} |
| 558 |
\framebreak |
| 559 |
|
| 560 |
\framesection{New Environments} |
| 561 |
{\itshape \structure{Note:} Each environment provided by the Amurmaple theme uses |
| 562 |
translations for title names. Hence, depending on the \texttt{babel} setting, |
| 563 |
\emph{Remark} becomes \emph{Remarque, Bemerkung,}\dots} |
| 564 |
|
| 565 |
\begin{docEnvironment}{information}{\oarg{changed title}} |
| 566 |
The Amurmaple theme provides an information environment.\label{sl:information} |
| 567 |
\begin{Code} |
| 568 |
\begin{information} |
| 569 |
This is important information. |
| 570 |
\end{information} |
| 571 |
\end{Code} |
| 572 |
\begin{information} |
| 573 |
This is an important information. |
| 574 |
\end{information} |
| 575 |
|
| 576 |
This environment has an optional argument to change the \emph{Information} |
| 577 |
title. |
| 578 |
\begin{Code} |
| 579 |
\begin{information}[More information] |
| 580 |
Maybe more important information? |
| 581 |
\end{information} |
| 582 |
\end{Code} |
| 583 |
|
| 584 |
\begin{information}[More information] |
| 585 |
Maybe more important information? |
| 586 |
\end{information} |
| 587 |
Because this environment is built with a \texttt{tcolorbox}, to use a footnote in it, you have to use \lstinline+\footnote[frame]{...}+. |
| 588 |
\end{docEnvironment} |
| 589 |
|
| 590 |
\begin{docEnvironment}{remark}{\oarg{title complement}} |
| 591 |
The Amurmaple theme provides a remark environment with an optional |
| 592 |
argument to add a comment in the title (as for the theorem environment). |
| 593 |
|
| 594 |
The colors of \lstinline+colframe+ and and \lstinline+colback+ are respectively \lstinline+AmurmapleRemarkColor+ and \lstinline+AmurmapleRemarkColor!10+. |
| 595 |
\label{sl:remark} |
| 596 |
|
| 597 |
Because this environment is built with a \texttt{tcolorbox}, to use a footnote in it, you have to use \lstinline+\footnote[frame]{...}+. |
| 598 |
|
| 599 |
\begin{Code} |
| 600 |
\begin{remark}[Some complement] |
| 601 |
This is a capital remark. |
| 602 |
\end{remark} |
| 603 |
\end{Code} |
| 604 |
\begin{remark}[Some complement] |
| 605 |
This is a capital remark. |
| 606 |
\end{remark} |
| 607 |
|
| 608 |
\end{docEnvironment} |
| 609 |
|
| 610 |
\end{frame} |
| 611 |
|
| 612 |
\appendix |
| 613 |
|
| 614 |
\section{Appendix} |
| 615 |
|
| 616 |
\sepframe |
| 617 |
|
| 618 |
\begin{frame}[fragile]{Appendix} |
| 619 |
In the appendix part of the document, (after the command |
| 620 |
\lstinline+\appendix+) the display is slightly modified as you |
| 621 |
can see in this slide. If the gauge exists, it disappears, the numbering |
| 622 |
of slides is reset and the display is in roman form. |
| 623 |
\end{frame} |
| 624 |
|
| 625 |
|
| 626 |
\thanksframe{The end!} |
| 627 |
|
| 628 |
|
| 629 |
|
| 630 |
\end{document} |
| 631 |
|
| 632 |
%%% Local Variables: |
| 633 |
%%% mode: latex |
| 634 |
%%% TeX-master: t |
| 635 |
%%% End: |