-
Notifications
You must be signed in to change notification settings - Fork 6
/
beamerthemeZBH.sty
178 lines (156 loc) · 3.89 KB
/
beamerthemeZBH.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
% \LaTeX beamer theme with ZBH style layout
% this is modeled after the PowerPoint template provided by the MIN people
% author: Sascha Steinbiss <[email protected]>
% Jan 3rd, 2012
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{beamerthemeZBH}[2010/02/06 ZBH beamer theme]
\RequirePackage{ifthen}
\RequirePackage[scaled=.85]{helvet}
\newcommand{\headertext}{
Center for\\
Bioinformatics\\
}
\newcommand{\addresstext}{
University of Hamburg\\
Center for Bioinformatics\\
Bundesstra\ss e 43\\
20146 Hamburg, Germany\\[2mm]
http://www.zbh.uni-hamburg.de\\
}
\def\backgroundfile{vorlage_uni}
\newboolean{@usegerman}
\setboolean{@usegerman}{false}
\newboolean{@use1610}
\setboolean{@use1610}{false}
\newboolean{@use169}
\setboolean{@use169}{false}
\newlength{\@headerdist}
\setlength{\@headerdist}{5mm}
\DeclareOption{german}{
\renewcommand{\headertext}{
Zentrum f\"ur\\
Bioinformatik\\
}
\renewcommand{\addresstext}{
Universit\"at Hamburg\\
Zentrum f\"ur Bioinformatik\\
Bundesstra\ss e 43\\
20146 Hamburg\\[2mm]
http://www.zbh.uni-hamburg.de\\
}
\setboolean{@usegerman}{true}
}
\DeclareOption{1610}{
\def\backgroundfile{vorlage_uni_16_10}
\setboolean{@use1610}{true}
}
\DeclareOption{169}{
\def\backgroundfile{vorlage_uni_16_9}
\setboolean{@use169}{true}
}
\ProcessOptions
\ifthenelse{\boolean{@usegerman}}{
\RequirePackage[english,ngerman]{babel}
\selectlanguage{ngerman}
}{
\RequirePackage[ngerman,english]{babel}
\selectlanguage{english}
}
\ifthenelse{\boolean{@use1610}}{ }
\ifthenelse{\boolean{@use169}}{
\ifthenelse{\boolean{@use1610}}{
\PackageError{zbhbeamertheme}{Options '1610' and '169' are mutually exclusive.}{}%
} { }
}
\mode<presentation>
\setbeamerfont{author}{size=\large}
\setbeamerfont{date}{size=\large}
\setbeamerfont{example text}{series=\bfseries}
\setbeamerfont{section}{series=\bfseries}
\setbeamercolor{structure}{fg=red}
\setbeamercolor{title}{fg=black}
\setbeamerfont{title}{series=\bfseries}
% disable navigation symbols (who uses these anyway?)
\setbeamertemplate{navigation symbols}{}
% frame
\setbeamercolor{frametitle}{fg=white}
\setbeamerfont{frametitle}{series=\mdseries,size=\large}
\setbeamerfont{framesubtitle}{series=\mdseries,size=\large}
\setbeamertemplate{frametitle}
{
\ifbeamer@plainframe
\else
\textbf{\insertframetitle}
\vspace{.25cm}
\fi
}
% headline
\setbeamercolor{headline}{fg=white}
\setbeamertemplate{headline}{
\ifbeamer@plainframe
\else
\ifthenelse{\boolean{@use1610}}{
\vspace{8.5mm}
\leavevmode\tiny%
\hspace*{12.25cm}
}{
\ifthenelse{\boolean{@use169}}{
\vspace{7mm}
\leavevmode\tiny%
\hspace*{12.35cm}
}{
\vspace{8mm}
\leavevmode\tiny%
\hspace*{9.15cm}
}
}
\begin{minipage}[b]{2cm}
\flushright
\headertext
\end{minipage}
\normalsize
\fi
}
% title page with ZBH image
\setbeamertemplate{title page}{
\vspace{\@headerdist}
\textbf{\LARGE{\inserttitle}}
\textbf{\large{\insertsubtitle}}
\vfill
\begin{columns}
\begin{column}{.45\textwidth}
\textbf{\insertauthor}\\[3mm]
\scriptsize
\addresstext
\end{column}
\begin{column}{.45\textwidth}
\centerline{
\pgfimage[height=3.5cm]{house}}
\end{column}
\end{columns}
\normalsize
}
% footer with name, date and page numbers
\setbeamercolor{footline}{fg=gray}
\setbeamertemplate{footline}{
\ifbeamer@plainframe
\else
\leavevmode\tiny%
\hspace*{3.3cm}%
\makebox[4cm][l]{\insertauthor}%
\makebox[4cm][l]{\insertdate}%
\hfill\insertframenumber/\inserttotalframenumber\hspace{5mm}%
\vspace{3mm}%
\fi
}
% use ZBH slide layout template as background image
\setbeamertemplate{background} {
\ifbeamer@plainframe
\else
\includegraphics[width=\paperwidth,height=\paperheight]{\backgroundfile}
\fi
}
\mode
<all>