-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathpreamble.tex
76 lines (75 loc) · 2.43 KB
/
preamble.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
% Herramientas para beamer------------------------------------------------
\usepackage{ragged2e}
\usepackage{etoolbox}
\usepackage{lipsum}
\geometry{paperwidth=140mm,paperheight=125mm} % Tamaño de la hoja
% Para justificar el texto.
\apptocmd{\frame}{}{\justifying}{}
\apptocmd{\column}{}{\justifying}{}
\renewcommand{\raggedright}{\leftskip=0pt \rightskip=0pt plus 0cm}
\addtobeamertemplate{block begin}{}{\justifying} %new code
% Blocks de colores ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% Amarillo
\newenvironment{yellow_block}[1]
{
\setbeamercolor{block title}{fg=black,bg=yellow!50!white}
\setbeamercolor{block body}{fg=black,bg=yellow!30!white}
\begin{block}{#1}
}
{
\end{block}
\setbeamercolor{block title}{fg=blocktitlefgsave,bg=blocktitlebgsave}
\setbeamercolor{block body}{fg=blockbodyfgsave,bg=blockbodybgsave}
}
% En general podemos definir así los bloques
\newenvironment{color_block}[2]
{
\setbeamercolor{block title}{fg=#1,bg=#1!50!white}
\setbeamercolor{block body}{fg=black, bg=#1!30!white}
\begin{block}{#2}
}
{
\end{block}
\setbeamercolor{block title}{fg=blocktitlefgsave,bg=blocktitlebgsave}
\setbeamercolor{block body}{fg=blockbodyfgsave,bg=blockbodybgsave}
}
% Proofs de colores ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% Amarillo
\newenvironment{yellow_proof}[1]
{
\setbeamercolor{block title}{fg=black,bg=yellow!50!white}
\setbeamercolor{block body}{fg=black,bg=yellow!30!white}
\begin{proof}[#1]
}
{
\end{proof}
\setbeamercolor{block title}{fg=blocktitlefgsave,bg=blocktitlebgsave}
\setbeamercolor{block body}{fg=blockbodyfgsave,bg=blockbodybgsave}
}
% En general podemos definir así los bloques
\newenvironment{color_proof}[2]
{
\setbeamercolor{block title}{fg=#1,bg=#1!50!white}
\setbeamercolor{block body}{fg=black, bg=#1!30!white}
\begin{proof}[#2]
}
{
\end{proof}
\setbeamercolor{block title}{fg=blocktitlefgsave,bg=blocktitlebgsave}
\setbeamercolor{block body}{fg=blockbodyfgsave,bg=blockbodybgsave}
}
% ------------------------------------------------------------------------
% Para los hipervínculos -------------------------------------------------
\usepackage{hyperref}
\hypersetup{
colorlinks=true,
linkcolor=blue,
filecolor=magenta,
urlcolor=cyan,
}
\urlstyle{same}
% ------------------------------------------------------------------------
% Paqueterías extra y funciones creadas.
\usepackage{hyperref}
\usepackage[spanish]{babel}
\newcommand{\derivada}[2]{\frac{\partial{#1}}{\partial{#2}}}