Commit eecf3fb7 authored by Bernhard Heinloth's avatar Bernhard Heinloth
Browse files

Footer stadnout color

parent 745eebaa
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
% \begin{macrocode} % \begin{macrocode}
\RequirePackage{etoolbox} \RequirePackage{etoolbox}
\RequirePackage{calc} \RequirePackage{calc}
\RequirePackage{pgfpages}
\RequirePackage{pgfopts} \RequirePackage{pgfopts}
% \end{macrocode} % \end{macrocode}
% %
...@@ -64,6 +65,33 @@ ...@@ -64,6 +65,33 @@
% \end{macrocode} % \end{macrocode}
% \end{macro} % \end{macro}
% %
% \begin{macro}{footer}
% Adds slide numbers to the bottom right of each slide.
% \begin{macrocode}
\pgfkeys{
/neo/outer/footer/.cd,
.is choice,
none/.code=\setbeamertemplate{frame footer}[none],
author/.code=\setbeamertemplate{frame footer}[author],
author title/.code=\setbeamertemplate{frame footer}[author title],
title/.code=\setbeamertemplate{frame footer}[title],
title section/.code=\setbeamertemplate{frame footer}[title section],
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{footer style}
% Footer background color
% \begin{macrocode}
\pgfkeys{
/neo/outer/footer style/.cd,
.is choice,
plain/.code=\setbeamertemplate{footline}[plain],
standout/.code=\setbeamertemplate{footline}[standout],
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{progressbar} % \begin{macro}{progressbar}
% Adds a progress bar to the top, bottom, or frametitle of each slide. % Adds a progress bar to the top, bottom, or frametitle of each slide.
% \begin{macrocode} % \begin{macrocode}
...@@ -73,7 +101,6 @@ ...@@ -73,7 +101,6 @@
none/.code={% none/.code={%
\setbeamertemplate{headline}[plain] \setbeamertemplate{headline}[plain]
\setbeamertemplate{frametitle}[plain] \setbeamertemplate{frametitle}[plain]
\setbeamertemplate{footline}[plain]
}, },
head/.code={\pgfkeys{/neo/outer/progressbar=none} head/.code={\pgfkeys{/neo/outer/progressbar=none}
\addtobeamertemplate{headline}{}{% \addtobeamertemplate{headline}{}{%
...@@ -100,6 +127,8 @@ ...@@ -100,6 +127,8 @@
\newcommand{\neo@outer@setdefaults}{ \newcommand{\neo@outer@setdefaults}{
\pgfkeys{/neo/outer/.cd, \pgfkeys{/neo/outer/.cd,
frametitle icon=none, frametitle icon=none,
footer=none,
footer style=plain,
numbering=counter, numbering=counter,
progressbar=none, progressbar=none,
} }
...@@ -132,6 +161,24 @@ ...@@ -132,6 +161,24 @@
% fraction of the total frames. % fraction of the total frames.
% \begin{macrocode} % \begin{macrocode}
\defbeamertemplate{frame footer}{none}{} \defbeamertemplate{frame footer}{none}{}
\defbeamertemplate{frame footer}{author}{
\insertshortauthor%
}
\defbeamertemplate{frame footer}{author title}{
\insertshortauthor%
\hfill%
\insertshorttitle%
\hfill%
}
\defbeamertemplate{frame footer}{title}{
\insertshorttitle%
}
\defbeamertemplate{frame footer}{title section}{
\insertshorttitle%
\hfill%
\insertsection %
\hfill%
}
\defbeamertemplate{frame footer}{custom}[1]{ #1 } \defbeamertemplate{frame footer}{custom}[1]{ #1 }
% \end{macrocode} % \end{macrocode}
% %
...@@ -159,6 +206,14 @@ ...@@ -159,6 +206,14 @@
\usebeamertemplate*{frame numbering} \usebeamertemplate*{frame numbering}
\end{beamercolorbox}% \end{beamercolorbox}%
} }
\defbeamertemplate{footline}{standout}{%
\begin{beamercolorbox}[wd=\textwidth, sep=1.3ex]{palette primary}%
\usebeamerfont{page number in head/foot}%
\usebeamertemplate*{frame footer}
\hfill%
\usebeamertemplate*{frame numbering}
\end{beamercolorbox}%
}
% \end{macrocode} % \end{macrocode}
% \end{macro} % \end{macro}
% \end{macro} % \end{macro}
...@@ -230,6 +285,8 @@ ...@@ -230,6 +285,8 @@
% \end{macrocode} % \end{macrocode}
% \end{macro} % \end{macro}
% %
% %
% %
% \begin{macro}{appendix} % \begin{macro}{appendix}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment