]> gitweb.michael.orlitzky.com - beamer-mjo.git/commitdiff
Extend the default "footline" template with a custom "footextra".
authorMichael Orlitzky <michael@orlitzky.com>
Tue, 28 Mar 2017 23:50:22 +0000 (19:50 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Tue, 28 Mar 2017 23:50:22 +0000 (19:50 -0400)
beamerouterthemeUMBC.sty

index 90e5b860ff98fdabeecb4cf320f9b8ea38fed109..5083c02cd190dbe979e3a44b2f9671d9142ed531 100644 (file)
@@ -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}
+}