-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathbeamerthemeUAH.sty
More file actions
334 lines (308 loc) · 12.1 KB
/
beamerthemeUAH.sty
File metadata and controls
334 lines (308 loc) · 12.1 KB
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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
\ProvidesPackage{beamerthemeUAH}
\makeatletter
% Configuracion del curso
\usepackage{../gsi-parametros}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% FUENTES UAH
% Mantener estas descoomentadaslíneas si las fuentes no están instaladas en el sistema
%% UAH FONTS
%\setsansfont[Path=fonts/,
% BoldItalicFont=SERIBC__.TTF,
% BoldFont =SERIB___.TTF,
% ItalicFont =SERII___.TTF,
% SmallCapsFont =SERIIC__.TTF,
% BoldItalicFont=SERIBI__.TTF]{SERIRG__.TTF}
% Descomentar las siguientes líneas y comentar las anteriores si
% las fuentes anteriores están instaladas en el sistema
\setsansfont[
BoldItalicFont={SeriaBoldCaps},
BoldFont ={SeriaBold},
ItalicFont ={SeriaItalic},
SmallCapsFont ={SeriaItalicCaps},
BoldItalicFont={SeriaBoldItalic}]
{SeriaRegular}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Poner barras de navegación, o no
%%
\newcommand{\setNavigation}{
\setbeamertemplate{headline}{%
\begin{beamercolorbox}[ht=2.25ex,dp=3.75ex]{section in head/foot}
\insertnavigation{\paperwidth}
\end{beamercolorbox}%
}
}%
\newcommand{\disableNavigation}[1]{
\makeatletter
\setbeamercolor{section in head/foot}{bg=#1, fg=#1}
\setbeamercolor{mini frame}{bg=#1, fg=#1}
\makeatother
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Poner logotipos en portada
%%
\newcommand{\logoUno}{}
\newcommand{\logoDos}{}
\newcommand{\logoTres}{}
\newcommand{\logoCuatro}{}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Format TOC
%%
\setbeamerfont{subsection in toc}{size=\small}
\setbeamertemplate{section in toc}[circle]
\setbeamertemplate{subsection in toc}[ball unnumbered]
\setbeamertemplate{section in toc}{%
{\color{marronUAH}\inserttocsectionnumber.}~\inserttocsection}
\setbeamercolor{subsection in toc}{bg=white,fg=structure}
\setbeamertemplate{subsection in toc}{%
\hspace{1.2em}{\color{oroUAH}\rule[0.3ex]{3pt}{3pt}}~\inserttocsubsection\par}
%%%%
%% Format syntax highlight
%%%
\lstset{ %
language=Java, % the language of the code
basicstyle=\footnotesize, % the size of the fonts that are used for the code
%numbers=left, % where to put the line-numbers
numberstyle=\tiny\color{gray}, % the style that is used for the line-numbers
numbersep=5pt, % how far the line-numbers are from the code
% backgroundcolor=\color{white}, % choose the background color. You must add \usepackage{color}
showspaces=false, % show spaces adding particular underscores
showstringspaces=false, % underline spaces within strings
showtabs=false, % show tabs within strings adding particular underscores
%frame=single, % adds a frame around the code
rulecolor=\color{black}, % if not set, the frame-color may be changed on line-breaks within not-black text (e.g. commens (green here))
tabsize=2, % sets default tabsize to 2 spaces
captionpos=b, % sets the caption-position to bottom
breaklines=true, % sets automatic line breaking
breakatwhitespace=false, % sets if automatic breaks should only happen at whitespace
%title=\lstname, % show the filename of files included with \lstinputlisting;
keywordstyle=\color{marronUAH}, % keyword style
commentstyle=\color{verdeUAH}, % comment style
stringstyle=\color{rojoUAH}, % string literal style
escapeinside={\%*}{*)}, % if you want to add a comment within your code
morekeywords={*,...} % if you want to add more keywords to the set
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Create Footline for body slides. To modify content,
%%
\newcommand{\footlineA}{
\setbeamertemplate{footline}
{
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.5\paperwidth,ht=7ex,dp=2ex,left]{title in head/foot}%
\hspace{0.5cm} \vspace{-0.11cm} \includegraphics[width=.12\paperwidth]{Images/01_logo-vA_293-fondoTransp.png}
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.5\paperwidth,ht=7ex,dp=2ex,left,rightskip=.3cm]{title in head/foot}%
\vspace{0.17cm}%\hspace{-0.07cm}
\textsf{\fontsize{4pt}{0cm}\selectfont
\insertshorttitle \newline
\insertshortinstitute \hfill \insertframenumber / \inserttotalframenumber
}
\end{beamercolorbox}%
}%
\vskip0pt%
}
}
\newcommand{\footlineB}{
\setbeamertemplate{footline}
{
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.5\paperwidth,ht=7ex,dp=2ex,left]{title in head/foot}%
\hspace{0.5cm} \vspace{-0.11cm} \includegraphics[width=.12\paperwidth]{Images/01_logo-vA_293-fondoTransp.png}
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.5\paperwidth,ht=7ex,dp=2ex,left,rightskip=.3cm]{title in head/foot}%
\vspace{0.17cm}%\hspace{-0.07cm}
\textsf{\fontsize{4pt}{0cm}\selectfont
\insertauthor \newline
\insertshortinstitute
\hfill \insertframenumber / \inserttotalframenumber
}
\end{beamercolorbox}%
}%
\vskip0pt%
}
}
\newcommand{\footlineC}{
\setbeamertemplate{footline}
{
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.5\paperwidth,ht=7ex,dp=2ex,left]{title in head/foot}%
\hspace{0.5cm} \vspace{-0.11cm} \includegraphics[width=.12\paperwidth]{Images/01_logo-vA_293-fondoTransp.png}
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.5\paperwidth,ht=7ex,dp=2ex,left,rightskip=.3cm]{title in head/foot}%
\vspace{0.17cm}%\hspace{-0.07cm}
\textsf{\fontsize{4pt}{0cm}\selectfont
\insertshorttitle \newline
\insertauthor, \insertshortinstitute \hfill \insertframenumber / \inserttotalframenumber
}
\end{beamercolorbox}%
}%
\vskip0pt%
}
}
\newcommand{\footlineTitle}{
\setbeamertemplate{footline}
{
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.5\paperwidth,ht=7ex,dp=2ex,left]{title in head/foot}%
\hspace{0.5cm} \vspace{-0.11cm} \includegraphics[width=.12\paperwidth]{Images/01_logo-vA_293-fondoTransp.png}
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.5\paperwidth,ht=7ex,dp=2ex,left,rightskip=.3cm]{title in head/foot}%
\vspace{0.17cm}\hspace{-0.07cm}
\textsf{\fontsize{4pt}{0cm}\selectfont
\insertshorttitle \newline
\insertauthor, \insertshortinstitute \hfill \insertframenumber
}
\end{beamercolorbox}%
}%
\vskip0pt%
}
}
\newcommand{\titlepageBlue}{ % % This block is for the white background title page
%\setbeamercolor{section in head/foot}{bg=azulUAH, fg=azulUAH}
\disableNavigation{azulUAH}
\setbeamertemplate{footline}
{\hbox{%
\begin{beamercolorbox}[wd=\paperwidth,ht=7ex,dp=2ex,left]{author in head/foot}%
\hspace{0.5cm} \vspace{-0.11cm} \includegraphics[width=.12\paperwidth]{Images/01_logo-vA_pant293.pdf}
%\vspace{0cm}\hspace{4cm}
\ifdefempty{\logoUno}{}{
\hspace{0.2cm}%\includegraphics[width=0.1\paperwidth]{Images/isg.png}
\begin{tikzpicture}\node[opacity=\opacidad] {\includegraphics[height=6.5ex]{\logoUno}};\end{tikzpicture}
}
\ifdefempty{\logoDos}{}{
\hspace{0.2cm}%\includegraphics[width=0.1\paperwidth]{Images/isg.png}
\begin{tikzpicture}\node[opacity=\opacidad] {\includegraphics[height=6.5ex]{\logoDos}};\end{tikzpicture}
}
\ifdefempty{\logoTres}{}{
\hspace{0.2cm}%\includegraphics[width=0.1\paperwidth]{Images/isg.png}
\begin{tikzpicture}\node[opacity=\opacidad] {\includegraphics[height=6.5ex]{\logoTres}};\end{tikzpicture}
}
\ifdefempty{\logoCuatro}{}{
\hspace{0.2cm}%\includegraphics[width=0.1\paperwidth]{Images/isg.png}
\begin{tikzpicture}\node[opacity=\opacidad] {\includegraphics[height=6.5ex]{\logoCuatro}};\end{tikzpicture}
}
\end{beamercolorbox}%
}%
\vspace{2cm}
\vskip0pt%
}
\setbeamertemplate{title page}
{
\vspace{2cm}
\begin{beamercolorbox}[wd=0.9\paperwidth,dp=2ex,left]{title in head/foot}%
\usebeamerfont{title}{\Huge\inserttitle\par}
\bigskip
\usebeamerfont{author}{\normalsize\insertauthor\par}
\smallskip
\usebeamerfont{institute}{\normalsize\insertinstitute\par}
\bigskip
\usebeamerfont{date}\insertdate\par
\end{beamercolorbox}
}
\setbeamercolor{background canvas}{bg=azulUAH}
}
\newcommand{\titlepageWhite}{ % % This block is for the white background title page
\disableNavigation{white}
\setbeamertemplate{footline}
{\hbox{%
\begin{beamercolorbox}[wd=\paperwidth,ht=7ex,dp=2ex,left]{title in head/foot}%
\hspace{0.5cm} \vspace{-0.11cm} \includegraphics[width=.12\paperwidth]{Images/01_logo-vA_293-fondoTransp.png}
\ifdefempty{\logoUno}{}{
\hspace{0.2cm}%\includegraphics[width=0.1\paperwidth]{Images/isg.png}
\begin{tikzpicture}\node[opacity=\opacidad] {\includegraphics[height=6.5ex]{\logoUno}};\end{tikzpicture}
}
\ifdefempty{\logoDos}{}{
\hspace{0.2cm}%\includegraphics[width=0.1\paperwidth]{Images/isg.png}
\begin{tikzpicture}\node[opacity=\opacidad] {\includegraphics[height=6.5ex]{\logoDos}};\end{tikzpicture}
}
\ifdefempty{\logoTres}{}{
\hspace{0.2cm}%\includegraphics[width=0.1\paperwidth]{Images/isg.png}
\begin{tikzpicture}\node[opacity=\opacidad] {\includegraphics[height=6.5ex]{\logoTres}};\end{tikzpicture}
}
\ifdefempty{\logoCuatro}{}{
\hspace{0.2cm}%\includegraphics[width=0.1\paperwidth]{Images/isg.png}
\begin{tikzpicture}\node[opacity=\opacidad] {\includegraphics[height=6.5ex]{\logoCuatro}};\end{tikzpicture}
}
\end{beamercolorbox}%
}%
\vspace{2cm}
\vskip0pt%
}
\setbeamertemplate{title page}
{
\vspace{2cm}
\begin{beamercolorbox}[wd=0.9\paperwidth,dp=2ex,left]{author in head/foot}%
\usebeamerfont{title}{\Huge\inserttitle\par}
\bigskip
\usebeamerfont{author}{\normalsize\insertauthor\par}
\smallskip
\usebeamerfont{institute}{\normalsize\insertinstitute\par}
\bigskip
\usebeamerfont{date}\insertdate\par
\end{beamercolorbox}
}
}
\setbeamertemplate{itemize items}{$\bullet$}
\setbeamerfont{framesubtitle}{parent=frametitle,size=\large}
\newcommand{\blackSlide}{
\setbeamercolor{background canvas}{bg=black}
\setbeamercolor{palette primary}{fg=white, bg=black}
\setbeamercolor{normal text}{fg=white}
\setbeamercolor{structure}{fg=white}
\setbeamercolor{itemize item}{fg=white}
\setbeamercolor{itemize subitem}{fg=white}
\setbeamercolor{itemize subsubitem}{fg=white}
\setbeamercolor{itemize/enumerate body}{fg=white}
\setbeamercolor{itemize/enumerate subbody}{fg=white}
\setbeamercolor{itemize/enumerate subsubbody}{fg=white}
}
\newcommand{\sectionheaderWhite}{
\setbeamercolor{background canvas}{bg=white}
\disableNavigation{white}
\setbeamertemplate{frametitle}{\nointerlineskip
\begin{beamercolorbox}[sep=0.3cm,ht=7cm,wd=\paperwidth]{white}
\vbox{}\vskip-2ex
\Huge \hskip1ex \insertframetitle \par
\vskip0.25ex%
\hskip1ex \Large \strut\insertframesubtitle\strut \par
\end{beamercolorbox}
}
}
\newcommand{\sectionheaderGold}{
\setbeamercolor{background canvas}{bg=oroUAH}
\disableNavigation{oroUAH}
\setbeamertemplate{frametitle}{\nointerlineskip
\begin{beamercolorbox}[sep=0.3cm,ht=7cm,wd=\paperwidth]{oroUAH}
\vbox{}\vskip-2ex
\Huge \hskip1ex \insertframetitle \par
\vskip0.25ex%
\hskip1ex \Large \strut\insertframesubtitle\strut \par
\end{beamercolorbox}
}
}
\newcommand{\sectionheaderGrey}{
\setbeamercolor{background canvas}{bg=grisUAH}
\disableNavigation{grisUAH}
\setbeamertemplate{frametitle}{\nointerlineskip
\begin{beamercolorbox}[sep=0.3cm,ht=7cm,wd=\paperwidth]{grisUAH}
\vbox{}\vskip-2ex
\Huge \hskip1ex \insertframetitle \par
\vskip0.25ex%
\hskip1ex \Large \strut\insertframesubtitle\strut \par
\end{beamercolorbox}
}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% STYLING THE TITLEPAGE
%\setbeamerfont{title}{family=\fontfamily{cmr}, size=\Huge}
%\setbeamerfont{date}{family=\fontfamily{cmr}}
%\setbeamerfont{institute}{family=\fontfamily{cmr}}
%\setbeamerfont{author}{family=\fontfamily{cmr}}
%\setbeamertemplate{title page}[default][left]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\makeatother