Debian Codegraph @

texmf-dist/tex/latex/beamer/beamerouterthemesplit.sty

raw
1 % Copyright 2007 by Till Tantau
2 % Copyright 2012,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 \mode<presentation>
13
14 \setbeamercolor{section in head/foot}{parent=palette quaternary}
15 \setbeamercolor{subsection in head/foot}{parent=palette primary}
16
17 \setbeamercolor{author in head/foot}{parent=section in head/foot}
18 \setbeamercolor{title in head/foot}{parent=subsection in head/foot}
19
20 \setbeamertemplate{section in head/foot}{\hfill\insertsectionhead}
21 \setbeamertemplate{section in head/foot shaded}{\hfill\color{fg!50!bg}\insertsectionhead}
22
23 % Head
24 \ifbeamer@compress
25
26 \defbeamertemplate*{headline}{split theme}
27 {%
28 \leavevmode%
29 {\usebeamerfont{section in head/foot}%
30 \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex]{section in head/foot}%
31 \insertsectionnavigationhorizontal{.5\paperwidth}{\hskip0pt plus1filll}{}%
32 \end{beamercolorbox}%
33 \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex]{subsection in head/foot}%
34 \usebeamerfont{subsection in head/foot}%
35 \insertsubsectionnavigationhorizontal{.5\paperwidth}{}{\hskip0pt plus1filll}%
36 \end{beamercolorbox}}%
37 }
38
39 \else
40
41 \defbeamertemplate*{headline}{split theme}
42 {%
43 \leavevmode%
44 {\usebeamerfont{section in head/foot}%
45 \@tempdimb=2.4375ex%
46 \ifnum\beamer@subsectionmax<\beamer@sectionmax%
47 \multiply\@tempdimb by\beamer@sectionmax%
48 \else%
49 \multiply\@tempdimb by\beamer@subsectionmax%
50 \fi%
51 \ifdim\@tempdimb>0pt%
52 \advance\@tempdimb by 1.825ex%
53 \begin{beamercolorbox}[wd=.5\paperwidth,ht=\@tempdimb]{section in head/foot}%
54 \vbox to\@tempdimb{\vfil\usebeamerfont{section in head/foot}\insertsectionnavigation{.5\paperwidth}\vfil}%
55 \end{beamercolorbox}%
56 \begin{beamercolorbox}[wd=.5\paperwidth,ht=\@tempdimb]{subsection in head/foot}%
57 \vbox to\@tempdimb{\vfil\usebeamerfont{subsection in head/foot}\insertsubsectionnavigation{.5\paperwidth}\vfil}%
58 \end{beamercolorbox}%
59 \fi%
60 }%
61 }
62
63 \fi
64
65
66 \defbeamertemplate*{footline}{split theme}
67 {%
68 \leavevmode%
69 \hbox{\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm plus1fill,rightskip=.3cm]{author in head/foot}%
70 \usebeamerfont{author in head/foot}\insertshortauthor
71 \end{beamercolorbox}%
72 \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}%
73 \usebeamerfont{title in head/foot}\insertshorttitle\nobreak\hfill\usebeamercolor[fg]{page number in head/foot}\usebeamerfont{page number in head/foot}\usebeamertemplate{page number in head/foot}
74 \end{beamercolorbox}}%
75 \vskip0pt%
76 }
77
78
79 \mode
80 <all>