-
Notifications
You must be signed in to change notification settings - Fork 0
/
beamerouterthemeDHBW.sty
98 lines (76 loc) · 1.96 KB
/
beamerouterthemeDHBW.sty
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
\mode<presentation>
% Options
\def\beamer@dhbw@header{true}
\DeclareOptionBeamer{header}{\def\beamer@dhbw@header{#1}}
\def\beamer@dhbw@footer{true}
\DeclareOptionBeamer{footer}{\def\beamer@dhbw@footer{#1}}
\def\beamer@dhbw@true{true}
\ProcessOptionsBeamer
% Variables
\newlength{\headerheight}
\ifx\beamer@dhbw@header\beamer@dhbw@true
\setlength{\headerheight}{3.5ex}
\else
\setlength{\headerheight}{0ex}
\fi
\newlength{\footerheight}
\ifx\beamer@dhbw@footer\beamer@dhbw@true
\setlength{\footerheight}{2ex}
\else
\setlength{\footerheight}{0ex}
\fi
\newlength{\lrskip}
\setlength{\lrskip}{1ex}
% Mini Frame Navigation
% additional vskip fix
\newlength{\minifix}
\setlength{\minifix}{0pt}
% uncomment one of following to show mini frames
% \setbeamertemplate{mini frames}[default]
% \setbeamertemplate{mini frames}[box]
% \setbeamertemplate{mini frames}[tick]
% uncomment this to hide mini frames
\setbeamertemplate{mini frames}{}
\setlength{\minifix}{1pt}
\ifx\beamer@dhbw@header\beamer@dhbw@true
\setlength{\headerheight}{\footerheight}
\fi
% Templates
\setbeamertemplate{headline}
{
\ifx\beamer@dhbw@header\beamer@dhbw@true
\leavevmode
\begin{beamercolorbox}[wd=\paperwidth,ht=\headerheight,dp=0pt]{headline}
\vbox to \headerheight
{
\vfil
{
\vskip\minifix
\beamer@compresstrue
\insertnavigation{\textwidth}
}
\vfil
}
\end{beamercolorbox}
\fi
}
\setbeamertemplate{footline}
{
\ifx\beamer@dhbw@footer\beamer@dhbw@true
\leavevmode
\begin{beamercolorbox}[wd=\paperwidth,ht=\footerheight,leftskip=\lrskip,rightskip=3\lrskip,dp=0pt]{footline}
\vbox to \footerheight
{
\vfil
{
\insertshortinstitute[width=0.125\paperwidth]{}\hfill
\insertshorttitle{} / \insertshortsubtitle{}\hfill
\insertshortdate[center,width=0.125\paperwidth]{}\hfill
\insertframenumber{} / \inserttotalframenumber{}
}
\vfil
}
\end{beamercolorbox}
\fi
}
\mode<all>