From 961acd6d7b35cd4c0c0a248dfeeb8f3a63eb574c Mon Sep 17 00:00:00 2001 From: Ross Churchley Date: Thu, 18 Jun 2015 00:22:03 -0700 Subject: [PATCH] Add footline to outer theme --- beamerouterthememetropolis.dtx | 45 +++++++++++++++++++++++++++++++++- beamerthemem.dtx | 21 ---------------- 2 files changed, 44 insertions(+), 22 deletions(-) diff --git a/beamerouterthememetropolis.dtx b/beamerouterthememetropolis.dtx index b832e0e..a7e487d 100644 --- a/beamerouterthememetropolis.dtx +++ b/beamerouterthememetropolis.dtx @@ -27,7 +27,50 @@ % \iffalse %<*package> % ------------------------------------------------------------------------- \fi - +% \section{Implementation: \textsc{metropolis} outer theme} +% +% A |beamer| outer theme dictates the style of the frame elements traditionally +% set outside the body of each slide: the head, footline, and frame title. +% +% +% +% \subsection{Head and footline} +% +% All good |beamer| presentations should already remove the navigation symbols, +% but \textsc{metropolis} removes them automatically (just in case). +% +% \begin{macrocode} +\setbeamertemplate{navigation symbols}{} +% \end{macrocode} +% +% The only element in the footline by default is the frame number. It can +% optionally be omitted or displayed as a fraction of the total frames. +% +% \begin{macrocode} +\setbeamertemplate{footline}{% + \begin{beamercolorbox}[% + wd=\textwidth, + ht=3ex, + dp=3ex, + leftskip=0.3cm, + rightskip=0.3cm + ]{footline}% + \hfill\usebeamerfont{page number in head/foot}% + \if@noSlideNumbers% + %Purposefully left blank to display no slide number.% + \else% + \if@useTotalSlideIndicator% + \insertframenumber/\inserttotalframenumber% + \else% + \insertframenumber% + \fi% + \fi% + \end{beamercolorbox}% +} +% \end{macrocode} +% +% +% % \iffalse % % \fi diff --git a/beamerthemem.dtx b/beamerthemem.dtx index 5df4e8c..e9fe22b 100644 --- a/beamerthemem.dtx +++ b/beamerthemem.dtx @@ -188,27 +188,6 @@ % % % -% Footline/footnote -% -% \begin{macrocode} -\usenavigationsymbolstemplate{} -\setbeamertemplate{footline} -{% -\begin{beamercolorbox}[wd=\textwidth,ht=3ex,dp=3ex,leftskip=0.3cm,rightskip=0.3cm]{footline}% - \hfill\usebeamerfont{page number in head/foot}% -\if@noSlideNumbers% - %Purposefully left blank to display no slide number.% - \else% - \if@useTotalSlideIndicator% - \insertframenumber/\inserttotalframenumber% - \else% - \insertframenumber% - \fi% - \fi% -\end{beamercolorbox}% -} -% \end{macrocode} -% % Frametitle % % \begin{macrocode}