-
Notifications
You must be signed in to change notification settings - Fork 1
/
commands.sty
147 lines (128 loc) · 3.59 KB
/
commands.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
% COMMANDS
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\unemph}[1] {
\textcolor{gray}{#1}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[absolute,overlay]{textpos}
\newcommand{\fullscreenobjectat}[2]{
\begin{textblock*}{12.8cm}#1
#2
\end{textblock*}
}
\newcommand{\fullscreenimageat}[3]{
\fullscreenobjectat{#1}{
\includegraphics[#2]{#3}
}
}
\newcommand{\fullscreenslide}[1]{
\fullscreenobjectat{(0cm,0cm)}{#1}
}
\newcommand{\fullscreenimage}[2]{
\fullscreenslide{
\centering
\includegraphics[#1]{#2}
}
}
\setlength{\unitlength}{1cm}
% arreglado, antes al ponerlo en blanco y en las siguientes se mantenía,
% ¡porque las tablas aparecen debajo de eso y parece que no las está dibujando, cuando sí!
\newcommand{\fullscreenfill}[1]{
\fullscreenslide{
\linethickness{12.8cm}
{
\color{#1}
\begin{picture}(12.8,9.6)
\put(6.4,0){\line(0,0){9.6}}
\end{picture}
}
}
}
\newcommand{\fullscreentextbox}[3][blue]{
\fullscreenobjectat{#2}{
\colorbox{#1}{\fcolorbox{black}{white}{#3}}
}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\licenseen}[1]{
\simpleframe {
All rights of images are reserved by the \linebreak
\emph{original owners}*, the rest of the content is licensed \linebreak
under a \emph{Creative Commons by-sa 3.0} license.
\linebreak\linebreak
\includegraphics[width=100px]{\tplPath img/logocc.png}
\linebreak\linebreak\linebreak\linebreak\linebreak
\begin{textblock}{11.0}[0,0](3,10)
\scriptsize
\begin{flushleft}
* #1
\end{flushleft}
\end{textblock}
}
}
\newcommand{\licensees}[1]{
\simpleframe {
Todas las imágenes son propiedad de sus\linebreak
\emph{respectivos dueños}*, el resto del contenido\linebreak
está licenciado bajo \emph{Creative Commons by-sa 3.0}.
\linebreak\linebreak
\includegraphics[width=100px]{\tplPath img/logocc.png}
\linebreak\linebreak\linebreak\linebreak\linebreak
\begin{textblock}{11.0}[0,0](3,10)
\scriptsize
\begin{flushleft}
* #1
\end{flushleft}
\end{textblock}
}
}
\newcommand{\licenseeu}[1]{
\simpleframe {
Irudien guztien jabetza intelektuala
\emph{bere egileena}* da, gainontzeko edukiak
\emph{Creative Commons by-sa 3.0} lizentziapean daude.
\linebreak\linebreak
\includegraphics[width=100px]{\tplPath img/logocc.png}
\linebreak\linebreak\linebreak\linebreak\linebreak
\begin{textblock}{11.0}[0,0](3,10)
\scriptsize
\begin{flushleft}
* #1
\end{flushleft}
\end{textblock}
}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\setSubjectColor}[1][none]{
\setbeamertemplate{background canvas}{\includegraphics[width=\paperwidth]{\tplPath img/header_#1.png}}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% TODO http://tex.stackexchange.com/questions/22346/how-to-customize-titlepage-in-beamer
\newcommand{\owntitlepage}[1][\tplPath img/front-background.png]{
{
\setbeamertemplate{footline}[default]
\usebackgroundtemplate{\includegraphics
[width=\paperwidth]{#1}}
\begin{frame}
\titlepage
\vspace{12em}
\end{frame}
}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% simpleframe: whithout a title, white background and text vertically aligned.
% 1st parameter: font size
% 2nd parameter: content of the frame
\newcommand{\simpleframe}[2][\large] {
{
\setbeamertemplate{background canvas}[default] % resets the background
\setbeamertemplate{footline}[default]
\begin{frame}[c]
\begin{center}
{ #1
#2
}
\end{center}
\end{frame}
}
}