From 847c4f8f9daaef12e1a5c5e7592a7d510d14afc0 Mon Sep 17 00:00:00 2001 From: "Pablo Pizarro R." Date: Sat, 14 Dec 2024 00:08:06 -0300 Subject: [PATCH] =?UTF-8?q?Mejora=20entrada=20instituci=C3=B3n=20espaciado?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cv.tex | 3 +-- src/env.tex | 3 ++- src/function.tex | 8 ++++++-- template.tex | 19 ++++++++++++------- 4 files changed, 21 insertions(+), 12 deletions(-) diff --git a/cv.tex b/cv.tex index 49483a9..cfa9caa 100644 --- a/cv.tex +++ b/cv.tex @@ -1,6 +1,6 @@ % Template: Professional-CV % Advertencia: Archivo principal -% Versión: 4.1.0 (18/08/2024) +% Versión: 4.1.1 (14/12/2024) % Codificación: UTF-8 % % Autor: Pablo Pizarro R. @@ -36,7 +36,6 @@ % \addheaderspace{0.25cm} Agrega un espacio horizontal \addheadermail{\email} \addheadertext{\phonenumber} -\addheadertext{RUT: 12.345.678-9} \addheaderlink{https://johndoe.com} \addheaderlink[linkedin]{https://linkedin.com/john.doe} % latex.ppizarror.com/icons \addheaderlink[github]{https://github.com/ppizarror} diff --git a/src/env.tex b/src/env.tex index bfc703a..685f593 100644 --- a/src/env.tex +++ b/src/env.tex @@ -1,6 +1,6 @@ % Template: Professional-CV % Documento: Definición de entornos -% Versión: 4.1.0 (18/08/2024) +% Versión: 4.1.1 (14/12/2024) % Codificación: UTF-8 % % Autor: Pablo Pizarro R. @@ -281,6 +281,7 @@ }{% \vspace{0.25\baselineskip}% \global\def\GLOBALinstitutionenabled {false}% + \setcounter{institutionentrycount}{0}% \nopagebreak[4]% } diff --git a/src/function.tex b/src/function.tex index ba99fea..bd4a2ac 100644 --- a/src/function.tex +++ b/src/function.tex @@ -1,6 +1,6 @@ % Template: Professional-CV % Documento: Funciones utilitarias -% Versión: 4.1.0 (18/08/2024) +% Versión: 4.1.1 (14/12/2024) % Codificación: UTF-8 % % Autor: Pablo Pizarro R. @@ -14,6 +14,7 @@ \global\def\GLOBALheaderlineitem {false} \global\def\GLOBALheaderseparatorsticky {false} \global\def\GLOBALprintspacefilled {false} +\newcounter{institutionentrycount} % Ignora linebreaks \def\ignorelinebreaks{% @@ -471,7 +472,10 @@ \throwwarning{Funciones \noexpand\newinstitutionentry, \noexpand\institutionentry o \noexpand\institutionentrynodate no pueden usarse fuera del entorno \noexpand\institution}\stop% }% \emptyvarerr{\newinstitutionentry}{#1}{Cargo o posición no definido}% - \nopagebreak[4]% + \stepcounter{institutionentrycount}% + \ifnum\value{institutionentrycount}=1% + \nopagebreak[4]% + \fi% \begin{institutionindent}% \def\LOCALinstitutionentrydate {% \ifthenelse{\equal{#2}{}}{% diff --git a/template.tex b/template.tex index 042594c..7448feb 100644 --- a/template.tex +++ b/template.tex @@ -1,6 +1,6 @@ % Template: Professional-CV % Documento: Núcleo del template -% Versión: 4.1.0 (18/08/2024) +% Versión: 4.1.1 (14/12/2024) % Codificación: UTF-8 % % Autor: Pablo Pizarro R. @@ -734,6 +734,7 @@ \global\def\GLOBALheaderlineitem {false} \global\def\GLOBALheaderseparatorsticky {false} \global\def\GLOBALprintspacefilled {false} +\newcounter{institutionentrycount} % Ignora linebreaks \def\ignorelinebreaks{% @@ -1191,7 +1192,10 @@ \throwwarning{Funciones \noexpand\newinstitutionentry, \noexpand\institutionentry o \noexpand\institutionentrynodate no pueden usarse fuera del entorno \noexpand\institution}\stop% }% \emptyvarerr{\newinstitutionentry}{#1}{Cargo o posición no definido}% - \nopagebreak[4]% + \stepcounter{institutionentrycount}% + \ifnum\value{institutionentrycount}=1% + \nopagebreak[4]% + \fi% \begin{institutionindent}% \def\LOCALinstitutionentrydate {% \ifthenelse{\equal{#2}{}}{% @@ -1625,6 +1629,7 @@ }{% \vspace{0.25\baselineskip}% \global\def\GLOBALinstitutionenabled {false}% + \setcounter{institutionentrycount}{0}% \nopagebreak[4]% } @@ -1765,15 +1770,15 @@ Template.Author.Email={pablo@ppizarror.com}, Template.Author.Name={Pablo Pizarro R.}, Template.Author.Web={https://ppizarror.com/}, - Template.Date={18/08/2024}, + Template.Date={14/12/2024}, Template.Encoding={UTF-8}, Template.License.Type={MIT}, Template.License.Web={https://opensource.org/licenses/MIT/}, Template.Name={Professional-CV}, Template.Type={Normal}, - Template.Version.Dev={4.1.0-6}, - Template.Version.Hash={158D004E556F2B714EA84B144B259324}, - Template.Version.Release={4.1.0}, + Template.Version.Dev={4.1.1}, + Template.Version.Hash={7302B7C24BC65A3AE80B2D44E3B099FC}, + Template.Version.Release={4.1.1}, Template.Web.Dev={https://github.com/Template-Latex/Professional-CV/}, Template.Web.Manual={https://latex.ppizarror.com/Professional-CV/} }, @@ -1781,7 +1786,7 @@ pdfmenubar={\cfgpdfmenubar}, pdfpagelayout={\cfgpdfpagemode}, pdfpagemode={\cdfpagemodepdf}, - pdfproducer={Professional-CV v4.1.0 | (Pablo Pizarro R.) ppizarror.com}, + pdfproducer={Professional-CV v4.1.1 | (Pablo Pizarro R.) ppizarror.com}, pdfremotestartview={Fit}, pdfstartpage={1}, pdfstartview={\cfgpdfpageview},