forked from gomezgoiri/deusto-style
-
Notifications
You must be signed in to change notification settings - Fork 0
/
commands.sty
132 lines (118 loc) · 3.48 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
% COMMANDS
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\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]{
\setbeamertemplate{background canvas}[default] % resets the background
\setbeamertemplate{footline}[default]
\begin{frame}
\begin{center}
All rights of images are reserved by the \linebreak
\textbf{original owners*}, the rest of the content is licensed \linebreak
under a \textbf{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}
\end{center}
\end{frame}
}
\newcommand{\licensees}[1]{
\setbeamertemplate{background canvas}[default] % resets the background
\setbeamertemplate{footline}[default]
\begin{frame}{Licencia}
\begin{center}
Todas las imágenes son propiedad de sus\linebreak
\textbf{respectivos dueños*}, el resto del contenido\linebreak
está licenciado bajo 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}
\end{center}
\end{frame}
}
\newcommand{\licenseeu}[1]{
\setbeamertemplate{background canvas}[default] % resets the background
\setbeamertemplate{footline}[default]
\begin{frame}{Lizentzia}
\begin{center}
Irudien guztien jabetza intelektuala
\textbf{bere egileena*} da, gainontzeko edukiak
\textbf{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}
\end{center}
\end{frame}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\setSubjectColor}[1][none]{
\setbeamertemplate{background canvas}{\includegraphics[width=\paperwidth]{\tplPath img/header_#1.png}}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\owntitlepage}[1][\tplPath img/front-background.png]{
{
\setbeamertemplate{footline}[default]
\usebackgroundtemplate{\includegraphics
[width=\paperwidth]{#1}}
\begin{frame}
\titlepage
\vspace{10em}
\end{frame}
}
}