diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/beamer/beamerouterthemetree.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/beamer/beamerouterthemetree.sty | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/beamer/beamerouterthemetree.sty b/Master/texmf-dist/tex/latex/beamer/beamerouterthemetree.sty new file mode 100644 index 00000000000..9c9e0529088 --- /dev/null +++ b/Master/texmf-dist/tex/latex/beamer/beamerouterthemetree.sty @@ -0,0 +1,61 @@ +% 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. + +\newif\ifbeamer@tree@showhooks +\beamer@tree@showhookstrue + +\DeclareOptionBeamer{hooks}[true]{\csname beamer@tree@showhooks#1\endcsname} +\ProcessOptionsBeamer + +\mode<presentation> + +\defbeamertemplate*{headline}{tree theme} +{% + \begin{beamercolorbox}[wd=\paperwidth,colsep=1.5pt]{upper separation line head} + \end{beamercolorbox} + \begin{beamercolorbox}[wd=\paperwidth,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}[wd=\paperwidth,ht=2.5ex,dp=1.125ex,% + leftskip=.3cm,rightskip=.3cm plus1fil]{section in head/foot} + \usebeamerfont{section in head/foot}% + \ifbeamer@tree@showhooks + \setbox\beamer@tempbox=\hbox{\insertsectionhead}% + \ifdim\wd\beamer@tempbox>1pt% + \hskip2pt\raise1.9pt\hbox{\vrule width0.4pt height1.875ex\vrule width 5pt height0.4pt}% + \hskip1pt% + \fi% + \else% + \hskip6pt% + \fi% + \insertsectionhead + \end{beamercolorbox} + \begin{beamercolorbox}[wd=\paperwidth,ht=2.5ex,dp=1.125ex,% + leftskip=.3cm,rightskip=.3cm plus1fil]{subsection in head/foot} + \usebeamerfont{subsection in head/foot}% + \ifbeamer@tree@showhooks + \setbox\beamer@tempbox=\hbox{\insertsubsectionhead}% + \ifdim\wd\beamer@tempbox>1pt% + \hskip9.4pt\raise1.9pt\hbox{\vrule width0.4pt height1.875ex\vrule width 5pt height0.4pt}% + \hskip1pt% + \fi% + \else% + \hskip12pt% + \fi% + \insertsubsectionhead + \end{beamercolorbox} + \begin{beamercolorbox}[wd=\paperwidth,colsep=1.5pt]{lower separation line head} + \end{beamercolorbox} +} + + +\mode +<all> |