-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbeamerthemeuleiden.sty
62 lines (60 loc) · 2.09 KB
/
beamerthemeuleiden.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
% Copyright (C) 2010 Wouter Duivesteijn <[email protected]>
%
% This file is based on the beamer theme from the A-Eskwadraat LaTeX
% collection and may be redistributed under the terms of version 2 of the
% GNU General Public License as published by the Free Software Foundation.
% TODO: CMYK colors or better conversion to rgb. Main color not shabby now,
% but converted by eye. Other colors way off.
% TODO: Bar representing faculties
% TODO: Bar with "University to discover" line
% see also http://communicatie.leidenuniv.nl/huisstijl
\RequirePackage{ifthen}
% Presentation theme
\usetheme{Frankfurt}
% Color theme modifications
%\definecolor{uleiden}{cmyk}{1,0.72,0,0.18}
\definecolor{uleiden}{rgb}{0,0.325,0.647}
\definecolor{faca}{cmyk}{1,0,0.85,0.24}
\definecolor{facb}{cmyk}{0,0.61,0.97,0}
\definecolor{facc}{cmyk}{0.25,0,1,0}
\definecolor{facd}{cmyk}{0.25,1,0.05,0.17}
\definecolor{face}{cmyk}{0,1,0.81,0.04}
\definecolor{facf}{cmyk}{0.68,0.34,0,0}
\setbeamercolor{structure}{fg=uleiden}
% Inner theme modifications
\useinnertheme{rectangles}
\setbeamercovered{transparent}
% Outer theme modifications
\setbeamertemplate{mini frames}[box]
\defbeamertemplate*{footline}{uleiden theme}
{%
\pgfdeclarehorizontalshading{ul@progressbar}{2ex}{%
color(0ex)=(uleiden);%
color(\ul@step)=(white)%
}%
\leavevmode%
\begin{beamercolorbox}[wd=\insertframenumber\ul@step,ht=2ex]{frametitle}%
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=\ul@step,ht=2ex]{frametitle}%
\pgfuseshading{ul@progressbar}%
\end{beamercolorbox}%
\vskip0pt%
}
% Default logo
\pgfdeclareimage[width=25mm]{logo}{images/ullogo}
\logo{\pgfuseimage{logo}}
% Progressbar configuration
\newlength{\ul@step}
\setlength{\ul@step}{0pt}
\AtEndDocument{
\newcounter{ul@upc}
\setcounter{ul@upc}{1}
\newlength{\ul@pagelen}
\setlength{\ul@pagelen}{\inserttotalframenumber\unitlength}
\whiledo{\lengthtest{\theul@upc\ul@pagelen<\paperwidth}}{\stepcounter{ul@upc}}
\setlength{\ul@step}{\theul@upc\unitlength}
\if@filesw
\immediate\write\@auxout{\string\@writefile{nav}%
{\noexpand\headcommand{\noexpand\setlength{\noexpand\ul@step}{\the\ul@step}}}}
\fi
}