From 5b3e1f581c80150816c1d48fc3c9058fc4591a8f Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Tue, 28 Mar 2017 19:50:22 -0400 Subject: [PATCH] Extend the default "footline" template with a custom "footextra". --- beamerouterthemeUMBC.sty | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) 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} +} -- 2.43.2