Skip to content

Commit

Permalink
Fix #334: restrict standout theme to inner content
Browse files Browse the repository at this point in the history
So that the speaker's notes aren't affected by the typesetting of the slide.
  • Loading branch information
pacien committed Aug 1, 2018
1 parent 1a42fa1 commit a7fad7f
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions source/beamerinnerthememetropolis.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -559,9 +559,7 @@
\setbeamercolor{local structure}{
fg=palette primary.fg
}
\centering
\usebeamercolor[fg]{palette primary}
\usebeamerfont{standout}
}
% \end{macrocode}
%
Expand All @@ -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}
Expand Down

0 comments on commit a7fad7f

Please sign in to comment.