forked from ppletscher/beamerthemezurich
-
Notifications
You must be signed in to change notification settings - Fork 1
/
beamerinnerthemeSantander.sty
172 lines (148 loc) · 4.7 KB
/
beamerinnerthemeSantander.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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
\mode<presentation>
\usepackage{tikz}
%-----------------------------------------------------------------------------
% OPTIONS
\DeclareOptionBeamer{bullet}{\def\beamer@Santander@bullet{#1}}
\DeclareOptionBeamer{shadow}[true]{\def\beamer@themerounded@shadow{#1}}
\ExecuteOptionsBeamer{shadow=false}
\ProcessOptionsBeamer
%-----------------------------------------------------------------------------
%-----------------------------------------------------------------------------
% MARGINS
\newlength{\beamer@Santander@normalmargin}
\setlength{\beamer@Santander@normalmargin}{.06\paperwidth}
\setbeamersize{text margin left=\beamer@Santander@normalmargin}
\setbeamersize{text margin right=\beamer@Santander@normalmargin}
\setlength\leftmargini{.6\beamer@Santander@normalmargin}
\setlength\leftmarginii{.6\beamer@Santander@normalmargin}
\setlength\leftmarginiii{.6\beamer@Santander@normalmargin}
%-----------------------------------------------------------------------------
%-----------------------------------------------------------------------------
% TITLE PAGE
\defbeamertemplate*{title page}{Santander theme}[1][]{
\vbox{}
\vfill
% \begin{centering}
\begin{beamercolorbox}[sep=8pt,#1]{title page header}
\usebeamerfont{title}\inserttitle\par%
\ifx\insertsubtitle\@empty%
\else%
\vskip0.25em%
{\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle\par}%
\fi%
\vspace*{0.5em}
\end{beamercolorbox}%
\separator
\begin{beamercolorbox}[sep=8pt,#1]{author}
{\vspace*{1.5em}\par
\usebeamerfont{author}
\insertauthor
\par
\vspace*{0.25em}}
{\vspace{1mm}\usebeamerfont{institute}
\insertinstitute%
\par}
{\vspace{3mm}\usebeamerfont{date}
\insertdate
}
\end{beamercolorbox}\vskip0.5em
\ifx\inserttitlegraphic\@empty\else
\vbox to 0pt {
\inserttitlegraphic%
}%
\nointerlineskip%
\fi
% \ifx\inserttitlegraphic\@empty\else
% {\usebeamercolor[fg]{titlegraphic}\inserttitlegraphic\par}
% \fi
\vfill
}
\def\maketitle{%
\ifbeamer@inframe
\titlepage
\else
\frame[plain,noframenumbering]{\titlepage}
\fi
}
\def\titlepage{%
\usebeamertemplate{title page}
}
\def\separator{
\begin{tikzpicture}
\draw[solarizedAccent, fill=solarizedAccent] (0,0) rectangle (\textwidth, 0.4pt);
\end{tikzpicture}%
\par%
}
%-----------------------------------------------------------------------------
\defbeamertemplate{section page}{cool}{
\centering
\begin{minipage}{22em}
\usebeamercolor[fg]{section title}
\usebeamerfont{section title}
\insertsectionhead\\[-1ex]
\separator
\end{minipage}
\par
}
\defbeamertemplate{subsection page}{cool}{
\centering
\begin{minipage}{22em}
\usebeamercolor[fg]{section title}
\usebeamerfont{section title}
\insertsectionhead\\[-1ex]
\separator
\vspace{0.2em}
\usebeamerfont{subsection title}
\raggedleft
\insertsubsectionhead\\[-1ex]
\end{minipage}
\par
}
\setbeamertemplate{section page}[cool]
\setbeamertemplate{subsection page}[cool]
\AtBeginSection{
\ifbeamer@inframe
\sectionpage
\else
\frame[plain,c,noframenumbering]{\sectionpage}
\fi
}
\AtBeginSubsection{
\ifbeamer@inframe
\subsectionpage
\else
\frame[plain,c,noframenumbering]{\subsectionpage}
\fi
}
%-----------------------------------------------------------------------------
% ITEMS
\defbeamertemplate{itemize item}{squarealt}%
{\tiny\raise.5ex\hbox{\donotcoloroutermaths$\blacksquare$}}
\defbeamertemplate{itemize subitem}{squarealt}%
{\tiny\raise.4ex\hbox{\donotcoloroutermaths$\square$}}
\defbeamertemplate{itemize subsubitem}{squarealt}%
{\tiny\raise.3ex\hbox{\donotcoloroutermaths$\blacksquare$}}
%
\defbeamertemplate{itemize item}{circlealt}%
{\small\raise.2ex\hbox{\donotcoloroutermaths$\bullet$}}
\defbeamertemplate{itemize subitem}{circlealt}%
{\small\raise.1ex\hbox{\donotcoloroutermaths$\circ$}}
\defbeamertemplate{itemize subsubitem}{circlealt}%
{\scriptsize\raise.1ex\hbox{\donotcoloroutermaths$\bullet$}}
\setbeamertemplate{items}[circlealt]
%
\def\circletext{circle}
\ifx\beamer@Santander@bullet\circletext
\setbeamertemplate{items}[circlealt]
\else
\setbeamertemplate{items}[squarealt]
\fi
\setbeamertemplate{blocks}[rounded][shadow=\beamer@themerounded@shadow]
%-----------------------------------------------------------------------------
%-----------------------------------------------------------------------------
% BLOCKS
\newenvironment<>{noteblock}[2][]
{\begin{beamercolorbox}[sep=3mm, rounded=true, center, shadow=true, #1]{note}#2}
{\end{beamercolorbox}}
%-----------------------------------------------------------------------------
\mode<all>