Debian Codegraph @

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

raw
1 % Copyright 2007 by Till Tantau
2 % Copyright 2012,2015 by Vedran Mileti\'c, Joseph Wright
3 % Copyright 2017,2018 by Louis Stuart, Joseph Wright
4 % Copyright 2021-2026 by Joseph Wright, samcarter
5 %
6 % This file may be distributed and/or modified
7 %
8 % 1. under the LaTeX Project Public License and/or
9 % 2. under the GNU Public License.
10 %
11 % See the file LICENSE.md for more details.
12
13 \mode<presentation>
14
15 \setbeamercolor*{author in head/foot}{parent=palette tertiary}
16 \setbeamercolor*{title in head/foot}{parent=palette secondary}
17 \setbeamercolor*{date in head/foot}{parent=palette primary}
18
19 \setbeamercolor*{section in head/foot}{parent=palette tertiary}
20 \setbeamercolor*{subsection in head/foot}{parent=palette primary}
21
22 \setbeamertemplate{page number in head/foot}[totalframenumber]%
23
24 \defbeamertemplate*{footline}{infolines theme}
25 {%
26 \leavevmode%
27 \hbox{%
28 \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
29 \usebeamerfont{author in head/foot}\insertshortauthor\expandafter\ifblank\expandafter{\beamer@shortinstitute}{}{~~(\insertshortinstitute)}
30 \end{beamercolorbox}%
31 \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
32 \usebeamerfont{title in head/foot}\insertshorttitle
33 \end{beamercolorbox}%
34 \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,leftskip=2ex,rightskip=2ex,sep=0pt]{date in head/foot}%
35 \hfill%
36 \usebeamerfont{date in head/foot}%
37 \insertshortdate{}%
38 \hfill%
39 \usebeamercolor[fg]{page number in head/foot}%
40 \usebeamerfont{page number in head/foot}%
41 \usebeamertemplate{page number in head/foot}%
42 \end{beamercolorbox}}%
43 \vskip0pt%
44 }
45
46 \defbeamertemplate*{headline}{infolines theme}
47 {%
48 \leavevmode%
49 \hbox{%
50 \usebeamerfont{section in head/foot}%
51 \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.65ex,dp=1.5ex,right]{section in head/foot}%
52 \usebeamerfont{headline}\usebeamerfont{section in head/foot}\usebeamertemplate{section in head/foot}\hspace*{2ex}
53 \end{beamercolorbox}%
54 \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.65ex,dp=1.5ex,left]{subsection in head/foot}%
55 \usebeamerfont{headline}\usebeamerfont{subsection in head/foot}\hspace*{2ex}\usebeamertemplate{subsection in head/foot}
56 \end{beamercolorbox}}%
57 \vskip0pt%
58 }
59
60 \setbeamersize{text margin left=1em,text margin right=1em}
61
62 \mode
63 <all>