forked from ppletscher/beamerthemezurich
-
Notifications
You must be signed in to change notification settings - Fork 1
/
beamerthemeSantander.sty
72 lines (50 loc) · 2.33 KB
/
beamerthemeSantander.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
\usepackage{appendixnumberbeamer}
\mode<presentation>
%% These are the options that are fed in through the driver file
%% Some of them get passed on to the other theme files
\DeclareOptionBeamer{bullet}{\PassOptionsToPackage{bullet=#1}{beamerinnerthemeSantander}}
\DeclareOptionBeamer{bigpagenumber}{\PassOptionsToPackage{bigpagenumber}{beamerouterthemeSantander}}
\DeclareOptionBeamer{nofooter}{\PassOptionsToPackage{nofooter}{beamerouterthemeSantander}}
\DeclareOptionBeamer{shadow}[false]{\PassOptionsToPackage{shadow=#1}{beamerinnerthemeSantander}}
\DeclareOptionBeamer{watermark}{\PassOptionsToPackage{watermark=#1}{beamerouterthemeSantander}}
\ProcessOptionsBeamer
\useinnertheme{Santander} % Calls beamerinnerthemeSantander.sty
\useoutertheme{Santander} % Calls beamerouterthemeSantander.sty
\usecolortheme{Santander} % Calls beamercolorthemeSantander.sty
\usefonttheme{Santander} % Calls beamerfontthemeSantander.sty
%-----------------------------------------------------------------------------
% CUSTOM FRAMES
\newcommand{\plain}[2][]{%
\begingroup
\setbeamercolor{background canvas}{
use=palette primary,
parent=palette primary
}
\begin{frame}[plain,c,noframenumbering]{#1}
\begin{center}
\usebeamercolor[fg]{palette primary}
\usebeamerfont{plain title}
#2
\end{center}
\end{frame}
\endgroup
}
%-----------------------------------------------------------------------------
%%%%%%%%%%%%%%%%%%%%%%%%
% Background Gradient %
%%%%%%%%%%%%%%%%%%%%%%%%
%% Usually I would leave this on
%% However, there seems to be problems with XeLaTeX
%% http://tex.stackexchange.com/questions/29497/xelatex-preventing-beamer-from-using-different-backgrounds
%\setbeamertemplate{background canvas}[vertical shading][bottom=blue!.1, middle=white, top=white]
%% HOWEVER: it seems to make it impossible to change this later on in the document
%% For a dark background:
% \setbeamertemplate{background canvas}[vertical shading][bottom=keynotebottom, middle=keynotemiddle, top=keynotetop]
%% An alternate way: \beamertemplateshadingbackground{blue!.1}{red!2}
%% In general: you want the gradient to be subtle!
%%%%%%%%%%%%%%%%%%%%%%%
% Navigation symbols %
%%%%%%%%%%%%%%%%%%%%%%%
\setbeamertemplate{navigation symbols}{} % Turns off PDF navigation symbols
\mode<all>
\endinput