diff --git a/demo/demo.tex b/demo/demo.tex index 50eb7fa..92032ba 100644 --- a/demo/demo.tex +++ b/demo/demo.tex @@ -1,6 +1,7 @@ \documentclass[10pt]{beamer} \usetheme{metropolis} +\usepackage{appendixnumberbeamer} \usepackage{booktabs} \usepackage[scale=2]{ccicons} @@ -302,6 +303,19 @@ or show \textbf{bold} results.\end{verbatim} \plain{Questions?} +\appendix + +\begin{frame}[fragile]{Backup slides} + Sometimes, it is useful to add slides at the end of your presentation to + refer to during audience questions. + + The best way to do this is to include the \verb|appendixnumberbeamer| + package in your preamble and call \verb|\appendix| before your backup slides. + + \themename will automatically turn off slide numbering and progress bars for + slides in the appendix. +\end{frame} + \begin{frame}[allowframebreaks]{References} \bibliography{demo} diff --git a/doc/metropolistheme.dtx b/doc/metropolistheme.dtx index e9bf019..61e997a 100644 --- a/doc/metropolistheme.dtx +++ b/doc/metropolistheme.dtx @@ -497,6 +497,18 @@ The sub-package |pgfplotsthemetol| defines palettes for |pgfplots| charts based on Tol's work. +\section{Tips \& Tricks} + +\subsection{Backup Slides} + +Speakers will often include extra slides at the end of their presentation to +refer to during audience questions. One easy way to do this is to include the +\verb|appendixnumberbeamer| package in your preamble and call \verb|\appendix| before your backup slides. + +\themename will automatically turn off slide numbering and progress bars for +slides in the appendix. + + \section{Known Issues} \subsection{Title formats} diff --git a/source/beamerouterthememetropolis.dtx b/source/beamerouterthememetropolis.dtx index 2bcffcb..75dcaa0 100644 --- a/source/beamerouterthememetropolis.dtx +++ b/source/beamerouterthememetropolis.dtx @@ -186,6 +186,22 @@ % % % +% \begin{macro}{appendix} +% Removes page numbering and per-slide progress bars when |\appendix| is +% called. This makes it easier to include additional ``backup slides'' at +% the end of the presentation, especially in conjunction with the package +% |appendixnumberbeamer|. +% \begin{macrocode} +\AtBeginDocument{% + \apptocmd{\appendix}{% + \pgfkeys{% + /metropolis/outer/.cd, + numbering=none, + progressbar=none} + }{}{} +} +% \end{macrocode} +% \end{macro} % \subsubsection{Process package options} % % \begin{macrocode} diff --git a/source/beamerthememetropolis.dtx b/source/beamerthememetropolis.dtx index be66daf..d66afcb 100644 --- a/source/beamerthememetropolis.dtx +++ b/source/beamerthememetropolis.dtx @@ -188,7 +188,7 @@ bg=palette primary.bg } } - \begin{frame}[c]{#1} + \begin{frame}[c,noframenumbering]{#1} \begin{center} \usebeamercolor[fg]{palette primary} \usebeamerfont{plain title}