-
Notifications
You must be signed in to change notification settings - Fork 0
/
sdqbeamer.cls
655 lines (583 loc) · 19.9 KB
/
sdqbeamer.cls
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{sdqbeamer}[2020-10-26 v3.0 SDQ Beamer class]
\newif\ifsectionnavigation
\newif\ifnavbarinfoot
\newif\ifnavbarinline
\newif\ifnavbarside
\newif\ifwidescreen
\newif\ifgerman
\newif\ifsmallfooterfont
\def\kitslogan#1{\def\@kitslogan{#1}}
\def\kitlogo#1{\def\@kitlogo{#1}}
\def\groupname#1{\def\@groupname{#1}}
% see README.md
\DeclareOption{de}{
\kitslogan{KIT -- Die Forschungsuniversität in der Helmholtz-Gemeinschaft}
\groupname{Institut für Beispiele}
\kitlogo{kitlogo_de_rgb}
\germantrue
\PassOptionsToPackage{autostyle}{csquotes}
}
\DeclareOption{en}{
\kitslogan{KIT -- The Research University in the Helmholtz Association}
\groupname{Institute for Examples}
\kitlogo{kitlogo_en_rgb}
\germanfalse
}
\DeclareOption{4:3}{
\widescreenfalse
}
\DeclareOption{16:9}{
\widescreentrue
}
\DeclareOption{navbarside}{
\sectionnavigationtrue
\navbarsidetrue
\navbarinlinefalse
\navbarinfootfalse
}
\DeclareOption{navbarinline}{
\sectionnavigationtrue
\navbarsidefalse
\navbarinlinetrue
\navbarinfootfalse
}
\DeclareOption{navbarinfooter}{
\sectionnavigationtrue
\navbarsidefalse
\navbarinlinefalse
\navbarinfoottrue
}
\DeclareOption{navbaroff}{
\sectionnavigationfalse
}
\DeclareOption{navbarkit}{
\sectionnavigationfalse
\smallfooterfonttrue
}
\DeclareOption{smallfoot}{
\smallfooterfonttrue
}
\DeclareOption{bigfoot}{
\smallfooterfontfalse
}
\ExecuteOptions{de,16:9,navbarinline,bigfoot}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{beamer}}
\ProcessOptions\relax
\LoadClass[utf8,professionalfonts,compress]{beamer}
% Load babel only if needed (German)
\ifgerman
\RequirePackage[ngerman]{babel}
\fi
\RequirePackage{csquotes}
\RequirePackage{hyperref}
\RequirePackage[absolute,overlay]{textpos}
%% ---------------
%% | Typographie |
%% ---------------
\RequirePackage[utf8]{inputenc}
\RequirePackage[T1]{fontenc}
\RequirePackage{microtype}
\RequirePackage[scaled=.92]{helvet}
\RequirePackage[scaled=.78]{beramono}
\RequirePackage{libertineRoman}
\RequirePackage[libertine]{newtxmath}
\setbeamerfont{title}{series=\bfseries,size=\Large}
\setbeamerfont{frametitle}{series=\bfseries,size=\Large}
%% -----------------
%% | Folien-Layout |
%% -----------------
% Seitenverhältnis
%
% Die Folien sind auf die Standardhöhe in LaTeX Beamer (9,6 cm) normiert.
% Die Maße der KIT-Gestaltungsrichtlinien (Folienhöhe 14,3 cm) wurden durch
% den Quotienten 1,5 geteilt.
\RequirePackage{geometry}
\ifwidescreen
\geometry{papersize={17.07cm,9.6cm}}
\else
\geometry{papersize={12.8cm,9.6cm}}
\fi
% Ränder laut Gestaltungsrichtlinen; 3 mm -> 2 mm, 11 mm -> 7,3 mm
\newlength{\kitoutermargin}
\setlength{\kitoutermargin}{2mm}
\newlength{\kitinnermargin}
\setlength{\kitinnermargin}{7.3mm}
\newlength{\kitbottommargin}
\setlength{\kitbottommargin}{\kitinnermargin}
% Ränder außen
\setbeamersize{text margin left=\kitinnermargin,text margin right=\kitinnermargin}
% keine Navigationssymbole
\setbeamertemplate{navigation symbols}{}
\setbeamercovered{invisible}
\useinnertheme{rounded}
% Folientitel
\setbeamertemplate{frametitle}{
\ifbeamer@plainframe\else%
% Unterkante Titeltext: 22,5 mm -> 15 mm von Seitenkopf
\begin{textblock*}{\dimexpr\paperwidth-30mm}[0,1](\kitinnermargin,15mm)%
\usebeamerfont{frametitle}\insertframetitle%
\end{textblock*}%
\begin{textblock*}{20mm}[1,1](\dimexpr\paperwidth-\kitinnermargin\relax,15mm)%j
\includegraphics[width=20mm]{logos/\@kitlogo}%
\end{textblock*}%
\fi
% Rand oben (ergibt Beginn des Textes bei 34 mm -> 22,7 mm)
\vspace {18mm}
}
%% Fußzeile
\newlength{\kitbottom}
% Navbar in Footer: Schmale Fußzeile
\ifnavbarinfoot
% Bei Navbar in Footer immer kleiner Font in der Fußzeile
\setbeamerfont{footer}{size=\fontsize{6pt}{7.2pt}\selectfont}
\setlength{\kitbottom}{4mm}
\else
% Ansonsten kleiner Text nur, wenn "smallfoot" gewählt
\ifsmallfooterfont
\setbeamerfont{footer}{size=\fontsize{6pt}{7.2pt}\selectfont}
\else
\setbeamerfont{footer}{size=\scriptsize}
\fi
\setlength{\kitbottom}{\kitbottommargin}
\fi
\setbeamerfont{page number in head/foot}{series=\bfseries}
\newlength{\kitbottomdepth}
\newlength{\kitbottomheight}
\newlength{\kitfootergroupwidth}
\setbeamertemplate{footline}{%
\setlength{\kitbottomdepth}{\dimexpr.5\kitbottom-.5em\relax}%
\setlength{\kitbottomheight}{\dimexpr.5\kitbottom+.5em\relax}%
%% die "%" am Ende sind nötig, damit keine Abstände eingefügt werden
%
% Falls kein Gruppenname angegeben, die ganze Breite der Fußzeile für den Titel nutzen.
\ifx\@groupname\empty%
\setlength{\kitfootergroupwidth}{0mm}%
\else%
\setlength{\kitfootergroupwidth}{50mm}%
\fi%
\usebeamerfont{footer}%
\ifsectionnavigation%
% Option "navbarinline"
\ifnavbarinline%
\begin{beamercolorbox}[wd=\paperwidth, leftskip=2mm, rightskip=2mm]{}
\insertnavigation{\dimexpr\paperwidth-4mm\relax}
\vspace{1mm}
\end{beamercolorbox}%
\fi%
% Option "navbarinfooter"
\ifnavbarinfoot%
% Punkte für Subsections deaktivieren
\setbeamertemplate{mini frames}{}%
\begin{beamercolorbox}[wd=\paperwidth, leftskip=1mm, rightskip=1mm]{}%
\insertsectionnavigationhorizontal{\dimexpr\paperwidth-\kitoutermargin\relax}{}{}
\end{beamercolorbox}%
\fi%
\fi%
\leavevmode%
\begin{beamercolorbox}[wd=13mm, ht=\kitbottomheight, dp=\kitbottomdepth, leftskip=4mm]{}
\usebeamerfont{page number in head/foot}%
\strut\insertframenumber{}/\inserttotalframenumber%
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=20mm, ht=\kitbottomheight, dp=\kitbottomdepth]{}
\usebeamerfont{date in head/foot}%
\strut\insertshortdate%
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=\dimexpr\paperwidth-37mm-\kitfootergroupwidth, ht=\kitbottomheight, dp=\kitbottomdepth]{}
\insertshortauthor: \insertshorttitle
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=\kitfootergroupwidth, ht=\kitbottomheight, dp=\kitbottomdepth, rightskip=\kitinnermargin]{}
\raggedleft\@groupname
\end{beamercolorbox}%
}
%% Option "navbarside"
\ifnavbarside
\useoutertheme[height=0cm,width=3.5cm,left]{sidebar}
\setbeamerfont{title in sidebar}{family=\sffamily,series=\mdseries,size={\fontsize{10pt}{11pt}}}
\setbeamerfont{section in sidebar}{family=\sffamily,series=\mdseries,size={\fontsize{9pt}{9.9pt}}}
\setbeamerfont{subsection in sidebar}{family=\sffamily,series=\mdseries,size={\fontsize{8pt}{8.8pt}}}
\setbeamertemplate{sidebar \beamer@sidebarside}
{\vskip1.5cm%
\hskip6.5mm%
\advance\beamer@sidebarwidth by -5mm%
\insertverticalnavigation{\beamer@sidebarwidth}%
}%
\fi
%% Hintergrund
\usebackgroundtemplate{
% Trennlinie nicht bei "plain"-Frames
\ifbeamer@plainframe\else\kitseparationline\fi
}
% Trennlinie
\newcommand{\kitseparationline}{
\begin{pgfpicture}{0mm}{0mm}{\paperwidth}{\paperheight}
\pgfsetstrokecolor{black!15}
\pgfsetlinewidth{.5pt}
\pgfpathmoveto{\pgfpoint{\kitoutermargin}{\kitinnermargin}}
\pgfpathlineto{\pgfpoint{\paperwidth-\kitoutermargin}{\kitinnermargin}}
\pgfusepath{stroke}
\end{pgfpicture}%
}
%% --------------
%% | Titelseite |
%% --------------
\def\titleimage#1{\def\@titleimage{#1}}
\def\grouplogo#1{\def\@grouplogo{#1}}
\newcommand{\KITtitleframe}{
\begin{frame}[plain]
\titlepage
\end{frame}
}
\setbeamertemplate{title page}{
% From textpos documentation (https://ctan.org/pkg/textpos)
%
% \begin{textblock}{<hsize>}[<ho>,<vo>](<hpos>,<vpos>)
% The coordinates <ho> and <vo> are fractions of the width and height of the text
% box, respectively, and state that the box is to be placed so that the reference point
% (<ho>,<vo>) within the box is to be placed at the point (<hpos>,<vpos>) on the page.
% KIT-Logo
\begin{textblock*}{30mm}(\kitinnermargin,6.7mm)
\includegraphics[width=30mm]{logos/\@kitlogo}
\end{textblock*}
% Gruppenlogo
\ifx\@grouplogo\empty \else
\begin{textblock*}{20mm}(\dimexpr\paperwidth-24mm\relax,6.7mm)
\includegraphics[width=20mm]{logos/\@grouplogo}
\end{textblock*}
\fi
% Titel
\begin{textblock*}{\dimexpr\paperwidth-8mm\relax}[0,.5](\kitinnermargin,28mm)
\usebeamerfont*{title}\inserttitle
\end{textblock*}
% Untertitel
\begin{textblock*}{\dimexpr\paperwidth-8mm\relax}(\kitinnermargin,36mm)
\small\textbf{\insertsubtitle}
\end{textblock*}
% Autor
\begin{textblock*}{\dimexpr\paperwidth-8mm\relax}(\kitinnermargin,41mm)
\small\insertauthor~\textbar~\insertdate
\end{textblock*}
% Titelbild
\newlength{\kittitleimageheight}
\setlength{\kittitleimageheight}{40mm}
\begin{textblock*}{\paperwidth}(\kitoutermargin,\dimexpr\paperheight-\kitbottommargin-\kittitleimageheight)
\begin{pgfpicture}{0mm}{0mm}{\paperwidth}{\kittitleimageheight}
% Clipping-Pfad um titelbild
\pgfsetstrokecolor{black!15}
\pgfsetlinewidth{1pt}
\pgfsetcornersarced{\pgfpoint{3mm}{3mm}}
\pgfpathmoveto{\pgfpoint{\paperwidth-2\kitoutermargin}{0mm}}
\pgfpathlineto{\pgfpoint{\paperwidth-2\kitoutermargin}{\kittitleimageheight}}
\pgfsetcornersarced{\pgfpointorigin}
\pgfpathlineto{\pgfpoint{0mm}{\kittitleimageheight}}
\pgfsetcornersarced{\pgfpoint{3mm}{3mm}}
\pgfpathlineto{\pgfpointorigin}
\pgfsetcornersarced{\pgfpointorigin}
\pgfpathclose
\pgfusepath{stroke,clip}
% Titelbild
\pgftext[at=\pgfpoint{.5\paperwidth}{0mm},center,bottom]{%
\includegraphics[height=40mm]{logos/\@titleimage}
}
\end{pgfpicture}%
\end{textblock*}
% KIT slogan
\begin{textblock*}{80mm}[0,.5](\kitoutermargin,\dimexpr\paperheight-.5\kitbottommargin)
\fontsize{5.5pt}{5.5pt}\selectfont\@kitslogan
\end{textblock*}
\begin{textblock*}{30mm}[1,.5](\dimexpr\paperwidth-\kitoutermargin\relax,\dimexpr\paperheight-.5\kitbottommargin)
\fontsize{11pt}{11pt}\selectfont\bfseries\raggedleft%
{\href{https://www.kit.edu}{www.kit.edu}}
\end{textblock*}
}
%% ---------------
%% | /Titelseite |
%% ---------------
%% ----------
%% | Farben |
%% ----------
%% KIT-Farbschema
\definecolor{kit-green100}{rgb}{0,.59,.51}
\definecolor{kit-green70}{rgb}{.3,.71,.65}
\definecolor{kit-green50}{rgb}{.50,.79,.75}
\definecolor{kit-green30}{rgb}{.69,.87,.85}
\definecolor{kit-green15}{rgb}{.85,.93,.93}
\definecolor{kit-blue100}{rgb}{.27,.39,.67}
\definecolor{kit-blue70}{rgb}{.49,.57,.76}
\definecolor{kit-blue50}{rgb}{.64,.69,.83}
\definecolor{kit-blue30}{rgb}{.78,.82,.9}
\definecolor{kit-blue15}{rgb}{.89,.91,.95}
\definecolor{kit-yellow100}{cmyk}{0,.05,1,0}
\definecolor{kit-yellow70}{cmyk}{0,.035,.7,0}
\definecolor{kit-yellow50}{cmyk}{0,.025,.5,0}
\definecolor{kit-yellow30}{cmyk}{0,.015,.3,0}
\definecolor{kit-yellow15}{cmyk}{0,.0075,.15,0}
\definecolor{kit-orange100}{cmyk}{0,.45,1,0}
\definecolor{kit-orange70}{cmyk}{0,.315,.7,0}
\definecolor{kit-orange50}{cmyk}{0,.225,.5,0}
\definecolor{kit-orange30}{cmyk}{0,.135,.3,0}
\definecolor{kit-orange15}{cmyk}{0,.0675,.15,0}
\definecolor{kit-red100}{cmyk}{.25,1,1,0}
\definecolor{kit-red70}{cmyk}{.175,.7,.7,0}
\definecolor{kit-red50}{cmyk}{.125,.5,.5,0}
\definecolor{kit-red30}{cmyk}{.075,.3,.3,0}
\definecolor{kit-red15}{cmyk}{.0375,.15,.15,0}
\definecolor{kit-lila100}{rgb}{.64,.06,.49}
\definecolor{kit-brown100}{rgb}{.65,.51,.18}
\definecolor{kit-cyan100}{rgb}{.03,.62,.87}
\definecolor{kit-maygreen100}{rgb}{.47,.64,0}
\setbeamercolor*{normal text}{fg=black}
\setbeamercolor*{alerted text}{fg=kit-red100}
\setbeamercolor*{example text}{fg=black}
\setbeamercolor*{structure}{fg=black}
\setbeamercolor*{palette primary}{fg=black,bg=black!15}
\setbeamercolor*{palette secondary}{fg=black,bg=black!15}
\setbeamercolor*{palette tertiary}{fg=black,bg=black!15}
\setbeamercolor*{palette quaternary}{fg=black,bg=black!15}
\setbeamercolor*{palette sidebar primary}{fg=black!75}
\setbeamercolor*{palette sidebar secondary}{fg=black!75}
\setbeamercolor*{palette sidebar tertiary}{fg=black!75}
\setbeamercolor*{palette sidebar quaternary}{fg=black!75}
\setbeamercolor*{item projected}{fg=white,bg=kit-green100}
\setbeamercolor*{block title}{fg=white,bg=kit-green100}
\setbeamercolor*{block title alerted}{use=alerted text,fg=white,bg=alerted text.fg!75!black}
\setbeamercolor*{block title example}{fg=white,bg=kit-blue100}
\setbeamercolor*{block body}{fg=black,bg=kit-green15}
\setbeamercolor*{block body alerted}{parent=normal text,use=block title alerted,bg=block title alerted.bg!10!bg}
\setbeamercolor*{block body example}{fg=black,bg=kit-blue15}
\setbeamercolor*{separation line}{}
\setbeamercolor*{fine separation line}{}
\setbeamercolor*{background canvas}{bg=white}
%% -----------
%% | /Farben |
%% -----------
%% -----------------------------------
%% | halbgerundete Aufzählungspunkte |
%% -----------------------------------
\setbeamertemplate{itemize items}{
\raisebox{.25ex}{
\begin{pgfpicture}{0mm}{0mm}{1ex}{1ex}
{\pgfsetcornersarced{\pgfpoint{.3ex}{.3ex}}
\pgfpathmoveto{\pgfpoint{0cm}{1ex}}
\pgfpathlineto{\pgfpoint{1ex}{1ex}}
\pgfpathlineto{\pgfpoint{1ex}{0cm}}}
{\pgfsetcornersarced{\pgfpoint{.3ex}{.3ex}}
\pgfpathmoveto{\pgfpoint{1ex}{0cm}}
\pgfpathlineto{\pgfpointorigin}
\pgfpathlineto{\pgfpoint{0cm}{1ex}}}
\color{kit-green100}
\pgfusepath{fill}
\end{pgfpicture}%
}
}
%% ------------------------------
%% | halbgerundete Beamer-Boxen |
%% ------------------------------
\renewcommand\beamerboxesrounded[2][]{%
\global\let\beamer@firstlineitemizeunskip=\relax%
\vbox\bgroup%
\setkeys{beamerboxes}{upper=block title,lower=block body,width=\textwidth,shadow=false}%
\setkeys{beamerboxes}{#1}%
{%
\usebeamercolor{\bmb@lower}%
\globalcolorstrue%
\colorlet{lower.bg}{bg}%
}%
{%
\usebeamercolor{\bmb@upper}%
\globalcolorstrue%
\colorlet{upper.bg}{bg}%
}%
%
% Typeset head
%
\vskip4bp
\setbox\bmb@box=\hbox{%
\begin{minipage}[b]{\bmb@width}%
\usebeamercolor[fg]{\bmb@upper}%
#2%
\end{minipage}}%
\ifdim\wd\bmb@box=0pt%
\setbox\bmb@box=\hbox{}%
\ht\bmb@box=1.5pt%
\bmb@prevheight=-4.5pt%
\else%
\wd\bmb@box=\bmb@width%
\bmb@temp=\dp\bmb@box%
\ifdim\bmb@temp<1.5pt%
\bmb@temp=1.5pt%
\fi%
\setbox\bmb@box=\hbox{\raise\bmb@temp\hbox{\box\bmb@box}}%
\dp\bmb@box=0pt%
\bmb@prevheight=\ht\bmb@box%
\fi%
\bmb@temp=\bmb@width%
\bmb@dima=\bmb@temp\advance\bmb@dima by2.2bp%
\bmb@dimb=\bmb@temp\advance\bmb@dimb by4bp%
\hbox{%
\begin{pgfpicture}{0bp}{+-\ht\bmb@box}{0bp}{+-\ht\bmb@box}
\ifdim\wd\bmb@box=0pt%
\color{lower.bg}%
\else%
\color{upper.bg}%
\fi%
\pgfpathqmoveto{-4bp}{-1bp}
% Adaption for "KIT-Design"
\pgfpathlineto{\pgfpoint{-4bp}{3bp}}
%\pgfpathqcurveto{-4bp}{1.2bp}{-2.2bp}{3bp}{0bp}{3bp}
\pgfpathlineto{\pgfpoint{\bmb@temp}{3bp}}
\pgfpathcurveto%
{\pgfpoint{\bmb@dima}{3bp}}%
{\pgfpoint{\bmb@dimb}{1.2bp}}%
{\pgfpoint{\bmb@dimb}{-1bp}}%
\bmb@dima=-\ht\bmb@box%
\advance\bmb@dima by-2pt%
\pgfpathlineto{\pgfpoint{\bmb@dimb}{\bmb@dima}}
\pgfpathlineto{\pgfpoint{-4bp}{\bmb@dima}}
\pgfusepath{fill}
\end{pgfpicture}%
\copy\bmb@box%
}%
\nointerlineskip%
\vskip-1pt%
\ifdim\wd\bmb@box=0pt%
\else%
\hbox{%
\begin{pgfpicture}{0pt}{0pt}{\bmb@width}{6pt}
\bmb@dima=\bmb@width%
\advance\bmb@dima by8bp%
\pgfpathrectangle{\pgfpoint{-4bp}{-1bp}}{\pgfpoint{\bmb@dima}{8bp}}
\pgfusepath{clip}
{\pgftransformshift{\pgfpoint{-4bp}{0bp}}\pgftext[left,base]{\pgfuseshading{bmb@transition}}}%
\end{pgfpicture}%
}%
\nointerlineskip%
\vskip-0.5pt%
\fi%
\ifbmb@shadow%
\setbox\bmb@boxshadow=\hbox{\pgfuseshading{bmb@shadow}}%
\setbox\bmb@boxshadowball=\hbox{\pgfuseshading{bmb@shadowball}}%
\setbox\bmb@boxshadowballlarge=\hbox{\pgfuseshading{bmb@shadowballlarge}}%
\fi%
\setbox\bmb@colorbox=\hbox{{\pgfpicturetrue\pgfsetcolor{lower.bg}}}%
\setbox\bmb@box=\hbox\bgroup\begin{minipage}[b]{\bmb@width}%
\vskip2pt%
\usebeamercolor[fg]{\bmb@lower}%
\colorlet{beamerstructure}{upper.bg}%
\colorlet{structure}{upper.bg}%
%\color{.}%
}
\def\endbeamerboxesrounded{%
\end{minipage}\egroup%
\wd\bmb@box=\bmb@width%
\bmb@temp=\dp\bmb@box%
\advance\bmb@temp by.5pt%
\setbox\bmb@box=\hbox{\raise\bmb@temp\hbox{\box\bmb@box}}%
\dp\bmb@box=0pt%
\bmb@temp=\wd\bmb@box%
\bmb@dima=\bmb@temp\advance\bmb@dima by2.2bp%
\bmb@dimb=\bmb@temp\advance\bmb@dimb by4bp%
\hbox{%
\begin{pgfpicture}{0bp}{0bp}{0bp}{0bp}
\ifbmb@shadow%
{\pgftransformshift{\pgfpoint{4bp}{-3bp}}\pgftext{\copy\bmb@boxshadowball}}
\begin{pgfscope}
{%
\advance\bmb@temp by-1bp%
\pgfpathrectangle{\pgfpoint{\bmb@temp}{-7bp}}{\pgfpoint{9bp}{9bp}}%
\pgfusepath{clip}
}%
{\pgftransformshift{\pgfpoint{\bmb@temp}{1bp}}\pgftext{\box\bmb@boxshadowballlarge}}
\end{pgfscope}
\begin{pgfscope}
\advance\bmb@temp by-4bp%
\pgfpathrectangle{\pgfpoint{4bp}{-7bp}}{\pgfpoint{\bmb@temp}{5bp}}
\pgfusepath{clip}
{\pgftransformshift{\pgfpoint{4bp}{-7bp}}\pgftext[left,base]{\copy\bmb@boxshadow}}%
\end{pgfscope}
\begin{pgfscope}
\advance\bmb@temp by 4bp%
\bmb@dima=\ht\bmb@box%
\advance\bmb@dima by\bmb@prevheight%
\advance\bmb@dima by 4bp%
\pgfpathrectangle{\pgfpoint{\bmb@temp}{1bp}}{\pgfpoint{4bp}{\bmb@dima}}
\pgfusepath{clip}
\advance\bmb@dima by-4bp%
{\pgftransformshift{\pgfpoint{\bmb@temp}{\bmb@dima}}\pgftext{\box\bmb@boxshadowball}}
\advance\bmb@dima by-1bp%
\pgfpathrectangle{\pgfpoint{\bmb@temp}{1bp}}{\pgfpoint{4bp}{\bmb@dima}}
\pgfusepath{clip}
\advance\bmb@temp by4bp%
{\pgftransformshift{\pgfpoint{\bmb@temp}{-3bp}}%
\pgftransformrotate{90}%
\pgftext[left,base]{\box\bmb@boxshadow}}%
\end{pgfscope}
\fi%
\unhbox\bmb@colorbox%
\pgfpathqmoveto{-4bp}{1bp}
\pgfpathqcurveto{-4bp}{-1.2bp}{-2.2bp}{-3bp}{0bp}{-3bp}
\pgfpathlineto{\pgfpoint{\the\bmb@dimb}{-3bp}}
{
\bmb@dima=\ht\bmb@box%
\pgfpathlineto{\pgfpoint{\bmb@dimb}{\bmb@dima}}
\pgfpathlineto{\pgfpoint{-4bp}{\bmb@dima}}
\pgfusepath{fill}
}
\ifbmb@shadow%
{
\color{black!50!bg}
\pgfsetlinewidth{0pt}
\pgfpathmoveto{\pgfpoint{\bmb@dimb}{-.5bp}}
\bmb@dima=\ht\bmb@box%
\advance\bmb@dima by\bmb@prevheight%
\advance\bmb@dima by 1bp%
\pgfpathlineto{\pgfpoint{\bmb@dimb}{\bmb@dima}}
\pgfusepath{stroke}
\bmb@temp=\bmb@dima
\advance\bmb@dima by 1bp%
\color{black!31!bg}
\pgfpathmoveto{\pgfpoint{\bmb@dimb}{\bmb@temp}}
\pgfpathlineto{\pgfpoint{\bmb@dimb}{\bmb@dima}}
\pgfusepath{stroke}
\advance\bmb@dima by 1bp%
\advance\bmb@temp by 1bp%
\color{black!19!bg}
\pgfpathmoveto{\pgfpoint{\bmb@dimb}{\bmb@temp}}
\pgfpathlineto{\pgfpoint{\bmb@dimb}{\bmb@dima}}
\pgfusepath{stroke}
\advance\bmb@dima by 1bp%
\advance\bmb@temp by 1bp%
\color{black!6!bg}
\pgfpathmoveto{\pgfpoint{\bmb@dimb}{\bmb@temp}}
\pgfpathlineto{\pgfpoint{\bmb@dimb}{\bmb@dima}}
\pgfusepath{stroke}
\advance\bmb@dima by 1.5bp%
\advance\bmb@temp by 1bp%
\color{bg}
\pgfpathmoveto{\pgfpoint{\bmb@dimb}{\bmb@temp}}
\pgfpathlineto{\pgfpoint{\bmb@dimb}{\bmb@dima}}
\pgfusepath{stroke}
}
\fi
\end{pgfpicture}%
\box\bmb@box%
}%
\ifbmb@shadow%
\vskip4bp minus 2bp%
\else%
\vskip2bp%
\fi%
\egroup% of \vbox\bgroup
}
%% ----------------------------------------
%% | /KIT-style semi-rounded beamer boxes |
%% ----------------------------------------
%% use this for setting the total page number
\newcommand{\beginbackup}{
\newcounter{framenumbervorappendix}
\setcounter{framenumbervorappendix}{\value{framenumber}}
}
\newcommand{\backupend}{
\addtocounter{framenumbervorappendix}{-\value{framenumber}}
\addtocounter{framenumber}{\value{framenumbervorappendix}}
}