| 1 |
% Copyright 2007 by Till Tantau |
| 2 |
% Copyright 2015 by Vedran Mileti\'c, Joseph Wright |
| 3 |
% Copyright 2023-2026 by Joseph Wright, samcarter |
| 4 |
% |
| 5 |
% This file may be distributed and/or modified |
| 6 |
% |
| 7 |
% 1. under the LaTeX Project Public License and/or |
| 8 |
% 2. under the GNU Public License. |
| 9 |
% |
| 10 |
% See the file LICENSE.md for more details. |
| 11 |
|
| 12 |
\newif\ifbeamer@tree@showhooks |
| 13 |
\beamer@tree@showhookstrue |
| 14 |
|
| 15 |
\DeclareOptionBeamer{hooks}[true]{\csname beamer@tree@showhooks#1\endcsname} |
| 16 |
\ProcessOptionsBeamer |
| 17 |
|
| 18 |
\mode<presentation> |
| 19 |
|
| 20 |
\setbeamertemplate{section in head/foot}[default] |
| 21 |
\setbeamertemplate{subsection in head/foot}[default] |
| 22 |
|
| 23 |
\defbeamertemplate*{headline}{tree theme} |
| 24 |
{% |
| 25 |
\begin{beamercolorbox}[wd=\paperwidth,colsep=1.5pt]{upper separation line head} |
| 26 |
\end{beamercolorbox} |
| 27 |
{\usebeamerfont{title in head/foot}% |
| 28 |
\begin{beamercolorbox}[wd=\paperwidth,ht=2.5ex,dp=1.125ex,% |
| 29 |
leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot} |
| 30 |
\insertshorttitle |
| 31 |
\end{beamercolorbox}} |
| 32 |
{\usebeamerfont{section in head/foot}% |
| 33 |
\begin{beamercolorbox}[wd=\paperwidth,ht=2.5ex,dp=1.125ex,% |
| 34 |
leftskip=.3cm,rightskip=.3cm plus1fil]{section in head/foot} |
| 35 |
\ifbeamer@tree@showhooks |
| 36 |
\setbox\beamer@tempbox=\hbox{\usebeamertemplate{section in head/foot}}% |
| 37 |
\ifdim\wd\beamer@tempbox>1pt% |
| 38 |
\hskip2pt\raise1.9pt\hbox{\vrule width0.4pt height1.875ex\vrule width 5pt height0.4pt}% |
| 39 |
\hskip1pt% |
| 40 |
\fi% |
| 41 |
\else% |
| 42 |
\hskip6pt% |
| 43 |
\fi% |
| 44 |
\usebeamertemplate{section in head/foot} |
| 45 |
\end{beamercolorbox}} |
| 46 |
{\usebeamerfont{subsection in head/foot}% |
| 47 |
\begin{beamercolorbox}[wd=\paperwidth,ht=2.5ex,dp=1.125ex,% |
| 48 |
leftskip=.3cm,rightskip=.3cm plus1fil]{subsection in head/foot} |
| 49 |
\ifbeamer@tree@showhooks |
| 50 |
\setbox\beamer@tempbox=\hbox{\usebeamertemplate{subsection in head/foot}}% |
| 51 |
\ifdim\wd\beamer@tempbox>1pt% |
| 52 |
\hskip9.4pt\raise1.9pt\hbox{\vrule width0.4pt height1.875ex\vrule width 5pt height0.4pt}% |
| 53 |
\hskip1pt% |
| 54 |
\fi% |
| 55 |
\else% |
| 56 |
\hskip12pt% |
| 57 |
\fi% |
| 58 |
\usebeamertemplate{subsection in head/foot} |
| 59 |
\end{beamercolorbox}} |
| 60 |
\begin{beamercolorbox}[wd=\paperwidth,colsep=1.5pt]{lower separation line head} |
| 61 |
\end{beamercolorbox} |
| 62 |
} |
| 63 |
|
| 64 |
|
| 65 |
\mode |
| 66 |
<all> |