Skip to content

Commit 450dc94

Browse files
committed
Version 5.0.4
1 parent 4f2b15b commit 450dc94

22 files changed

+298
-70
lines changed

example.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
% Template: Control LaTeX
22
% Documento: Archivo de ejemplo
3-
% Versión: 5.0.3 (23/11/2021)
3+
% Versión: 5.0.4 (26/11/2021)
44
% Codificación: UTF-8
55
%
66
% Autor: Pablo Pizarro R.

main.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
% Template: Control LaTeX
22
% Documento: Archivo principal
3-
% Versión: 5.0.3 (23/11/2021)
3+
% Versión: 5.0.4 (26/11/2021)
44
% Codificación: UTF-8
55
%
66
% Autor: Pablo Pizarro R.

src/cfg/init.tex

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
% Template: Control LaTeX
22
% Documento: Configuración inicial del template
3-
% Versión: 5.0.3 (23/11/2021)
3+
% Versión: 5.0.4 (26/11/2021)
44
% Codificación: UTF-8
55
%
66
% Autor: Pablo Pizarro R.
@@ -104,16 +104,16 @@
104104
Template.Author.Email={[email protected]},
105105
Template.Author.Web={https://ppizarror.com},
106106
Template.Author={Pablo Pizarro R.},
107-
Template.Date={23/11/2021},
107+
Template.Date={26/11/2021},
108108
Template.Encoding={UTF-8},
109109
Template.Latex.Compiler={pdflatex},
110110
Template.License.Type={MIT},
111111
Template.License.Web={https://opensource.org/licenses/MIT},
112112
Template.Name={Template-Controles},
113113
Template.Type={Normal},
114-
Template.Version.Dev={5.0.3-CTR/EXM},
115-
Template.Version.Hash={09EF20D40CDBBFC790491B8649A526A4},
116-
Template.Version.Release={5.0.3},
114+
Template.Version.Dev={5.0.4-CTR/EXM},
115+
Template.Version.Hash={D553F8DAEB150E87C7198CB2A84EBDF4},
116+
Template.Version.Release={5.0.4},
117117
Template.Web.Dev={https://github.com/Template-Latex/Template-Controles},
118118
Template.Web.Manual={https://latex.ppizarror.com/controles},
119119
University.Department={\pdfmetainfouniversitydepartment},
@@ -125,7 +125,7 @@
125125
pdfmenubar={\cfgpdfmenubar},
126126
pdfpagelayout={\cfgpdflayout},
127127
pdfpagemode={\cfgpdfpagemode},
128-
pdfproducer={Template-Controles v5.0.3 | (Pablo Pizarro R.) ppizarror.com},
128+
pdfproducer={Template-Controles v5.0.4 | (Pablo Pizarro R.) ppizarror.com},
129129
pdfremotestartview={Fit},
130130
pdfstartpage={1},
131131
pdfstartview={\cfgpdfpageview},

src/cfg/page.tex

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
% Template: Control LaTeX
22
% Documento: Configuración de página
3-
% Versión: 5.0.3 (23/11/2021)
3+
% Versión: 5.0.4 (26/11/2021)
44
% Codificación: UTF-8
55
%
66
% Autor: Pablo Pizarro R.
@@ -245,17 +245,19 @@
245245
\color{\sssectioncolor} \sssectionfontsize \sssectionfontstyle \selectfont%
246246
}
247247
\titleformat{\subsubsubsection}{%
248-
\color{\ssssectioncolor} \ssssectionfontsz \ssssectionfontstyle
249-
}{%
250-
\thesubsubsubsection\charaftersectionnum\spacingaftersection}{0em}{%
248+
\color{\ssssectioncolor} \ssssectionfontsz \ssssectionfontstyle%
249+
}{%
250+
\thesubsubsubsection\charaftersectionnum\spacingaftersection%
251+
\corepatchaftersubsubsubsection%
252+
}{0em}{%
251253
}
252254
\def\bibfont {\fontsizerefbibl} % Tamaño de fuente de las referencias
253255

254256
% -------------------------------------------------------------------------
255257
% Estilo citas
256258
% -------------------------------------------------------------------------
257-
\ifthenelse{\equal{\stylecitereferences}{apacite}}{
258-
\renewcommand{\BOthers}[1]{\apacitebothers\hbox{}}
259+
\ifthenelse{\equal{\stylecitereferences}{apacite}}{%
260+
\renewcommand{\BOthers}[1]{\apacitebothers\hbox{}}%
259261
}{}
260262

261263
% -------------------------------------------------------------------------

src/cfg/unicode.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
% Template: Control LaTeX
22
% Documento: Caracteres Unicode
3-
% Versión: 5.0.3 (23/11/2021)
3+
% Versión: 5.0.4 (26/11/2021)
44
% Codificación: UTF-8
55
%
66
% Autor: Pablo Pizarro R.

src/cmd/column.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
% Template: Control LaTeX
22
% Documento: Funciones para crear columnas con contenido
3-
% Versión: 5.0.3 (23/11/2021)
3+
% Versión: 5.0.4 (26/11/2021)
44
% Codificación: UTF-8
55
%
66
% Autor: Pablo Pizarro R.

src/cmd/control.tex

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
% Template: Control LaTeX
22
% Documento: Funciones exclusivas de Template-Controles
3-
% Versión: 5.0.3 (23/11/2021)
3+
% Versión: 5.0.4 (26/11/2021)
44
% Codificación: UTF-8
55
%
66
% Autor: Pablo Pizarro R.
@@ -146,6 +146,7 @@
146146
% Crea una sección de anexos
147147
\newenvironment{appendixd}{%
148148
\global\def\GLOBALenvappendix {true}%
149+
\global\def\GLOBALtitlerequirechapter {false}%
149150
\begingroup % Inicia el grupo en nueva página y sección
150151
% \clearpage
151152
\phantomsection%
@@ -156,6 +157,12 @@
156157
\global\def\GLOBALformatnumssection {\formatnumapssection}%
157158
\global\def\GLOBALformatnumsssection {\formatnumapsssection}%
158159
\global\def\GLOBALformatnumssssection {\formatnumapssssection}%
160+
% Define estado de numeración
161+
\global\def\GLOBALtitleinitchapter {false}%
162+
\global\def\GLOBALtitleinitsection {false}%
163+
\global\def\GLOBALtitleinitsubsection {false}%
164+
\global\def\GLOBALtitleinitsubsubsection {false}%
165+
\global\def\GLOBALtitleinitsubsubsubsection {false}%
159166
\bookmarksetup{%
160167
numbered={true},
161168
openlevel={\thetemplateBookmarksLevelPrev}
@@ -184,12 +191,20 @@
184191
\global\def\GLOBALformatnumssection {\formatnumssection}%
185192
\global\def\GLOBALformatnumsssection {\formatnumsssection}%
186193
\global\def\GLOBALformatnumssssection {\formatnumssssection}%
194+
% Reestablece estado de numeración
195+
\global\def\GLOBALtitleinitchapter {false}%
196+
\global\def\GLOBALtitleinitsection {false}%
197+
\global\def\GLOBALtitleinitsubsection {false}%
198+
\global\def\GLOBALtitleinitsubsubsection {false}%
199+
\global\def\GLOBALtitleinitsubsubsubsection {false}%
187200
\bookmarksetupnext{level={\thetemplateBookmarksLevelPrev}} % Restablece índice marcador
188201
\bookmarksetup{%
189202
numbered={\cfgpdfsecnumbookmarks},
190203
openlevel={\cfgbookmarksopenlevel}
191204
}%
192205
\endgroup%
206+
\global\def\GLOBALenvappendix {false}%
207+
\global\def\GLOBALtitlerequirechapter {false}%
193208
}
194209

195210
% Inicia código fuente con parámetros

src/cmd/core.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
% Template: Control LaTeX
22
% Documento: Funciones del núcleo del template
3-
% Versión: 5.0.3 (23/11/2021)
3+
% Versión: 5.0.4 (26/11/2021)
44
% Codificación: UTF-8
55
%
66
% Autor: Pablo Pizarro R.

src/cmd/equation.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
% Template: Control LaTeX
22
% Documento: Funciones para insertar ecuaciones
3-
% Versión: 5.0.3 (23/11/2021)
3+
% Versión: 5.0.4 (26/11/2021)
44
% Codificación: UTF-8
55
%
66
% Autor: Pablo Pizarro R.

src/cmd/image.tex

Lines changed: 47 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
% Template: Control LaTeX
22
% Documento: Funciones para insertar imágenes
3-
% Versión: 5.0.3 (23/11/2021)
3+
% Versión: 5.0.4 (26/11/2021)
44
% Codificación: UTF-8
55
%
66
% Autor: Pablo Pizarro R.
@@ -10,6 +10,7 @@
1010
% Licencia MIT: [https://opensource.org/licenses/MIT]
1111

1212
\global\def\GLOBALimagelink {} % Almacena el link de la imagen
13+
\global\def\GLOBALimagenextmarginv {0 cm} % Almacena el margen vertical de las imágenes
1314

1415
% Calcula largo hspace
1516
% Regresión entre 35,46446->9 y 52,68402->13,5
@@ -41,23 +42,32 @@
4142
}{}%
4243
\ifthenelse{\equal{#5}{}}{ % Sin label
4344
\ifthenelse{\equal{\GLOBALimagelink}{}}{ % Sin link
44-
\fbox{\includegraphics[#3]{#2}}%
45+
\raisebox{\GLOBALimagenextmarginv}{%
46+
\fbox{\includegraphics[#3]{#2}}
47+
}%
4548
}{ % Con link
46-
\fbox{\href{\GLOBALimagelink}{\includegraphics[#3]{#2}}}%
49+
\raisebox{\GLOBALimagenextmarginv}{%
50+
\fbox{\href{\GLOBALimagelink}{\includegraphics[#3]{#2}}}%
51+
}%
4752
}%
4853
}{ % Con label
4954
\ifthenelse{\equal{\GLOBALimagelink}{}}{ % Sin link
5055
\subfloat[#5]{%
51-
\fbox{\includegraphics[#3]{#2}}#1%
56+
\raisebox{\GLOBALimagenextmarginv}{%
57+
\fbox{\includegraphics[#3]{#2}}#1%
58+
}%
5259
}%
5360
}{ % Con link
5461
\subfloat[#5]{%
55-
\fbox{\href{\GLOBALimagelink}{\includegraphics[#3]{#2}}#1}%
62+
\raisebox{\GLOBALimagenextmarginv}{%
63+
\fbox{\href{\GLOBALimagelink}{\includegraphics[#3]{#2}}#1}%
64+
}%
5665
}%
5766
}%
5867
}%
5968
\endgroup%
6069
\global\def\GLOBALenvimageadded {true}%
70+
\global\def\GLOBALimagenextmarginv {0 cm}%
6171
}
6272

6373
% Añade una imagen a un env "image" con borde sin leyenda
@@ -105,36 +115,53 @@
105115
\ifthenelse{\equal{#7}{}}{ % Sin label
106116
\ifthenelse{\equal{\animatedimageloop}{true}}{ % Con loop
107117
\ifthenelse{\equal{\animatedimageautoplay}{true}}{ % Con autoplay
108-
\fbox{\animategraphics[loop,autoplay,#3]{#4}{#2-}{0}{#5}}%
118+
\raisebox{\GLOBALimagenextmarginv}{%
119+
\fbox{\animategraphics[loop,autoplay,#3]{#4}{#2-}{0}{#5}}%
120+
}%
109121
}{ % Sin autoplay
110-
\fbox{\animategraphics[loop,#3]{#4}{#2-}{0}{#5}}%
122+
\raisebox{\GLOBALimagenextmarginv}{%
123+
\fbox{\animategraphics[loop,#3]{#4}{#2-}{0}{#5}}%
124+
}%
111125
}%
112126
}{ % Sin loop
113127
\ifthenelse{\equal{\animatedimageautoplay}{true}}{ % Con autoplay
114-
\fbox{\animategraphics[autoplay,#3]{#4}{#2-}{0}{#5}}%
128+
\raisebox{\GLOBALimagenextmarginv}{%
129+
\fbox{\animategraphics[autoplay,#3]{#4}{#2-}{0}{#5}}%
130+
}%
115131
}{ % Sin autoplay
116-
\fbox{\animategraphics[#3]{#4}{#2-}{0}{#5}}%
132+
\raisebox{\GLOBALimagenextmarginv}{%
133+
\fbox{\animategraphics[#3]{#4}{#2-}{0}{#5}}%
134+
}%
117135
}%
118136
}%
119137
}{ % Con label
120138
\subfloat[#7]{%
121139
\ifthenelse{\equal{\animatedimageloop}{true}}{ % Con loop
122140
\ifthenelse{\equal{\animatedimageautoplay}{true}}{ % Con autoplay
123-
\fbox{\animategraphics[loop,autoplay,#3]{#4}{#2-}{0}{#5}#1}%
141+
\raisebox{\GLOBALimagenextmarginv}{%
142+
\fbox{\animategraphics[loop,autoplay,#3]{#4}{#2-}{0}{#5}#1}%
143+
}%
124144
}{ % Sin autoplay
125-
\fbox{\animategraphics[loop,#3]{#4}{#2-}{0}{#5}#1}%
145+
\raisebox{\GLOBALimagenextmarginv}{%
146+
\fbox{\animategraphics[loop,#3]{#4}{#2-}{0}{#5}#1}%
147+
}%
126148
}%
127149
}{ % Sin loop
128150
\ifthenelse{\equal{\animatedimageautoplay}{true}}{ % Con autoplay
129-
\fbox{\animategraphics[autoplay,#3]{#4}{#2-}{0}{#5}#1}%
151+
\raisebox{\GLOBALimagenextmarginv}{%
152+
\fbox{\animategraphics[autoplay,#3]{#4}{#2-}{0}{#5}#1}%
153+
}%
130154
}{ % Sin autoplay
131-
\fbox{\animategraphics[#3]{#4}{#2-}{0}{#5}#1}%
155+
\raisebox{\GLOBALimagenextmarginv}{%
156+
\fbox{\animategraphics[#3]{#4}{#2-}{0}{#5}#1}%
157+
}%
132158
}%
133159
}%
134160
}%
135161
}%
136162
\endgroup%
137163
\global\def\GLOBALenvimageadded {true}%
164+
\global\def\GLOBALimagenextmarginv {0 cm}%
138165
}
139166

140167
% Añade una imagen a un env "image" con borde sin leyenda animada
@@ -220,6 +247,13 @@
220247
~ \\ \vspace*{#1}%
221248
}
222249

250+
% Establece el margen vertical de la siguiente imagen
251+
% #1 Margen vertical
252+
\newcommand{\setnextimagevmargin}[1]{%
253+
\emptyvarerr{\setimagesvmargin}{#1}{Tamaño del margen}%
254+
\global\def\GLOBALimagenextmarginv {#1}%
255+
}
256+
223257
% Insertar una imagen
224258
% #1 Label (opcional)
225259
% #2 Dirección de la imagen

0 commit comments

Comments
 (0)