forked from jgawad/KULeuvenStijl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbeamerinnerthemeKULeuvenStijl.sty
86 lines (67 loc) · 2.34 KB
/
beamerinnerthemeKULeuvenStijl.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
% Copyright 2014
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
\mode<presentation>
\setbeamertemplate{blocks}[square]
\setbeamertemplate{items}[circle]
\RequirePackage{tikz}
\newlength{\fillout@height@fraction}
\newlength{\fillout@height@bottom}
\newlength{\titlepage@titleitems@xfraction}
\newlength{\titlepage@titleitems@yfraction}
%\newlength{\titlepage@title@xfraction}
%\newlength{\titlepage@subtitle@xfraction}
% Height of paper in the upstream presentation is 19.04cm,
% while height of the fillout is 17.3cm, which corresponds to 0.908 ~ 0.91
\setlength{\fillout@height@fraction}{0.91\paperheight}
\setlength{\fillout@height@bottom}{0\paperheight}
\setlength{\titlepage@titleitems@xfraction}{0.2\paperwidth}
\setlength{\titlepage@titleitems@yfraction}{0.5\paperheight}
% Title page
\defbeamertemplate*{title page}{kuleuven title page}[1][]
{
\begin{tikzpicture}
\useasboundingbox (0,0) rectangle(\paperwidth,\paperheight);
\node (titlebox) [anchor=west] at (\titlepage@titleitems@xfraction, \titlepage@titleitems@yfraction) {%
\begin{minipage}{0.7\paperwidth}
\begin{beamercolorbox}{title}
\usebeamerfont{title}\inserttitle
\end{beamercolorbox}
%
\vspace*{1cm}
\begin{beamercolorbox}{author}
\vspace{1cm}
\usebeamerfont{author}\insertauthor
\end{beamercolorbox}
%
\begin{beamercolorbox}{date}
\vspace{1cm}
\usebeamerfont{date}\insertdate\par
\end{beamercolorbox}
\end{minipage}
};
\node (sleutel) [anchor=east] at (\titlepage@titleitems@xfraction, \titlepage@titleitems@yfraction) {\pgfuseimage{KULeuvenSleutel}};
\end{tikzpicture}
}
\setbeamertemplate{background}{
\begin{tikzpicture}
\useasboundingbox (0,0) rectangle(\paperwidth,\paperheight);
\ifnumgreater{\thepage}{1}{%
\relax
% Background for a regular frame
\fill[white,opacity=1] (0,0) rectangle(\paperwidth,\paperheight);
\ifbeamer@sleutel
\node[anchor=south west,inner sep=0] at (0,0.03\paperwidth) {\pgfuseimage{KULeuvenSleutelLicht}};
\fi
}{%
% Variations on title page
\relax
\fill[color=KULeuvenFill] (0,\fillout@height@bottom) rectangle (\paperwidth,\fillout@height@fraction);
\node[anchor=west,inner sep=0] at (0.03\paperwidth,\fillout@height@fraction) {\pgfuseimage{KULeuvenLogo}};
}
\end{tikzpicture}
}
\mode<all>