From 6eb3f881f3857961d4d9d1fb35c9dee77e52a43c Mon Sep 17 00:00:00 2001 From: Ross Churchley Date: Thu, 28 May 2015 16:50:58 -0700 Subject: [PATCH] Add hook to allow users to lowercase small caps if desired --- beamerthemem.sty | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/beamerthemem.sty b/beamerthemem.sty index fad5605..0b44683 100644 --- a/beamerthemem.sty +++ b/beamerthemem.sty @@ -99,7 +99,7 @@ \if@noSmallCapitals% \inserttitle% \else% - \scshape\inserttitle% + \scshape\mthemetitleformat{\inserttitle}% \fi% \vspace*{0.5em} }} @@ -181,15 +181,17 @@ \if@noSmallCapitals% \newcommand{\insertsectionHEADaux}[3]{#3}% \else% -\newcommand{\insertsectionHEADaux}[3]{\scshape #3}% +\newcommand{\insertsectionHEADaux}[3]{\scshape \mthemetitleformat{#3}}% \fi% +\def\mthemetitleformat#1{#1} + \newcommand{\plain}[2][]{% \begingroup \setbeamercolor{background canvas}{use=palette primary,bg=palette primary.fg} \begin{frame}{#1} \centering - \vfill\vspace{1em}\usebeamerfont{section title}\textcolor{white}{\scshape #2}\vfill + \vfill\vspace{1em}\usebeamerfont{section title}\textcolor{white}{\scshape \mthemetitleformat{#2}}\vfill \end{frame} \endgroup } @@ -283,13 +285,13 @@ \if@noSmallCapitals% \insertframetitle% \else% - \scshape\insertframetitle% + \scshape\mthemetitleformat{\insertframetitle}% \fi% \else% \if@noSmallCapitals% \insertframetitle% \else% - \scshape\insertframetitle% + \scshape\mthemetitleformat{\insertframetitle}% \fi% \fi% \end{beamercolorbox}%