From a7fad7f1d8cfb732e88a6e05bb03e15d90e3b47a Mon Sep 17 00:00:00 2001 From: pacien Date: Mon, 23 Jul 2018 01:36:05 +0200 Subject: [PATCH] Fix #334: restrict standout theme to inner content So that the speaker's notes aren't affected by the typesetting of the slide. --- source/beamerinnerthememetropolis.dtx | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/source/beamerinnerthememetropolis.dtx b/source/beamerinnerthememetropolis.dtx index 1c36543..3dddeec 100644 --- a/source/beamerinnerthememetropolis.dtx +++ b/source/beamerinnerthememetropolis.dtx @@ -536,7 +536,7 @@ % Optional arguments to Beamer's frames are implemented using % |\define@key| from the |keyval| package, which will execute code when the % defined option is called. For the |standout| option, we begin a group, -% change the colors and fonts, and set a \centering alignment. +% change the colors and set frame options. % % \begin{macrocode} \providebool{metropolis@standout} @@ -559,9 +559,7 @@ \setbeamercolor{local structure}{ fg=palette primary.fg } - \centering \usebeamercolor[fg]{palette primary} - \usebeamerfont{standout} } % \end{macrocode} % @@ -580,6 +578,19 @@ }{} }{}{} % \end{macrocode} +% +% We set the fonts and the \centering alignment on the inner content, +% in such a way that the speaker's note layout isn't affected by the custom +% formatting. +% +% \begin{macrocode} + \AtBeginEnvironment{beamer@frameslide}{ + \ifbool{metropolis@standout}{ + \centering + \usebeamerfont{standout} + }{} + } +% \end{macrocode} % \end{macro} % % \subsubsection{Process package options}