-
Notifications
You must be signed in to change notification settings - Fork 0
/
beamerthemekit.sty
226 lines (185 loc) · 5.67 KB
/
beamerthemekit.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
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
%% LaTeX-Beamer template for KIT design
%% by Erik Burger, Christian Hammer
%% title picture by Klaus Krogmann
%%
%% version 2.0
%%
%% mostly compatible to KIT corporate design v2.0
%% http://intranet.kit.edu/gestaltungsrichtlinien.php
%%
%% Problems, bugs and comments to
\usepackage[english,ngerman]{babel}
\usepackage[utf8]{inputenc} %For using german umlauts
\usepackage{ifthen} %For choosing the language, see below
\usepackage{hyperref}
\usepackage[absolute,overlay]{textpos}
\usepackage{semirounded}
\usepackage[abs]{overpic}
\usepackage[scaled=.92]{helvet}
\setbeamercovered{transparent}
\setbeamersize{text margin left=6mm,text margin right=6mm}
\useinnertheme{rounded}
\usecolortheme{kit}
%save space in the footer
\beamer@compresstrue
%title image and logo
\def\titleimage#1{\def\@titleimage{#1}}
\def\titlelogo#1{\def\@titlelogo{#1}}
\titleimage{bauplan}
\titlelogo{sdq_logo}
%CH: KIT-point
\setbeamertemplate{itemize items}{
\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}%
}
\setbeamertemplate{title page}
{
\thispagestyle{empty}
%middle block with name of institute
\begin{textblock*}{\paperwidth}(1mm,42mm)
\begin{pgfpicture}{0mm}{0mm}{\paperwidth-2mm}{6mm}
\color{black!50}
\pgfpathrectangle{\pgfpoint{0mm}{0mm}}{\pgfpoint{\paperwidth-2mm}{6mm}}
\pgfusepath{fill}
\pgftext[at=\pgfpoint{5mm}{3mm},left,center]{\textcolor{white}{\tiny\textsc{\insertinstitute}}}
\end{pgfpicture}
\end{textblock*}
%elements on title page
%KIT logo
\begin{textblock*}{24mm}(6mm,5mm)
\iflanguage{english}{%
\includegraphics[width=23mm]{logos/kitlogo_en_rgb}
}{%
\includegraphics[width=23mm]{logos/kitlogo_de_rgb}
}%
\end{textblock*}
%institute logo
\begin{textblock*}{20mm}(104mm,4mm)
\includegraphics[width=20mm]{logos/\@titlelogo}
\end{textblock*}
%title
\begin{textblock*}{120mm}(6mm,16mm)
\begin{beamercolorbox}[wd=118mm,ht=14mm,dp=3mm,left]{white}%
\Large\textbf{\inserttitle}
\end{beamercolorbox}
\end{textblock*}
%subtitle
\begin{textblock*}{120mm}(6mm,33mm)
\scriptsize \insertsubtitle
\end{textblock*}
%author
\begin{textblock*}{120mm}(6mm,37mm)
\scriptsize\insertauthor~\textbar~\insertshortdate
\end{textblock*}
%legal KIT text
\begin{textblock*}{80mm}[0,1](6mm,94mm)
\fontsize{4pt}{6pt}\selectfont
\iflanguage{english}{
KIT -- University of the State of Baden-Wuerttemberg and\\National Laboratory of the Helmholtz Association}
{KIT -- Universit{\"a}t des Landes Baden-W{\"u}rttemberg und\\nationales Forschungszentrum in der Helmholtz-Gemeinschaft}
\end{textblock*}
\begin{textblock*}{16mm}(112mm,90mm)
\fontsize{8pt}{8pt}\selectfont
\bfseries
\textcolor{white}{
\href{http://www.kit.edu}{www.kit.edu}
}
\end{textblock*}
% title image
\begin{textblock*}{\paperwidth}(1mm,48.5mm)
\begin{overpic}[width=126mm,height=40mm]{logos/\@titleimage}
\put(-6,-3){
%mask curve for lower left corner of title image
\begin{pgfpicture}{0mm}{0mm}{3mm}{3mm}
\pgfpathqmoveto{0mm}{0mm}
\pgfpathlineto{\pgfpoint{3mm}{0mm}}
\pgfpathlineto{\pgfpoint{3mm}{1mm}}
{\pgfsetcornersarced{\pgfpoint{2mm}{2mm}}
\pgfpathlineto{\pgfpoint{1mm}{1mm}}
\pgfpathlineto{\pgfpoint{1mm}{3mm}}}
\pgfpathmoveto{\pgfpoint{1mm}{3mm}}
\pgfpathlineto{\pgfpoint{0mm}{3mm}}
\pgfpathlineto{\pgfpoint{0mm}{0mm}}
\pgfpathclose
\color{black!15}
\pgfusepath{fill}
\end{pgfpicture}
}
\end{overpic}
\end{textblock*}
}
%background for pages
%CH: for plain frames
\newlength{\kitbottom}
\usebackgroundtemplate{
\setlength{\kitbottom}{\ifbeamer@plainframe1mm\else9mm\fi}%
\begin{pgfpicture}{0mm}{0mm}{\paperwidth}{\paperheight}
{\pgfsetcornersarced{\pgfpoint{2mm}{2mm}}
\pgfpathmoveto{\pgfpoint{\paperwidth-1mm}{\kitbottom}}
\pgfpathlineto{\pgfpoint{1mm}{\kitbottom}}
\pgfpathlineto{\pgfpoint{1mm}{\paperheight-1mm}}}
{\pgfsetcornersarced{\pgfpoint{2mm}{2mm}}
\pgfpathmoveto{\pgfpoint{1mm}{\paperheight-1mm}}
\pgfpathlineto{\pgfpoint{\paperwidth-1mm}{\paperheight-1mm}}
\pgfpathlineto{\pgfpoint{\paperwidth-1mm}{\kitbottom}}}
\color{white}
\pgfusepath{fill}
\end{pgfpicture}%
}
%frametitle
\setbeamertemplate{frametitle}
{
\vspace{2mm} %\hspace*{-4mm}
\vbox{\hsize=9cm\bfseries\insertframetitle}
\begin{textblock*}{15mm}(111mm,76mm)
\iflanguage{english}{%
\includegraphics[width=14mm]{logos/kitlogo_en_rgb}
}{%
\includegraphics[width=14mm]{logos/kitlogo_de_rgb}
}%
\end{textblock*}
%institute logo
\begin{textblock*}{20mm}(104mm,4mm)
\includegraphics[width=20mm]{logos/\@titlelogo}
\end{textblock*}
% obsolete as of KIT-CD v2.0
%\begin{textblock*}{1.5mm}(1mm,1mm)
%\begin{pgfpicture}{0mm}{0mm}{1.5mm}{9mm}
%\color{kit-green100}
%\pgfpathrectangle{\pgfpoint{0mm}{0mm}}{\pgfpoint{1.5mm}{9mm}}
%\pgfusepath{fill}
%\end{pgfpicture}%
%\end{textblock*}
}
\setbeamertemplate{headline}
{
}
%footer
\setbeamertemplate{footline}
{
\vskip.4mm
\begin{beamercolorbox}[ht=2.4mm, dp=3mm]{section in head/foot}
%include mini frame navigation
\insertnavigation{\paperwidth}
\end{beamercolorbox}
\begin{beamercolorbox}[wd=0.7\textwidth,ht=2.2mm,dp=1.5mm,leftskip=1.3em,rightskip=.5em]{author in head/foot}%
\usebeamerfont{author in head/foot}%
\insertshortauthor\hspace{2.5pt}--\hspace{2.5pt}\insertshorttitle
\end{beamercolorbox}%
\vspace*{-4mm}\hspace*{0.7\textwidth}%
\begin{beamercolorbox}[wd=0.3\textwidth,ht=2.2mm,dp=1.5mm,left,leftskip=.5em]{title in head/foot}%
\usebeamerfont{title in head/foot}%
\hfill\insertshortdate\hspace{30pt}\insertframenumber{}/\inserttotalframenumber
\end{beamercolorbox}%
}