forked from gmartinezramirez-old/Beamer-Template-USACH
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tex
502 lines (409 loc) · 14.7 KB
/
main.tex
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
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
\documentclass[10pt]{beamer}
% If you want to use arial font
%\setsansfont[
%BoldFont=fonts/arial/arialbd.ttf,
%ItalicFont=fonts/arial/ariali.ttf,
%BoldItalicFont=fonts/arial/arialbi.ttf
%]{fonts/arial/arial.ttf}
\usetheme{metropolis}
\usepackage[spanish,es-tabla]{babel}
\usepackage{appendixnumberbeamer}
\usepackage{booktabs}
\usepackage[scale=2]{ccicons}
\usepackage{pgfplots}
\usepackage{pgfplotstable}
\usepgfplotslibrary{dateplot}
\usepackage{xspace}
\usepackage{microtype}
\frenchspacing
\newcommand{\themename}{\textbf{\textsc{metropolis}}\xspace}
\newcommand{\tableTwoColumns}[3]{
\pgfplotstabletypeset[
columns/A/.style={column name=\bfseries{#2}}
, 1000 sep={}
, columns/B/.style={column name=\bfseries{#3}}
, every even row/.style={
before row={\rowcolor[gray]{0.9}}}
, every head row/.style={ before row=\toprule,after row=\midrule}
, every last row/.style={ after row=\bottomrule \hline}
, col sep=semicolon
, string type
]{#1}
}
%TODO:revisar
%For use with sharelatex
\defaultfontfeatures{Mapping=tex-text}
%\setsansfont[Path=fonts/,BoldFont={FiraSans-Regular.ttf}]{FiraSans-Light.ttf}
\setsansfont[Path=fonts/,BoldFont={FiraSans-SemiBold.ttf}]{FiraSans-Book.ttf}
\setmonofont[Path=fonts/]{FiraMono-Regular.ttf}
\newfontfamily\ExtraLight[Path=fonts/,ItalicFont=FiraSans-ExtraLightItalic.ttf]{FiraSans-ExtraLight.ttf}
\newfontfamily\Light[Path=fonts/,ItalicFont=FiraSans-LightItalic.ttf]{FiraSans-Light.ttf}
\newfontfamily\Book[Path=fonts/,ItalicFont=FiraSans-Italic.ttf,BoldFont=FiraSans-Bold.ttf,BoldItalicFont=FiraSans-BoldItalic.ttf]{FiraSans-Regular.ttf}
\newfontfamily\Medium[Path=fonts/,ItalicFont=FiraSans-MediumItalic.ttf]{FiraSans-Medium.ttf}
\AtBeginEnvironment{tabular}{\setsansfont[Path=fonts/,BoldFont={FiraSans-Regular.ttf}, Numbers={Monospaced}]{FiraSans-Light.ttf}}
\titlegraphic{\hfill\includegraphics[height=1.1cm]{images/logos/logo-full-usach-bw.pdf}}
%HIGH CONTRAST
\definecolor{mAlert}{HTML}{AD003D}
\definecolor{mExample}{HTML}{005580}
%Owl colors
\RequirePackage{xcolor}
\definecolor{OwlRed}{RGB}{255,92,168}
\definecolor{OwlGreen}{RGB}{90,168,0}
\definecolor{OwlBlue}{RGB}{0,152,233}
\definecolor{OwlYellow}{RGB}{242,147,24}
\setbeamercolor{normal text}{%
fg=black,
% bg=white
}
\setbeamercolor{alerted text}{%
fg=mAlert,
% fg=OwlRed,
}
\setbeamercolor{example text}{%
% fg=mExample,
fg=OwlBlue
}
\setbeamercolor{progress bar}{
fg=OwlBlue
}
\setbeamercolor{marked text}{
fg=OwlBlue
}
% Lateral logo in each page
\addtobeamertemplate{frametitle}{}{%
\begin{tikzpicture}[remember picture,overlay]
\node[anchor=north east,yshift=2pt] at (current page.north east) {\includegraphics[height=0.85cm]{images/logos/logo-onlyescudo-usach-white.pdf}};
\end{tikzpicture}}
% Definition of commands for fancy tables
%Fancy tables
\usepackage{array,booktabs}
\newcolumntype{L}{@{}>{\kern\tabcolsep}l<{\kern\tabcolsep}}
\usepackage{colortbl}
\usepackage{xcolor}
\newcommand{\myrowcolour}{\rowcolor[gray]{0.9}}
\usepackage{hyperref}
\hypersetup{pdfauthor={My Name}
, pdftitle={My Title}
, pdfprintscaling=None}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% INICIO DOCUMENTO %
\title{Título del tema}
%\subtitle{}
\subject{Theoretical Computer Science}
\date{Defensa de tesis de grado, 2017.}
\author{Nombre1 Nombre2 Apellido1 Apellido2\inst{1} \\ \\ Profesor Guía: Nombre Profesor\\ Profesor Co-Guía: Nombre Profesor}
\institute
{
\inst{1}%
Departamento de Ingeniería Informática\\
Universidad de Santiago de Chile
}
\begin{document}
\maketitle
\begin{frame}{Contenidos}
\setbeamertemplate{section in toc}[sections numbered]
\tableofcontents[hideallsubsections]
\end{frame}
\section{Introducción}
\begin{frame}[fragile]{Esto es un título}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc tortor diam, volutpat eget semper vitae, elementum et nunc. Aliquam erat volutpat. Aenean et aliquet nisl. Ut non vehicula lorem. Fusce eu elit eleifend, porttitor risus eget, pulvinar odio. Quisque non arcu ac arcu mollis elementum sed at velit. Suspendisse porttitor erat non metus scelerisque, eget commodo nunc cursus. Sed nec orci non nisi viverra tincidunt sit amet eu nisi.
Note, that you have to have Mozilla's \emph{Fira Sans} font and XeTeX
installed to enjoy this wonderful typography.
\end{frame}
\begin{frame}[fragile]{Objetivos}
\metroset{block=fill}
\begin{block}{Objetivo general}
Diseñar y evaluar un Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc tortor diam, volutpat eget semper vitae, elementum et nunc. Aliquam erat volutpat. Aenean et aliquet nisl.
\end{block}
\begin{enumerate}
\item \textbf{Esto esta en negrita} Objetivo especifico 1.
\item Objetivo específico 2.
\item Objetivo específico 3.
\item Objetivo específico 4.
\end{enumerate}
\end{frame}
\begin{frame}[fragile]{Metodología}
\metroset{block=fill}
\begin{exampleblock}{Hipótesis}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc tortor diam, volutpat eget semper vitae, elementum et nunc. Aliquam erat volutpat. Aenean et aliquet nisl. Ut non vehicula lorem. Fusce eu elit eleifend, porttitor risus eget, pulvinar odio.
\end{exampleblock}
\end{frame}
\begin{frame}[fragile]{Alcances y limitaciones}
\begin{alertblock}{Alcances}
\begin{enumerate}
\item Alcance 1: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc tortor diam, volutpat eget semper vitae, elementum et nunc. Aliquam erat volutpat. Aenean et aliquet nisl. Ut non vehicula lorem.
\item Alcance 2: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc tortor diam, volutpat eget semper vitae, elementum et nunc. Aliquam erat volutpat. Aenean et aliquet nisl. Ut non vehicula lorem.
\item Alcance 3: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc tortor diam, volutpat eget semper vitae, elementum et nunc. Aliquam erat volutpat. Aenean et aliquet nisl. Ut non vehicula lorem.
\end{enumerate}
\end{alertblock}
\end{frame}
\section{Título sección 2}
\begin{frame}{Título de la sección 2}
4 different titleformats:
\begin{itemize}
\item Regular
\item \textsc{Smallcaps}
\item \textsc{allsmallcaps}
\item ALLCAPS
\end{itemize}
They can either be set at once for every title type or individually.
\end{frame}
\begin{frame}{Small caps}
This frame uses the \texttt{smallcaps} titleformat.
\begin{alertblock}{Potential Problems}
Esto es un bloque del tipo alertblock sin relleno.
\end{alertblock}
\end{frame}
\section{Ejemplos}
\begin{frame}[fragile]{Typography}
\begin{verbatim}The theme provides sensible defaults to
\emph{emphasize} text, \alert{accent} parts
or show \textbf{bold} results.\end{verbatim}
\begin{center}becomes\end{center}
The theme provides sensible defaults to \emph{emphasize} text,
\alert{accent} parts or show \textbf{bold} results.
\end{frame}
\begin{frame}{Font feature test}
\begin{itemize}
\item Regular
\item \textit{Italic}
\item \textsc{SmallCaps}
\item \textbf{Bold}
\item \textbf{\textit{Bold Italic}}
\item \textbf{\textsc{Bold SmallCaps}}
\item \texttt{Monospace}
\item \texttt{\textit{Monospace Italic}}
\item \texttt{\textbf{Monospace Bold}}
\item \texttt{\textbf{\textit{Monospace Bold Italic}}}
\end{itemize}
\end{frame}
\begin{frame}{Lists}
\begin{columns}[T,onlytextwidth]
\column{0.33\textwidth}
Items
\begin{itemize}
\item Milk \item Eggs \item Potatos
\end{itemize}
\column{0.33\textwidth}
Enumerations
\begin{enumerate}
\item First, \item Second and \item Last.
\end{enumerate}
\column{0.33\textwidth}
Descriptions
\begin{description}
\item[PowerPoint] Meeh. \item[Beamer] Yeeeha.
\end{description}
\end{columns}
\end{frame}
\begin{frame}{Animation}
\begin{itemize}[<+- | alert@+>]
\item \alert<4>{This is\only<4>{ really} important}
\item Now this
\item And now this
\end{itemize}
\end{frame}
\begin{frame}{Figures}
\begin{figure}
\newcounter{density}
\setcounter{density}{20}
\begin{tikzpicture}
\def\couleur{alerted text.fg}
\path[coordinate] (0,0) coordinate(A)
++( 90:5cm) coordinate(B)
++(0:5cm) coordinate(C)
++(-90:5cm) coordinate(D);
\draw[fill=\couleur!\thedensity] (A) -- (B) -- (C) --(D) -- cycle;
\foreach \x in {1,...,40}{%
\pgfmathsetcounter{density}{\thedensity+20}
\setcounter{density}{\thedensity}
\path[coordinate] coordinate(X) at (A){};
\path[coordinate] (A) -- (B) coordinate[pos=.10](A)
-- (C) coordinate[pos=.10](B)
-- (D) coordinate[pos=.10](C)
-- (X) coordinate[pos=.10](D);
\draw[fill=\couleur!\thedensity] (A)--(B)--(C)-- (D) -- cycle;
}
\end{tikzpicture}
\caption{Rotated square from
\href{http://www.texample.net/tikz/examples/rotated-polygons/}{texample.net}.}
\end{figure}
\end{frame}
\begin{frame}{Tables}
\begin{table}
\caption{Largest cities in the world (source: Wikipedia)}
\begin{tabular}{@{}lr @{} >{\kern\tabcolsep}l @{}}
%\begin{tabular}{lr}
\toprule
\centering
\bfseries{City} & \bfseries{Population}\\
%\midrule
%\midrule
\cmidrule[0.4pt](r){1-1}
\cmidrule[0.4pt](l){2-2}
Mexico City & \alert{20,116,842}\\
\myrowcolour
Shanghai & 19,210,000\\
Peking & 15,796,450\\
\myrowcolour
Istanbul & 14,160,467\\
\bottomrule
\hline
\end{tabular}
\end{table}
\end{frame}
\begin{frame}{Table readed from a file}
\begin{table}
\caption{Largest cities in the world (source: Wikipedia)}
\centering
\tableTwoColumns{data/data-table-example.csv}{City}{Population}
\end{table}
\end{frame}
\begin{frame}{Blocks}
Three different block environments are pre-defined and may be styled with an
optional background color.
\begin{columns}[T,onlytextwidth]
\column{0.5\textwidth}
\begin{block}{Default}
Block content.
\end{block}
\begin{alertblock}{Alert}
Block content.
\end{alertblock}
\begin{exampleblock}{Example}
Block content.
\end{exampleblock}
\column{0.5\textwidth}
\metroset{block=fill}
\begin{block}{Default}
Block content.
\end{block}
\begin{alertblock}{Alert}
Block content.
\end{alertblock}
\begin{exampleblock}{Example}
Block content.
\end{exampleblock}
\end{columns}
\end{frame}
\begin{frame}{Math}
\begin{equation*}
e = \lim_{n\to \infty} \left(1 + \frac{1}{n}\right)^n
\end{equation*}
\end{frame}
\begin{frame}{Line plots}
\begin{figure}
\begin{tikzpicture}
\begin{axis}[mlineplot
, width=0.9\textwidth
, height=6cm
, xlabel={Foo}
, ylabel={Bar}
, legend style = {
legend pos = outer north east}
]
\addplot{sin(deg(x))};
\addplot+[samples=100] {sin(deg(2*x))};
\addplot{sin(sin(x))};
\legend{lorem, ipsum, otro}
\end{axis}
\end{tikzpicture}
\end{figure}
\end{frame}
\begin{frame}{Bar charts}
\begin{figure}
\begin{tikzpicture}
\begin{axis}[mbarplot,
, xlabel={Foo}
, ylabel={Bar}
, width=0.9\textwidth
, height=6cm
, legend style = {
legend pos = outer north east}
, axis on top
, ymajorgrids=true
, grid style=white
, major tick length=0pt
, ymin=0
, xtick=data
]
\addplot+[draw opacity=0] plot coordinates {(1, 20) (2, 25) (3, 22.4) (4, 12.4)};
\addplot+[draw opacity=0] plot coordinates {(1, 18) (2, 24) (3, 23.5) (4, 13.2)};
\addplot+[draw opacity=0] plot coordinates {(1, 10) (2, 19) (3, 25) (4, 15.2)};
\legend{lorem, ipsum, dolor}
\end{axis}
\end{tikzpicture}
\end{figure}
\end{frame}
\begin{frame}{Quotes}
\begin{quote}
Veni, Vidi, Vici
\end{quote}
\end{frame}
{%
\setbeamertemplate{frame footer}{My custom footer}
\begin{frame}[fragile]{Frame footer}
This Theme defines a custom beamer template to add a text to the footer. It can be set via
\begin{verbatim}\setbeamertemplate{frame footer}{My custom footer}\end{verbatim}
\end{frame}
}
\begin{frame}{References}
Some references to showcase [allowframebreaks] \cite{knuth92,ConcreteMath,Simpson,Er01,greenwade93}
\end{frame}
\section{Conclusión}
\begin{frame}{Conclusión - Objetivos}
\metroset{block=fill}
\begin{exampleblock}{Objetivo especifico 1}
Texto.
\end{exampleblock}
\begin{itemize}
\item Conclusión 1.
\item Conclusión 2.
\item Conclusión 3.
\end{itemize}
\end{frame}
\begin{frame}{Conclusión - Objetivos}
\metroset{block=fill}
\begin{exampleblock}{Objetivo especifico 2}
Texto.
\end{exampleblock}
\begin{itemize}
\item Conclusión 1.
\item Conclusión 2.
\item Conclusión 3.
\end{itemize}
\end{frame}
\begin{frame}{Conclusión - Objetivos}
\metroset{block=fill}
\begin{block}{Objetivo general}
Texto.
\end{block}
\begin{block}{Hipótesis}
Texto.
\end{block}
\end{frame}
\begin{frame}[standout]
¿Preguntas? \\
\includegraphics[height=1.5cm]{images/logos/logo-onlyescudo-usach-white.pdf}
\end{frame}
\appendix
\begin{frame}[fragile]{Apéndice}
Sometimes, it is useful to add slides at the end of your presentation to
refer to during audience questions.
The best way to do this is to include the \verb|appendixnumberbeamer|
package in your preamble and call \verb|\appendix| before your backup slides.
This theme will automatically turn off slide numbering and progress bars for slides in the appendix.
\end{frame}
\begin{frame}[fragile]{Otro apéndice}
Sometimes, it is useful to add slides at the end of your presentation to
refer to during audience questions.
The best way to do this is to include the \verb|appendixnumberbeamer|
package in your preamble and call \verb|\appendix| before your backup slides.
This theme will automatically turn off slide numbering and progress bars for slides in the appendix.
\end{frame}
\begin{frame}[allowframebreaks]{Referencias Bibliográficas}
\bibliography{bibliography}
\bibliographystyle{abbrv}
\end{frame}
\end{document}