Use sectiontitleformat for subsection title

Fix #212
This commit is contained in:
Ross Churchley 2016-06-13 19:42:38 -07:00
parent 5107b2383e
commit 19dcbaba40
2 changed files with 11 additions and 5 deletions

View File

@ -369,6 +369,12 @@
\metropolis@sectiontitleformat{#1}}}} \metropolis@sectiontitleformat{#1}}}}
{} {}
{\PackageError{beamerfontthememetropolis}{Patching section title failed}} {\PackageError{beamerfontthememetropolis}{Patching section title failed}}
\patchcmd{\beamer@subsection}
{\def\insertsubsectionhead{\hyperlink{Navigation\the\c@page}{#1}}}
{\def\insertsubsectionhead{\hyperlink{Navigation\the\c@page}{%
\metropolis@sectiontitleformat{#1}}}}
{}
{\PackageError{beamerfontthememetropolis}{Patching section title failed}}
% \end{macrocode} % \end{macrocode}
% %
% Similarly, to make the |\MakeLowercase| and |\MakeUppercase| macros work in % Similarly, to make the |\MakeLowercase| and |\MakeUppercase| macros work in

View File

@ -65,7 +65,7 @@
% \end{macrocode} % \end{macrocode}
% \end{macro} % \end{macro}
% %
% \begin{macro}{sectionpage} % \begin{macro}{subsectionpage}
% Optionally add a slide marking the beginning of each subsection. % Optionally add a slide marking the beginning of each subsection.
% \begin{macrocode} % \begin{macrocode}
\pgfkeys{ \pgfkeys{
@ -251,10 +251,10 @@
\usebeamercolor[fg]{section title} \usebeamercolor[fg]{section title}
\usebeamerfont{section title} \usebeamerfont{section title}
\insertsectionhead\par \insertsectionhead\par
\ifx\insertsubsection\@empty\else \ifx\insertsubsectionhead\@empty\else
\usebeamercolor[fg]{subsection title} \usebeamercolor[fg]{subsection title}
\usebeamerfont{subsection title} \usebeamerfont{subsection title}
\insertsubsection \insertsubsectionhead
\fi \fi
\end{center} \end{center}
} }
@ -267,10 +267,10 @@
\insertsectionhead\\[-1ex] \insertsectionhead\\[-1ex]
\usebeamertemplate*{progress bar in section page} \usebeamertemplate*{progress bar in section page}
\par \par
\ifx\insertsubsection\@empty\else% \ifx\insertsubsectionhead\@empty\else%
\usebeamercolor[fg]{subsection title}% \usebeamercolor[fg]{subsection title}%
\usebeamerfont{subsection title}% \usebeamerfont{subsection title}%
\insertsubsection \insertsubsectionhead
\fi \fi
\end{minipage} \end{minipage}
\par \par