mirror of https://github.com/matze/mtheme.git
Merge pull request #115 from tmgriffiths/frametitlefixes
Frametitle Fixes
This commit is contained in:
commit
1f5dbc63c6
|
@ -87,13 +87,24 @@
|
||||||
\pgfkeys{
|
\pgfkeys{
|
||||||
/metropolis/outer/frametitleformat/.cd,
|
/metropolis/outer/frametitleformat/.cd,
|
||||||
.is choice,
|
.is choice,
|
||||||
regular/.code=\renewcommand{\@metropolis@frametitleformat}{},
|
regular/.code={%
|
||||||
|
\renewcommand{\@metropolis@frametitleformat}{}%
|
||||||
|
\renewcommand{\@metropolis@frametitlestrut}{%
|
||||||
|
\rule{0pt}{\heightof{ABCDEFGHIJKLMNOPQRSTUVWXYZ}}
|
||||||
|
}
|
||||||
|
},
|
||||||
lowercase/.code={%
|
lowercase/.code={%
|
||||||
\renewcommand{\@metropolis@frametitleformat}{\MakeLowercase}
|
\renewcommand{\@metropolis@frametitleformat}{\MakeLowercase}%
|
||||||
},
|
\renewcommand{\@metropolis@frametitlestrut}{%
|
||||||
|
\rule{0pt}{\heightof{abcdefghijklmnopqrstuvwxyz}}
|
||||||
|
}
|
||||||
|
},
|
||||||
uppercase/.code={%
|
uppercase/.code={%
|
||||||
\renewcommand{\@metropolis@frametitleformat}{\MakeUppercase}
|
\renewcommand{\@metropolis@frametitleformat}{\MakeUppercase}%
|
||||||
},
|
\renewcommand{\@metropolis@frametitlestrut}{%
|
||||||
|
\rule{0pt}{\heightof{ABCDEFGHIJKLMNOPQRSTUVWXYZ}}
|
||||||
|
}
|
||||||
|
},
|
||||||
}
|
}
|
||||||
% \end{macrocode}
|
% \end{macrocode}
|
||||||
% \end{macro}
|
% \end{macro}
|
||||||
|
@ -183,16 +194,14 @@
|
||||||
% progress bar.
|
% progress bar.
|
||||||
%
|
%
|
||||||
% \begin{macrocode}
|
% \begin{macrocode}
|
||||||
|
\newlength{\@metropolis@frametitlestrut}
|
||||||
\defbeamertemplate{frametitle}{plain}{%
|
\defbeamertemplate{frametitle}{plain}{%
|
||||||
\nointerlineskip
|
\nointerlineskip%
|
||||||
\begin{beamercolorbox}[%
|
\begin{beamercolorbox}[%
|
||||||
wd=\paperwidth,
|
wd=\paperwidth,%
|
||||||
leftskip=0.3cm,
|
sep=1.5ex,%
|
||||||
rightskip=0.3cm,
|
]{frametitle}%
|
||||||
ht=2.5ex,
|
\@metropolis@frametitlestrut\insertframetitle\@metropolis@frametitlestrut%
|
||||||
dp=1.5ex
|
|
||||||
]{frametitle}
|
|
||||||
\insertframetitle%
|
|
||||||
\end{beamercolorbox}%
|
\end{beamercolorbox}%
|
||||||
}
|
}
|
||||||
% \end{macrocode}
|
% \end{macrocode}
|
||||||
|
|
Loading…
Reference in New Issue