Skip to content

Commit

Permalink
Version 8.1.6-1
Browse files Browse the repository at this point in the history
  • Loading branch information
ppizarror committed Jun 13, 2022
1 parent f0da59b commit 289af7d
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 37 deletions.
70 changes: 36 additions & 34 deletions dist/template.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% Template: Informe LaTeX
% Documento: Núcleo del template
% Versión: 8.1.5 (09/06/2022)
% Versión: 8.1.6 (12/06/2022)
% Codificación: UTF-8
%
% Autor: Pablo Pizarro R.
Expand Down Expand Up @@ -866,7 +866,9 @@
% IMPORTACIÓN DE FUNCIONES Y ENTORNOS
% -----------------------------------------------------------------------------
% Definición de variables globales
\global\def\GLOBALcaptiondefn {EMPTY-VAR} % Definición del caption
\global\def\GLOBALemptyvar {template:empty:var} % Usado para indicar que una variable está vacía

\global\def\GLOBALcaptiondefn {\GLOBALemptyvar} % Definición del caption
\global\def\GLOBALchapternumenabled {false} % Numeración de capítulos empezó
\global\def\GLOBALenvappendix {false} % Indica que el entorno anexo está activo
\global\def\GLOBALenvimageadded {false} % Indica que una imagen ha sido añadida
Expand Down Expand Up @@ -1027,7 +1029,7 @@

% Resetea los caption
\newcommand{\resetindexcaption}{%
\global\def\GLOBALcaptiondefn {EMPTY-VAR}%
\global\def\GLOBALcaptiondefn {\GLOBALemptyvar}%
\hbadness=10000%
}

Expand Down Expand Up @@ -2068,7 +2070,7 @@
\fi%
}

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

% Calcula largo hspace
Expand Down Expand Up @@ -2099,18 +2101,18 @@
\ifthenelse{\equal{\GLOBALenvimageadded}{true}}{%
\hspace{\dimexpr \marginimagemultright cm -\coreimageshspace}%
}{}%
\ifthenelse{\equal{#5}{}}{ % Sin label
\ifthenelse{\equal{\GLOBALimagelink}{}}{ % Sin link
\ifthenelse{\equal{#5}{\GLOBALemptyvar}}{ % Sin label
\ifthenelse{\equal{\GLOBALimagelink}{\GLOBALemptyvar}}{ % Sin link
\raisebox{\GLOBALimagenextmarginv}{%
\fbox{\includegraphics[#3]{#2}}
\fbox{\includegraphics[#3]{#2}}%
}%
}{ % Con link
\raisebox{\GLOBALimagenextmarginv}{%
\fbox{\href{\GLOBALimagelink}{\includegraphics[#3]{#2}}}%
}%
}%
}{ % Con label
\ifthenelse{\equal{\GLOBALimagelink}{}}{ % Sin link
\ifthenelse{\equal{\GLOBALimagelink}{\GLOBALemptyvar}}{ % Sin link
\subfloat[#5]{%
\raisebox{\GLOBALimagenextmarginv}{%
\fbox{\includegraphics[#3]{#2}}#1%
Expand All @@ -2133,15 +2135,15 @@
% #1 Dirección de la imagen
% #2 Parámetros de la imagen
\newcommand{\addimageanum}[2]{%
\addimageboxed{#1}{#2}{0}{}%
\addimageboxed{#1}{#2}{0}{\GLOBALemptyvar}%
}

% Añade una imagen a un env "image" con borde sin leyenda
% #1 Dirección de la imagen
% #2 Parámetros de la imagen
% #3 Ancho de la línea (en pt)
\newcommand{\addimageanumboxed}[3]{%
\addimageboxed{#1}{#2}{#3}{}%
\addimageboxed{#1}{#2}{#3}{\GLOBALemptyvar}%
}

% Añade una imagen a un env "image" con borde animada
Expand Down Expand Up @@ -2171,7 +2173,7 @@
\ifthenelse{\equal{\GLOBALenvimageadded}{true}}{%
\hspace{\dimexpr \marginimagemultright cm - \coreimageshspace}%
}{}%
\ifthenelse{\equal{#7}{}}{ % Sin label
\ifthenelse{\equal{#7}{\GLOBALemptyvar}}{ % Sin label
\ifthenelse{\equal{\animatedimageloop}{true}}{ % Con loop
\ifthenelse{\equal{\animatedimageautoplay}{true}}{ % Con autoplay
\raisebox{\GLOBALimagenextmarginv}{%
Expand Down Expand Up @@ -2229,7 +2231,7 @@
% #3 FPS de la imagen
% #4 Total imágenes no definido
\newcommand{\addimageanimatedanum}[4]{%
\addimageanimatedboxed{#1}{#2}{#3}{#4}{0}{}%
\addimageanimatedboxed{#1}{#2}{#3}{#4}{0}{\GLOBALemptyvar}%
}

% Añade una imagen a un env "image" con borde sin leyenda animada
Expand All @@ -2239,7 +2241,7 @@
% #4 Total imágenes no definido
% #5 Ancho de la línea (en pt)
\newcommand{\addimageanimatedanumboxed}[5]{%
\addimageanimatedboxed{#1}{#2}{#3}{#4}{#5}{}%
\addimageanimatedboxed{#1}{#2}{#3}{#4}{#5}{\GLOBALemptyvar}%
}

% Añade una imagen a un env "image" con borde y un link
Expand All @@ -2262,15 +2264,15 @@
\newcommand{\addimagelinkboxed}[6][]{%
\global\def\GLOBALimagelink {#5}%
\addimageboxed[#1]{#2}{#3}{#4}{#6}%
\global\def\GLOBALimagelink {}%
\global\def\GLOBALimagelink {\GLOBALemptyvar}%
}

% Añade una imagen a un env "image" con borde sin leyenda
% #1 Dirección de la imagen
% #2 Parámetros de la imagen
% #3 Link de la imagen
\newcommand{\addimageanumlink}[3]{%
\addimagelink{#1}{#2}{#3}{}%
\addimagelink{#1}{#2}{#3}{\GLOBALemptyvar}%
}

% Añade una imagen a un env "image" con borde sin leyenda
Expand All @@ -2279,7 +2281,7 @@
% #3 Ancho de la línea (en pt)
% #4 Link de la imagen
\newcommand{\addimageanumlinkboxed}[4]{%
\addimagelinkboxed{#1}{#2}{#3}{#4}{}%
\addimagelinkboxed{#1}{#2}{#3}{#4}{\GLOBALemptyvar}%
}

% Añade un salto de línea en las imágenes
Expand Down Expand Up @@ -2340,7 +2342,7 @@
\setlength{\fboxsep}{0 pt}%
\setlength{\fboxrule}{#4 pt}%
\centering%
\ifthenelse{\equal{\GLOBALimagelink}{}}{ % Sin link
\ifthenelse{\equal{\GLOBALimagelink}{\GLOBALemptyvar}}{ % Sin link
\fbox{\includegraphics[#3]{#2}}%
}{ % Con link
\fbox{\href{\GLOBALimagelink}{\includegraphics[#3]{#2}}}%
Expand All @@ -2351,7 +2353,7 @@
\else%
\hspace{0cm}%
\corevspacevarcm{\captionmarginimage}%
\ifthenelse{\equal{\GLOBALcaptiondefn}{EMPTY-VAR}}{\caption{#5 #1}}{\caption[\GLOBALcaptiondefn]{#5 #1}}%
\ifthenelse{\equal{\GLOBALcaptiondefn}{\GLOBALemptyvar}}{\caption{#5 #1}}{\caption[\GLOBALcaptiondefn]{#5 #1}}%
\fi%
\end{figure}
\corevspacevarcm{\marginimagebottom}%
Expand Down Expand Up @@ -2427,7 +2429,7 @@
\else%
\hspace{0cm}%
\corevspacevarcm{\captionmarginimage}%
\ifthenelse{\equal{\GLOBALcaptiondefn}{EMPTY-VAR}}{\caption{#7 #1}}{\caption[\GLOBALcaptiondefn]{#7 #1}}%
\ifthenelse{\equal{\GLOBALcaptiondefn}{\GLOBALemptyvar}}{\caption{#7 #1}}{\caption[\GLOBALcaptiondefn]{#7 #1}}%
\fi%
\end{figure}
\corevspacevarcm{\marginimagebottom}%
Expand Down Expand Up @@ -2455,7 +2457,7 @@
\newcommand{\insertimagelinkboxed}[6][]{%
\global\def\GLOBALimagelink {#5}%
\insertimageboxed[#1]{#2}{#3}{#4}{#6}%
\global\def\GLOBALimagelink {}%
\global\def\GLOBALimagelink {\GLOBALemptyvar}%
}

% Insertar una imagen completa en un entorno multicol
Expand Down Expand Up @@ -2551,7 +2553,7 @@
\else%
\hspace{0cm}%
\corevspacevarcm{\captionmarginimage}%
\ifthenelse{\equal{\GLOBALcaptiondefn}{EMPTY-VAR}}{\caption{#6 #1}}{\caption[\GLOBALcaptiondefn]{#6 #1}}%
\ifthenelse{\equal{\GLOBALcaptiondefn}{\GLOBALemptyvar}}{\caption{#6 #1}}{\caption[\GLOBALcaptiondefn]{#6 #1}}%
\fi%
\end{figure*}
\end{samepage}
Expand Down Expand Up @@ -2649,7 +2651,7 @@
\corevspacevarcm{\captionlessmarginimage}%
\else%
\corevspacevarcm{\captionmarginimage}%
\ifthenelse{\equal{\GLOBALcaptiondefn}{EMPTY-VAR}}{\caption{#5 #1}}{\caption[\GLOBALcaptiondefn]{#5 #1}}%
\ifthenelse{\equal{\GLOBALcaptiondefn}{\GLOBALemptyvar}}{\caption{#5 #1}}{\caption[\GLOBALcaptiondefn]{#5 #1}}%
\fi%
\end{wrapfigure}
\setcaptionmargincm{\captionlrmargin}%
Expand Down Expand Up @@ -2696,7 +2698,7 @@
\corevspacevarcm{\captionlessmarginimage}%
\else%
\corevspacevarcm{\captionmarginimage}%
\ifthenelse{\equal{\GLOBALcaptiondefn}{EMPTY-VAR}}{\caption{#6 #1}}{\caption[\GLOBALcaptiondefn]{#6 #1}}%
\ifthenelse{\equal{\GLOBALcaptiondefn}{\GLOBALemptyvar}}{\caption{#6 #1}}{\caption[\GLOBALcaptiondefn]{#6 #1}}%
\fi%
\end{wrapfigure}
\setcaptionmargincm{\captionlrmargin}%
Expand Down Expand Up @@ -2741,7 +2743,7 @@
\corevspacevarcm{\captionlessmarginimage}%
\else%
\corevspacevarcm{\captionmarginimage}%
\ifthenelse{\equal{\GLOBALcaptiondefn}{EMPTY-VAR}}{\caption{#5 #1}}{\caption[\GLOBALcaptiondefn]{#5 #1}}%
\ifthenelse{\equal{\GLOBALcaptiondefn}{\GLOBALemptyvar}}{\caption{#5 #1}}{\caption[\GLOBALcaptiondefn]{#5 #1}}%
\fi%
\end{wrapfigure}
\setcaptionmargincm{\captionlrmargin}%
Expand Down Expand Up @@ -2789,7 +2791,7 @@
\corevspacevarcm{\captionlessmarginimage}%
\else%
\corevspacevarcm{\captionmarginimage}%
\ifthenelse{\equal{\GLOBALcaptiondefn}{EMPTY-VAR}}{\caption{#6 #1}}{\caption[\GLOBALcaptiondefn]{#6 #1}}%
\ifthenelse{\equal{\GLOBALcaptiondefn}{\GLOBALemptyvar}}{\caption{#6 #1}}{\caption[\GLOBALcaptiondefn]{#6 #1}}%
\fi%
\end{wrapfigure}
\setcaptionmargincm{\captionlrmargin}%
Expand Down Expand Up @@ -2840,7 +2842,7 @@
\corevspacevarcm{\captionlessmarginimage}%
\else%
\corevspacevarcm{\captionmarginimage}%
\ifthenelse{\equal{\GLOBALcaptiondefn}{EMPTY-VAR}}{\caption{#6 #1}}{\caption[\GLOBALcaptiondefn]{#6 #1}}%
\ifthenelse{\equal{\GLOBALcaptiondefn}{\GLOBALemptyvar}}{\caption{#6 #1}}{\caption[\GLOBALcaptiondefn]{#6 #1}}%
\fi%
\end{wrapfigure}
\setcaptionmargincm{\captionlrmargin}%
Expand Down Expand Up @@ -2891,7 +2893,7 @@
\corevspacevarcm{\captionlessmarginimage}%
\else%
\corevspacevarcm{\captionmarginimage}%
\ifthenelse{\equal{\GLOBALcaptiondefn}{EMPTY-VAR}}{\caption{#7 #1}}{\caption[\GLOBALcaptiondefn]{#7 #1}}%
\ifthenelse{\equal{\GLOBALcaptiondefn}{\GLOBALemptyvar}}{\caption{#7 #1}}{\caption[\GLOBALcaptiondefn]{#7 #1}}%
\fi%
\end{wrapfigure}
\setcaptionmargincm{\captionlrmargin}%
Expand Down Expand Up @@ -2942,7 +2944,7 @@
\corevspacevarcm{\captionlessmarginimage}%
\else%
\corevspacevarcm{\captionmarginimage}%
\ifthenelse{\equal{\GLOBALcaptiondefn}{EMPTY-VAR}}{\caption{#6 #1}}{\caption[\GLOBALcaptiondefn]{#6 #1}}%
\ifthenelse{\equal{\GLOBALcaptiondefn}{\GLOBALemptyvar}}{\caption{#6 #1}}{\caption[\GLOBALcaptiondefn]{#6 #1}}%
\fi%
\end{wrapfigure}
\setcaptionmargincm{\captionlrmargin}%
Expand Down Expand Up @@ -2993,7 +2995,7 @@
\corevspacevarcm{\captionlessmarginimage}%
\else%
\corevspacevarcm{\captionmarginimage}%
\ifthenelse{\equal{\GLOBALcaptiondefn}{EMPTY-VAR}}{\caption{#7 #1}}{\caption[\GLOBALcaptiondefn]{#7 #1}}%
\ifthenelse{\equal{\GLOBALcaptiondefn}{\GLOBALemptyvar}}{\caption{#7 #1}}{\caption[\GLOBALcaptiondefn]{#7 #1}}%
\fi%
\end{wrapfigure}
\setcaptionmargincm{\captionlrmargin}%
Expand Down Expand Up @@ -5688,16 +5690,16 @@
Template.Author.Email={[email protected]},
Template.Author.Web={https://ppizarror.com},
Template.Author={Pablo Pizarro R.},
Template.Date={09/06/2022},
Template.Date={12/06/2022},
Template.Encoding={UTF-8},
Template.Latex.Compiler={pdflatex},
Template.License.Type={MIT},
Template.License.Web={https://opensource.org/licenses/MIT},
Template.Name={Template-Informe},
Template.Type={Normal},
Template.Version.Dev={8.1.5-1},
Template.Version.Hash={BDEB8353D2BD3FBF73A442CA63234F16},
Template.Version.Release={8.1.5},
Template.Version.Dev={8.1.6-1},
Template.Version.Hash={746454B6240EAFE9A41E0C56BAE2CEF9},
Template.Version.Release={8.1.6},
Template.Web.Dev={https://github.com/Template-Latex/Template-Informe},
Template.Web.Manual={https://latex.ppizarror.com/informe},
University.Department={\pdfmetainfouniversitydepartment},
Expand All @@ -5709,7 +5711,7 @@
pdfmenubar={\cfgpdfmenubar},
pdfpagelayout={\cfgpdflayout},
pdfpagemode={\cfgpdfpagemode},
pdfproducer={Template-Informe v8.1.5 | (Pablo Pizarro R.) ppizarror.com},
pdfproducer={Template-Informe v8.1.6 | (Pablo Pizarro R.) ppizarror.com},
pdfremotestartview={Fit},
pdfstartpage={1},
pdfstartview={\cfgpdfpageview},
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: Informe LaTeX
% Documento: Archivo principal
% Versión: 8.1.5 (09/06/2022)
% Versión: 8.1.6 (12/06/2022)
% Codificación: UTF-8
%
% Autor: Pablo Pizarro R.
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/image.tex
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
\ifthenelse{\equal{#5}{\GLOBALemptyvar}}{ % Sin label
\ifthenelse{\equal{\GLOBALimagelink}{\GLOBALemptyvar}}{ % Sin link
\raisebox{\GLOBALimagenextmarginv}{%
\fbox{\includegraphics[#3]{#2}}
\fbox{\includegraphics[#3]{#2}}%
}%
}{ % Con link
\raisebox{\GLOBALimagenextmarginv}{%
Expand Down
2 changes: 1 addition & 1 deletion src/etc/example.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% Template: Informe LaTeX
% Documento: Archivo de ejemplo
% Versión: 8.1.5 (09/06/2022)
% Versión: 8.1.6 (12/06/2022)
% Codificación: UTF-8
%
% Autor: Pablo Pizarro R.
Expand Down

0 comments on commit 289af7d

Please sign in to comment.