Skip to content

Commit

Permalink
Version 1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ppizarror committed Nov 26, 2021
1 parent 9e89213 commit 89b1e06
Show file tree
Hide file tree
Showing 24 changed files with 300 additions and 72 deletions.
2 changes: 1 addition & 1 deletion example.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% Template: Artículo LaTeX
% Documento: Archivo de ejemplo
% Versión: 1.0.3 (23/11/2021)
% Versión: 1.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: Artículo LaTeX
% Documento: Archivo principal
% Versión: 1.0.3 (23/11/2021)
% Versión: 1.0.4 (26/11/2021)
% Codificación: UTF-8
%
% Autor: Pablo Pizarro R.
Expand Down
2 changes: 1 addition & 1 deletion src/cfg/final.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% Template: Artículo LaTeX
% Documento: Configuraciones finales
% Versión: 1.0.3 (23/11/2021)
% Versión: 1.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: Artículo LaTeX
% Documento: Configuración inicial del template
% Versión: 1.0.3 (23/11/2021)
% Versión: 1.0.4 (26/11/2021)
% Codificación: UTF-8
%
% Autor: Pablo Pizarro R.
Expand Down Expand Up @@ -65,24 +65,24 @@
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-Articulo},
Template.Type={Normal},
Template.Version.Dev={1.0.3-ARTC},
Template.Version.Hash={2676B03247B872C1582C869C896B8005},
Template.Version.Release={1.0.3},
Template.Version.Dev={1.0.4-ARTC},
Template.Version.Hash={BCA565638623A35E91D525F9101107B8},
Template.Version.Release={1.0.4},
Template.Web.Dev={https://github.com/Template-Latex/Template-Articulo},
Template.Web.Manual={https://latex.ppizarror.com/articulo},
},
pdfkeywords={\cfgpdfkeywords},
pdfmenubar={\cfgpdfmenubar},
pdfpagelayout={\cfgpdflayout},
pdfpagemode={\cfgpdfpagemode},
pdfproducer={Template-Articulo v1.0.3 | (Pablo Pizarro R.) ppizarror.com},
pdfproducer={Template-Articulo v1.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: Artículo LaTeX
% Documento: Configuración de página
% Versión: 1.0.3 (23/11/2021)
% Versión: 1.0.4 (26/11/2021)
% Codificación: UTF-8
%
% Autor: Pablo Pizarro R.
Expand Down Expand Up @@ -69,17 +69,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: Artículo LaTeX
% Documento: Caracteres Unicode
% Versión: 1.0.3 (23/11/2021)
% Versión: 1.0.4 (26/11/2021)
% Codificación: UTF-8
%
% Autor: Pablo Pizarro R.
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/articulo.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% Template: Artículo LaTeX
% Documento: Funciones exclusivas de Template-Articulo
% Versión: 1.0.3 (23/11/2021)
% Versión: 1.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: Artículo LaTeX
% Documento: Funciones para crear columnas con contenido
% Versión: 1.0.3 (23/11/2021)
% Versión: 1.0.4 (26/11/2021)
% Codificación: UTF-8
%
% Autor: Pablo Pizarro R.
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: Artículo LaTeX
% Documento: Funciones del núcleo del template
% Versión: 1.0.3 (23/11/2021)
% Versión: 1.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: Artículo LaTeX
% Documento: Funciones para insertar ecuaciones
% Versión: 1.0.3 (23/11/2021)
% Versión: 1.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: Artículo LaTeX
% Documento: Funciones para insertar imágenes
% Versión: 1.0.3 (23/11/2021)
% Versión: 1.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: Artículo LaTeX
% Documento: Funciones matemáticas
% Versión: 1.0.3 (23/11/2021)
% Versión: 1.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: Artículo LaTeX
% Documento: Funciones para insertar elementos
% Versión: 1.0.3 (23/11/2021)
% Versión: 1.0.4 (26/11/2021)
% Codificación: UTF-8
%
% Autor: Pablo Pizarro R.
Expand Down
Loading

0 comments on commit 89b1e06

Please sign in to comment.