From a9457cd08cdc56a33379cca51121c396a3e83eab Mon Sep 17 00:00:00 2001 From: Ross Churchley Date: Mon, 22 Feb 2016 22:48:01 -0800 Subject: [PATCH 1/2] Support backup slides Fix #126 --- demo/demo.tex | 14 ++++++++++++++ source/beamerouterthememetropolis.dtx | 12 ++++++++++++ source/beamerthememetropolis.dtx | 2 +- 3 files changed, 27 insertions(+), 1 deletion(-) 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/source/beamerouterthememetropolis.dtx b/source/beamerouterthememetropolis.dtx index 2bcffcb..c81f3f6 100644 --- a/source/beamerouterthememetropolis.dtx +++ b/source/beamerouterthememetropolis.dtx @@ -186,6 +186,18 @@ % % % +% \begin{macro}{appendix} +% \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} From f3b9c249065f3de10f85451eaaaf92767fdadbb7 Mon Sep 17 00:00:00 2001 From: Ross Churchley Date: Tue, 23 Feb 2016 12:46:56 -0800 Subject: [PATCH 2/2] Update documentation for backup slides --- doc/metropolistheme.dtx | 12 ++++++++++++ source/beamerouterthememetropolis.dtx | 4 ++++ 2 files changed, 16 insertions(+) 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 c81f3f6..75dcaa0 100644 --- a/source/beamerouterthememetropolis.dtx +++ b/source/beamerouterthememetropolis.dtx @@ -187,6 +187,10 @@ % % % \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}{%