Skip to content

Commit

Permalink
Version 5.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ppizarror committed Nov 26, 2021
1 parent 4f2b15b commit 450dc94
Show file tree
Hide file tree
Showing 22 changed files with 298 additions and 70 deletions.
2 changes: 1 addition & 1 deletion example.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% Template: Control LaTeX
% Documento: Archivo de ejemplo
% Versión: 5.0.3 (23/11/2021)
% Versión: 5.0.4 (26/11/2021)
% Codificación: UTF-8
%
% Autor: Pablo Pizarro R.
Expand Down
2 changes: 1 addition & 1 deletion main.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% Template: Control LaTeX
% Documento: Archivo principal
% Versión: 5.0.3 (23/11/2021)
% Versión: 5.0.4 (26/11/2021)
% Codificación: UTF-8
%
% Autor: Pablo Pizarro R.
Expand Down
12 changes: 6 additions & 6 deletions src/cfg/init.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% Template: Control LaTeX
% Documento: Configuración inicial del template
% Versión: 5.0.3 (23/11/2021)
% Versión: 5.0.4 (26/11/2021)
% Codificación: UTF-8
%
% Autor: Pablo Pizarro R.
Expand Down Expand Up @@ -104,16 +104,16 @@
Template.Author.Email={pablo@ppizarror.com},
Template.Author.Web={https://ppizarror.com},
Template.Author={Pablo Pizarro R.},
Template.Date={23/11/2021},
Template.Date={26/11/2021},
Template.Encoding={UTF-8},
Template.Latex.Compiler={pdflatex},
Template.License.Type={MIT},
Template.License.Web={https://opensource.org/licenses/MIT},
Template.Name={Template-Controles},
Template.Type={Normal},
Template.Version.Dev={5.0.3-CTR/EXM},
Template.Version.Hash={09EF20D40CDBBFC790491B8649A526A4},
Template.Version.Release={5.0.3},
Template.Version.Dev={5.0.4-CTR/EXM},
Template.Version.Hash={D553F8DAEB150E87C7198CB2A84EBDF4},
Template.Version.Release={5.0.4},
Template.Web.Dev={https://github.com/Template-Latex/Template-Controles},
Template.Web.Manual={https://latex.ppizarror.com/controles},
University.Department={\pdfmetainfouniversitydepartment},
Expand All @@ -125,7 +125,7 @@
pdfmenubar={\cfgpdfmenubar},
pdfpagelayout={\cfgpdflayout},
pdfpagemode={\cfgpdfpagemode},
pdfproducer={Template-Controles v5.0.3 | (Pablo Pizarro R.) ppizarror.com},
pdfproducer={Template-Controles v5.0.4 | (Pablo Pizarro R.) ppizarror.com},
pdfremotestartview={Fit},
pdfstartpage={1},
pdfstartview={\cfgpdfpageview},
Expand Down
14 changes: 8 additions & 6 deletions src/cfg/page.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% Template: Control LaTeX
% Documento: Configuración de página
% Versión: 5.0.3 (23/11/2021)
% Versión: 5.0.4 (26/11/2021)
% Codificación: UTF-8
%
% Autor: Pablo Pizarro R.
Expand Down Expand Up @@ -245,17 +245,19 @@
\color{\sssectioncolor} \sssectionfontsize \sssectionfontstyle \selectfont%
}
\titleformat{\subsubsubsection}{%
\color{\ssssectioncolor} \ssssectionfontsz \ssssectionfontstyle
}{%
\thesubsubsubsection\charaftersectionnum\spacingaftersection}{0em}{%
\color{\ssssectioncolor} \ssssectionfontsz \ssssectionfontstyle%
}{%
\thesubsubsubsection\charaftersectionnum\spacingaftersection%
\corepatchaftersubsubsubsection%
}{0em}{%
}
\def\bibfont {\fontsizerefbibl} % Tamaño de fuente de las referencias

% -------------------------------------------------------------------------
% Estilo citas
% -------------------------------------------------------------------------
\ifthenelse{\equal{\stylecitereferences}{apacite}}{
\renewcommand{\BOthers}[1]{\apacitebothers\hbox{}}
\ifthenelse{\equal{\stylecitereferences}{apacite}}{%
\renewcommand{\BOthers}[1]{\apacitebothers\hbox{}}%
}{}

% -------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion src/cfg/unicode.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% Template: Control LaTeX
% Documento: Caracteres Unicode
% Versión: 5.0.3 (23/11/2021)
% Versión: 5.0.4 (26/11/2021)
% Codificación: UTF-8
%
% Autor: Pablo Pizarro R.
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/column.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% Template: Control LaTeX
% Documento: Funciones para crear columnas con contenido
% Versión: 5.0.3 (23/11/2021)
% Versión: 5.0.4 (26/11/2021)
% Codificación: UTF-8
%
% Autor: Pablo Pizarro R.
Expand Down
17 changes: 16 additions & 1 deletion src/cmd/control.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% Template: Control LaTeX
% Documento: Funciones exclusivas de Template-Controles
% Versión: 5.0.3 (23/11/2021)
% Versión: 5.0.4 (26/11/2021)
% Codificación: UTF-8
%
% Autor: Pablo Pizarro R.
Expand Down Expand Up @@ -146,6 +146,7 @@
% Crea una sección de anexos
\newenvironment{appendixd}{%
\global\def\GLOBALenvappendix {true}%
\global\def\GLOBALtitlerequirechapter {false}%
\begingroup % Inicia el grupo en nueva página y sección
% \clearpage
\phantomsection%
Expand All @@ -156,6 +157,12 @@
\global\def\GLOBALformatnumssection {\formatnumapssection}%
\global\def\GLOBALformatnumsssection {\formatnumapsssection}%
\global\def\GLOBALformatnumssssection {\formatnumapssssection}%
% Define estado de numeración
\global\def\GLOBALtitleinitchapter {false}%
\global\def\GLOBALtitleinitsection {false}%
\global\def\GLOBALtitleinitsubsection {false}%
\global\def\GLOBALtitleinitsubsubsection {false}%
\global\def\GLOBALtitleinitsubsubsubsection {false}%
\bookmarksetup{%
numbered={true},
openlevel={\thetemplateBookmarksLevelPrev}
Expand Down Expand Up @@ -184,12 +191,20 @@
\global\def\GLOBALformatnumssection {\formatnumssection}%
\global\def\GLOBALformatnumsssection {\formatnumsssection}%
\global\def\GLOBALformatnumssssection {\formatnumssssection}%
% Reestablece estado de numeración
\global\def\GLOBALtitleinitchapter {false}%
\global\def\GLOBALtitleinitsection {false}%
\global\def\GLOBALtitleinitsubsection {false}%
\global\def\GLOBALtitleinitsubsubsection {false}%
\global\def\GLOBALtitleinitsubsubsubsection {false}%
\bookmarksetupnext{level={\thetemplateBookmarksLevelPrev}} % Restablece índice marcador
\bookmarksetup{%
numbered={\cfgpdfsecnumbookmarks},
openlevel={\cfgbookmarksopenlevel}
}%
\endgroup%
\global\def\GLOBALenvappendix {false}%
\global\def\GLOBALtitlerequirechapter {false}%
}

% Inicia código fuente con parámetros
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/core.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% Template: Control LaTeX
% Documento: Funciones del núcleo del template
% Versión: 5.0.3 (23/11/2021)
% Versión: 5.0.4 (26/11/2021)
% Codificación: UTF-8
%
% Autor: Pablo Pizarro R.
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/equation.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% Template: Control LaTeX
% Documento: Funciones para insertar ecuaciones
% Versión: 5.0.3 (23/11/2021)
% Versión: 5.0.4 (26/11/2021)
% Codificación: UTF-8
%
% Autor: Pablo Pizarro R.
Expand Down
60 changes: 47 additions & 13 deletions src/cmd/image.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% Template: Control LaTeX
% Documento: Funciones para insertar imágenes
% Versión: 5.0.3 (23/11/2021)
% Versión: 5.0.4 (26/11/2021)
% Codificación: UTF-8
%
% Autor: Pablo Pizarro R.
Expand All @@ -10,6 +10,7 @@
% Licencia MIT: [https://opensource.org/licenses/MIT]

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

% Calcula largo hspace
% Regresión entre 35,46446->9 y 52,68402->13,5
Expand Down Expand Up @@ -41,23 +42,32 @@
}{}%
\ifthenelse{\equal{#5}{}}{ % Sin label
\ifthenelse{\equal{\GLOBALimagelink}{}}{ % Sin link
\fbox{\includegraphics[#3]{#2}}%
\raisebox{\GLOBALimagenextmarginv}{%
\fbox{\includegraphics[#3]{#2}}
}%
}{ % Con link
\fbox{\href{\GLOBALimagelink}{\includegraphics[#3]{#2}}}%
\raisebox{\GLOBALimagenextmarginv}{%
\fbox{\href{\GLOBALimagelink}{\includegraphics[#3]{#2}}}%
}%
}%
}{ % Con label
\ifthenelse{\equal{\GLOBALimagelink}{}}{ % Sin link
\subfloat[#5]{%
\fbox{\includegraphics[#3]{#2}}#1%
\raisebox{\GLOBALimagenextmarginv}{%
\fbox{\includegraphics[#3]{#2}}#1%
}%
}%
}{ % Con link
\subfloat[#5]{%
\fbox{\href{\GLOBALimagelink}{\includegraphics[#3]{#2}}#1}%
\raisebox{\GLOBALimagenextmarginv}{%
\fbox{\href{\GLOBALimagelink}{\includegraphics[#3]{#2}}#1}%
}%
}%
}%
}%
\endgroup%
\global\def\GLOBALenvimageadded {true}%
\global\def\GLOBALimagenextmarginv {0 cm}%
}

% Añade una imagen a un env "image" con borde sin leyenda
Expand Down Expand Up @@ -105,36 +115,53 @@
\ifthenelse{\equal{#7}{}}{ % Sin label
\ifthenelse{\equal{\animatedimageloop}{true}}{ % Con loop
\ifthenelse{\equal{\animatedimageautoplay}{true}}{ % Con autoplay
\fbox{\animategraphics[loop,autoplay,#3]{#4}{#2-}{0}{#5}}%
\raisebox{\GLOBALimagenextmarginv}{%
\fbox{\animategraphics[loop,autoplay,#3]{#4}{#2-}{0}{#5}}%
}%
}{ % Sin autoplay
\fbox{\animategraphics[loop,#3]{#4}{#2-}{0}{#5}}%
\raisebox{\GLOBALimagenextmarginv}{%
\fbox{\animategraphics[loop,#3]{#4}{#2-}{0}{#5}}%
}%
}%
}{ % Sin loop
\ifthenelse{\equal{\animatedimageautoplay}{true}}{ % Con autoplay
\fbox{\animategraphics[autoplay,#3]{#4}{#2-}{0}{#5}}%
\raisebox{\GLOBALimagenextmarginv}{%
\fbox{\animategraphics[autoplay,#3]{#4}{#2-}{0}{#5}}%
}%
}{ % Sin autoplay
\fbox{\animategraphics[#3]{#4}{#2-}{0}{#5}}%
\raisebox{\GLOBALimagenextmarginv}{%
\fbox{\animategraphics[#3]{#4}{#2-}{0}{#5}}%
}%
}%
}%
}{ % Con label
\subfloat[#7]{%
\ifthenelse{\equal{\animatedimageloop}{true}}{ % Con loop
\ifthenelse{\equal{\animatedimageautoplay}{true}}{ % Con autoplay
\fbox{\animategraphics[loop,autoplay,#3]{#4}{#2-}{0}{#5}#1}%
\raisebox{\GLOBALimagenextmarginv}{%
\fbox{\animategraphics[loop,autoplay,#3]{#4}{#2-}{0}{#5}#1}%
}%
}{ % Sin autoplay
\fbox{\animategraphics[loop,#3]{#4}{#2-}{0}{#5}#1}%
\raisebox{\GLOBALimagenextmarginv}{%
\fbox{\animategraphics[loop,#3]{#4}{#2-}{0}{#5}#1}%
}%
}%
}{ % Sin loop
\ifthenelse{\equal{\animatedimageautoplay}{true}}{ % Con autoplay
\fbox{\animategraphics[autoplay,#3]{#4}{#2-}{0}{#5}#1}%
\raisebox{\GLOBALimagenextmarginv}{%
\fbox{\animategraphics[autoplay,#3]{#4}{#2-}{0}{#5}#1}%
}%
}{ % Sin autoplay
\fbox{\animategraphics[#3]{#4}{#2-}{0}{#5}#1}%
\raisebox{\GLOBALimagenextmarginv}{%
\fbox{\animategraphics[#3]{#4}{#2-}{0}{#5}#1}%
}%
}%
}%
}%
}%
\endgroup%
\global\def\GLOBALenvimageadded {true}%
\global\def\GLOBALimagenextmarginv {0 cm}%
}

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

% Establece el margen vertical de la siguiente imagen
% #1 Margen vertical
\newcommand{\setnextimagevmargin}[1]{%
\emptyvarerr{\setimagesvmargin}{#1}{Tamaño del margen}%
\global\def\GLOBALimagenextmarginv {#1}%
}

% Insertar una imagen
% #1 Label (opcional)
% #2 Dirección de la imagen
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/math.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% Template: Control LaTeX
% Documento: Funciones matemáticas
% Versión: 5.0.3 (23/11/2021)
% Versión: 5.0.4 (26/11/2021)
% Codificación: UTF-8
%
% Autor: Pablo Pizarro R.
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/other.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% Template: Control LaTeX
% Documento: Funciones para insertar elementos
% Versión: 5.0.3 (23/11/2021)
% Versión: 5.0.4 (26/11/2021)
% Codificación: UTF-8
%
% Autor: Pablo Pizarro R.
Expand Down
Loading

0 comments on commit 450dc94

Please sign in to comment.