From: Michael Orlitzky Date: Tue, 28 Mar 2017 23:50:22 +0000 (-0400) Subject: Extend the default "footline" template with a custom "footextra". X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=5b3e1f581c80150816c1d48fc3c9058fc4591a8f;p=beamer-mjo.git Extend the default "footline" template with a custom "footextra". --- diff --git a/beamerouterthemeUMBC.sty b/beamerouterthemeUMBC.sty index 90e5b86..5083c02 100644 --- a/beamerouterthemeUMBC.sty +++ b/beamerouterthemeUMBC.sty @@ -4,6 +4,22 @@ % No headline. \setbeamertemplate{headline}{} -% Set the footline to contain the author and institute. Comes -% from the miniframes theme. -\beamer@theme@footline@authorinstitute +% An optional command that will appear in the middle of the footer. +\defbeamertemplate{footextra}{} + +% Stolen from the miniframes theme, and modified to include the +% footextra template. +\setbeamertemplate{footline}{ + \begin{beamercolorbox}[colsep=1.5pt]{upper separation line foot} + \end{beamercolorbox} + \begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,% + leftskip=.3cm,rightskip=.3cm plus1fil]{author in head/foot}% + \leavevmode{\usebeamerfont{author in head/foot}\insertshortauthor}% + \hfill% + \usebeamertemplate{footextra}% + \hfill% + {\usebeamerfont{institute in head/foot}\usebeamercolor[fg]{institute in head/foot}\insertshortinstitute}% + \end{beamercolorbox}% + \begin{beamercolorbox}[colsep=1.5pt]{lower separation line foot} + \end{beamercolorbox} +}