diff options
author | Karl Berry <karl@freefriends.org> | 2017-12-19 00:09:01 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-12-19 00:09:01 +0000 |
commit | 5d4ee22f407e4c60e9f6ee586d4152a3d6d7287e (patch) | |
tree | e60908ef9f37f35a3e6ccdcc02d23c65f7a2ad02 /Master/texmf-dist/tex/latex/beamer/beamerouterthememiniframes.sty | |
parent | bf2407a74d6c70f8b53038edf84e01255513a57c (diff) |
beamer (18dec17)
git-svn-id: svn://tug.org/texlive/trunk@46095 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/beamer/beamerouterthememiniframes.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/beamer/beamerouterthememiniframes.sty | 114 |
1 files changed, 114 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/beamer/beamerouterthememiniframes.sty b/Master/texmf-dist/tex/latex/beamer/beamerouterthememiniframes.sty new file mode 100644 index 00000000000..a753cb2a63e --- /dev/null +++ b/Master/texmf-dist/tex/latex/beamer/beamerouterthememiniframes.sty @@ -0,0 +1,114 @@ +% Copyright 2007 by Till Tantau +% Copyright 2015 by Vedran Mileti\'c, Joseph Wright +% +% This file may be distributed and/or modified +% +% 1. under the LaTeX Project Public License and/or +% 2. under the GNU Public License. +% +% See the file doc/licenses/LICENSE for more details. + +\setbeamercolor{section in head/foot}{parent=palette tertiary} +\setbeamercolor{subsection in head/foot}{parent=palette secondary} +\setbeamercolor{author in head/foot}{parent=subsection in head/foot} +\setbeamercolor{title in head/foot}{parent=section in head/foot} + + +\def\beamer@theme@footline@empty{} +\def\beamer@theme@footline@authorinstitute{ + \defbeamertemplate*{footline}{miniframes theme} + {% + \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% + {\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} + } +} +\def\beamer@theme@footline@authortitle{ + \defbeamertemplate*{footline}{miniframes theme} + {% + \begin{beamercolorbox}[colsep=1.5pt]{upper separation line foot} + \end{beamercolorbox} + \begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,% + leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}% + \leavevmode{\usebeamerfont{title in head/foot}\insertshorttitle}% + \hfill% + {\usebeamerfont{author in head/foot}\usebeamercolor[fg]{author in head/foot}\insertshortauthor}% + \end{beamercolorbox}% + \begin{beamercolorbox}[colsep=1.5pt]{lower separation line foot} + \end{beamercolorbox} + } +} +\def\beamer@theme@footline@institutetitle{ + \defbeamertemplate*{footline}{miniframes theme} + {% + \begin{beamercolorbox}[colsep=1.5pt]{upper separation line foot} + \end{beamercolorbox} + \begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,% + leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}% + \leavevmode{\usebeamerfont{title in head/foot}\insertshorttitle}% + \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} + } +} +\def\beamer@theme@footline@authorinstitutetitle{ + \defbeamertemplate*{footline}{miniframes theme} + {% + \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% + {\usebeamerfont{institute in head/foot}\usebeamercolor[fg]{institute in head/foot}\insertshortinstitute}% + \end{beamercolorbox}% + \begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,% + leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}% + {\usebeamerfont{title in head/foot}\insertshorttitle}% + \end{beamercolorbox}% + \begin{beamercolorbox}[colsep=1.5pt]{lower separation line foot} + \end{beamercolorbox} + } +} + +\newif\ifbeamer@theme@subsection +\beamer@theme@subsectiontrue + +\DeclareOptionBeamer{footline}{\csname beamer@theme@footline@#1\endcsname} +\DeclareOptionBeamer{subsection}[true]{\csname beamer@theme@subsection#1\endcsname} +\ProcessOptionsBeamer + + +\mode<presentation> + + % Head +\defbeamertemplate*{headline}{miniframes theme} +{% + \begin{beamercolorbox}[colsep=1.5pt]{upper separation line head} + \end{beamercolorbox} + \begin{beamercolorbox}{section in head/foot} + \vskip2pt\insertnavigation{\paperwidth}\vskip2pt + \end{beamercolorbox}% + \ifbeamer@theme@subsection% + \begin{beamercolorbox}[colsep=1.5pt]{middle separation line head} + \end{beamercolorbox} + \begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,% + leftskip=.3cm,rightskip=.3cm plus1fil]{subsection in head/foot} + \usebeamerfont{subsection in head/foot}\insertsubsectionhead + \end{beamercolorbox}% + \fi% + \begin{beamercolorbox}[colsep=1.5pt]{lower separation line head} + \end{beamercolorbox} +} + +\mode +<all> |