1
0
mirror of https://github.com/matze/mtheme.git synced 2024-07-02 08:20:55 +02:00

Add hook to allow users to lowercase small caps if desired

This commit is contained in:
Ross Churchley 2015-05-28 16:50:58 -07:00
parent eddf4016ec
commit 6eb3f881f3

View File

@ -99,7 +99,7 @@
\if@noSmallCapitals% \if@noSmallCapitals%
\inserttitle% \inserttitle%
\else% \else%
\scshape\inserttitle% \scshape\mthemetitleformat{\inserttitle}%
\fi% \fi%
\vspace*{0.5em} \vspace*{0.5em}
}} }}
@ -181,15 +181,17 @@
\if@noSmallCapitals% \if@noSmallCapitals%
\newcommand{\insertsectionHEADaux}[3]{#3}% \newcommand{\insertsectionHEADaux}[3]{#3}%
\else% \else%
\newcommand{\insertsectionHEADaux}[3]{\scshape #3}% \newcommand{\insertsectionHEADaux}[3]{\scshape \mthemetitleformat{#3}}%
\fi% \fi%
\def\mthemetitleformat#1{#1}
\newcommand{\plain}[2][]{% \newcommand{\plain}[2][]{%
\begingroup \begingroup
\setbeamercolor{background canvas}{use=palette primary,bg=palette primary.fg} \setbeamercolor{background canvas}{use=palette primary,bg=palette primary.fg}
\begin{frame}{#1} \begin{frame}{#1}
\centering \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} \end{frame}
\endgroup \endgroup
} }
@ -283,13 +285,13 @@
\if@noSmallCapitals% \if@noSmallCapitals%
\insertframetitle% \insertframetitle%
\else% \else%
\scshape\insertframetitle% \scshape\mthemetitleformat{\insertframetitle}%
\fi% \fi%
\else% \else%
\if@noSmallCapitals% \if@noSmallCapitals%
\insertframetitle% \insertframetitle%
\else% \else%
\scshape\insertframetitle% \scshape\mthemetitleformat{\insertframetitle}%
\fi% \fi%
\fi% \fi%
\end{beamercolorbox}% \end{beamercolorbox}%