diff --git a/src/cfg/init.tex b/src/cfg/init.tex index ae44cac..7ff3bac 100644 --- a/src/cfg/init.tex +++ b/src/cfg/init.tex @@ -87,8 +87,8 @@ Template.Licencia.Web={https://opensource.org/licenses/MIT}, Template.Nombre={Template-Presentacion}, Template.Tipo={Normal}, - Template.Version.Dev={1.1.0-4-PRES}, - Template.Version.Hash={D798CE91D4B3709896957F12B45032E9}, + Template.Version.Dev={1.1.0-5-PRES}, + Template.Version.Hash={B13114C17068077356913681BA57EDC1}, Template.Version.Release={1.1.0}, Template.Web.Dev={https://github.com/Template-Latex/Template-Presentacion}, Template.Web.Manual={https://latex.ppizarror.com/presentacion}, @@ -241,6 +241,45 @@ }{ \throwbadconfig{Estilo citas desconocido}{\stylecitereferences}{bibtex,custom}} } +\patchcmd{\appendices}{\quad}{\sectionappendixlastchar\quad}{}{} +\makeatletter + \def\ifGm@preamble#1{\@firstofone} + \appto\restoregeometry{ + \pdfpagewidth=\paperwidth + \pdfpageheight=\paperheight} + \apptocmd\newgeometry{ + \pdfpagewidth=\paperwidth + \pdfpageheight=\paperheight}{}{} +\makeatother +\hfuzz=200pt +\vfuzz=200pt +\hbadness=\maxdimen +\vbadness=\maxdimen +\makeatletter +\def\Hv@scale{.95} +\makeatother +\makeatletter +\preto\tabular{\global\rownum=\z@} +\preto\tabularx{\global\rownum=\z@} +\makeatother +\strictpagecheck +\ttfamily \hyphenchar\the\font=`\- +\makeatletter +\g@addto@macro{\UrlBreaks}{\UrlOrds} +\makeatother +\urlstyle{\fonturl} +\ifthenelse{\equal{\compilertype}{pdf2latex}}{ + \pdfcompresslevel=\pdfcompilecompression + \pdfdecimaldigits=2 + \pdfinclusionerrorlevel=0 + \pdfobjcompresslevel=\pdfcompileobjcompression +}{ +\ifthenelse{\equal{\compilertype}{xelatex}}{ +}{ +\ifthenelse{\equal{\compilertype}{lualatex}}{ +}{ + \throwbadconfig{Compilador desconocido}{\compilertype}{pdf2latex,xelatex,lualatex}}} +} \setcounter{secnumdepth}{4} \newcounter{subsubsubsection}[subsubsection] \ifthenelse{\equal{\showdotaftersnum}{true}}{ diff --git a/src/config.tex b/src/config.tex index 197c7a5..0c06151 100644 --- a/src/config.tex +++ b/src/config.tex @@ -143,6 +143,8 @@ \def\cfgpdftoolbar {true} % Muestra barra de herramientas lector pdf \def\cfgshowbookmarkmenu {false} % Muestra menú marcadores al abrir el pdf \def\indexdepth {4} % Profundidad de los marcadores +\def\pdfcompilecompression {9} % Factor de compresión del pdf (0-9) +\def\pdfcompileobjcompression {2} % Nivel compresión objetos del pdf (0-3) \def\usepdfmetadata {true} % Añade metadatos al pdf compilado % NOMBRE DE OBJETOS diff --git a/template.tex b/template.tex index 276f90a..0539248 100644 --- a/template.tex +++ b/template.tex @@ -3953,8 +3953,8 @@ Template.Licencia.Web={https://opensource.org/licenses/MIT}, Template.Nombre={Template-Presentacion}, Template.Tipo={Normal}, - Template.Version.Dev={1.1.0-4-PRES}, - Template.Version.Hash={D798CE91D4B3709896957F12B45032E9}, + Template.Version.Dev={1.1.0-5-PRES}, + Template.Version.Hash={B13114C17068077356913681BA57EDC1}, Template.Version.Release={1.1.0}, Template.Web.Dev={https://github.com/Template-Latex/Template-Presentacion}, Template.Web.Manual={https://latex.ppizarror.com/presentacion}, @@ -4157,6 +4157,91 @@ \throwbadconfig{Estilo citas desconocido}{\stylecitereferences}{bibtex,custom}} } +% ----------------------------------------------------------------------------- +% Configuración anexo +% ----------------------------------------------------------------------------- +\patchcmd{\appendices}{\quad}{\sectionappendixlastchar\quad}{}{} + +% ----------------------------------------------------------------------------- +% Reconfiguración de tamaño de páginas +% ----------------------------------------------------------------------------- +\makeatletter + \def\ifGm@preamble#1{\@firstofone} + \appto\restoregeometry{ + \pdfpagewidth=\paperwidth + \pdfpageheight=\paperheight} + \apptocmd\newgeometry{ + \pdfpagewidth=\paperwidth + \pdfpageheight=\paperheight}{}{} +\makeatother + +% ----------------------------------------------------------------------------- +% Configuración de hbox y vbox +% ----------------------------------------------------------------------------- +\hfuzz=200pt +\vfuzz=200pt +\hbadness=\maxdimen +\vbadness=\maxdimen + +% ----------------------------------------------------------------------------- +% Configura las fuentes +% ----------------------------------------------------------------------------- +\makeatletter +\def\Hv@scale{.95} +\makeatother + +% ----------------------------------------------------------------------------- +% Configuraciones de las tablas +% ----------------------------------------------------------------------------- + +% Reinicia el número de cada fila en todas las tablas +\makeatletter +\preto\tabular{\global\rownum=\z@} +\preto\tabularx{\global\rownum=\z@} +\makeatother + +% ----------------------------------------------------------------------------- +% Se activa el modo estricto de revisión de números de página +% ----------------------------------------------------------------------------- +\strictpagecheck + +% ----------------------------------------------------------------------------- +% Se activa el word-wrap para textos con \texttt{} +% ----------------------------------------------------------------------------- +\ttfamily \hyphenchar\the\font=`\- +\makeatletter +\g@addto@macro{\UrlBreaks}{\UrlOrds} % Word-wrap para las \url +\makeatother + +% ----------------------------------------------------------------------------- +% Se define el tipo de texto de los url +% ----------------------------------------------------------------------------- +\urlstyle{\fonturl} + +% ----------------------------------------------------------------------------- +% Configuraciones del motor de compilación +% ----------------------------------------------------------------------------- +\ifthenelse{\equal{\compilertype}{pdf2latex}}{ + % Nivel de compresión + \pdfcompresslevel=\pdfcompilecompression + + % El óptimo es 2, según + % http://texdoc.net/texmf-dist/doc/pdftex/manual/pdftex-a.pdf p.20 + \pdfdecimaldigits=2 + + % Inclusión de PDF + \pdfinclusionerrorlevel=0 + + % Compresión de objetos + \pdfobjcompresslevel=\pdfcompileobjcompression +}{ +\ifthenelse{\equal{\compilertype}{xelatex}}{ +}{ +\ifthenelse{\equal{\compilertype}{lualatex}}{ +}{ + \throwbadconfig{Compilador desconocido}{\compilertype}{pdf2latex,xelatex,lualatex}}} +} + % ----------------------------------------------------------------------------- % Profundidad de las secciones % ----------------------------------------------------------------------------- diff --git a/template_config.tex b/template_config.tex index 197c7a5..0c06151 100644 --- a/template_config.tex +++ b/template_config.tex @@ -143,6 +143,8 @@ \def\cfgpdftoolbar {true} % Muestra barra de herramientas lector pdf \def\cfgshowbookmarkmenu {false} % Muestra menú marcadores al abrir el pdf \def\indexdepth {4} % Profundidad de los marcadores +\def\pdfcompilecompression {9} % Factor de compresión del pdf (0-9) +\def\pdfcompileobjcompression {2} % Nivel compresión objetos del pdf (0-3) \def\usepdfmetadata {true} % Añade metadatos al pdf compilado % NOMBRE DE OBJETOS