Debian Codegraph @

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

raw
1 % Copyright 2003-2007 by Till Tantau
2 % Copyright 2010 by Vedran Mileti\'c
3 % Copyright 2011,2012,2015 by Vedran Mileti\'c, Joseph Wright
4 % Copyright 2016 by Joseph Wright
5 % Copyright 2017-2020 by Louis Stuart, Joseph Wright
6 % Copyright 2020-2026 by Joseph Wright, samcarter
7 %
8 % This file may be distributed and/or modified
9 %
10 % 1. under the LaTeX Project Public License and/or
11 % 2. under the GNU Public License.
12 %
13 % See the file LICENSE.md for more details.
14
15 \mode
16 <presentation>
17
18 %
19 %
20 % Hyperlink fix for problem with empty test in pdfmark.def
21 % Note that this is redefined again later (for overlays)
22 %
23 %
24 \let\beamer@orighyperlink\hyperlink
25 \def\hyperlink#1#2{\beamer@orighyperlink{#1}{\relax#2}}
26
27 \providecommand\hyper@pagetransition{}
28 \providecommand\hyper@pageduration{}
29 \providecommand\hyper@pagehidden{}
30
31 % The definitions that hyperref uses with natbib to give
32 % links: our load order is wrong so they don't 'engage'
33 \def\hyper@natanchorstart#1{%
34 \Hy@raisedlink{\hyper@anchorstart {cite.#1}}%
35 }
36 \def\hyper@natanchorend{\hyper@anchorend}
37 \def\hyper@natlinkstart#1{%
38 \Hy@backout{#1}%
39 \hyper@linkstart{cite}{cite.#1}%
40 \def\hyper@nat@current{#1}%
41 }
42 \def\hyper@natlinkend{\hyper@linkend}
43
44 \mode
45 <all>
46 {
47 % Things to be done at the beginning of the document
48 \def\beamer@lastminutepatches{}
49 \def\beamer@firstminutepatches{}
50 }
51
52 %
53 % Fixes right before the start of the document.
54 %
55 \providecommand\IfFormatAtLeastTF{\@ifl@t@r\fmtversion}
56 \IfFormatAtLeastTF{2020-10-01}
57 {%
58 \AddToHook{env/document/begin}[beamer]{\beamer@firstminutepatches}%
59 \AddToHook{env/document/begin}[beamer]{%
60 \@ifpackageloaded{paralist}{\RequirePackage{beamerpatchparalist}}{}%
61 \@ifpackageloaded{pdfpages}{%
62 % Patching pdfpages package to avoid the included pages from being covered by the background canvas
63 \AddToHook{cmd/includepdf/before}[beamer]{\begingroup\setbeamercolor{background canvas}{bg=}}%
64 \AddToHook{cmd/includepdf/after}[beamer]{\endgroup}%
65 \AddToHook{cmd/includepdfmerge/before}[beamer]{\begingroup\setbeamercolor{background canvas}{bg=}}%
66 \AddToHook{cmd/includepdfmerge/after}[beamer]{\endgroup}%
67 }{}%
68 }%
69 \AddToHook{begindocument/end}[beamer]%need to be later than spanish.ldf?
70 {%
71 \@ifundefined{deactivatequoting}{}{\deactivatequoting}%
72 % Fix meddline with enumerate items
73 \renewcommand\theenumi{\@arabic\c@enumi}%
74 \renewcommand\theenumii{\@arabic\c@enumii}%
75 \renewcommand\theenumiii{\@arabic\c@enumiii}%
76 \catcode`<=12 \catcode`>=12 %% right place??
77 \beamer@lastminutepatches
78 \ifbeamer@ignorenonframe
79 \expandafter\mode\expandafter*%
80 \fi
81 }%
82 }
83 {%
84 \let\beamer@origdocument\document
85 \def\document{%
86 \beamer@firstminutepatches
87 \endgroup
88 \AtBeginDocument{% fix spanish.ldf's meddling with < and >
89 %
90 % Fix spanish.ldf's meddling with < and >
91 %
92 \@ifundefined{deactivatequoting}{}{\deactivatequoting}%
93 % Fix meddline with enumerate items
94 \renewcommand\theenumi{\@arabic\c@enumi}%
95 \renewcommand\theenumii{\@arabic\c@enumii}%
96 \renewcommand\theenumiii{\@arabic\c@enumiii}%
97 }%
98 \AtBeginDocument{% Allow for paralist loading
99 \@ifpackageloaded{paralist}{\RequirePackage{beamerpatchparalist}}{}
100 \let\labelitemi\beamer@labelitemi
101 \let\labelitemii\beamer@labelitemii
102 \let\itemize\beamer@itemize
103 \let\list\beamer@list
104 \let\@trivlist\beamer@@trivlist
105 \catcode`<=12 \catcode`>=12 }%
106 \begingroup
107 \beamer@origdocument
108 \beamer@lastminutepatches
109 \ifbeamer@ignorenonframe
110 \expandafter\mode\expandafter*%
111 \fi}%
112 }
113
114 \mode
115 <article>
116 {
117 \IfFormatAtLeastTF{2020-10-01}
118 {\AddToHook{begindocument/end}[beamer]{\beamer@lastminutepatches}}
119 {%
120 \let\beamer@origdocument\document
121 \def\document{%
122 \beamer@origdocument%
123 \beamer@lastminutepatches}
124 }
125
126 \g@addto@macro\beamer@lastminutepatches{%
127 \ifbeamer@articleactive
128 \else
129 \catcode`<=12 %
130 \catcode`>=12 %
131 \fi
132 }
133 }
134
135 \AtBeginDocument{\def\es@itemize#1#2#3#4{}}% fix spanish.ldf's with \itemize
136
137 %
138 % Fix for older versions of geometry
139 % We used to test \ifGm@compatii,
140 % but as of geometry v5.0, it is no longer provided.
141 %
142 \ifx\Gm@lmargin\@undefined
143 \def\Gm@lmargin{\Geom@lmargin}
144 \def\Gm@rmargin{\Geom@rmargin}
145 \else
146 \geometry{includeheadfoot}
147 \fi
148
149 %
150 % Fix deluxetabular floats
151 %
152 \AtBeginDocument{%
153 \def\@plano@float@#1{\begin{table}}
154 \def\end@plano@float@{\end{table}}%
155 }
156
157 %
158 % Fix for implicit=false for hyperref
159 %
160 \def\WriteBookmarks{0}
161 \expandafter\def\csname Parent-4\endcsname{}
162 \expandafter\def\csname Parent-3\endcsname{}
163 \expandafter\def\csname Parent-2\endcsname{}
164 \expandafter\def\csname Parent-1\endcsname{}
165 \expandafter\def\csname Parent0\endcsname{}
166 \expandafter\def\csname Parent1\endcsname{}
167 \expandafter\def\csname Parent2\endcsname{}
168 \expandafter\def\csname Parent3\endcsname{}
169 \expandafter\def\csname Parent4\endcsname{}
170 \def\phantomsection{}
171
172 %
173 % Heiko's fix for correct generation of section* and subsection* bookmarks
174 %
175 %\g@addto@macro\beamer@lastminutepatches{%
176 % \long\def\@LongEmpty{}%
177 % \newcommand*{\org@beamer@section}{}%
178 % \let\org@beamer@section\beamer@section{}%
179 % \let\org@writebookmark\Hy@writebookmark{}%
180 % \long\def\beamer@section[#1]#2{%
181 % \let\Hy@writebookmark\org@writebookmark
182 % \long\def\@secname{#1}%
183 % \ifx\@secname\@LongEmpty{}%
184 % \def\Hy@writebookmark##1##2##3##4##5{}%
185 % \fi
186 % \long\def\@secname{#2}%
187 % \ifx\@secname\@LongEmpty{}%
188 % \def\Hy@writebookmark##1##2##3##4##5{}%
189 % \fi
190 % \org@beamer@section[{#1}]{#2}%
191 % }%
192 % \newcommand*{\org@beamer@subsection}{}%
193 % \let\org@beamer@subsection\beamer@subsection{}%
194 % \long\def\beamer@subsection[#1]#2{%
195 % \let\Hy@writebookmark\org@writebookmark
196 % \long\def\@secname{#1}%
197 % \ifx\@secname\@LongEmpty{}%
198 % \def\Hy@writebookmark##1##2##3##4##5{}%
199 % \fi
200 % \long\def\@secname{#2}%
201 % \ifx\@secname\@LongEmpty{}%
202 % \def\Hy@writebookmark##1##2##3##4##5{}%
203 % \fi
204 % \org@beamer@subsection[{#1}]{#2}%
205 % }%
206 %}
207
208 %
209 % Bugfix for old versions of pdfmark
210 %
211 \begingroup
212 \catcode`P=12
213 \catcode`T=12
214 \lowercase{\endgroup
215 \gdef\rem@ptetc#1.#2PT#3!{#1\ifnum#2>\z@.#2\fi}%
216 }
217 \def\strip@pt@and@otherjunk#1{\expandafter\rem@ptetc\the#1!}
218
219 %
220 % Make the effect of pdfpagetransition and duration global, not local
221 %
222 \define@key{Hyp}{pdfpagetransition}{\gdef\@pdfpagetransition{#1}}
223 \define@key{Hyp}{pdfpageduration}{\gdef\@pdfpageduration{#1}}
224
225 %
226 %
227 % Fix for babel
228 %
229 %
230 \providecommand\textlatin{}
231 \providecommand\theparagraph{}
232 \providecommand\thesubparagraph{}
233 \providecommand\listoffigures{}
234 \providecommand\listoftables{}
235 \providecommand\l@part{}
236 \providecommand\l@chapter{}
237
238 %
239 % Fix for subfig
240 %
241 \providecommand\ext@table{}
242 \providecommand\ext@figure{}
243
244 %
245 % Fix for polyglossia
246 % https://github.com/josephwright/beamer/issues/706
247 %
248 \IfFormatAtLeastTF{2020-10-01}{%
249 \DeclareHookRule{begindocument/end}{beamer}{after}{polyglossia}%
250 }{}
251
252 %
253 % Fix for metropolis theme
254 % https://github.com/josephwright/beamer/issues/802
255 %
256 % metropolis patches an old version of the \beamer@@frametitle
257 % definition and throws an error if it does not find the outdated
258 % code. To avoid breaking all metropolis presentations, we revert
259 % back to the old definition at the start of the file and then
260 % overwrite again with the current implementation at the end
261 %
262 \AddToHook{file/beamerfontthememetropolis.sty/before}{%
263 \long\def\beamer@@frametitle[#1]#2{%
264 \ifblank{#2}{}{%
265 \gdef\insertframetitle{{#2\ifnum\beamer@autobreakcount>0\relax{}\space\usebeamertemplate*{frametitle continuation}\fi}}%
266 \gdef\beamer@frametitle{#2}%
267 \gdef\beamer@shortframetitle{#1}%
268 }%
269 }
270 }
271 \AddToHook{file/beamerfontthememetropolis.sty/after}{%
272 \long\def\beamer@@frametitle[#1]#2{%
273 \ifblank{#2}{}{%
274 \gdef\insertframetitle{{%
275 \metropolis@frametitleformat{#2}%
276 \ifnum\beamer@autobreakcount>0
277 \relax{}\space%
278 \beamer@insertframetitlecontinuation%
279 \fi%
280 }}%
281 \gdef\beamer@frametitle{#2}%
282 \gdef\beamer@shortframetitle{#1}%
283 }%
284 }
285 }
286
287 %
288 % Fix for ragged2e in article mode (#900)
289 %
290 \mode
291 <article>
292 {
293 \def\@raggedtwoe@centercrNoindent{%
294 \AddToHookNext{para/begin}{%
295 \ifx\@raggedtwoe@everyselectfont\relax\else
296 \OmitIndent
297 \fi
298 }%
299 \beamer@origbreakcenter
300 }%
301 }
302
303 %
304 % Obsolete commands from old versions of beamer
305 %
306 \mode
307 <all>
308 {
309 \let\beamer@ifempty=\ifblank
310
311 \let\beamer@verb@egroup=\verb@egroup
312
313 \def\beamer@setb{\setbox0=\copy}
314 \long\def\defverb#1{%
315 \expandafter\newbox\csname @verb\string#1\endcsname%
316 \def#1{{\expandafter\beamer@setb\csname
317 @verb\string#1\endcsname\unhbox0}}%
318 \def\verb@egroup{\global\let\verb@balance@group\@empty\egroup\egroup\let\verb@egroup=\beamer@verb@egroup}
319 \expandafter\setbox\csname @verb\string#1\endcsname=\hbox\bgroup
320 \verb}
321
322 \define@key{beamerverb}{colored}[true]{\def\beamer@colorsup{}}
323 \define@key{beamerverb}{width}{\def\beamer@verbwidth{#1}}
324
325 \newcommand{\defverbatim}[2][]{%
326 \def\beamer@colorsup{\def\set@color{}\def\reset@color{}}%
327 \setkeys{beamerverb}{width=\textwidth}%
328 \setkeys{beamerverb}{#1}%
329 \expandafter\newbox\csname @verb\string#2\endcsname%
330 \def#2{{\expandafter\beamer@setb\csname @verb\string#2\endcsname%
331 \unvbox0}\color{.}}%
332 \expandafter\setbox\csname @verb\string#2\endcsname=\vbox\bgroup%
333 \beamer@colorsup%
334 \hsize=\beamer@verbwidth\textwidth=\beamer@verbwidth\linewidth=\beamer@verbwidth%
335 \vskip-\baselineskip\strut\bgroup\aftergroup\beamer@verbend%
336 \let\@next=}
337 \def\beamer@verbend{\vskip-\baselineskip\strut\egroup}
338 }
339 \def\tableofcontentscurrent{\tableofcontents[current]}
340 \def\plainframe{\frame[plain]}%obsolete
341 \def\pgfonly{\only}%obsolete
342 \AtBeginDocument{\newcommand{\nameslide}{\alt{\beamer@nameslide}{\@gobble}}}%obsolete
343 \newenvironment{pauses}[1][\c@beamerpauses]{\setcounter{beamerpauses}{#1}}{}%obsolete
344 \def\newoverlaycommand#1#2#3{\def#1{\alt{#2}{#3}}}
345 \def\newoverlayenvironment#1#2#3#4#5{\newenvironment{#1}{\begin{altenv}{#2}{#3}{#4}{#5}}{\end{altenv}}}
346 \newenvironment{columnsonlytextwidth}{\begin{columns}[onlytextwidth]}{\end{columns}}
347 \def\untitledsubsection{\subsection*{}}
348 \def\noteitems{\note[enumerate]}
349
350
351 \define@key{beamertoc}{current}[]{\beamer@toc@sectionstyle{show/shaded}\beamer@toc@subsectionstyle{show/show/shaded}}
352 \define@key{beamertoc}{hidesubsections}[]{\beamer@toc@subsectionstyle{show/show/hide}}
353 \define@key{beamertoc}{shadesubsections}[]{\beamer@toc@subsectionstyle{shaded}}
354
355 \mode
356 <all>{\def\unpause{\onslide{}}}
357
358 \def\beamer@fixedline#1{%
359 {\setbox\beamer@linebox=\hbox to\textwidth{\hskip-\Gm@lmargin\hskip0.3cm{#1}\hskip-\Gm@rmargin\hskip0.3cm}%
360 \ht\beamer@linebox=2.125ex%
361 \dp\beamer@linebox=1.125ex%
362 \box\beamer@linebox}}
363 \def\beamer@fixedcolouredline#1#2{%
364 \hbox{%
365 \setbox\beamer@linebox=\hbox to\textwidth{\hskip-\Gm@lmargin\hskip0.3cm{#2}\hskip-\Gm@rmargin\hskip0.3cm}%
366 \ht\beamer@linebox=2.625ex%
367 \dp\beamer@linebox=0pt%
368 \setbox\beamer@linebox=\vbox{\box\beamer@linebox\vskip1.125ex}%
369 {\color{#1}\hskip-\Gm@lmargin\vrule width\paperwidth
370 height\ht\beamer@linebox\hskip-\paperwidth\hskip\Gm@lmargin}%
371 \box\beamer@linebox}%
372 }
373 \long\def\beamer@colouredline#1#2{%
374 \hbox{%
375 \setbox\beamer@linebox=\vbox{\hbox to\textwidth{\hskip-\Gm@lmargin{#2}\hskip-\Gm@rmargin}}%
376 {\color{#1}\hskip-\Gm@lmargin\vrule width\paperwidth
377 height\ht\beamer@linebox\hskip-\paperwidth\hskip\Gm@lmargin}%
378 \box\beamer@linebox}%
379 }
380 \def\tinyline#1{%
381 {\tiny\setbox\beamer@linebox=\hbox to\textwidth{\hskip-\Gm@lmargin\hskip0.3cm{#1}\hskip-\Gm@rmargin\hskip0.3cm}%
382 \ht\beamer@linebox=2.06ex%
383 \dp\beamer@linebox=0pt%
384 \box\beamer@linebox%
385 \vskip1.125ex}}
386 \def\tinycolouredline#1#2{%
387 \hbox{\tiny%
388 \setbox\beamer@linebox=\hbox to\textwidth{\hskip-\Gm@lmargin\hskip0.3cm{#2}\hskip-\Gm@rmargin\hskip0.3cm}%
389 \ht\beamer@linebox=2.625ex%
390 \dp\beamer@linebox=0pt%
391 \setbox\beamer@linebox=\vbox{\box\beamer@linebox\vskip1.125ex}%
392 {\color{#1}\hskip-\Gm@lmargin\vrule width\paperwidth
393 height\ht\beamer@linebox\hskip-\paperwidth\hskip\Gm@lmargin}%
394 \box\beamer@linebox}%
395 }
396 \def\colouredline#1#2{%
397 \hbox{%
398 \setbox\beamer@linebox=\hbox to\textwidth{\hskip-\Gm@lmargin\hskip0.3cm{#2}\hskip-\Gm@rmargin\hskip0.3cm}%
399 \setbox\beamer@linebox=\vbox{\vskip2pt\box\beamer@linebox\vskip2pt}%
400 {\color{#1}\hskip-\Gm@lmargin\vrule width\paperwidth
401 height\ht\beamer@linebox\hskip-\paperwidth\hskip\Gm@lmargin}%
402 \box\beamer@linebox}%
403 }
404 \def\beamerline#1{\hbox{\hskip-\Gm@lmargin#1\hskip-\Gm@rmargin}}
405 \def\insertvrule#1#2{\hbox{\color{#2}\hskip-\Gm@lmargin\vrule width \paperwidth height #1\hskip-\Gm@rmargin}}
406
407 \def\usetitlepagetemplate{\setbeamertemplate{title page}}
408 \def\usepartpagetemplate{\setbeamertemplate{part page}}
409 \mode
410 <all>{\def\useframetitletemplate{\setbeamertemplate{frametitle}}}
411 \def\useitemizeitemtemplate{\setbeamertemplate{itemize item}}
412 \def\usesubitemizeitemtemplate{\setbeamertemplate{itemize subitem}}
413 \def\usesubsubitemizeitemtemplate{\setbeamertemplate{itemize subsubitem}}
414 \def\useenumerateitemtemplate{\setbeamertemplate{enumerate item}}
415 \def\usesubenumerateitemtemplate{\setbeamertemplate{enumerate subitem}}
416 \def\usesubsubenumerateitemtemplate{\setbeamertemplate{enumerate subsubitem}}
417 \def\useitemizetemplate#1#2{% before and after
418 \setbeamertemplate{itemize/enumerate body begin}{#1}%
419 \setbeamertemplate{itemize/enumerate body end}{#2}}
420 \def\usesubitemizetemplate#1#2{% before and after
421 \setbeamertemplate{itemize/enumerate subbody begin}{#1}%
422 \setbeamertemplate{itemize/enumerate subbody end}{#2}}
423 \def\usesubsubitemizetemplate#1#2{% before and after
424 \setbeamertemplate{itemize/enumerate subsubbody begin}{#1}%
425 \setbeamertemplate{itemize/enumerate subsubbody end}{#2}}
426 \def\useenumerateitemminitemplate{\setbeamertemplate{enumerate mini template}}
427 \let\useenumeratetemplate=\useitemizetemplate
428 \let\usesubenumeratetemplate=\usesubitemizetemplate
429 \let\usesubsubenumeratetemplate=\usesubsubitemizetemplate
430 \def\useleftsidebartemplate{\usesidebartemplate[left]}
431 \def\userightsidebartemplate{\usesidebartemplate[right]}
432 \def\useleftsidebarbackgroundtemplate{\usesidebarbackgroundtemplate[left]}
433 \def\userightsidebarbackgroundtemplate{\usesidebarbackgroundtemplate[right]}
434 \def\useleftsidebarcolortemplate#1{\usesidebarbackgroundtemplate[left]{#1\vrule height\paperheight
435 width\csname beamer@leftsidebar\endcsname}}
436 \def\userightsidebarcolortemplate#1{\usesidebarbackgroundtemplate[right]{#1\vrule height\paperheight
437 width\csname beamer@rightsidebar\endcsname}}
438 \def\useleftsidebarverticalshadingtemplate{\beamertemplatesidebarverticalshading[left]}
439 \def\userightsidebarverticalshadingtemplate{\beamertemplatesidebarverticalshading[right]}
440 \def\useleftsidebarhorizontalshadingtemplate{\beamertemplatesidebarhorizontalshading[left]}
441 \def\userightsidebarhorizontalshadingtemplate{\beamertemplatesidebarhorizontalshading[right]}
442 \def\usedescriptionitemtemplate#1#2{\setbeamertemplate{description item}{#1}\setbeamersize{description width={#2}}}
443 \def\usedescriptionitemofwidthas#1{\setbeamersize{description width of={#1}}}%
444 \def\usetemplatetocsection{\@ifnextchar[\@@usetemplatetocsection\@usetemplatetocsection}
445 \long\def\@@usetemplatetocsection[#1]#2{
446 \@usetemplatetocsection{#2}{\begin{colormixin}{#1}#2\end{colormixin}\unskip}}
447 \long\def\@usetemplatetocsection#1#2{\setbeamertemplate{section in toc}{#1}
448 \setbeamertemplate{section in toc shaded}{#2}}
449 \def\usetemplatetocsubsection{\@ifnextchar[\@@usetemplatetocsubsection\@usetemplatetocsubsection}
450 \long\def\@@usetemplatetocsubsection[#1]#2{
451 \@usetemplatetocsubsection{#2}{\begin{colormixin}{#1}#2\end{colormixin}\unskip}}
452 \long\def\@usetemplatetocsubsection#1#2{\setbeamertemplate{subsection in toc}{#1}%
453 \setbeamertemplate{subsection in toc shaded}{#2}}
454 \def\usebibitemtemplate{\setbeamertemplate{bibliography item}}
455 \newcommand\usebibliographyblocktemplate[4]{%
456 \setbeamertemplate{bibliography entry author}{#1}%
457 \setbeamertemplate{bibliography entry title}{#2}%
458 \setbeamertemplate{bibliography entry location}{#3}%
459 \setbeamertemplate{bibliography entry note}{#4}}
460 \def\usebuttontemplate{\setbeamertemplate{button}}
461 \def\usetemplateabstract#1#2{%
462 \setbeamertemplate{abstract title}{}
463 \setbeamertemplate{abstract body begin}{#1}
464 \setbeamertemplate{abstract body end}{#2}}
465 \def\usetemplateverse#1#2{\setbeamertemplate{verse begin}{#1}\setbeamertemplate{verse end}{#2}}
466 \def\usetemplatenote{\setbeamertemplate{note page}}
467 \def\useheadtemplate{\@ifstar{\beamer@useheads}{\beamer@usehead}}
468 \def\beamer@usehead{\setbeamertemplate{headline}[text line]}
469 \def\beamer@useheads{\setbeamertemplate{headline}}
470 \def\addtoheadtemplate{\addtobeamertemplate{headline}}
471 \def\addtofoottemplate{\addtobeamertemplate{footline}}
472 \def\usefoottemplate{\@ifstar{\beamer@usefoots}{\beamer@usefoot}}
473 \def\beamer@usefoot{\setbeamertemplate{footline}[text line]}
474 \def\beamer@usefoots{\setbeamertemplate{footline}}
475 \def\usecaptiontemplate{\setbeamertemplate{caption}}
476 \def\insertblockname{\insertblocktitle}
477 \long\def\usesectionheadtemplate#1#2{%
478 \setbeamertemplate{section in head/foot}{#1}%
479 \setbeamertemplate{section in head/foot shaded}{#2}}
480 \long\def\usesubsectionheadtemplate#1#2{%
481 \setbeamertemplate{subsection in head/foot}{#1}%
482 \setbeamertemplate{subsection in head/foot shaded}{#2}}
483 \long\def\usesectionsidetemplate#1#2{%
484 \setbeamertemplate{section in sidebar}{#1}%
485 \setbeamertemplate{section in sidebar shaded}{#2}}
486 \long\def\usesubsectionsidetemplate#1#2{%
487 \setbeamertemplate{subsection in sidebar}{#1}%
488 \setbeamertemplate{subsection in sidebar shaded}{#2}}
489 \newcommand\usetheoremtemplate[2]{%
490 \setbeamertemplate{theorem begin}{#1}
491 \setbeamertemplate{theorem end}{#2}}
492 \newcommand\useprooftemplate[2]{
493 \setbeamertemplate{proof begin}{#1}
494 \setbeamertemplate{proof end}{#2}}
495 \def\useqedsymboltemplate{\setbeamertemplate{qed symbol}}
496 \newcommand{\BeispielInline}[1]{{\usebeamercolor[fg]{example text}Beispiel: \ignorespaces#1}}
497 \newcommand{\ExampleInline}[1]{{\usebeamercolor[fg]{example text}\translate{Example}: \ignorespaces#1}}
498 \def\usenavigationsymbolstemplate{\setbeamertemplate{navigation symbols}}
499 \def\insertnavigationsymbols{\usebeamertemplate***{navigation symbols}}
500 \def\beamersetaveragebackground#1{\setbeamercolor{normal text}{bg={#1}}}
501 \def\useminislidetemplate#1#2#3#4#5{%
502 \setbeamertemplate{mini frame}{#1}%
503 \setbeamertemplate{mini frame in current subsection}{#2}%
504 \setbeamertemplate{mini frame in other subsection}{#3}%
505 \setbeamersize{mini frame size={#4},mini frame offset={#5}}}
506 \newcommand\usesidebarbackgroundtemplate[2][left]{\setbeamertemplate{sidebar canvas #1}{#2}}
507 \def\usefootnotetemplate{\setbeamertemplate{footnote}}
508
509
510 \def\beamertemplatedefaulttoc{\setbeamertemplate{sections/subsections in toc}[default]}
511 \def\beamertemplatenumberedsubsectiontoc{\setbeamertemplate{sections/subsections in toc}[subsections numbered]}
512 \def\beamertemplatenumberedsectiontoc{\setbeamertemplate{sections/subsections in toc}[sections numbered]}
513 \def\beamertemplatenumberedcirclesectiontoc{\setbeamertemplate{sections/subsections in toc}[circle]}
514 \def\beamertemplatenumberedsquaresectiontoc{\setbeamertemplate{sections/subsections in toc}[square]}
515 \def\beamertemplatenumberedballsectiontoc{\setbeamertemplate{sections/subsections in toc}[ball]}
516 \def\beamertemplateballtoc{\setbeamertemplate{sections/subsections in toc}[ball unnumbered]}
517 \def\beamertemplatedotitem{\setbeamertemplate{itemize items}[circle]}
518 \def\beamertemplatetriangleitem{\setbeamertemplate{itemize items}[default]}
519 \def\beamertemplatesquareitem{\setbeamertemplate{itemize items}[square]}
520 \def\beamertemplateballitem{\setbeamertemplate{items}[ball]}
521 \def\beamertemplateenumeratealpha{\setbeamertemplate{enumerate items}[default]}
522 \def\beamertemplateenumeratecircle{\setbeamertemplate{enumerate items}[circle]}
523 \def\beamertemplateenumeratesquare{\setbeamertemplate{enumerate items}[square]}
524 \def\beamertemplatelargepartpage{\setbeamertemplate{part page}[default]}
525 \def\beamertemplateboldpartpage{\setbeamerfont{part}{size=\large}%
526 \setbeamerfont{part name}{series=\bfseries}%
527 \setbeamertemplate{part page}[default]}
528 \def\beamertemplatelargetitlepage{\setbeamertemplate{title page}[default]}
529 \def\beamertemplateboldtitlepage{\setbeamerfont{title}{size=\large,series=\bfseries}%
530 \setbeamertemplate{title page}[default]}
531 \def\beamertemplateboldcenterframetitle{\setbeamerfont{frametitle}{size={},series=\bfseries}
532 \setbeamerfont{framesubtitle}{series=\bfseries}
533 \setbeamertemplate{frametitle}[default][center]}
534 \def\beamertemplateboldframetitle{\setbeamerfont{frametitle}{series=\bfseries}
535 \setbeamerfont{framesubtitle}{series=\bfseries}
536 \setbeamertemplate{frametitle}[default]}
537 \def\beamertemplatelargeframetitle{\setbeamertemplate{frametitle}[default]}
538 \def\beamertemplateboldblocks{\setbeamerfont{block title}{size={},series=\bfseries}\setbeamertemplate{blocks}[default]}
539 \def\beamertemplatelargeblocks{\setbeamertemplate{blocks}[default]}
540 \def\beamertemplateshadowblocks{\setbeamertemplate{blocks}[rounded][shadow=true]}
541 \def\beamertemplateplaintoc{\beamertemplatedefaulttoc}
542 \def\beamertemplatecircleminiframeinverted{\beamertemplatecircleminiframe%
543 \usebeamercolor{mini frames}{use=structure,fg=white,bg=structure.bg}}
544 \def\beamertemplatesphereminiframe{\beamertemplatecircleminiframe}
545 \def\beamertemplatesphereminiframeinverted{\beamertemplatecircleminiframeinverted}
546 \def\beamertemplatelightsectionheads{\usesectionheadtemplate{\hfill\insertsectionhead}{\hfill\color{fg!50!bg}\insertsectionhead}
547 \usesubsectionheadtemplate{\insertsubsectionhead}{\color{fg!50!bg}\insertsubsectionhead}}
548 \let\beamertemplatedarksectionheads=\beamertemplatedefaultsectionheads
549 \def\usecontinuationtemplate{\setbeamertemplate{frametitle continuation}}
550 \def\beamertemplatecontinuationroman{\setbeamertemplate{frametitle continuation}[default]}
551 \def\beamertemplatecontinuationtext{\setbeamertemplate{frametitle continuation}[from second]}
552 \def\beamertemplateroundedbuttons{\setbeamertemplate{button}[default]}
553 \def\beamertemplateoutlinebuttons{\setbeamercolor*{button border}{parent=structure,use=structure,fg=structure.fg!50!bg}}
554 \def\beamertemplatesolidbuttons{\setbeamercolor*{button}{use=structure,bg=structure.fg!50!bg,fg=white}
555 \setbeamercolor*{button border}{use=structure,fg=structure.fg!50!bg}}
556 \def\usetemplatequotation#1#2{
557 \setbeamertemplate{quotation begin}{#1}
558 \setbeamertemplate{quote begin}{#1}
559 \setbeamertemplate{quotation end}{#2}
560 \setbeamertemplate{quote end}{#2}}
561 \def\beamertemplateheadempty{\setbeamertemplate{headline}{}}
562 \def\beamertemplatefootempty{\setbeamertemplate{footline}{}}
563 \def\beamertemplatefootpagenumber{\setbeamertemplate{footline}[page number]}
564 \def\beamertemplatecaptionownline{\setbeamertemplate{caption}[caption name own line]}
565 \def\beamertemplatecaptionnwithnumber{\setbeamertemplate{caption}[numbered]}
566 \def\beamertemplateroundedblocks{\setbeamertemplate{blocks}[rounded]}
567 \def\beamertemplatetheoremsunnumbered{\setbeamertemplate{theorems}[default]}
568 \def\beamertemplatetheoremsnumbered{\setbeamertemplate{theorems}[numbered]}
569 \def\beamertemplatetheoremsamslike{\setbeamertemplate{theorems}[ams style]}
570 \def\beamertemplatetheoremssimple{\setbeamertemplate{theorems}[normal font]}
571 \def\beamertemplatenavigationsymbolsempty{\setbeamertemplate{navigation symbols}{}}
572 \def\beamertemplatenavigationsymbolsframe{\setbeamertemplate{navigation symbols}[only frame symbol]}
573 \def\beamertemplatenavigationsymbolsvertical{\setbeamertemplate{navigation symbols}[vertical]}
574 \def\beamertemplatenavigationsymbolshorizontal{\setbeamertemplate{navigation symbols}[horizontal]}
575 \def\beamertemplatedefaultsectionheads{%
576 \setbeamertemplate{section in head/foot}[default]
577 \setbeamertemplate{subsection in head/foot}[default]
578 \setbeamertemplate{section in head/foot shaded}[default]
579 \setbeamertemplate{subsection in head/foot shaded}[default]
580 }
581 \def\beamertemplatecircleminiframe{\setbeamertemplate{mini frames}[default]}
582 \def\beamertemplateticksminiframe{\setbeamertemplate{mini frames}[tick]}
583 \def\beamertemplateboxminiframe{\setbeamertemplate{mini frames}[box]}
584 \newcommand\usesidebartemplate[3][left]{%
585 \setbeamersize{sidebar width #1=#2}
586 \setbeamertemplate{sidebar #1}{#3}
587 }
588 \newcommand\beamertemplatesidebarcolor[2][left]{\setbeamercolor{sidebar #1}{bg={#2}}}
589 \def\beamertemplaterightsidebarlogonavigation{\setbeamertemplate{sidebar right}[default]
590 \setbeamersize{sidebar width right=0pt}}
591 \newcommand{\beamertemplatesidebarverticalshading}[3][left]{%
592 \setbeamertemplate{sidebar canvas #1}[vertical shading][top={#3},bottom={#2}]}
593 \newcommand{\beamertemplatesidebarhorizontalshading}[3][left]{%
594 \setbeamertemplate{sidebar canvas #1}[horizontal shading][right={#3},left={#2}]}
595 \define@key{beamer@margin}{descriptionwidth}{%
596 \beamer@descriptionwidth=#1\relax%
597 }
598 \define@key{beamer@margin}{descriptionwidthof}{%
599 \setbox\beamer@tempbox=\hbox{\def\insertdescriptionitem{#1}\usebeamertemplate**{description item}}%
600 \beamer@descriptionwidth=\wd\beamer@tempbox\relax%
601 }
602
603 \mode
604 <all>
605 {
606 \def\beamersetleftmargin#1{\setbeamersize{text margin left=#1}}
607 \def\beamersetrightmargin#1{\setbeamersize{text margin right=#1}}
608 \long\def\useframetemplate#1#2{\setbeamertemplate{frame begin}{#1}\setbeamertemplate{frame end}{#2}}
609 \def\usebackgroundtemplate{\setbeamertemplate{background canvas}}
610 \def\beamertemplatesolidbackgroundcolor#1{\setbeamercolor{normal text}{bg={#1}}}
611 \long\def\useblocktemplate#1#2{%
612 \setbeamertemplate{block begin}{#1}%
613 \setbeamertemplate{block end}{#2}}
614 \long\def\usealertblocktemplate#1#2{%
615 \setbeamertemplate{block alerted begin}{#1}%
616 \setbeamertemplate{block alerted end}{#2}}
617 \long\def\useexampleblocktemplate#1#2{%
618 \setbeamertemplate{block example begin}{#1}%
619 \setbeamertemplate{block example end}{#2}}
620 \newcommand{\beamertemplategridbackground}[1][]{\setbeamertemplate{background}[grid][step={#1}]}
621 \newcommand{\beamertemplateshadingbackground}[2]{\setbeamertemplate{background canvas}[vertical shading][bottom={#1},top={#2}]}
622 \newcommand\usealerttemplate[2]{\setbeamertemplate{alerted text begin}{#1}\setbeamertemplate{alerted text end}{#2}}
623 \newcommand\usestructuretemplate[2]{\setbeamertemplate{structure begin}{#1}\setbeamertemplate{structure end}{#2}}
624 \newcommand{\beamertemplatebookbibitems}{\setbeamertemplate{bibliography item}[book]}
625 \newcommand{\beamertemplatearticlebibitems}{\setbeamertemplate{bibliography item}[article]}
626 \newcommand{\beamertemplatetextbibitems}{\setbeamertemplate{bibliography item}[text]}
627 \newcommand{\beamertemplatearrowbibitems}{\setbeamertemplate{bibliography item}[triangle]}
628 \newcommand{\beamertemplateonlinebibitems}{\setbeamertemplate{bibliography item}[online]}
629
630 \def\beamertemplatetransparentcovereddynamic{\setbeamercovered{highly dynamic}}
631 \def\beamertemplatetransparentcovereddynamicmedium{\setbeamercovered{dynamic}}
632 \def\beamertemplatetransparentcovered{\setbeamercovered{transparent}}
633 \def\beamertemplatetransparentcoveredmedium{\setbeamercovered{transparent=10}}
634 \def\beamertemplatetransparentcoveredhigh{\setbeamercovered{transparent=5}}
635 \def\beamertemplatetransparentcoveredhighest{\setbeamercovered{transparent=2}}
636 \def\beamersetuncovermixins#1#2{\setbeamercovered{still covered={#1},again covered={#2}}}
637 }
638
639 \mode
640 <all>