Ensure consistent line height

This commit is contained in:
Ross Churchley 2016-02-25 17:39:40 -08:00
parent 36f8d94172
commit c48cc90a7b
2 changed files with 9 additions and 2 deletions

View File

@ -328,6 +328,9 @@
\newlength{\metropolis@blocktitleadjustleft} \newlength{\metropolis@blocktitleadjustleft}
\newlength{\metropolis@blocktitleadjustright} \newlength{\metropolis@blocktitleadjustright}
\newlength{\metropolis@blockbodyadjust} \newlength{\metropolis@blockbodyadjust}
\providecommand{\metropolis@strut}{%
\vphantom{ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz()}%
}
\newcommand{\metropolis@block}[1]{ \newcommand{\metropolis@block}[1]{
\par\vskip\medskipamount \par\vskip\medskipamount
% \end{macrocode} % \end{macrocode}
@ -366,7 +369,9 @@
leftskip=\metropolis@blocktitleadjustleft, leftskip=\metropolis@blocktitleadjustleft,
rightskip=\metropolis@blocktitleadjustright]{block title#1} rightskip=\metropolis@blocktitleadjustright]{block title#1}
\usebeamerfont*{block title#1}% \usebeamerfont*{block title#1}%
\metropolis@strut%
\insertblocktitle% \insertblocktitle%
\metropolis@strut%
\end{beamercolorbox}% \end{beamercolorbox}%
\nointerlineskip% \nointerlineskip%
\usebeamerfont{block body#1}% \usebeamerfont{block body#1}%

View File

@ -148,7 +148,7 @@
% Templates for the frame title, which is optionally underlined with a % Templates for the frame title, which is optionally underlined with a
% progress bar. % progress bar.
% \begin{macrocode} % \begin{macrocode}
\newcommand{\metropolis@frametitlestrut}{ \providecommand{\metropolis@strut}{%
\vphantom{ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz()}% \vphantom{ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz()}%
} }
\defbeamertemplate{frametitle}{plain}{% \defbeamertemplate{frametitle}{plain}{%
@ -157,7 +157,9 @@
wd=\paperwidth,% wd=\paperwidth,%
sep=1.5ex,% sep=1.5ex,%
]{frametitle}% ]{frametitle}%
\metropolis@frametitlestrut\insertframetitle\metropolis@frametitlestrut% \metropolis@strut%
\insertframetitle%
\metropolis@strut%
\end{beamercolorbox}% \end{beamercolorbox}%
} }
% \end{macrocode} % \end{macrocode}