forked from eothein/Presentation-Android-Introduction
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbeamerthemehogent.sty
207 lines (166 loc) · 6.62 KB
/
beamerthemehogent.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
%%============================================================================
%% LaTeX Beamer Presentatiestijl voor HoGent Bedrijf en Organisatie
%%============================================================================
%% Auteur: Bert Van Vreckem [[email protected]]
\usepackage{mdframed}
\mode<presentation>
%%============================================================================
%% Kleuren HoGent huisstijl
%%============================================================================
% Kleuren van de faculteiten
\definecolor{HoGentFBO}{RGB}{0,147,208} % Bedrijf en Organisatie
\definecolor{HoGentFMW}{RGB}{0,168,143} % Mens en Wetenschappen
\definecolor{HoGentFNT}{RGB}{255,0,0} % Natuur en Techniek
\definecolor{HoGentSoA}{RGB}{0,0,0} % School of Arts
% Officiële accentkleuren
\definecolor{HoGentAccent1}{RGB}{0,111,184} % Donkerblauw
\definecolor{HoGentAccent2}{RGB}{244,52,69} % Rood
\definecolor{HoGentAccent3}{RGB}{0,156,124} % Groen
\definecolor{HoGentAccent4}{RGB}{239,170,162} % Roze
\definecolor{HoGentAccent5}{RGB}{150,150,150} % Grijs
\definecolor{HoGentAccent6}{RGB}{255,218,0} % Geel
% Aliassen voor de accentkleuren
\colorlet{HoGentBlue}{HoGentAccent1}
\colorlet{HoGentRed}{HoGentAccent2}
\colorlet{HoGentGreen}{HoGentAccent3}
\colorlet{HoGentPink}{HoGentAccent4}
\colorlet{HoGentGrey}{HoGentAccent5}
\colorlet{HoGentYellow}{HoGentAccent6}
%%============================================================================
%% Presentatiestijl: kleuren
%%============================================================================
% Titels
\setbeamercolor{structure}{fg=HoGentBlue}
\setbeamercolor{title}{fg=HoGentBlue}
\setbeamercolor{frametitle}{fg=HoGentBlue}
\setbeamercolor{part page}{fg=white,bg=HoGentBlue}
% Kadertekst
\setbeamercolor*{block title}{use=structure,bg=HoGentBlue,fg=white}
\setbeamercolor*{block body}{use=structure,bg=HoGentFBO,fg=white}
\setbeamercolor*{block title alerted}{use=structure,bg=HoGentBlue,fg=HoGentYellow}
\setbeamercolor*{block body alerted}{use=structure,bg=HoGentFBO,fg=white}
%%============================================================================
%% Presentatiestijl: lettertypes
%%============================================================================
\usefonttheme{professionalfonts}
% "Gewone" tekst
\setbeamerfont{normal text}{family={\fontfamily{phv}}}
\setbeamerfont{footline}{size=\scriptsize,family={\fontfamily{phv}}}
% Titels
\setbeamerfont{subtitle}{size=\Large,series=\bfseries,family={\fontfamily{phv}}}
\setbeamerfont{title}{size=\huge,series=\bfseries,family={\fontfamily{phv}}}
\setbeamerfont{frametitle}{series=\bfseries,family={\fontfamily{phv}}}
% Kadertekst
\setbeamerfont{block title}{series=\bfseries,family={\fontfamily{phv}}}
\setbeamerfont{block title alerted}{series=\bfseries,family={\fontfamily{phv}}}
\setbeamerfont{block body}{family={\fontfamily{phv}}}
\setbeamerfont{block body alerted}{family={\fontfamily{phv}}}
%%============================================================================
%% Presentatiestijl: "inner style"
%%============================================================================
%% Stijl van dingen "binnen" een frame: blokken, omgevingen, ...
\useinnertheme{circles}
%%============================================================================
%% Presentatiestijl: "outer style"
%%============================================================================
%% Stijl van dingen "buiten" een frame: hoofding, voettekst, ...
% "Navigatiesymbolen" onderaan rechts van de slide weglaten
\setbeamertemplate{navigation symbols}{}
%%----------------------------------------------------------------------------
%% Voetlijn: HoGent woordmerk, korte titel, datum en paginanummer
\setbeamertemplate{footline}{%
%\vskip 2pt \hskip 2pt \includegraphics[width=1.5cm]{img/HG-woordmerk}\hskip 1em \insertshorttitle % links
%\hfill
%\insertdate % midden
\hfill
\insertframenumber/\inserttotalframenumber \hspace*{2pt}} % rechts
%%----------------------------------------------------------------------------
%% Dia met HoGent logo
\newcommand{\HoGentLogo}{%
{%
\setbeamertemplate{background canvas}{%
\color{black}\rule{\paperwidth}{\paperheight}%
}%
\begin{frame}[plain]%
\begin{center}%
\includegraphics[width=.3\textwidth]{img/HG-beeldmerk-inv}
\end{center}%
\end{frame}%
}
}
%%----------------------------------------------------------------------------
%% Titeldia
\setbeamertemplate{title page}{%
\vspace{-25mm}
\begin{beamercolorbox}[wd=\paperwidth,ht=.8\textheight]{block body}
\begin{center}
{\includegraphics[width=4.5cm]{img/FBO-NL-inv}}
\end{center}
\end{beamercolorbox}
\vspace{5mm}
{\usebeamerfont{title}\usebeamercolor[fg]{title}\inserttitle}
\vspace{5mm}
{\usebeamerfont{subtitle}\usebeamercolor[fg]{title}\insertauthor}
}
\newcommand{\titleframe}{%
\begin{frame}[plain]
\titlepage
\end{frame}
}
%%----------------------------------------------------------------------------
%% Sectiekop. Gebruik dit als volgt:
%% \section{Titel deel}
%% \sectionframe{Ondertitel deel}
\newcommand{\sectionframe}[1]{%
{
\setbeamertemplate{background canvas}{%
\color{HoGentBlue}\rule{\paperwidth}{\paperheight}
}
\begin{frame}[plain]
\fcolorbox{white}{HoGentBlue}{%
\begin{minipage}[c][.9\textheight][t]{\textwidth}
\usebeamercolor[fg]{part page}\usebeamerfont{title}\insertsection
\vspace{5mm}
\usebeamerfont{subtitle}#1
\end{minipage}
}
\end{frame}
}
}
\newcommand{\sectionframelogo}[1]{%
\sectionframe{%
#1
\vfill
\includegraphics[width=3cm]{img/HG-woordmerk-inv}
}
}
%%----------------------------------------------------------------------------
%% Afbeelding op schaal
\newcommand{\scaledimg}[1]{%
\begin{center}
\includegraphics[width=\textwidth,height=0.8\textheight,keepaspectratio]{#1}
\end{center}
}
\newcommand{\scaledimgvert}[2]{%
\begin{center}
\includegraphics[width=\textwidth,height=0.4\textheight,keepaspectratio]{#1}
\includegraphics[width=\textwidth,height=0.4\textheight,keepaspectratio]{#2}
\end{center}
}
\newcommand{\scaledimghor}[2]{%
\begin{center}
\includegraphics[width=.4\textwidth,height=0.4\textheight,keepaspectratio]{#1}
\includegraphics[width=.4\textwidth,height=0.4\textheight,keepaspectratio]{#2}
\end{center}
}
%%----------------------------------------------------------------------------
%% Bright box
%% Tekst in een gekleurd kader
\newcommand{\brightbox}[1]{%
\setbeamercolor{alertbox}{bg=HoGentFBO,fg=white}
\begin{beamercolorbox}[sep=2pt,center]{alertbox}
\textbf{#1}
\end{beamercolorbox}
}
\mode
<all>