-
Notifications
You must be signed in to change notification settings - Fork 7
/
beamerthemeCERN.sty
105 lines (96 loc) · 2.62 KB
/
beamerthemeCERN.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
\mode<presentation>
\usecolortheme{default}
\usecolortheme{default}
\useinnertheme{default}
\useoutertheme{default}
% Colors
\definecolor{bluecern}{HTML}{0053A1}
\setbeamercolor{normal text}{fg=bluecern, bg=white}
\setbeamercolor{frametitle}{fg=bluecern, bg=white}
\setbeamercolor{section in toc}{fg=bluecern, bg=white}
\setbeamercolor{title}{fg=bluecern, bg=white}
\setbeamercolor{inverted normal text}{fg=white, bg=bluecern}
\setbeamercolor{itemize item}{fg=bluecern}
\setbeamercolor{itemize subitem}{fg=bluecern}
\setbeamercolor{itemize subsubitem}{fg=bluecern}
\setbeamercolor{enumerate item}{fg=bluecern}
\setbeamercolor{enumerate subitem}{fg=bluecern}
\setbeamercolor{caption name}{fg=bluecern}
\setbeamercolor{block title}{fg=bluecern, bg=gray!30}
\setbeamercolor{block body}{fg=bluecern, bg=gray!10}
\setbeamercolor{block title alerted}{bg=gray!30}
\setbeamercolor{block body alerted}{bg=gray!10}
% Fonts
\usefonttheme{structurebold}
\usepackage[scaled]{helvet}
\renewcommand*\familydefault{\sfdefault}
\usepackage[T1]{fontenc}
% Title page
\setbeamertemplate{title page}{
\begin{center}
{ \Huge \textbf{\inserttitle} }
\vfill
{ \Large \insertsubtitle }
\vfill
\insertauthor
\vfill
\talkdate
\end{center}
}
% Footline
\setbeamerfont{footline}{size=\large}
\setbeamertemplate{footline}{
\begin{beamercolorbox}[ht=20px, center]{inverted normal text}
\begin{columns}
\column{.001\textwidth}
\column{.15\textwidth}
\vspace{2px} % To lift logo from bottom
\includegraphics[scale=0.35]{logos/cern-logo-small.png}
\column{.45\textwidth}
\insertshorttitle
\column{.20\textwidth}
\talkdate
\column{.1\textwidth}
\insertpagenumber
\end{columns}
\end{beamercolorbox}
}
\newcommand{\talkdate}{
\@ifundefined{mydate}
{
\today
}
{
\mydate
}
}
\newcommand{\cernSplashBlue}{
% CERN blue splash page slide with white logo
\bgroup
\setbeamertemplate{navigation symbols}{}
\setbeamercolor{background canvas}{bg=bluecern}
\frame[plain]{
\hfill
\vspace{-1.5cm}
\includegraphics[scale=0.37]{logos/cern-logo-white-on-blue.png}
\hfill\hfill
}
\egroup
}
\newcommand{\cernSplashWhite}{
% CERN ending slide with blue logo and web page
\bgroup
\setbeamertemplate{navigation symbols}{}
\setbeamercolor{background canvas}{bg=white}
\frame[plain]{
\centering
\vspace{10px}
\begin{figure}
\includegraphics[scale=.61]{./logos/LogoBadge-01.png} \\
{\Large \textbf{www.cern.ch}}
\end{figure}
}
\egroup
}
\mode
<all>