-
Notifications
You must be signed in to change notification settings - Fork 1
/
knmiBeamer.sty
156 lines (138 loc) · 4.02 KB
/
knmiBeamer.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
\ProvidesPackage{knmiBeamer}
% -------------------------------------------------
% sets up the beamer template for KNMI use
% defines Colors : KnmiDarkBlue, MedBlue, LightBlue
%
% Hylke de Vries, 17-03-2010
% Martin Roth, 30-10-2015
% -------------------------------------------------
\newif\ifEngels
%% main theme
% ------------
\usetheme[headheight=0.75cm]{boxes}
%% color theme
% ------------
\usecolortheme{default}
\usefonttheme[onlymath]{serif}
%% font theme
% ------------
\usefonttheme{structurebold}
\usepackage{times}
\usepackage{mathpazo}
\usepackage{tikz}
\usepackage[absolute,overlay]{textpos}
\usepackage{graphicx}
\usepackage{etoolbox}
\usepackage{xcolor}
\usepackage{hyperref}
% ADDITIONAL THINGS
% ----------------------
%% KNMI special colors
% --------------------
\definecolor{KnmiLightBlue}{RGB}{143,202,231}
\definecolor{KnmiMedBlue}{RGB}{0,123,199}
\definecolor{KnmiDarkBlue}{RGB}{18,53,82}
\definecolor{KnmiRed}{RGB}{213,43,30}
\definecolor{KnmiYellow}{RGB}{249,225,30}
\definecolor{KnmiGreen}{RGB}{57,135,12}
%% Set special beamer things
% --------------------------
\setbeamercolor{structure}{fg=KnmiMedBlue}
\setbeamercolor{headline}{bg=KnmiLightBlue}
\setbeamercolor{section in foot}{bg=KnmiLightBlue}
\setbeamercolor{frametitle}{fg=KnmiDarkBlue}
\setbeamercolor{alerted text}{fg=KnmiRed}
\makeatletter
\setbeamertemplate{background canvas}{%
\ifnumequal{\c@framenumber}{1}{%
% First frame
\color{KnmiLightBlue}\rule{\paperwidth}{\paperheight}
}{%
\ifnumequal{\c@framenumber}{\inserttotalframenumber}{
% Last frame
%\color{orange!50}\rule{\paperwidth}{\paperheight}
}{%
% Other frames
%\color{green!50}\rule{\paperwidth}{\paperheight}
}%
}%
}
\makeatother
% color of the main title
\setbeamercolor{title}{fg=KnmiDarkBlue}
% color of normal text
\setbeamercolor{normal text}{fg=KnmiDarkBlue}
\setbeamertemplate{headline}{%
\begin{beamercolorbox}[ht=15ex]{KnmiLightBlue}
\begin{textblock}{1}(7.5,-0.5)
\includegraphics[height=1.5cm]{newKNMI2.pdf}
\end{textblock}
\end{beamercolorbox}
}
\setbeamertemplate{navigation symbols}{}%remove navigation symbols
\makeatletter
\setbeamertemplate{footline}
{
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.3ex,dp=1ex,center]{section in foot}%
\usebeamerfont{author in head/foot}\insertshortauthor~~%\beamer@ifempty{\insertshortinstitute}{}{(\insertshortinstitute)}
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.3ex,dp=1ex,center]{section in foot}%
\usebeamerfont{title in head/foot}\insertshorttitle
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.3ex,dp=1ex,right]{section in foot}%
\usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{2em}
\insertframenumber{} / \inserttotalframenumber\hspace*{2ex}
\end{beamercolorbox}}%
\vskip0pt%
}
\makeatother
\newcommand{\titleFigure}{Radartoren.jpg}
\setbeamertemplate{title page}{%
\thispagestyle{empty}
\begin{textblock}{4}(0, 0)
\includegraphics[height=\paperheight,width=0.5\paperwidth]{\titleFigure}
\end{textblock}
\begin{textblock}{1}(7.2,0)
\includegraphics[height=2.3cm]{newKNMI2.pdf}
\end{textblock}
\ifEngels
\begin{textblock}{7}(9, 2.48)
\footnotesize
Royal Netherlands\\
Meteorological Institute\\
\scriptsize
\textit{Ministry of Infrastructure and the\\ Environment}
\end{textblock}
\else
\begin{textblock}{7}(9, 2.48)
\footnotesize
Koninklijk Nederlands\\
Meteorologisch Instituut\\
\scriptsize
\textit{Ministerie van Infrastructuur en Milieu}
\end{textblock}
\fi
\begin{textblock}{7}(8.5, 7)
\centering
\inserttitle
\ifx\insertsubtitle\@empty
\else
\vskip2ex
{\small \insertsubtitle}
\fi
\vskip3ex
\insertauthor
\ifx\insertdate\@empty
\else
\vskip2ex
\insertdate
\fi
\end{textblock}
}
\hypersetup{colorlinks, linkcolor=, urlcolor=KnmiRed}
\ProvidesPackage{knmiBeamer}
% -------------------------------------------------
% sets up the beamer template for KNMI use
% defines Colors : KnmiDarkBlue, MedBlue, LightBlue