Merge pull request #337 from pacien/pr-334
Restrict standout font and alignment to inner content
This commit is contained in:
commit
2fa6084b9d
|
@ -536,7 +536,7 @@
|
||||||
% Optional arguments to Beamer's frames are implemented using
|
% Optional arguments to Beamer's frames are implemented using
|
||||||
% |\define@key| from the |keyval| package, which will execute code when the
|
% |\define@key| from the |keyval| package, which will execute code when the
|
||||||
% defined option is called. For the |standout| option, we begin a group,
|
% 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}
|
% \begin{macrocode}
|
||||||
\providebool{metropolis@standout}
|
\providebool{metropolis@standout}
|
||||||
|
@ -559,9 +559,7 @@
|
||||||
\setbeamercolor{local structure}{
|
\setbeamercolor{local structure}{
|
||||||
fg=palette primary.fg
|
fg=palette primary.fg
|
||||||
}
|
}
|
||||||
\centering
|
|
||||||
\usebeamercolor[fg]{palette primary}
|
\usebeamercolor[fg]{palette primary}
|
||||||
\usebeamerfont{standout}
|
|
||||||
}
|
}
|
||||||
% \end{macrocode}
|
% \end{macrocode}
|
||||||
%
|
%
|
||||||
|
@ -580,6 +578,19 @@
|
||||||
}{}
|
}{}
|
||||||
}{}{}
|
}{}{}
|
||||||
% \end{macrocode}
|
% \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}
|
% \end{macro}
|
||||||
%
|
%
|
||||||
% \subsubsection{Process package options}
|
% \subsubsection{Process package options}
|
||||||
|
|
Loading…
Reference in New Issue