| 1 |
% Copyright 2007 by Till Tantau |
| 2 |
% Copyright 2015 by Vedran Mileti\'c, Joseph Wright |
| 3 |
% |
| 4 |
% This file may be distributed and/or modified |
| 5 |
% |
| 6 |
% 1. under the LaTeX Project Public License and/or |
| 7 |
% 2. under the GNU Public License. |
| 8 |
% |
| 9 |
% See the file LICENSE.md for more details. |
| 10 |
|
| 11 |
\setbeamercolor{section in head/foot}{parent=palette tertiary} |
| 12 |
\setbeamercolor{subsection in head/foot}{parent=palette secondary} |
| 13 |
\setbeamercolor{author in head/foot}{parent=subsection in head/foot} |
| 14 |
\setbeamercolor{title in head/foot}{parent=section in head/foot} |
| 15 |
|
| 16 |
|
| 17 |
\def\beamer@theme@footline@empty{} |
| 18 |
\def\beamer@theme@footline@authorinstitute{ |
| 19 |
\defbeamertemplate*{footline}{miniframes theme} |
| 20 |
{% |
| 21 |
\begin{beamercolorbox}[colsep=1.5pt]{upper separation line foot} |
| 22 |
\end{beamercolorbox} |
| 23 |
\begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,% |
| 24 |
leftskip=.3cm,rightskip=.3cm plus1fil]{author in head/foot}% |
| 25 |
\leavevmode{\usebeamerfont{author in head/foot}\insertshortauthor}% |
| 26 |
\hfill% |
| 27 |
{\usebeamerfont{institute in head/foot}\usebeamercolor[fg]{institute in head/foot}\insertshortinstitute% |
| 28 |
\ifbeamertemplateempty{page number in head/foot}{}{\qquad}% |
| 29 |
\usebeamercolor[fg]{page number in head/foot}\usebeamerfont{page number in head/foot}\usebeamertemplate{page number in head/foot}% |
| 30 |
}% |
| 31 |
\end{beamercolorbox}% |
| 32 |
\begin{beamercolorbox}[colsep=1.5pt]{lower separation line foot} |
| 33 |
\end{beamercolorbox} |
| 34 |
} |
| 35 |
} |
| 36 |
\def\beamer@theme@footline@authortitle{ |
| 37 |
\defbeamertemplate*{footline}{miniframes theme} |
| 38 |
{% |
| 39 |
\begin{beamercolorbox}[colsep=1.5pt]{upper separation line foot} |
| 40 |
\end{beamercolorbox} |
| 41 |
\begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,% |
| 42 |
leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}% |
| 43 |
\leavevmode{\usebeamerfont{title in head/foot}\insertshorttitle}% |
| 44 |
\hfill% |
| 45 |
{\usebeamerfont{author in head/foot}\usebeamercolor[fg]{author in head/foot}\insertshortauthor% |
| 46 |
\ifbeamertemplateempty{page number in head/foot}{}{\qquad}% |
| 47 |
\usebeamercolor[fg]{page number in head/foot}\usebeamerfont{page number in head/foot}\usebeamertemplate{page number in head/foot}% |
| 48 |
}% |
| 49 |
\end{beamercolorbox}% |
| 50 |
\begin{beamercolorbox}[colsep=1.5pt]{lower separation line foot} |
| 51 |
\end{beamercolorbox} |
| 52 |
} |
| 53 |
} |
| 54 |
\def\beamer@theme@footline@institutetitle{ |
| 55 |
\defbeamertemplate*{footline}{miniframes theme} |
| 56 |
{% |
| 57 |
\begin{beamercolorbox}[colsep=1.5pt]{upper separation line foot} |
| 58 |
\end{beamercolorbox} |
| 59 |
\begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,% |
| 60 |
leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}% |
| 61 |
\leavevmode{\usebeamerfont{title in head/foot}\insertshorttitle}% |
| 62 |
\hfill% |
| 63 |
{\usebeamerfont{institute in head/foot}\usebeamercolor[fg]{institute in head/foot}\insertshortinstitute% |
| 64 |
\ifbeamertemplateempty{page number in head/foot}{}{\qquad}% |
| 65 |
\usebeamercolor[fg]{page number in head/foot}\usebeamerfont{page number in head/foot}\usebeamertemplate{page number in head/foot}% |
| 66 |
}% |
| 67 |
\end{beamercolorbox}% |
| 68 |
\begin{beamercolorbox}[colsep=1.5pt]{lower separation line foot} |
| 69 |
\end{beamercolorbox} |
| 70 |
} |
| 71 |
} |
| 72 |
\def\beamer@theme@footline@authorinstitutetitle{ |
| 73 |
\defbeamertemplate*{footline}{miniframes theme} |
| 74 |
{% |
| 75 |
\begin{beamercolorbox}[colsep=1.5pt]{upper separation line foot} |
| 76 |
\end{beamercolorbox} |
| 77 |
\begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,% |
| 78 |
leftskip=.3cm,rightskip=.3cm plus1fil]{author in head/foot}% |
| 79 |
\leavevmode{\usebeamerfont{author in head/foot}\insertshortauthor}% |
| 80 |
\hfill% |
| 81 |
{\usebeamerfont{institute in head/foot}\usebeamercolor[fg]{institute in head/foot}\insertshortinstitute}% |
| 82 |
\end{beamercolorbox}% |
| 83 |
\begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,% |
| 84 |
leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}% |
| 85 |
{\usebeamerfont{title in head/foot}\insertshorttitle}\hfill{\usebeamercolor[fg]{page number in head/foot}\usebeamerfont{page number in head/foot}\usebeamertemplate{page number in head/foot}}% |
| 86 |
\end{beamercolorbox}% |
| 87 |
\begin{beamercolorbox}[colsep=1.5pt]{lower separation line foot} |
| 88 |
\end{beamercolorbox} |
| 89 |
} |
| 90 |
} |
| 91 |
|
| 92 |
\newif\ifbeamer@theme@subsection |
| 93 |
\beamer@theme@subsectiontrue |
| 94 |
|
| 95 |
\DeclareOptionBeamer{footline}{\csname beamer@theme@footline@#1\endcsname} |
| 96 |
\DeclareOptionBeamer{subsection}[true]{\csname beamer@theme@subsection#1\endcsname} |
| 97 |
\ProcessOptionsBeamer |
| 98 |
|
| 99 |
|
| 100 |
\mode<presentation> |
| 101 |
|
| 102 |
% Head |
| 103 |
\defbeamertemplate*{headline}{miniframes theme} |
| 104 |
{% |
| 105 |
\begin{beamercolorbox}[colsep=1.5pt]{upper separation line head} |
| 106 |
\end{beamercolorbox} |
| 107 |
\begin{beamercolorbox}{section in head/foot} |
| 108 |
\vskip2.5ex |
| 109 |
\vskip-\baselineskip |
| 110 |
\insertnavigation{\paperwidth}% |
| 111 |
\vskip1.125ex |
| 112 |
\end{beamercolorbox}% |
| 113 |
\ifbeamer@theme@subsection% |
| 114 |
\begin{beamercolorbox}[colsep=1.5pt]{middle separation line head} |
| 115 |
\end{beamercolorbox} |
| 116 |
\begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,% |
| 117 |
leftskip=.3cm,rightskip=.3cm plus1fil]{subsection in head/foot} |
| 118 |
\usebeamerfont{subsection in head/foot}\usebeamertemplate{subsection in head/foot} |
| 119 |
\end{beamercolorbox}% |
| 120 |
\fi% |
| 121 |
\begin{beamercolorbox}[colsep=1.5pt]{lower separation line head} |
| 122 |
\end{beamercolorbox} |
| 123 |
} |
| 124 |
|
| 125 |
\mode |
| 126 |
<all> |