Changed from \setlength to \renewcommand

As per @rchurchley in comment thread on pull request for matze/mtheme
in fix #115
This commit is contained in:
tmgriffiths 2015-07-17 17:16:45 +10:00
parent 9afeab17fe
commit 0a130dd39e
1 changed files with 12 additions and 6 deletions

View File

@ -77,15 +77,21 @@
.is choice, .is choice,
regular/.code={% regular/.code={%
\renewcommand{\@metropolis@frametitleformat}{}% \renewcommand{\@metropolis@frametitleformat}{}%
\setlength{\@metropolis@frametitlestrut}{\heightof{ABCDEFGHIJKLMNOPQRSTUVXYZ}}% Usually around 1.6ex but is font dependant \renewcommand{\@metropolis@frametitlestrut}{%
\rule{0pt}{\heightof{ABCDEFGHIJKLMNOPQRSTUVWXYZ}}
}
}, },
lowercase/.code={% lowercase/.code={%
\renewcommand{\@metropolis@frametitleformat}{\MakeLowercase}% \renewcommand{\@metropolis@frametitleformat}{\MakeLowercase}%
\setlength{\@metropolis@frametitlestrut}{\heightof{abcdefghijklmnopqrstuvxyz}} \renewcommand{\@metropolis@frametitlestrut}{%
\rule{0pt}{\heightof{abcdefghijklmnopqrstuvwxyz}}
}
}, },
uppercase/.code={% uppercase/.code={%
\renewcommand{\@metropolis@frametitleformat}{\MakeUppercase}% \renewcommand{\@metropolis@frametitleformat}{\myletterspacing\MakeUppercase}%
\setlength{\@metropolis@frametitlestrut}{\heightof{ABCDEFGHIJKLMNOPQRSTUVXYZ}}% Usually around 1.6ex but is font dependant \renewcommand{\@metropolis@frametitlestrut}{%
\rule{0pt}{\heightof{ABCDEFGHIJKLMNOPQRSTUVWXYZ}}
}
}, },
} }
% \end{macrocode} % \end{macrocode}
@ -211,7 +217,7 @@
wd=\paperwidth, wd=\paperwidth,
sep=1.5ex, sep=1.5ex,
]{frametitle} ]{frametitle}
\insertframetitle\rule{0pt}{\@metropolis@frametitlestrut}% \insertframetitle\@metropolis@frametitlestrut%
\end{beamercolorbox}% \end{beamercolorbox}%
\vspace{\@metropolis@voffset} \vspace{\@metropolis@voffset}
} }
@ -221,7 +227,7 @@
wd=\paperwidth, wd=\paperwidth,
sep=1.5ex, sep=1.5ex,
]{frametitle} ]{frametitle}
\insertframetitle\rule{0pt}{\@metropolis@frametitlestrut}% \insertframetitle\@metropolis@frametitlestrut%
\end{beamercolorbox}% \end{beamercolorbox}%
\usebeamertemplate*{progress bar in head/foot} \usebeamertemplate*{progress bar in head/foot}
\vspace{\@metropolis@voffset} \vspace{\@metropolis@voffset}