|
1 | 1 | % Template: Template Controles LaTeX |
2 | 2 | % Documento: Configuración inicial del template |
3 | | -% Versión: 2.0.0 (23/04/2018) |
| 3 | +% Versión: 2.0.1 (24/04/2018) |
4 | 4 | % Codificación: UTF-8 |
5 | 5 | % |
6 | 6 | % Autor: Pablo Pizarro R. @ppizarror |
|
11 | 11 | % Sitio web: [http://latex.ppizarror.com/Template-Controles/] |
12 | 12 | % Licencia MIT: [https://opensource.org/licenses/MIT] |
13 | 13 |
|
14 | | -\checkvardefined{\tituloevaluacion}\checkvardefined{\autordeldocumento}\checkvardefined{\nombredelcurso}\checkvardefined{\codigodelcurso}\checkvardefined{\nombreuniversidad}\checkvardefined{\nombrefacultad}\checkvardefined{\departamentouniversidad}\checkvardefined{\localizacionuniversidad}\makeatletter\g@addto@macro\tituloevaluacion\xspace\g@addto@macro\autordeldocumento\xspace\g@addto@macro\nombredelcurso\xspace\g@addto@macro\codigodelcurso\xspace\g@addto@macro\nombreuniversidad\xspace\g@addto@macro\nombrefacultad\xspace\g@addto@macro\departamentouniversidad\xspace\g@addto@macro\localizacionuniversidad\xspace\makeatother\ifthenelse{\isundefined{\equipodocente}}{\errmessage{LaTeX Warning: Se borro la variable \noexpand\equipodocente, creando una vacia}\def\equipodocente {}}\ifthenelse{\isundefined{\indicacionevaluacion}}{ |
| 14 | +\checkvardefined{\tituloevaluacion} |
| 15 | +\checkvardefined{\autordeldocumento} |
| 16 | +\checkvardefined{\nombredelcurso} |
| 17 | +\checkvardefined{\codigodelcurso} |
| 18 | +\checkvardefined{\nombreuniversidad} |
| 19 | +\checkvardefined{\nombrefacultad} |
| 20 | +\checkvardefined{\departamentouniversidad} |
| 21 | +\checkvardefined{\localizacionuniversidad} |
| 22 | +\makeatletter |
| 23 | + \g@addto@macro\tituloevaluacion\xspace |
| 24 | + \g@addto@macro\autordeldocumento\xspace |
| 25 | + \g@addto@macro\nombredelcurso\xspace |
| 26 | + \g@addto@macro\codigodelcurso\xspace |
| 27 | + \g@addto@macro\nombreuniversidad\xspace |
| 28 | + \g@addto@macro\nombrefacultad\xspace |
| 29 | + \g@addto@macro\departamentouniversidad\xspace |
| 30 | + \g@addto@macro\localizacionuniversidad\xspace |
| 31 | +\makeatother |
| 32 | +\ifthenelse{\isundefined{\equipodocente}}{ |
| 33 | + \errmessage{LaTeX Warning: Se borro la variable \noexpand\equipodocente, creando una vacia} |
| 34 | + \def\equipodocente {} |
| 35 | +} |
| 36 | +\ifthenelse{\isundefined{\indicacionevaluacion}}{ |
15 | 37 | \def\indicacionevaluacion {} |
16 | | -}{}\ifthenelse{\equal{\cfgpdfsecnumbookmarks}{true}}{\bookmarksetup{numbered}}{}\ifthenelse{\equal{\cfgshowbookmarkmenu}{true}}{\def\cdfpagemodepdf {UseOutlines}}{\def\cdfpagemodepdf {UseNone}}\hypersetup{bookmarksopen={\cfgpdfbookmarkopen},bookmarksopenlevel={\cfgbookmarksopenlevel},bookmarkstype={toc},pdfauthor={\autordeldocumento},pdfcenterwindow={\cfgpdfcenterwindow},pdfcopyright={\cfgpdfcopyright},pdfcreator={LaTeX},pdfdisplaydoctitle={\cfgpdfdisplaydoctitle},pdffitwindow={\cfgpdffitwindow},pdfinfo={Curso.Codigo={\codigodelcurso},Curso.Nombre={\nombredelcurso},Documento.Autor={\autordeldocumento},Documento.Titulo={\tituloevaluacion},Template.Autor.Alias={ppizarror},Template.Autor.Email={ [email protected]},Template.Autor.Nombre={Pablo Pizarro R.},Template.Autor.Web={http://ppizarror.com/},Template.Codificacion={UTF-8},Template.Fecha={23/04/2018},Template.Licencia.Tipo={MIT},Template.Licencia.Web={https://opensource.org/licenses/MIT/},Template.Nombre={Template-Controles},Template.Tipo={Normal},Template.Version.Dev={2.0.0-CTR/EXM-N},Template.Version.Hash={6F310E63D8AC92F719FF5E0AA52B772F},Template.Version.Release={2.0.0},Template.Web.Dev={https://github.com/Template-Latex/Template-Controles/},Template.Web.Manual={http://latex.ppizarror.com/Template-Controles/},Universidad.Departamento={\departamentouniversidad},Universidad.Nombre={\nombreuniversidad},Universidad.Ubicacion={\localizacionuniversidad}},pdfkeywords={\nombreuniversidad, \codigodelcurso \nombredelcurso, \localizacionuniversidad},pdflang={\documentlang},pdfmenubar={\cfgpdfmenubar},pdfpagelayout={\cfgpdfpagemode},pdfpagemode={\cdfpagemodepdf},pdfproducer={Template-Controles v2.0.0 | (Pablo Pizarro R.) ppizarror.com},pdfremotestartview={Fit},pdfstartpage={1},pdfstartview={\cfgpdfpageview},pdfsubject={\tituloevaluacion},pdftitle={\tituloevaluacion},pdftoolbar={\cfgpdftoolbar},pdfview={\cfgpdfpageview}}\graphicspath{{./\defaultimagefolder}}\newcounter{templatepagecounter}\renewcommand{\baselinestretch}{\defaultinterline}\setlength{\headheight}{64 pt}\setcounter{MaxMatrixCols}{20}\setlength{\footnotemargin}{4 mm}\setlength{\columnsep}{\columnsepwidth em}\ifthenelse{\equal{\showlinenumbers}{true}}{\setlength{\linenumbersep}{0.22cm}\renewcommand\linenumberfont{\normalfont\tiny\color{\linenumbercolor}}}{}\floatplacement{figure}{\imagedefaultplacement}\floatplacement{table}{\tabledefaultplacement}\floatplacement{tikz}{\tikzdefaultplacement}\color{\maintextcolor}\arrayrulecolor{\tablelinecolor}\sethlcolor{\highlightcolor}\ifthenelse{\equal{\showborderonlinks}{true}}{\hypersetup{citebordercolor=\numcitecolor,linkbordercolor=\linkcolor,urlbordercolor=\urlcolor}}{\hypersetup{hidelinks,colorlinks=true,citecolor=\numcitecolor,linkcolor=\linkcolor,urlcolor=\urlcolor}}\ifthenelse{\equal{\colorpage}{white}}{}{\pagecolor{\colorpage}}\setcaptionmargincm{\captionlrmargin}\ifthenelse{\equal{\captiontextbold}{true}}{\renewcommand{\captiontextbold}{bf}}{\renewcommand{\captiontextbold}{}}\captionsetup{labelfont={color=\captioncolor, \captiontextbold},textfont={color=\captiontextcolor},singlelinecheck=on}\floatsetup[figure]{captionskip=\captiontbmarginfigure pt}\floatsetup[table]{captionskip=\captiontbmargintable pt}\ifthenelse{\equal{\figurecaptiontop}{true}}{\floatsetup[figure]{position=above}}{}\ifthenelse{\equal{\tablecaptiontop}{true}}{\floatsetup[table]{position=top}}{\floatsetup[table]{position=bottom}}\ifthenelse{\equal{\captionalignment}{justified}}{\captionsetup{justification=justified,format=plain}}{\ifthenelse{\equal{\captionalignment}{centered}}{\captionsetup{justification=centering}}{\ifthenelse{\equal{\captionalignment}{left}}{\captionsetup{justification=raggedright,singlelinecheck=false}}{\ifthenelse{\equal{\captionalignment}{right}}{\captionsetup{justification=raggedleft,singlelinecheck=false}}{\throwbadconfig{Posicion de leyendas desconocida}{\captionalignment}{justified,centered,left,right}}}}}\ifthenelse{\equal{\stylecitereferences}{natbib}}{\bibliographystyle{apa}\setlength{\bibsep}{\natbibrefsep pt}}{\ifthenelse{\equal{\stylecitereferences}{apacite}}{\bibliographystyle{apacite}\setlength{\bibitemsep}{\apaciterefsep pt}}{\ifthenelse{\equal{\stylecitereferences}{bibtex}}{\bibliographystyle{apa}\newlength{\bibitemsep}\setlength{\bibitemsep}{.2\baselineskip plus .05\baselineskip minus .05\baselineskip}\newlength{\bibparskip}\setlength{\bibparskip}{0pt}\let\oldthebibliography\thebibliography\renewcommand\thebibliography[1]{\oldthebibliography{#1}\setlength{\parskip}{\bibitemsep}\setlength{\itemsep}{\bibparskip}}\setlength{\bibitemsep}{\bibtexrefsep pt}}{\throwbadconfig{Estilo citas desconocido}{\stylecitereferences}{bibtex,apacite,natbib}}}}\makeatletter\ifthenelse{\equal{\twocolumnreferences}{true}}{\renewenvironment{thebibliography}[1]{\begin{multicols}{2}[\section*{\refname}]\@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}\list{\@biblabel{\@arabic\c@enumiv}}{\settowidth\labelwidth{\@biblabel{#1}}\leftmargin\labelwidth\advance\leftmargin\labelsep\@openbib@code\usecounter{enumiv}\let\p@enumiv\@empty\renewcommand\theenumiv{\@arabic\c@enumiv}}\sloppy\clubpenalty 4000\@clubpenalty \clubpenalty\widowpenalty 4000\sfcode`\.\@m}{\def\@noitemerr{\@latex@warning{Ambiente `thebibliography' no definido}}\endlist\end{multicols}}}{}\makeatother\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\strictpagecheck\titlespacing{\section}{0pt}{20pt}{10pt}\titlespacing{\subsection}{0pt}{15pt}{10pt}\ttfamily \hyphenchar\the\font=`\-\urlstyle{tt}\pdfminorversion=\pdfcompileversion\setcounter{tocdepth}{1} |
| 38 | +}{} |
| 39 | + |
| 40 | +\ifthenelse{\equal{\cfgpdfsecnumbookmarks}{true}}{ |
| 41 | + \bookmarksetup{numbered}}{ |
| 42 | +} |
| 43 | +\ifthenelse{\equal{\cfgshowbookmarkmenu}{true}}{ |
| 44 | + \def\cdfpagemodepdf {UseOutlines} |
| 45 | + }{ |
| 46 | + \def\cdfpagemodepdf {UseNone} |
| 47 | +} |
| 48 | +\hypersetup{ |
| 49 | + bookmarksopen={\cfgpdfbookmarkopen}, |
| 50 | + bookmarksopenlevel={\cfgbookmarksopenlevel}, |
| 51 | + bookmarkstype={toc}, |
| 52 | + pdfauthor={\autordeldocumento}, |
| 53 | + pdfcenterwindow={\cfgpdfcenterwindow}, |
| 54 | + pdfcopyright={\cfgpdfcopyright}, |
| 55 | + pdfcreator={LaTeX}, |
| 56 | + pdfdisplaydoctitle={\cfgpdfdisplaydoctitle}, |
| 57 | + pdffitwindow={\cfgpdffitwindow}, |
| 58 | + pdfinfo={ |
| 59 | + Curso.Codigo={\codigodelcurso}, |
| 60 | + Curso.Nombre={\nombredelcurso}, |
| 61 | + Documento.Autor={\autordeldocumento}, |
| 62 | + Documento.Titulo={\tituloevaluacion}, |
| 63 | + Template.Autor.Alias={ppizarror}, |
| 64 | + Template.Autor.Email={ [email protected]}, |
| 65 | + Template.Autor.Nombre={Pablo Pizarro R.}, |
| 66 | + Template.Autor.Web={http://ppizarror.com/}, |
| 67 | + Template.Codificacion={UTF-8}, |
| 68 | + Template.Fecha={24/04/2018}, |
| 69 | + Template.Licencia.Tipo={MIT}, |
| 70 | + Template.Licencia.Web={https://opensource.org/licenses/MIT/}, |
| 71 | + Template.Nombre={Template-Controles}, |
| 72 | + Template.Tipo={Normal}, |
| 73 | + Template.Version.Dev={2.0.1-CTR/EXM-N}, |
| 74 | + Template.Version.Hash={017DDB945ECCC1647EB7CC9627742537}, |
| 75 | + Template.Version.Release={2.0.1}, |
| 76 | + Template.Web.Dev={https://github.com/Template-Latex/Template-Controles/}, |
| 77 | + Template.Web.Manual={http://latex.ppizarror.com/Template-Controles/}, |
| 78 | + Universidad.Departamento={\departamentouniversidad}, |
| 79 | + Universidad.Nombre={\nombreuniversidad}, |
| 80 | + Universidad.Ubicacion={\localizacionuniversidad} |
| 81 | + }, |
| 82 | + pdfkeywords={\nombreuniversidad, \codigodelcurso \nombredelcurso, \localizacionuniversidad}, |
| 83 | + pdflang={\documentlang}, |
| 84 | + pdfmenubar={\cfgpdfmenubar}, |
| 85 | + pdfpagelayout={\cfgpdfpagemode}, |
| 86 | + pdfpagemode={\cdfpagemodepdf}, |
| 87 | + pdfproducer={Template-Controles v2.0.1 | (Pablo Pizarro R.) ppizarror.com}, |
| 88 | + pdfremotestartview={Fit}, |
| 89 | + pdfstartpage={1}, |
| 90 | + pdfstartview={\cfgpdfpageview}, |
| 91 | + pdfsubject={\tituloevaluacion}, |
| 92 | + pdftitle={\tituloevaluacion}, |
| 93 | + pdftoolbar={\cfgpdftoolbar}, |
| 94 | + pdfview={\cfgpdfpageview} |
| 95 | +} |
| 96 | +\graphicspath{{./\defaultimagefolder}} |
| 97 | +\newcounter{templatepagecounter} |
| 98 | +\renewcommand{\baselinestretch}{\defaultinterline} |
| 99 | +\setlength{\headheight}{64 pt} |
| 100 | +\setcounter{MaxMatrixCols}{20} |
| 101 | +\setlength{\footnotemargin}{4 mm} |
| 102 | +\setlength{\columnsep}{\columnsepwidth em} |
| 103 | +\ifthenelse{\equal{\showlinenumbers}{true}}{ |
| 104 | + \setlength{\linenumbersep}{0.22cm} |
| 105 | + \renewcommand\linenumberfont{\normalfont\tiny\color{\linenumbercolor}} |
| 106 | + }{ |
| 107 | +} |
| 108 | +\floatplacement{figure}{\imagedefaultplacement} |
| 109 | +\floatplacement{table}{\tabledefaultplacement} |
| 110 | +\floatplacement{tikz}{\tikzdefaultplacement} |
| 111 | +\color{\maintextcolor} |
| 112 | +\arrayrulecolor{\tablelinecolor} |
| 113 | +\sethlcolor{\highlightcolor} |
| 114 | +\ifthenelse{\equal{\showborderonlinks}{true}}{ |
| 115 | + \hypersetup{ |
| 116 | + citebordercolor=\numcitecolor, |
| 117 | + linkbordercolor=\linkcolor, |
| 118 | + urlbordercolor=\urlcolor |
| 119 | + } |
| 120 | +}{ |
| 121 | + \hypersetup{ |
| 122 | + hidelinks, |
| 123 | + colorlinks=true, |
| 124 | + citecolor=\numcitecolor, |
| 125 | + linkcolor=\linkcolor, |
| 126 | + urlcolor=\urlcolor |
| 127 | + } |
| 128 | +} |
| 129 | +\ifthenelse{\equal{\colorpage}{white}}{}{ |
| 130 | + \pagecolor{\colorpage} |
| 131 | +} |
| 132 | +\setcaptionmargincm{\captionlrmargin} |
| 133 | +\ifthenelse{\equal{\captiontextbold}{true}}{ |
| 134 | + \renewcommand{\captiontextbold}{bf}}{ |
| 135 | + \renewcommand{\captiontextbold}{} |
| 136 | +} |
| 137 | +\captionsetup{ |
| 138 | + labelfont={color=\captioncolor, \captiontextbold}, |
| 139 | + textfont={color=\captiontextcolor}, |
| 140 | + singlelinecheck=on |
| 141 | +} |
| 142 | +\floatsetup[figure]{ |
| 143 | + captionskip=\captiontbmarginfigure pt |
| 144 | +} |
| 145 | +\floatsetup[table]{ |
| 146 | + captionskip=\captiontbmargintable pt |
| 147 | +} |
| 148 | +\ifthenelse{\equal{\figurecaptiontop}{true}}{ |
| 149 | + \floatsetup[figure]{position=above}}{ |
| 150 | +} |
| 151 | +\ifthenelse{\equal{\tablecaptiontop}{true}}{ |
| 152 | + \floatsetup[table]{position=top} |
| 153 | + }{ |
| 154 | + \floatsetup[table]{position=bottom} |
| 155 | +} |
| 156 | +\ifthenelse{\equal{\captionalignment}{justified}}{ |
| 157 | + \captionsetup{ |
| 158 | + justification=justified, |
| 159 | + format=plain |
| 160 | + } |
| 161 | +}{ |
| 162 | +\ifthenelse{\equal{\captionalignment}{centered}}{ |
| 163 | + \captionsetup{ |
| 164 | + justification=centering |
| 165 | + } |
| 166 | +}{ |
| 167 | +\ifthenelse{\equal{\captionalignment}{left}}{ |
| 168 | + \captionsetup{ |
| 169 | + justification=raggedright, |
| 170 | + singlelinecheck=false |
| 171 | + } |
| 172 | +}{ |
| 173 | +\ifthenelse{\equal{\captionalignment}{right}}{ |
| 174 | + \captionsetup{ |
| 175 | + justification=raggedleft, |
| 176 | + singlelinecheck=false |
| 177 | + } |
| 178 | +}{ |
| 179 | + \throwbadconfig{Posicion de leyendas desconocida}{\captionalignment}{justified,centered,left,right}}}} |
| 180 | +} |
| 181 | +\ifthenelse{\equal{\stylecitereferences}{natbib}}{ |
| 182 | + \bibliographystyle{apa} |
| 183 | + \setlength{\bibsep}{\natbibrefsep pt} |
| 184 | +}{ |
| 185 | +\ifthenelse{\equal{\stylecitereferences}{apacite}}{ |
| 186 | + \bibliographystyle{apacite} |
| 187 | + \setlength{\bibitemsep}{\apaciterefsep pt} |
| 188 | +}{ |
| 189 | +\ifthenelse{\equal{\stylecitereferences}{bibtex}}{ |
| 190 | + \bibliographystyle{apa} |
| 191 | + \newlength{\bibitemsep} |
| 192 | + \setlength{\bibitemsep}{.2\baselineskip plus .05\baselineskip minus .05\baselineskip} |
| 193 | + \newlength{\bibparskip}\setlength{\bibparskip}{0pt} |
| 194 | + \let\oldthebibliography\thebibliography |
| 195 | + \renewcommand\thebibliography[1]{ |
| 196 | + \oldthebibliography{#1} |
| 197 | + \setlength{\parskip}{\bibitemsep} |
| 198 | + \setlength{\itemsep}{\bibparskip} |
| 199 | + } |
| 200 | + \setlength{\bibitemsep}{\bibtexrefsep pt} |
| 201 | +}{ |
| 202 | + \throwbadconfig{Estilo citas desconocido}{\stylecitereferences}{bibtex,apacite,natbib}}} |
| 203 | +} |
| 204 | +\makeatletter |
| 205 | +\ifthenelse{\equal{\twocolumnreferences}{true}}{ |
| 206 | + \renewenvironment{thebibliography}[1] |
| 207 | + {\begin{multicols}{2}[\section*{\refname}] |
| 208 | + \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname} |
| 209 | + \list{\@biblabel{\@arabic\c@enumiv}} |
| 210 | + {\settowidth\labelwidth{\@biblabel{#1}} |
| 211 | + \leftmargin\labelwidth |
| 212 | + \advance\leftmargin\labelsep |
| 213 | + \@openbib@code |
| 214 | + \usecounter{enumiv} |
| 215 | + \let\p@enumiv\@empty |
| 216 | + \renewcommand\theenumiv{\@arabic\c@enumiv}} |
| 217 | + \sloppy |
| 218 | + \clubpenalty 4000 |
| 219 | + \@clubpenalty \clubpenalty |
| 220 | + \widowpenalty 4000 |
| 221 | + \sfcode`\.\@m} |
| 222 | + {\def\@noitemerr |
| 223 | + {\@latex@warning{Ambiente `thebibliography' no definido}} |
| 224 | + \endlist\end{multicols}}}{} |
| 225 | +\makeatother |
| 226 | +\patchcmd{\appendices}{\quad}{\sectionappendixlastchar\quad}{}{} |
| 227 | +\makeatletter |
| 228 | + \def\ifGm@preamble#1{\@firstofone} |
| 229 | + \appto\restoregeometry{ |
| 230 | + \pdfpagewidth=\paperwidth |
| 231 | + \pdfpageheight=\paperheight} |
| 232 | + \apptocmd\newgeometry{ |
| 233 | + \pdfpagewidth=\paperwidth |
| 234 | + \pdfpageheight=\paperheight}{}{} |
| 235 | +\makeatother |
| 236 | +\hfuzz=200pt \vfuzz=200pt |
| 237 | +\hbadness=\maxdimen \vbadness=\maxdimen |
| 238 | +\strictpagecheck |
| 239 | +\titlespacing{\section}{0pt}{20pt}{10pt} |
| 240 | +\titlespacing{\subsection}{0pt}{15pt}{10pt} |
| 241 | +\ttfamily \hyphenchar\the\font=`\- |
| 242 | +\urlstyle{tt} |
| 243 | +\pdfminorversion=\pdfcompileversion |
| 244 | +\setcounter{tocdepth}{1} |
0 commit comments