Debian Codegraph @

texmf-dist/tex/latex/beamer/beamerouterthemedefault.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 2019-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
16 % Mini frames
17
18 \defbeamertemplateparent{mini frames}
19 {mini frame,mini frame in current section,mini frame in current subsection}
20 {}
21
22 \newcommand{\beamer@xelatex@fixminiframes}{%
23 \expandafter\ifx\csname XeTeXrevision\endcsname\relax
24 \else
25 \special{dvipdfmx:catch_phantom true height 0.1cm depth 0cm}%
26 \fi
27 }
28
29 \defbeamertemplate*{mini frame}{default}
30 {%
31 \beamer@xelatex@fixminiframes
32 \begin{pgfpicture}{0pt}{0pt}{0.1cm}{0.1cm}
33 \pgfpathcircle{\pgfpoint{0.05cm}{0.05cm}}{0.05cm}
34 \pgfusepath{fill,stroke}
35 \end{pgfpicture}%
36 }
37 [action]
38 {%
39 \setbeamersize{mini frame size=.14cm,mini frame offset=-0.01cm}%
40 }
41
42 \defbeamertemplate*{mini frame in current section}{default}
43 {%
44 \beamer@xelatex@fixminiframes
45 \begin{pgfpicture}{0pt}{0pt}{0.1cm}{0.1cm}
46 \pgfpathcircle{\pgfpoint{0.05cm}{0.05cm}}{0.05cm}
47 \pgfusepath{stroke}
48 \end{pgfpicture}%
49 }
50
51 \defbeamertemplate*{mini frame in current subsection}{default}
52 {%
53 \beamer@xelatex@fixminiframes
54 \begin{pgfpicture}{0pt}{0pt}{0.1cm}{0.1cm}
55 \pgfpathcircle{\pgfpoint{0.05cm}{0.05cm}}{0.05cm}
56 \pgfusepath{stroke}
57 \end{pgfpicture}%
58 }
59
60 \defbeamertemplate*{mini frame in other section}{default}[1][50]
61 {\color{fg!#1!bg}\usebeamertemplate{mini frame in current section}}
62 \defbeamertemplate*{mini frame in other subsection}{default}[1][50]
63 {\color{fg!#1!bg}\usebeamertemplate{mini frame in current subsection}}
64
65
66
67
68 % Navigation symbols
69
70 \defbeamertemplate*{navigation symbols}{default}
71 {%
72 \hbox{%
73 \hbox{\insertslidenavigationsymbol}
74 \hbox{\insertframenavigationsymbol}
75 \hbox{\insertsubsectionnavigationsymbol}
76 \hbox{\insertsectionnavigationsymbol}
77 \hbox{\insertdocnavigationsymbol}
78 \hbox{\insertbackfindforwardnavigationsymbol}%
79 }%
80 }
81
82 % No navigation symbols in handout or trans mode:
83 \only<handout| trans>{\setbeamertemplate{navigation symbols}{}}
84
85
86
87 % Section and subsections in head/foot
88
89 \defbeamertemplate*{section in head/foot}{default}
90 {\insertsectionhead}
91
92 \defbeamertemplate*{section in head/foot shaded}{default}[1][50]
93 {\color{fg!#1!bg}\usebeamertemplate{section in head/foot}}
94
95 \defbeamertemplate*{subsection in head/foot}{default}
96 {\insertsubsectionhead}
97
98 \defbeamertemplate*{subsection in head/foot shaded}{default}[1][50]
99 {\color{fg!#1!bg}\usebeamertemplate{subsection in head/foot}}
100
101 \defbeamertemplate*{subsubsection in head/foot}{default}
102 {\insertsubsubsectionhead}
103
104 \defbeamertemplate*{subsubsection in head/foot shaded}{default}[1][50]
105 {\color{fg!#1!bg}\usebeamertemplate{subsubsection in head/foot}}
106
107
108 % Page numbers in head/foot
109 \defbeamertemplate*{page number in head/foot}{default}
110 {}
111
112 % Headline and footline
113
114 \defbeamertemplate*{headline}{default}
115 {}
116
117 \defbeamertemplate*{footline}{default}
118 {}
119
120
121 % background
122
123 \defbeamertemplate*{background}{default}
124 {}
125
126 \defbeamertemplate*{background canvas}{default}
127 {%
128 \ifbeamercolorempty[bg]{background canvas}{}{\color{bg}\vrule width\paperwidth height\paperheight}%
129 }
130
131
132 % Sidebar
133
134 \defbeamertemplate*{sidebar left}{default}
135 {}
136
137 \defbeamertemplate*{sidebar right}{default}
138 {
139 \vfill%
140 \llap{\insertlogo\hskip0.1cm}%
141 \vskip2pt%
142 \llap{\usebeamertemplate***{navigation symbols}\hskip0.1cm}%
143 \vskip2pt%
144 }
145
146 \defbeamertemplate*{sidebar canvas left}{default}
147 {%
148 \ifbeamercolorempty[bg]{sidebar left}{}
149 {\color{bg}\vrule height\sidebarheight width\beamer@leftsidebar}%
150 }
151
152 \defbeamertemplate*{sidebar canvas right}{default}
153 {%
154 \ifbeamercolorempty[bg]{sidebar right}{}
155 {\color{bg}\vrule height\sidebarheight width\beamer@rightsidebar}%
156 }
157
158
159
160 % Frame title: default
161
162 \defbeamertemplate*{frametitle}{default}[1][left]
163 {%
164 \ifbeamercolorempty[bg]{frametitle}{}{\nointerlineskip}%
165 \@tempdima=\textwidth%
166 \advance\@tempdima by\beamer@leftmargin%
167 \advance\@tempdima by\beamer@rightmargin%
168 \begin{beamercolorbox}[sep=0.3cm,#1,wd=\the\@tempdima]{frametitle}
169 \usebeamerfont{frametitle}%
170 \vbox{}\vskip-1ex%
171 \if@tempswa\else\csname beamer@fte#1\endcsname\fi%
172 \strut\insertframetitle\strut\par%
173 {%
174 \ifx\insertframesubtitle\@empty%
175 \else%
176 {\usebeamerfont{framesubtitle}\usebeamercolor[fg]{framesubtitle}\strut\insertframesubtitle\strut\par}%
177 \fi
178 }%
179 \vskip-1ex%
180 \if@tempswa\else\vskip-.3cm\fi% set inside beamercolorbox... evil here...
181 \end{beamercolorbox}%
182 }
183
184 % Frame title continuations, default
185
186 \defbeamertemplate*{frametitle continuation}{default}{\insertcontinuationcountroman}
187
188
189
190 % Notes
191
192 \defbeamertemplate*{note page}{default}
193 {%
194 {%
195 \scriptsize
196 \usebeamerfont{note title}\usebeamercolor[fg]{note title}%
197 \ifbeamercolorempty[bg]{note title}{}{%
198 \insertvrule{.25\paperheight}{note title.bg}%
199 \vskip-.25\paperheight%
200 \nointerlineskip%
201 }%
202 \vbox{
203 \hfill\insertslideintonotes{0.25}\hskip-\Gm@rmargin\hskip0pt%
204 \vskip-0.25\paperheight%
205 \nointerlineskip
206 \begin{pgfpicture}{0cm}{0cm}{0cm}{0cm}
207 \begin{pgflowlevelscope}{\pgftransformrotate{90}}
208 {\pgftransformshift{\pgfpoint{-2cm}{0.2cm}}%
209 \pgftext[base,left]{\usebeamerfont{note date}\usebeamercolor[fg]{note date}\the\year-\ifnum\month<10\relax0\fi\the\month-\ifnum\day<10\relax0\fi\the\day}}
210 \end{pgflowlevelscope}
211 \end{pgfpicture}}
212 \nointerlineskip
213 \vbox to .25\paperheight{\vskip0.5em
214 \hbox{\insertshorttitle[width=0.75\textwidth]}%
215 \setbox\beamer@tempbox=\hbox{\insertsection}%
216 \hbox{\ifdim\wd\beamer@tempbox>1pt{\hskip4pt\raise3pt\hbox{\vrule
217 width0.4pt height7pt\vrule width 9pt
218 height0.4pt}}\hskip1pt\hbox{\begin{minipage}[t]{0.71\textwidth}\def\breakhere{}\insertsection\end{minipage}}\fi%
219 }%
220 \setbox\beamer@tempbox=\hbox{\insertsubsection}%
221 \hbox{\ifdim\wd\beamer@tempbox>1pt{\hskip17.4pt\raise3pt\hbox{\vrule
222 width0.4pt height7pt\vrule width 9pt
223 height0.4pt}}\hskip1pt\hbox{\begin{minipage}[t]{0.71\textwidth}\def\breakhere{}\insertsubsection\end{minipage}}\fi%
224 }%
225 \setbox\beamer@tempbox=\hbox{\insertshortframetitle}%
226 \hbox{\ifdim\wd\beamer@tempbox>1pt{\hskip30.8pt\raise3pt\hbox{\vrule
227 width0.4pt height7pt\vrule width 9pt
228 height0.4pt}}\hskip1pt\hbox{\insertshortframetitle[width=0.67\textwidth]}\fi%
229 }%
230 \vfil}%
231 }%
232 \ifbeamercolorempty[bg]{note page}{}{%
233 \nointerlineskip%
234 \insertvrule{.75\paperheight}{note page.bg}%
235 \vskip-.75\paperheight%
236 }%
237 \vskip.25em
238 \nointerlineskip
239 \insertnote
240 }
241
242
243
244 \mode
245 <all>