[fef9024] | 1 | \usepackage[utf8]{inputenc} |
---|
| 2 | \usepackage{textpos} |
---|
| 3 | \setlength{\TPHorizModule}{\paperwidth} |
---|
| 4 | \def\currversion{Abr 01, 2014} |
---|
| 5 | %% libros_cenditel.cls |
---|
| 6 | %****************************************************************% |
---|
| 7 | %* *% |
---|
| 8 | %* Preparado por Rodolfo Sumoza. *% |
---|
| 9 | %* Basado en la plantilla para libros wileysix.cls *% |
---|
| 10 | %* Fundación CENDITEL *% |
---|
| 11 | %* MPPCTI *% |
---|
| 12 | %* *% |
---|
| 13 | %* *% |
---|
| 14 | %****************************************************************% |
---|
| 15 | |
---|
| 16 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
---|
| 17 | %% Contenido de la macro: |
---|
| 18 | %% Dimensiones |
---|
| 19 | %% Parámetros Globales |
---|
| 20 | %% Listas |
---|
| 21 | %% Páginas de Título, Prefacio, Introducción |
---|
| 22 | %% Comandos de Partes, Capítulos, y Apéndices |
---|
| 23 | %% Contadores |
---|
| 24 | %% Nombres a nivel de encabezado |
---|
| 25 | %% Comandos de Sección |
---|
| 26 | %% Verso, Espacios, Extracción |
---|
| 27 | %% Matemáticas |
---|
| 28 | %% Títulos de Figuras y Tablas |
---|
| 29 | %% Tabla de Contenidos, Listas de Figuras, LOT |
---|
| 30 | %% Bibliografía, Referencias |
---|
| 31 | %% Pie de páginas |
---|
| 32 | %% Encabezados |
---|
| 33 | %% Tipos de letra para lugares específicos |
---|
| 34 | %% Algoritmos |
---|
| 35 | %% Glosario |
---|
| 36 | %% Índice |
---|
| 37 | %% Índices Múltiples |
---|
| 38 | %% Líneas de borrador |
---|
| 39 | %% Problemas propuestos |
---|
| 40 | %% Ejercicios |
---|
| 41 | %% Soluciones |
---|
| 42 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
---|
| 43 | |
---|
| 44 | |
---|
| 45 | \typeout{^^J^^J |
---|
| 46 | Estilo de libro Fundación CENDITEL^^J |
---|
| 47 | ^^J |
---|
| 48 | Escrito por Rodolfo L. Sumoza Matos, Fundación CENDITEL.^^J |
---|
| 49 | ^^J |
---|
| 50 | Fecha de la versión: \currversion^^J^^J} |
---|
| 51 | |
---|
| 52 | |
---|
| 53 | |
---|
| 54 | \expandafter\ifx\csname mathunderscore\endcsname\relax |
---|
| 55 | \def\mathunderscore{\leavevmode\kern.06em\vbox{\hrule width.3em}} |
---|
| 56 | \def\mathellipsis{\mbox {$\m@th{\,.\,.\,.}\,$}}\fi |
---|
| 57 | \global\newdimen\phspace |
---|
| 58 | |
---|
| 59 | \parindent=1pc |
---|
| 60 | \parskip=0pt %se agrega .1pt |
---|
| 61 | |
---|
| 62 | %% para hacer el tamaño 6 1/8 por 9 1/4 |
---|
| 63 | %\textheight=45pc \textwidth=28pc |
---|
| 64 | \textheight=52pc \textwidth=36.48pc |
---|
| 65 | |
---|
| 66 | \topmargin.35in |
---|
| 67 | \headheight 12pt |
---|
| 68 | \headsep 18pt |
---|
| 69 | \topskip 10pt |
---|
| 70 | \footskip 18pt |
---|
| 71 | |
---|
| 72 | \columnsep 10pt |
---|
| 73 | \columnseprule 0pt |
---|
| 74 | |
---|
| 75 | \footnotesep 6.65pt |
---|
| 76 | \skip\footins 18pt |
---|
| 77 | |
---|
| 78 | \floatsep 12pt plus 2pt minus 2pt |
---|
| 79 | \textfloatsep 20pt plus 2pt minus 4pt |
---|
| 80 | \intextsep 12pt plus 2pt minus 2pt |
---|
| 81 | |
---|
| 82 | \dblfloatsep 12pt plus 2pt minus 2pt |
---|
| 83 | \dbltextfloatsep 20pt plus 2pt minus 4pt |
---|
| 84 | |
---|
| 85 | \@fptop 0pt plus 1fil |
---|
| 86 | \@fpsep 8pt plus 2fil |
---|
| 87 | \@fpbot 0pt plus 1fil |
---|
| 88 | \@dblfptop 0pt plus 1fil |
---|
| 89 | \@dblfpsep 8pt plus 2fil |
---|
| 90 | \@dblfpbot 0pt plus 1fil |
---|
| 91 | |
---|
| 92 | \maxdepth=4pt %% |
---|
| 93 | |
---|
| 94 | \oddsidemargin-18pt |
---|
| 95 | \advance\oddsidemargin-.5in |
---|
| 96 | \evensidemargin-6pt |
---|
| 97 | \oddsidemargin=100pt |
---|
| 98 | |
---|
| 99 | \advance\oddsidemargin-.5in |
---|
| 100 | \evensidemargin=0pt |
---|
| 101 | \advance\evensidemargin-.5in |
---|
| 102 | \marginparwidth .75in |
---|
| 103 | |
---|
| 104 | \if@twocolumn |
---|
| 105 | \setlength\marginparsep {10\p@} |
---|
| 106 | \else |
---|
| 107 | \setlength\marginparsep{7\p@} |
---|
| 108 | \fi |
---|
| 109 | \setlength\marginparpush{5\p@} |
---|
| 110 | |
---|
| 111 | \setlength\partopsep{2\p@ \@plus 1\p@ \@minus 1\p@} |
---|
| 112 | |
---|
| 113 | %%% |
---|
| 114 | \setcounter{topnumber}{10} |
---|
| 115 | \def\topfraction{.9} |
---|
| 116 | \setcounter{bottomnumber}{10} |
---|
| 117 | \def\bottomfraction{.9} |
---|
| 118 | \setcounter{totalnumber}{20} |
---|
| 119 | \def\textfraction{.1} |
---|
| 120 | \def\floatpagefraction{.5} |
---|
| 121 | \setcounter{dbltopnumber}{2} |
---|
| 122 | \def\dbltopfraction{.7} |
---|
| 123 | \def\dblfloatpagefraction{.5} |
---|
| 124 | %%% |
---|
| 125 | |
---|
| 126 | \setlength\arraycolsep{5\p@} |
---|
| 127 | \tabcolsep 6pt |
---|
| 128 | |
---|
| 129 | \setlength\arrayrulewidth{.4\p@} |
---|
| 130 | \setlength\doublerulesep{2\p@} |
---|
| 131 | \setlength\tabbingsep{\labelsep} |
---|
| 132 | \skip\@mpfootins = \skip\footins |
---|
| 133 | \setlength\fboxsep{3\p@} |
---|
| 134 | \setlength\fboxrule{.4\p@} |
---|
| 135 | |
---|
| 136 | \setlength\columnsep{10\p@} |
---|
| 137 | \setlength\columnseprule{0\p@} |
---|
| 138 | |
---|
| 139 | %%%%%%%%%%%%%%% <<== final de las dimensiones |
---|
| 140 | |
---|
| 141 | %%% Parámetros globales ==>> |
---|
| 142 | |
---|
| 143 | \setcounter{secnumdepth}{3} |
---|
| 144 | \setcounter{tocdepth}{2} |
---|
| 145 | |
---|
| 146 | %% Diferenciar la posición izquierda y derecha de las páginas. |
---|
| 147 | \@twosidefalse \@mparswitchfalse |
---|
| 148 | \@twocolumnfalse |
---|
| 149 | |
---|
| 150 | \newif\if@openbib |
---|
| 151 | \@openbibfalse |
---|
| 152 | \newif\if@openright |
---|
| 153 | \newif\if@mainmatter |
---|
| 154 | \newif\if@restonecol |
---|
| 155 | \newif\if@titlepage |
---|
| 156 | \newif\ifdraft |
---|
| 157 | |
---|
| 158 | %% Iniciar un nuevo capítulo en el lado derecho |
---|
| 159 | \newif\if@openright |
---|
| 160 | \@openrighttrue |
---|
| 161 | |
---|
| 162 | |
---|
| 163 | \newcommand{\contentsname}{CONTENIDOS} |
---|
| 164 | \newcommand{\listfigurename}{Lista de Figuras} |
---|
| 165 | \newcommand{\listtablename}{Lista de Tablas} |
---|
| 166 | \newcommand{\bibname}{Bibliografía} |
---|
| 167 | \newcommand{\indexname}{ÍNDICE} |
---|
| 168 | \newcommand{\figurename}{Figura} |
---|
| 169 | \newcommand{\tablename}{Tabla} |
---|
| 170 | \newcommand{\partname}{PARTE} |
---|
| 171 | \newcommand{\chaptername}{Capítulo} |
---|
| 172 | \newcommand{\appendixname}{Apéndice} |
---|
| 173 | |
---|
| 174 | %%% <== Fin de Parámetros globales |
---|
| 175 | |
---|
| 176 | \ProcessOptions |
---|
| 177 | |
---|
| 178 | |
---|
| 179 | \NeedsTeXFormat{LaTeX2e} |
---|
| 180 | |
---|
| 181 | \newcommand{\@ptsize}{} |
---|
| 182 | |
---|
| 183 | \renewcommand{\normalsize}{% |
---|
| 184 | \ifdraft |
---|
| 185 | \@setfontsize\normalsize\@xpt\@xviipt |
---|
| 186 | \else |
---|
| 187 | \@setfontsize\normalsize\@xpt\@xiipt |
---|
| 188 | \fi |
---|
| 189 | \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@ |
---|
| 190 | \abovedisplayshortskip \z@ \@plus3\p@ |
---|
| 191 | \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@ |
---|
| 192 | \belowdisplayskip \abovedisplayskip |
---|
| 193 | \let\@listi\@listI} |
---|
| 194 | \normalsize |
---|
| 195 | \newcommand{\small}{% |
---|
| 196 | \ifdraft |
---|
| 197 | \@setfontsize\small\@ixpt{17}% |
---|
| 198 | \else |
---|
| 199 | \@setfontsize\small\@ixpt{11}% |
---|
| 200 | \fi |
---|
| 201 | \abovedisplayskip 8.5\p@ %\@plus3\p@ \@minus4\p@ |
---|
| 202 | \abovedisplayshortskip \z@ %\@plus2\p@ |
---|
| 203 | \belowdisplayshortskip 4\p@ %\@plus2\p@ \@minus2\p@ |
---|
| 204 | \def\@listi{\leftmargin\leftmargini |
---|
| 205 | \topsep 4\p@ \@plus2\p@ \@minus2\p@ |
---|
| 206 | \parsep 2\p@ \@plus\p@ \@minus\p@ |
---|
| 207 | \itemsep \parsep}% |
---|
| 208 | \belowdisplayskip \abovedisplayskip |
---|
| 209 | } |
---|
| 210 | \newcommand{\footnotesize}{% |
---|
| 211 | \ifdraft |
---|
| 212 | \@setfontsize\footnotesize\@viiipt{17}% |
---|
| 213 | \else |
---|
| 214 | \@setfontsize\footnotesize\@viiipt{9.5}% |
---|
| 215 | \fi |
---|
| 216 | \abovedisplayskip 6\p@ %\@plus2\p@ \@minus4\p@ |
---|
| 217 | \abovedisplayshortskip \z@ %\@plus\p@ |
---|
| 218 | \belowdisplayshortskip 3\p@ %\@plus\p@ \@minus2\p@ |
---|
| 219 | \def\@listi{\leftmargin\leftmargini |
---|
| 220 | \topsep 3\p@ \@plus\p@ \@minus\p@ |
---|
| 221 | \parsep 2\p@ \@plus\p@ \@minus\p@ |
---|
| 222 | \itemsep \parsep}% |
---|
| 223 | \belowdisplayskip \abovedisplayskip |
---|
| 224 | } |
---|
| 225 | \newcommand{\xscriptsize}{\@setfontsize\scriptsize\@vipt\@viipt} |
---|
| 226 | \newcommand{\scriptsize}{\@setfontsize\scriptsize\@viipt\@viiipt} |
---|
| 227 | \newcommand{\tiny}{\@setfontsize\tiny\@vpt\@vipt} |
---|
| 228 | \newcommand{\large}{\@setfontsize\large\@xiipt{14}} |
---|
| 229 | \newcommand{\Large}{\@setfontsize\Large\@xivpt{18}} |
---|
| 230 | \newcommand{\LARGE}{\@setfontsize\LARGE\@xviipt{22}} |
---|
| 231 | \newcommand{\huge}{\@setfontsize\huge\@xxpt{25}} |
---|
| 232 | \newcommand{\Huge}{\@setfontsize\Huge\@xxvpt{30}} |
---|
| 233 | |
---|
| 234 | |
---|
| 235 | \@maxdepth\maxdepth |
---|
| 236 | \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm} |
---|
| 237 | \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf} |
---|
| 238 | \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt} |
---|
| 239 | \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf} |
---|
| 240 | \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit} |
---|
| 241 | \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl} |
---|
| 242 | \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc} |
---|
| 243 | \DeclareRobustCommand{\cal}{\@fontswitch{\relax}{\mathcal}} |
---|
| 244 | \DeclareRobustCommand{\mit}{\@fontswitch{\relax}{\mathnormal}} |
---|
| 245 | |
---|
| 246 | |
---|
| 247 | \lineskip 1pt |
---|
| 248 | \normallineskip 1pt |
---|
| 249 | \def\baselinestretch{1} |
---|
| 250 | |
---|
| 251 | \normalsize |
---|
| 252 | %% <<== Fin de información sobre fuentes |
---|
| 253 | |
---|
| 254 | |
---|
| 255 | %% Listas ==>> |
---|
| 256 | |
---|
| 257 | \leftmargini 20pt |
---|
| 258 | \leftmarginii 15pt |
---|
| 259 | \leftmarginiii 36pt |
---|
| 260 | \leftmarginiv 17pt |
---|
| 261 | \leftmarginv 10pt |
---|
| 262 | \leftmarginvi 10pt |
---|
| 263 | |
---|
| 264 | \def\@listI{\leftmargin\leftmargini |
---|
| 265 | \parsep 4\p@ \@plus2\p@ \@minus\p@ |
---|
| 266 | \topsep 8\p@ \@plus2\p@ \@minus4\p@ |
---|
| 267 | \itemsep4\p@ \@plus2\p@ \@minus\p@} |
---|
| 268 | \let\@listi\@listI |
---|
| 269 | \@listi |
---|
| 270 | \def\@listii {\leftmargin\leftmarginii |
---|
| 271 | \labelwidth\leftmarginii |
---|
| 272 | \advance\labelwidth-\labelsep |
---|
| 273 | \topsep 4\p@ \@plus2\p@ \@minus\p@ |
---|
| 274 | \parsep 2\p@ \@plus\p@ \@minus\p@ |
---|
| 275 | \itemsep \parsep} |
---|
| 276 | \def\@listiii{\leftmargin\leftmarginiii |
---|
| 277 | \labelwidth\leftmarginiii |
---|
| 278 | \advance\labelwidth-\labelsep |
---|
| 279 | \topsep 2\p@ \@plus\p@\@minus\p@ |
---|
| 280 | \parsep \z@ |
---|
| 281 | \partopsep \p@ \@plus\z@ \@minus\p@ |
---|
| 282 | \itemsep \topsep} |
---|
| 283 | \def\@listiv {\leftmargin\leftmarginiv |
---|
| 284 | \labelwidth\leftmarginiv |
---|
| 285 | \advance\labelwidth-\labelsep} |
---|
| 286 | \def\@listv {\leftmargin\leftmarginv |
---|
| 287 | \labelwidth\leftmarginv |
---|
| 288 | \advance\labelwidth-\labelsep} |
---|
| 289 | \def\@listvi {\leftmargin\leftmarginvi |
---|
| 290 | \labelwidth\leftmarginvi |
---|
| 291 | \advance\labelwidth-\labelsep} |
---|
| 292 | |
---|
| 293 | |
---|
| 294 | |
---|
| 295 | \leftmargin\leftmargini |
---|
| 296 | \labelsep 5pt |
---|
| 297 | \labelwidth\leftmargini\advance\labelwidth-\labelsep |
---|
| 298 | |
---|
| 299 | |
---|
| 300 | \setlength \labelwidth{\leftmargini} |
---|
| 301 | \addtolength\labelwidth{-\labelsep} |
---|
| 302 | |
---|
| 303 | \@beginparpenalty -\@lowpenalty |
---|
| 304 | \@endparpenalty -\@lowpenalty |
---|
| 305 | \@itempenalty -\@lowpenalty |
---|
| 306 | |
---|
| 307 | \renewcommand{\theenumi}{\arabic{enumi}} |
---|
| 308 | \renewcommand{\theenumii}{\alph{enumii}} |
---|
| 309 | \renewcommand{\theenumiii}{\roman{enumiii}} |
---|
| 310 | \renewcommand{\theenumiv}{\Alph{enumiv}} |
---|
| 311 | \newcommand{\labelenumi}{\theenumi.} |
---|
| 312 | \newcommand{\labelenumii}{(\theenumii)} |
---|
| 313 | \newcommand{\labelenumiii}{\theenumiii.} |
---|
| 314 | \newcommand{\labelenumiv}{\theenumiv.} |
---|
| 315 | \renewcommand{\p@enumii}{\theenumi} |
---|
| 316 | \renewcommand{\p@enumiii}{\theenumi(\theenumii)} |
---|
| 317 | \renewcommand{\p@enumiv}{\p@enumiii\theenumiii} |
---|
| 318 | \def\sqbullet{\raise2pt\hbox{\vrule width 2.5pt depth0pt height 2.5pt}} |
---|
| 319 | \newcommand{\labelitemi}{\sqbullet} |
---|
| 320 | %\newcommand{\labelitemi}{$\m@th\bullet$} |
---|
| 321 | \newcommand{\labelitemii}{\normalfont\bfseries --} |
---|
| 322 | \newcommand{\labelitemiii}{$\m@th\ast$} |
---|
| 323 | \newcommand{\labelitemiv}{$\m@th\cdot$} |
---|
| 324 | \newenvironment{description} |
---|
| 325 | {\list{}{\labelwidth\z@ \itemindent-\leftmargin |
---|
| 326 | \let\makelabel\descriptionlabel}} |
---|
| 327 | {\endlist} |
---|
| 328 | |
---|
| 329 | |
---|
| 330 | \newcommand*{\descriptionlabel}[1]{\hspace\labelsep |
---|
| 331 | \normalfont\bfseries #1} |
---|
| 332 | |
---|
| 333 | %%% <<=== Fin de comandos de listas |
---|
| 334 | |
---|
| 335 | %% Páginas de título, Prefacio, Introducción==>> |
---|
| 336 | |
---|
| 337 | \def\preface{%\startonoddpage |
---|
| 338 | \chapter*{Prefacio} |
---|
| 339 | \global\titletrue |
---|
| 340 | \markboth{PREFACIO}{PREFACIO} |
---|
| 341 | \addcontentsline{toc}{schapter}{Prefacio}} |
---|
| 342 | |
---|
| 343 | \def\prefacefirst{%\startonoddpage |
---|
| 344 | \chapter*{Prefacio a la Primera Edición} |
---|
| 345 | \global\titletrue |
---|
| 346 | \markboth{PREFACIO A LA PRIMERA EDICIÓN}{PREFACIO A LA PRIMERA EDICIÓN} |
---|
| 347 | \addcontentsline{toc}{schapter}{\protect\numberline{\ }\string\rlap{Prefacio a la Primera Edición}}} |
---|
| 348 | |
---|
| 349 | \let\endprefacefirst\endpreface |
---|
| 350 | |
---|
| 351 | \def\endpreface{\newpage\markboth{}{}} |
---|
| 352 | |
---|
| 353 | \def\prefaceauthor#1{\vskip14pt\hbox to\textwidth{\hfill\small\sc #1}} |
---|
| 354 | |
---|
| 355 | |
---|
| 356 | \def\foreword{%\startonoddpage |
---|
| 357 | \chapter*{Prólogo} |
---|
| 358 | \global\titletrue |
---|
| 359 | \markboth{PRÓLOGO}{PRÓLOGO} |
---|
| 360 | \addcontentsline{toc}{schapter}{Prólogo}} |
---|
| 361 | \let\endforeword\endpreface |
---|
| 362 | |
---|
| 363 | |
---|
| 364 | \def\dedication#1{%\startonoddpage |
---|
| 365 | \global\titletrue |
---|
| 366 | \null\vskip15pc |
---|
| 367 | \noindent\hfill\vtop{\hsize=.45\hsize |
---|
| 368 | \leftskip=\parfillskip |
---|
| 369 | \baselineskip=12pt |
---|
| 370 | \parfillskip=0pt |
---|
| 371 | \def\\ {\vskip.5pt} |
---|
| 372 | \Large\it |
---|
| 373 | \noindent#1\vskip1sp} |
---|
| 374 | \thispagestyle{empty} |
---|
| 375 | \newpage\markboth{}{} |
---|
| 376 | } |
---|
| 377 | |
---|
| 378 | \def\where#1{\vskip4pt\vtop{\parindent=0pt \wherefont #1}} |
---|
| 379 | |
---|
| 380 | %%%%%%%%%%%%%%%%%%% |
---|
| 381 | \def\introduction{%\startonoddpage |
---|
| 382 | \global\titletrue |
---|
| 383 | \chapter*{Introducción} |
---|
| 384 | \markboth{INTRODUCCIÓN}{INTRODUCCIÓN} |
---|
| 385 | \renewcommand{\thechapter}{I} |
---|
| 386 | \addcontentsline{toc}{schapter}{Introducción}} |
---|
| 387 | |
---|
| 388 | \def\endintroduction{\newpage} |
---|
| 389 | |
---|
| 390 | %% |
---|
| 391 | %% Autor de la Introducción, Abr 01, 2014 |
---|
| 392 | |
---|
| 393 | \def\introauthor#1#2{\vskip-1in |
---|
| 394 | \addcontentsline{toc}{ichapter}{#1} |
---|
| 395 | \vtop to 0pt{ |
---|
| 396 | {\sc #1} |
---|
| 397 | \chapteraffil{#2} |
---|
| 398 | \vss}\global\everypar={\hskip-\parindent\everypar={}}\vskip1in} |
---|
| 399 | |
---|
| 400 | |
---|
| 401 | \def\l@ichapter#1#2{% |
---|
| 402 | \ifnum \c@tocdepth >1 |
---|
| 403 | \addpenalty{-\@highpenalty}% |
---|
| 404 | \vskip -3pt \@plus\p@ |
---|
| 405 | \setlength\@tempdima{2.5em}% |
---|
| 406 | \begingroup |
---|
| 407 | \parindent \z@ \rightskip \@pnumwidth |
---|
| 408 | \parfillskip -\@pnumwidth |
---|
| 409 | \leavevmode |
---|
| 410 | \advance\leftskip\@tempdima |
---|
| 411 | \hskip -\leftskip |
---|
| 412 | \hbox{\it #1}\hfill\par |
---|
| 413 | \penalty\@highpenalty |
---|
| 414 | \endgroup |
---|
| 415 | \vskip1sp |
---|
| 416 | \fi} |
---|
| 417 | |
---|
| 418 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
---|
| 419 | |
---|
| 420 | \def\acknowledgments{%\startonoddpage |
---|
| 421 | \global\titletrue |
---|
| 422 | \chapter*{Agradecimientos} |
---|
| 423 | \addcontentsline{toc}{schapter}{Agradecimientos}} |
---|
| 424 | |
---|
| 425 | \def\endacknowledgments{\newpage} |
---|
| 426 | |
---|
| 427 | \let\acknowledgements\acknowledgments |
---|
| 428 | \let\endacknowledgements\endacknowledgments |
---|
| 429 | |
---|
| 430 | \def\authorinitials#1{\vskip12pt |
---|
| 431 | \hbox to\textwidth{\hfill#1}\newpage} |
---|
| 432 | |
---|
| 433 | |
---|
| 434 | %% from 2e |
---|
| 435 | \newcommand{\frontmatter}{\cleardoublepage |
---|
| 436 | \@mainmatterfalse\pagenumbering{roman}} |
---|
| 437 | \newcommand{\mainmatter}{\cleardoublepage |
---|
| 438 | \@mainmattertrue\pagenumbering{arabic}} |
---|
| 439 | \newcommand{\backmatter}{\if@openright\cleardoublepage\else\clearpage\fi |
---|
| 440 | \@mainmatterfalse} |
---|
| 441 | %% |
---|
| 442 | |
---|
| 443 | \newif\iftitle |
---|
| 444 | |
---|
| 445 | \def\booktitle#1{\def\thetitle{\uppercase{#1}}} |
---|
| 446 | \def\subtitle#1{\def\thesubtitle{#1}} |
---|
| 447 | \def\author#1{\def\theauthor{#1}} |
---|
| 448 | \let\authors\author |
---|
| 449 | \def\editionstatement#1{\def\theeditionstatement{#1}} |
---|
| 450 | |
---|
| 451 | \booktitle{} |
---|
| 452 | \subtitle{} |
---|
| 453 | \editionstatement{} |
---|
| 454 | |
---|
| 455 | \def\coverpage{\thispagestyle{empty} |
---|
| 456 | \includegraphics[scale=0.7]{P_4.png} |
---|
| 457 | %\clearpage |
---|
| 458 | } |
---|
| 459 | |
---|
| 460 | \def\halftitlepage{\thispagestyle{empty} |
---|
| 461 | \vspace*{9pc}% |
---|
| 462 | {\parindent \z@ |
---|
| 463 | \interlinepenalty\@M |
---|
| 464 | \LARGE |
---|
| 465 | \hyphenpenalty10000 |
---|
| 466 | \bfseries\halftitlefont |
---|
| 467 | \def\\ {\vskip1sp} |
---|
| 468 | \noindent\thetitle\vskip 1sp |
---|
| 469 | } |
---|
| 470 | \newpage |
---|
| 471 | } |
---|
| 472 | |
---|
| 473 | \def\titlepage{\ifodd\c@page\else\thispagestyle{empty}\null\newpage\fi |
---|
| 474 | \thispagestyle{empty} |
---|
| 475 | \vbox to\vsize{\vspace*{36pt}% |
---|
| 476 | \hrule height3pt |
---|
| 477 | \vskip6pc |
---|
| 478 | \parindent \z@ |
---|
| 479 | \interlinepenalty\@M |
---|
| 480 | \Huge |
---|
| 481 | \hyphenpenalty10000 |
---|
| 482 | \bfseries\titlefont |
---|
| 483 | \uppercase{\thetitle} |
---|
| 484 | \ifx\subtitle\empty\else |
---|
| 485 | {\vskip1pt\baselineskip22pt |
---|
| 486 | \subtitlefont \vrule height2pc width0pt\thesubtitle\vskip1sp}\fi |
---|
| 487 | \vskip1pc |
---|
| 488 | \hrule |
---|
| 489 | \ifx\theeditionstatement\empty\else |
---|
| 490 | \vskip48pt |
---|
| 491 | {\editionfont \theeditionstatement}\fi |
---|
| 492 | \vskip6.5pc |
---|
| 493 | {\frenchspacing\baselineskip=12pt |
---|
| 494 | \authorfont \theauthor\vskip1sp} |
---|
| 495 | \vfill |
---|
| 496 | \noindent{\includegraphics[width=1.7in]{logoCenditel.png}} |
---|
| 497 | \vskip-8pt |
---|
| 498 | {\wileyfont Publicación de la Fundación CENDITEL} |
---|
| 499 | \vskip24pt}\newpage} |
---|
| 500 | |
---|
| 501 | \def\affil#1{{\affilfont #1}\vskip18pt} |
---|
| 502 | |
---|
| 503 | |
---|
| 504 | \def\dotspace{\hskip5pt/\hskip5pt} |
---|
| 505 | |
---|
| 506 | %% fin de páginas de Título. Prefacio |
---|
| 507 | |
---|
| 508 | %% Comandos de Parte, Capítulo, y Apéndice ===>>> |
---|
| 509 | |
---|
| 510 | \def\chaptermark#1{} |
---|
| 511 | |
---|
| 512 | \newcommand{\part}{\clearpage%\startonoddpage |
---|
| 513 | \thispagestyle{empty}% |
---|
| 514 | \@tempswafalse |
---|
| 515 | \secdef\@part\@spart} |
---|
| 516 | |
---|
| 517 | \def\@part[#1]#2{% |
---|
| 518 | \ifnum\c@part=0 \global\@mainmattertrue |
---|
| 519 | \pagenumbering{arabic}\setcounter{page}{1}\fi |
---|
| 520 | \ifnum \c@secnumdepth >-2\relax |
---|
| 521 | \refstepcounter{part}% |
---|
| 522 | \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}% |
---|
| 523 | \else |
---|
| 524 | \addcontentsline{toc}{part}{#1}% |
---|
| 525 | \fi |
---|
| 526 | \markboth{}{} |
---|
| 527 | { |
---|
| 528 | \vglue36pt |
---|
| 529 | \parindent \z@ |
---|
| 530 | \interlinepenalty\@M |
---|
| 531 | %\Large |
---|
| 532 | %{\parindent \z@ |
---|
| 533 | %\partnumberfont |
---|
| 534 | %\hfill |
---|
| 535 | %\partname~\Roman{part} |
---|
| 536 | %\includegraphics[scale=0.60]{fondoParteDeLibro.png} |
---|
| 537 | %} |
---|
| 538 | |
---|
| 539 | %\hbox to\textwidth |
---|
| 540 | {% |
---|
| 541 | %\hbox to 1.5in{ |
---|
| 542 | |
---|
| 543 | \setlength{\unitlength}{1pt}% |
---|
| 544 | \begin{picture}(0,150)(0,0) |
---|
| 545 | \put(107,0){\includegraphics[scale=0.80]{fondoParteDeLibro.png}} |
---|
| 546 | \put(355,85){ |
---|
| 547 | \Large |
---|
| 548 | \parindent \z@ |
---|
| 549 | \partnumberfont |
---|
| 550 | \hfill |
---|
| 551 | \partname~\Roman{part}} |
---|
| 552 | %} |
---|
| 553 | |
---|
| 554 | \end{picture}% |
---|
| 555 | } |
---|
| 556 | |
---|
| 557 | |
---|
| 558 | |
---|
| 559 | \hfill\vrule depth12pt width0pt |
---|
| 560 | %\hrule height3pt % <- la raya horizontal |
---|
| 561 | %\vtop to23.5pc{\vfill % <- espacio entre PARTE y el titulo de la parte |
---|
| 562 | \vtop to20pc{\vfill |
---|
| 563 | \hyphenpenalty10000 |
---|
| 564 | \raggedright |
---|
| 565 | \parfillskip=0pt |
---|
| 566 | \LARGE\baselineskip=24pt\boldmath\bfseries\partfont |
---|
| 567 | \uppercase{#2}\vskip1pc |
---|
| 568 | \hrule height 1pt |
---|
| 569 | \vskip7pc}}} |
---|
| 570 | |
---|
| 571 | |
---|
| 572 | \def\@spart#1{% |
---|
| 573 | {\centering |
---|
| 574 | \interlinepenalty \@M |
---|
| 575 | \reset@font |
---|
| 576 | \Huge \bfseries #1\par}% |
---|
| 577 | \@endpart} |
---|
| 578 | \def\@endpart{\vfill\newpage |
---|
| 579 | \if@twoside |
---|
| 580 | \hbox{}% |
---|
| 581 | \thispagestyle{empty}% |
---|
| 582 | \newpage |
---|
| 583 | \fi} |
---|
| 584 | |
---|
| 585 | |
---|
| 586 | \def\and{\lowercase{and}\ } |
---|
| 587 | |
---|
| 588 | \def\eatone#1{} |
---|
| 589 | \def\oldauthor[#1]#2{{\ifnum\c@chapter<1 |
---|
| 590 | \vskip-2pc |
---|
| 591 | \else |
---|
| 592 | \vskip2pc |
---|
| 593 | \ifnum\c@chapter>9\leftskip=4pc\else |
---|
| 594 | \leftskip=3pc\fi\fi\let\\ \newline{#2}\vskip1sp} |
---|
| 595 | {\let\\ \space \let\footnote\eatone\xdef\totoc{\tocauthorfont #1}} |
---|
| 596 | \addtocontents{toc}{\vskip-2.5pt{\string\noindent\hskip24pt\totoc}} |
---|
| 597 | \addtocontents{toc}{\vskip6pt} |
---|
| 598 | } |
---|
| 599 | |
---|
| 600 | |
---|
| 601 | \newif\iffirstprologue |
---|
| 602 | \def\prologue#1#2{\iffirstprologue\vskip4pt |
---|
| 603 | \global\firstprologuefalse\else |
---|
| 604 | \vskip12pt\fi |
---|
| 605 | {\leftskip=1pc |
---|
| 606 | \parindent=0pt \small |
---|
| 607 | \let\\ \newline#1\vskip1sp |
---|
| 608 | \hbox to\textwidth{\hfill\def\two{#2}\ifx\two\empty\else---#2\fi} |
---|
| 609 | }\vskip12pt} |
---|
| 610 | |
---|
| 611 | |
---|
| 612 | \newdimen\SpaceAboveChapterNumber |
---|
| 613 | \SpaceAboveChapterNumber=36pt |
---|
| 614 | |
---|
| 615 | \def\chapter{\let\thetable\savethetable |
---|
| 616 | \let\thefigure\savethefigure |
---|
| 617 | \global\c@footnote=0 |
---|
| 618 | \global\probcount=0 |
---|
| 619 | \global\c@chapapp=0 |
---|
| 620 | \global\appendfalse |
---|
| 621 | \renewcommand{\thechapter}{\arabic{chapter}} |
---|
| 622 | \@afterindentfalse |
---|
| 623 | \secdef\@chapter\@schapter} |
---|
| 624 | |
---|
| 625 | \let\savefootnote\footnote |
---|
| 626 | \let\savefootnotetext\footnotetext |
---|
| 627 | |
---|
| 628 | \newcount\savefootnotenumber |
---|
| 629 | \newcount\ftnum |
---|
| 630 | \newcount\saveftnum |
---|
| 631 | \def\catchfootnote#1{% |
---|
| 632 | \global\advance\ftnum by1 |
---|
| 633 | \expandafter\gdef\csname thecatchfootnote\the\ftnum\endcsname{#1}} |
---|
| 634 | |
---|
| 635 | \def\zfnsymbol#1{\expandafter\@zfnsymbol\csname c@#1\endcsname} |
---|
| 636 | |
---|
| 637 | \def\@zfnsymbol#1{\ensuremath{\ifcase#1\or \dagger\or \ddagger\or |
---|
| 638 | \mathsection\or \mathparagraph\or \|\or **\or \dagger\dagger |
---|
| 639 | \or \ddagger\ddagger \else\@ctrerr\fi}} |
---|
| 640 | |
---|
| 641 | \def\zzfnsymbol#1{\expandafter\@zfnsymbol\csname c@#1\endcsname} |
---|
| 642 | |
---|
| 643 | \def\@zzfnsymbol#1{\ensuremath{\ifcase#1 \dagger\or \ddagger\or |
---|
| 644 | \mathsection\or \mathparagraph\or \|\or **\or \dagger\dagger |
---|
| 645 | \or \ddagger\ddagger \else\@ctrerr\fi}} |
---|
| 646 | |
---|
| 647 | \def\@chapter[#1]#2{ |
---|
| 648 | %\startonoddpage |
---|
| 649 | \clearpage |
---|
| 650 | \global\titletrue |
---|
| 651 | %% no floats on chapter title page |
---|
| 652 | \global\@topnum\z@ |
---|
| 653 | \global\@botnum\z@ |
---|
| 654 | %% |
---|
| 655 | \ifnum\c@chapter=0\relax \ifnum\c@part=1 \else \setcounter{page}{1} |
---|
| 656 | \global\@mainmattertrue% <<=== |
---|
| 657 | \fi\fi |
---|
| 658 | %% if using answers.sty: |
---|
| 659 | \expandafter\ifx\csname Closesolutionfile\endcsname \relax |
---|
| 660 | \else |
---|
| 661 | \Closesolutionfile{ans}\fi |
---|
| 662 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
---|
| 663 | \lowercase{\global\savefootnotenumber=\c@footnote |
---|
| 664 | \global\ftnum=0 |
---|
| 665 | \setbox0=\hbox{\let\thanks\catchfootnote |
---|
| 666 | \let\\ \relax\let\footnote\catchfootnote#2} |
---|
| 667 | {\def\thefootnote{\zfnsymbol{footnote}} |
---|
| 668 | \ifnum\ftnum<1 \else |
---|
| 669 | \saveftnum\ftnum |
---|
| 670 | \global\advance\saveftnum by1 |
---|
| 671 | \ftnum=1 |
---|
| 672 | \loop\ifnum\saveftnum>\ftnum |
---|
| 673 | \advance\c@footnote by 1 |
---|
| 674 | \savefootnotetext{\csname thecatchfootnote\the\ftnum\endcsname} |
---|
| 675 | \global\advance\ftnum by1 |
---|
| 676 | \repeat |
---|
| 677 | \fi}} |
---|
| 678 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
---|
| 679 | % |
---|
| 680 | \gdef\thepage{\csname @arabic\endcsname\c@page} |
---|
| 681 | % |
---|
| 682 | \refstepcounter{chapter}% <<==== moved this here instead of below mainmatter |
---|
| 683 | %% when using answers.sty, |
---|
| 684 | %% to open an ans<chapnum> file to be used for solutions section |
---|
| 685 | \expandafter\ifx\csname Opensolutionfile\endcsname\relax\else |
---|
| 686 | \Opensolutionfile{ans}[ans\the\c@chapter]\fi |
---|
| 687 | \let\dolabelnow\relax |
---|
| 688 | {\def\label##1{\gdef\dolabelnow{\savelabel{##1}}}% |
---|
| 689 | \global\setbox0=\hbox{\def\\ {\relax}#2}}% |
---|
| 690 | \ifnum \c@secnumdepth >\m@ne |
---|
| 691 | \if@mainmatter |
---|
| 692 | \typeout{\@chapapp\space\thechapter.}% |
---|
| 693 | \let\thanks\eatone |
---|
| 694 | \addcontentsline{toc}{chapter}% |
---|
| 695 | {\protect\numberline{\thechapter}#1}% |
---|
| 696 | \else |
---|
| 697 | \let\thanks\eatone |
---|
| 698 | \addcontentsline{toc}{chapter}{#1}% |
---|
| 699 | \fi |
---|
| 700 | \else |
---|
| 701 | \let\thanks\eatone |
---|
| 702 | \addcontentsline{toc}{chapter}{#1}% |
---|
| 703 | \fi |
---|
| 704 | \chaptermark{#1}% |
---|
| 705 | \@makechapterhead{{ |
---|
| 706 | \def\thanks##1{$^{\zfnsymbol{footnote}}$} |
---|
| 707 | \def\\ {\vskip1sp}\uppercase{#2}}}% |
---|
| 708 | \dolabelnow |
---|
| 709 | \@afterheading |
---|
| 710 | \lowercase{\global\c@footnote\savefootnotenumber}} |
---|
| 711 | |
---|
| 712 | \def\@makechapterhead#1{% |
---|
| 713 | \vglue10pt |
---|
| 714 | \SpaceAboveChapterNumber=36pt |
---|
| 715 | {\parindent \z@ |
---|
| 716 | \interlinepenalty\@M |
---|
| 717 | %\noindent{\includegraphics[scale=0.2]{icono2.jpg}} |
---|
| 718 | %\noindent{\includegraphics[scale=0.15]{IconoOctagonoGrande.png}} |
---|
| 719 | %\noindent{\includegraphics[scale=0.7]{IconoOctagonoVerde.png}} |
---|
| 720 | %\noindent{\includegraphics[scale=0.25]{fondoCapituloDeLibro.png}} |
---|
| 721 | |
---|
| 722 | |
---|
| 723 | %\Large |
---|
| 724 | %\hbox to\textwidth{\hbox{\chapternumberfont CAPÍTULO |
---|
| 725 | %\the\c@chapter}\hfill\vrule depth1pt width0pt} |
---|
| 726 | %\hbox to\textwidth{\hfill |
---|
| 727 | %{\noindent{\includegraphics[scale=0.20]{fondoCapituloDeLibro.png}}} |
---|
| 728 | %} |
---|
| 729 | \hbox to\textwidth{% |
---|
| 730 | \hbox to 1.5in{ |
---|
| 731 | \setlength{\unitlength}{1pt}% |
---|
| 732 | \begin{picture}(0,200)(0,0) |
---|
| 733 | \put(210,0){\includegraphics[scale=0.20]{fondoCapituloDeLibro.png}} |
---|
| 734 | \put(133,87){ |
---|
| 735 | \Large |
---|
| 736 | \hbox to\textwidth{\hbox{\chapternumberfont CAPÍTULO |
---|
| 737 | \the\c@chapter}\hfill\vrule depth1pt width0pt} |
---|
| 738 | } |
---|
| 739 | \end{picture}% |
---|
| 740 | } |
---|
| 741 | } |
---|
| 742 | |
---|
| 743 | |
---|
| 744 | %\begin{textblock}{0.3}(5,5) |
---|
| 745 | %{\noindent{\includegraphics[scale=0.20]{fondoCapituloDeLibro.png}}} |
---|
| 746 | %\end{textblock} |
---|
| 747 | |
---|
| 748 | %\begin{textblock}{0.3}(6,6) |
---|
| 749 | %{ |
---|
| 750 | %\Large |
---|
| 751 | %\hbox to\textwidth{\hbox{\chapternumberfont CAPÍTULO |
---|
| 752 | %\the\c@chapter}\hfill\vrule depth1pt width0pt} |
---|
| 753 | %} |
---|
| 754 | %\end{textblock} |
---|
| 755 | |
---|
| 756 | |
---|
| 757 | %\Large |
---|
| 758 | %\hbox to\textwidth{\hbox{\chapternumberfont CAPÍTULO |
---|
| 759 | %\the\c@chapter}\hfill\vrule depth1pt width0pt} |
---|
| 760 | |
---|
| 761 | |
---|
| 762 | \hrule height0pt |
---|
| 763 | \vtop to16.5pc{\vfill |
---|
| 764 | \hyphenpenalty10000 |
---|
| 765 | \raggedright |
---|
| 766 | \parfillskip=0.5pt |
---|
| 767 | \LARGE\boldmath\bfseries\chaptertitlefont |
---|
| 768 | #1\vskip1pc |
---|
| 769 | \hrule height 1pt |
---|
| 770 | \vskip7pc}} |
---|
| 771 | \dooffprintinfo} |
---|
| 772 | |
---|
| 773 | \def\@schapter#1{\if@twocolumn |
---|
| 774 | \@topnewpage[\@makeschapterhead{#1}]% |
---|
| 775 | \else |
---|
| 776 | \@makeschapterhead{#1}% |
---|
| 777 | \@afterheading |
---|
| 778 | \fi\global\titletrue\relax} |
---|
| 779 | |
---|
| 780 | \def\@makeschapterhead#1{% |
---|
| 781 | \vspace*{14pc}% |
---|
| 782 | \noindent{\Large\bfseries\chaptertitlefont |
---|
| 783 | \uppercase{#1}}\nobreak |
---|
| 784 | \vskip1pc\hrule height1pt\vskip7.5pc} |
---|
| 785 | |
---|
| 786 | \let\title\chapter |
---|
| 787 | |
---|
| 788 | \newcount\c@chapapp |
---|
| 789 | \def\chapappendix#1{\par |
---|
| 790 | \global\advance\c@chapapp by 1 |
---|
| 791 | \setcounter{section}{0}% |
---|
| 792 | \setcounter{figure}{0}% |
---|
| 793 | \setcounter{table}{0}% |
---|
| 794 | \setcounter{equation}{0}% |
---|
| 795 | \renewcommand{\@chapapp}{\appendixname}% |
---|
| 796 | \renewcommand{\thechapter}{%\the\c@chapter. |
---|
| 797 | \Alph{chapapp}} |
---|
| 798 | \renewcommand{\thetable}{\the\c@chapter-\thechapter.\@arabic\c@table\theletter} |
---|
| 799 | \renewcommand{\thefigure}{\the\c@chapter-\thechapter.\@arabic\c@figure\theletter} |
---|
| 800 | \def\one{#1}\ifx\one\empty |
---|
| 801 | \section*{Apéndice} |
---|
| 802 | \markright{APÉNDICE} |
---|
| 803 | \addcontentsline{toc}{schapter}{\protect\numberline{Apéndice}} |
---|
| 804 | \else |
---|
| 805 | \section*{Apéndice: #1} |
---|
| 806 | \markright{APÉNDICE} |
---|
| 807 | \addcontentsline{toc}{schapter}{\protect\numberline{Apéndice: #1}} |
---|
| 808 | \fi |
---|
| 809 | } |
---|
| 810 | |
---|
| 811 | |
---|
| 812 | %%% <<=== final de comandos para Capítulo, Parte, y Apéndice |
---|
| 813 | |
---|
| 814 | |
---|
| 815 | %%% Contadores ===>> |
---|
| 816 | \newcounter {part} |
---|
| 817 | \newcounter {chapter} |
---|
| 818 | \newcounter {section}[chapter] |
---|
| 819 | \newcounter {subsection}[section] |
---|
| 820 | \newcounter {subsubsection}[subsection] |
---|
| 821 | \newcounter {paragraph}[subsubsection] |
---|
| 822 | \newcounter {subparagraph}[paragraph] |
---|
| 823 | |
---|
| 824 | %%% <=== final contadores |
---|
| 825 | |
---|
| 826 | %%% Nombres a nivel de encabezado ==>> |
---|
| 827 | \renewcommand{\thepart} {\Roman{part}} |
---|
| 828 | \renewcommand{\thechapter} {\arabic{chapter}} |
---|
| 829 | \renewcommand{\thesection} {\thechapter.\arabic{section}} |
---|
| 830 | \renewcommand{\thesubsection} {\thesection.\arabic{subsection}} |
---|
| 831 | \renewcommand{\thesubsubsection}{\thesubsection .\arabic{subsubsection}} |
---|
| 832 | \renewcommand{\theparagraph} {\thesubsubsection.\arabic{paragraph}} |
---|
| 833 | \renewcommand{\thesubparagraph} {\theparagraph.\arabic{subparagraph}} |
---|
| 834 | \newcommand{\@chapapp}{\chaptername} |
---|
| 835 | |
---|
| 836 | %%% <<== final de nombres a nivel de encabezado |
---|
| 837 | |
---|
| 838 | |
---|
| 839 | %%% Comandos de Sección ====>>>> |
---|
| 840 | |
---|
| 841 | % \@startsection {NOMBRE}{NIVEL}{IDENTACIÓN}{PREVIO SALTO}{DESPUÉS DE SALTO}{ESTILO} |
---|
| 842 | % opcional * [ENCABEZADO ALTERNATIVO]{ENCABEZADO} |
---|
| 843 | % Comando genérico para el inicio de sección. |
---|
| 844 | % NOMBRE : ejemplo, 'subsección' |
---|
| 845 | % NIVEL : un número, denotando profundidad de la sección -- ejemplo: capítulo=1, |
---|
| 846 | % sección=2, etc. |
---|
| 847 | % IDENTACIÓN : Indentación del encabezado desde el margen izquierdo |
---|
| 848 | % ANTES DE SALTO : Valor absoluto = salto a nivel superior del encabezado. |
---|
| 849 | % Si es negativo, entonces se suprime la identación del texto que sigue al encabezado. |
---|
| 850 | % DESPUÉS DE SALTO: si es positivo, entonces es el salto a dar después del encabezado, de lo contrario, |
---|
| 851 | % es el salto a dar a la derecha del encabezado actual. |
---|
| 852 | % ESTILO : comandos para la configuración de estilo |
---|
| 853 | % Si falta el '*', entonces se incrementa el contador. Si está presente, entonces no debería haber un argumento en encabezado alternativo |
---|
| 854 | % Utilice el contador 'secnumdepth' cuyo valor es el mayor nivel de la sección a ser enumerada |
---|
| 855 | |
---|
| 856 | |
---|
| 857 | |
---|
| 858 | \newcommand{\section}{\@startsection {section}{1}{\z@}% |
---|
| 859 | {-22pt plus -1pt minus -6pt |
---|
| 860 | }% |
---|
| 861 | {13pt}% |
---|
| 862 | {\reset@font\large\bfseries\boldmath\sectionfont}} |
---|
| 863 | \newcommand{\subsection}{\@startsection{subsection}{2}{\z@}% |
---|
| 864 | {-16pt plus -1pt minus -3pt |
---|
| 865 | }% |
---|
| 866 | {8pt}% |
---|
| 867 | {\reset@font\large\bfseries\boldmath\subsectionfont}} |
---|
| 868 | \newcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@}% |
---|
| 869 | {-12pt plus -1pt minus -6pt |
---|
| 870 | }% |
---|
| 871 | {-1em} |
---|
| 872 | {\reset@font\normalsize\bfseries\boldmath\subsubsectionfont}} |
---|
| 873 | \newcommand{\paragraph}{\@startsection{paragraph}{4}{\z@}% |
---|
| 874 | {-12pt}% |
---|
| 875 | {-1em}% |
---|
| 876 | {\reset@font\normalsize\bfseries\paragraphfont}} |
---|
| 877 | \newcommand{\subparagraph}{\@startsection{subparagraph}{5}{\parindent}% |
---|
| 878 | {3.25ex \@plus1ex \@minus .2ex}% |
---|
| 879 | {-1em}% |
---|
| 880 | {\reset@font\normalsize\bfseries}} |
---|
| 881 | |
---|
| 882 | %%% <<=== final comandos de secciones |
---|
| 883 | |
---|
| 884 | |
---|
| 885 | %%% Verso, Cita, Extracto ==>> |
---|
| 886 | |
---|
| 887 | \newenvironment{verse} |
---|
| 888 | {\let\\=\@centercr |
---|
| 889 | \list{}{\itemsep \z@ |
---|
| 890 | \itemindent -1.5em% |
---|
| 891 | \listparindent\itemindent |
---|
| 892 | \rightmargin \leftmargin |
---|
| 893 | \advance\leftmargin 1.5em}% |
---|
| 894 | \item[]} |
---|
| 895 | {\endlist} |
---|
| 896 | \newenvironment{quotation} |
---|
| 897 | {\small |
---|
| 898 | \list{}{\listparindent \parindent% |
---|
| 899 | \itemindent \listparindent |
---|
| 900 | \rightmargin \leftmargin |
---|
| 901 | \parsep \z@ \@plus\p@}% |
---|
| 902 | \item[]} |
---|
| 903 | {\endlist} |
---|
| 904 | \newenvironment{quote} |
---|
| 905 | {\small |
---|
| 906 | \list{}{\rightmargin\leftmargin}% |
---|
| 907 | \item[]} |
---|
| 908 | {\endlist} |
---|
| 909 | \let\extract\quotation |
---|
| 910 | \let\endextract\endquotation |
---|
| 911 | %% <<== final Verso, Cita, Extracto |
---|
| 912 | |
---|
| 913 | |
---|
| 914 | %%% Matemática ===>>> |
---|
| 915 | |
---|
| 916 | \@addtoreset{equation}{chapter} |
---|
| 917 | \renewcommand{\theequation}{\thechapter.\arabic{equation}} |
---|
| 918 | |
---|
| 919 | %%% ruta fácil para hacer matemáticas en negrita utilizando $ fórmula $ |
---|
| 920 | \def\dobold#1{\hbox{\boldmath$\displaystyle #1$\unboldmath}} |
---|
| 921 | \let\mathbold\dobold |
---|
| 922 | |
---|
| 923 | %% crear una caja alrededor de la ecuación o ambiente desplegado |
---|
| 924 | \def\boxit#1{{\fboxsep=6pt\ifmmode |
---|
| 925 | \fbox{$\displaystyle #1$} |
---|
| 926 | \else |
---|
| 927 | \vskip14pt{\centerline{\fbox{\vtop{\vskip-9pt\vskip1sp\advance\hsize-41pt #1\vskip-8pt}}}\vskip14pt}\fi}} |
---|
| 928 | |
---|
| 929 | %%% <<<=== final Matemática |
---|
| 930 | |
---|
| 931 | |
---|
| 932 | %%% Título de Figuras y Tablas ==>>> |
---|
| 933 | \newcounter{figure}[chapter] |
---|
| 934 | \renewcommand{\thefigure}{\thechapter.% |
---|
| 935 | \@arabic\c@figure\theletter} |
---|
| 936 | \def\fps@figure{tbp} |
---|
| 937 | \def\ftype@figure{1} |
---|
| 938 | \def\ext@figure{lof} |
---|
| 939 | \def\fnum@figure{\figurename~\thefigure} |
---|
| 940 | \newenvironment{figure} |
---|
| 941 | {\@float{figure}} |
---|
| 942 | {\end@float} |
---|
| 943 | \newenvironment{figure*} |
---|
| 944 | {\@dblfloat{figure}} |
---|
| 945 | {\end@dblfloat} |
---|
| 946 | \newcounter{table}[chapter] |
---|
| 947 | \renewcommand{\thetable}{\thechapter.\@arabic\c@table\theletter} |
---|
| 948 | |
---|
| 949 | \let\savethetable\thetable |
---|
| 950 | \let\savethefigure\thefigure |
---|
| 951 | |
---|
| 952 | |
---|
| 953 | \def\fps@table{tbp} |
---|
| 954 | \def\ftype@table{2} |
---|
| 955 | \def\ext@table{lot} |
---|
| 956 | \def\fnum@table{\tablename~\thetable} |
---|
| 957 | \newenvironment{table} |
---|
| 958 | {\@float{table}} |
---|
| 959 | {\end@float} |
---|
| 960 | \newenvironment{table*} |
---|
| 961 | {\@dblfloat{table}} |
---|
| 962 | {\end@dblfloat} |
---|
| 963 | \newlength\abovecaptionskip |
---|
| 964 | \newlength\belowcaptionskip |
---|
| 965 | \setlength\abovecaptionskip{10\p@} |
---|
| 966 | \setlength\belowcaptionskip{0\p@} |
---|
| 967 | |
---|
| 968 | \def\xfigure{figure} |
---|
| 969 | |
---|
| 970 | \long\def\@makecaption#1#2{% |
---|
| 971 | \vskip\abovecaptionskip |
---|
| 972 | {\small\hyphenpenalty10000 |
---|
| 973 | \ifx\@captype\xfigure |
---|
| 974 | \ifcontinued\global\advance\c@figure -1\fi |
---|
| 975 | \else |
---|
| 976 | \ifcontinued\global\advance\c@table -1\fi |
---|
| 977 | \fi% |
---|
| 978 | \sbox\@tempboxa{{\fignumfont#1 \ifcontinued (Continuación)\fi |
---|
| 979 | \quad \ifx\@captype\xfigure\figtextfont\else |
---|
| 980 | \tabtextfont\fi\let\newline\ #2}}% |
---|
| 981 | \ifdim \wd\@tempboxa >.9\hsize \hyphenpenalty10000 |
---|
| 982 | \fignumfont #1 \ifcontinued (Continuación)\fi\quad |
---|
| 983 | \ifx\@captype\xfigure\figtextfont\else |
---|
| 984 | \tabtextfont\fi#2\par |
---|
| 985 | \else |
---|
| 986 | \global \@minipagefalse |
---|
| 987 | \hbox to\hsize{\hfil\box\@tempboxa\hfil}% |
---|
| 988 | \fi |
---|
| 989 | \ifx\@captype\xfigure |
---|
| 990 | \vskip\belowcaptionskip |
---|
| 991 | \else |
---|
| 992 | \vskip3pt\fi |
---|
| 993 | \gdef\theletter{\relax} |
---|
| 994 | \global\continuedfalse |
---|
| 995 | }} |
---|
| 996 | |
---|
| 997 | |
---|
| 998 | \newif\ifsettotop |
---|
| 999 | |
---|
| 1000 | |
---|
| 1001 | \def\@xfloat#1[#2]{% |
---|
| 1002 | \def \@captype {#1}\def \@fps {#2}\@onelevel@sanitize \@fps |
---|
| 1003 | \def \reserved@b {!}\ifx \reserved@b \@fps \@fpsadddefault \else |
---|
| 1004 | \ifx \@fps \@empty \@fpsadddefault \fi \fi |
---|
| 1005 | \ifhmode \@bsphack \@floatpenalty -\@Mii \else \@floatpenalty -\@Miii \fi |
---|
| 1006 | \ifinner \@parmoderr \@floatpenalty \z@ |
---|
| 1007 | \else \@next \@currbox \@freelist {\@tempcnta \sixt@@n |
---|
| 1008 | \expandafter \@tfor \expandafter \reserved@a \expandafter :\expandafter |
---|
| 1009 | =\@fps \do {\if \reserved@a h\ifodd \@tempcnta \else \advance \@tempcnta \@ne |
---|
| 1010 | \fi \fi \if \reserved@a t\@setfpsbit \tw@ \global\settotoptrue\fi |
---|
| 1011 | \if \reserved@a b\@setfpsbit 4\fi |
---|
| 1012 | \if \reserved@a p\@setfpsbit 8\fi |
---|
| 1013 | \if \reserved@a !\ifnum \@tempcnta >15 |
---|
| 1014 | \advance\@tempcnta -\sixt@@n\relax\fi \fi }\@tempcntb |
---|
| 1015 | \csname ftype@\@captype \endcsname \multiply \@tempcntb \@xxxii \advance |
---|
| 1016 | \@tempcnta \@tempcntb \global \count \@currbox \@tempcnta }\@fltovf \fi |
---|
| 1017 | \global \setbox \@currbox \color@vbox \normalcolor \vbox \bgroup |
---|
| 1018 | \ifx\@captype\xtable |
---|
| 1019 | \ifsettotop |
---|
| 1020 | \vglue-6pt |
---|
| 1021 | \fi\fi\global\settotopfalse |
---|
| 1022 | \hsize \columnwidth \@parboxrestore \@floatboxreset} |
---|
| 1023 | |
---|
| 1024 | \let\savetabular\tabular |
---|
| 1025 | \def\tabular{\tablefontsize\baselineskip=12pt\savetabular} |
---|
| 1026 | |
---|
| 1027 | \@namedef{tabular*}#1{\def\@halignto{to#1} |
---|
| 1028 | \tablefontsize\baselineskip12pt\@tabular} |
---|
| 1029 | |
---|
| 1030 | \def\@array[#1]#2{% |
---|
| 1031 | \if #1t\vtop \else \if#1b\vbox \else \vcenter \fi\fi |
---|
| 1032 | \bgroup |
---|
| 1033 | \setbox\@arstrutbox\hbox{% |
---|
| 1034 | \vrule \@height\arraystretch\ht\strutbox |
---|
| 1035 | \@depth\arraystretch \dp\strutbox |
---|
| 1036 | \@width\z@}% |
---|
| 1037 | \@mkpream{@{}#2@{}}% |
---|
| 1038 | \edef\@preamble{% |
---|
| 1039 | \ialign \noexpand\@halignto |
---|
| 1040 | \bgroup \@arstrut \@preamble \tabskip\z@skip \cr}% |
---|
| 1041 | \let\@startpbox\@@startpbox \let\@endpbox\@@endpbox |
---|
| 1042 | \let\tabularnewline\\% |
---|
| 1043 | \let\par\@empty |
---|
| 1044 | \let\@sharp##% |
---|
| 1045 | \set@typeset@protect |
---|
| 1046 | \lineskip\z@skip\baselineskip\z@skip |
---|
| 1047 | \ifhmode \@preamerr\z@ \@@par\fi |
---|
| 1048 | \@preamble} |
---|
| 1049 | |
---|
| 1050 | \def\tablenotes{\vskip2pt\footnotesize} |
---|
| 1051 | \let\endtablenotes\relax |
---|
| 1052 | |
---|
| 1053 | %% Compatibilidad con versiones anteriores: |
---|
| 1054 | \let\savehline\hline |
---|
| 1055 | |
---|
| 1056 | \let\hline\savehline |
---|
| 1057 | \def\arraystretch{1.25} |
---|
| 1058 | |
---|
| 1059 | %%%%%%%%% Títulos numerados con letras |
---|
| 1060 | |
---|
| 1061 | \def\theletter{\relax} |
---|
| 1062 | \newif\ifxfirsttime |
---|
| 1063 | \xfirsttimetrue |
---|
| 1064 | |
---|
| 1065 | \def\caption{\ifx\@captype\xtable |
---|
| 1066 | \ifx\theletter\xrelax |
---|
| 1067 | \global\xfirsttimetrue\refstepcounter\@captype\else |
---|
| 1068 | \ifxfirsttime\global\xfirsttimefalse\refstepcounter\@captype\fi\fi |
---|
| 1069 | \else |
---|
| 1070 | \ifx\theletter\xrelax |
---|
| 1071 | \global\xfirsttimetrue\refstepcounter\@captype\else |
---|
| 1072 | \ifxfirsttime\global\xfirsttimefalse\refstepcounter\@captype\fi\fi\fi |
---|
| 1073 | \edef\@currentlabel{\expandafter\csname p@\@captype\endcsname% |
---|
| 1074 | \expandafter\csname the\@captype\endcsname} |
---|
| 1075 | \xdef\currcaptype{\@captype} |
---|
| 1076 | \@dblarg{\@caption\@captype}} |
---|
| 1077 | |
---|
| 1078 | \def\letteredcaption#1{\gdef\theletter{#1}\caption} |
---|
| 1079 | |
---|
| 1080 | \newif\ifcontinued |
---|
| 1081 | \def\continuedcaption{\global\continuedtrue\caption} |
---|
| 1082 | |
---|
| 1083 | %%% <<=== final de los títulos de Figura y Tabla |
---|
| 1084 | |
---|
| 1085 | |
---|
| 1086 | %%% Tabla de Contenidos, Lista de Figuras, LOT ===>> |
---|
| 1087 | |
---|
| 1088 | \newcommand{\@pnumwidth}{1.55em} |
---|
| 1089 | \newcommand{\@tocrmarg} {2.55em plus .5in} |
---|
| 1090 | \newcommand{\@dotsep}{4.5} |
---|
| 1091 | |
---|
| 1092 | \def\startonoddpage{\clearpage |
---|
| 1093 | \ifodd\c@page\else\null\thispagestyle{empty}\newpage\fi} |
---|
| 1094 | |
---|
| 1095 | \newcommand{\tableofcontents}{% |
---|
| 1096 | %\startonoddpage |
---|
| 1097 | \global\titletrue |
---|
| 1098 | \chapter*{\contentsname} |
---|
| 1099 | \@mkboth{\uppercase{\contentsname}}{\uppercase{\contentsname}}% |
---|
| 1100 | \vskip-9pt |
---|
| 1101 | \bgroup\parskip=0pt |
---|
| 1102 | \chapskip=26pt |
---|
| 1103 | \authorskip=-6pt |
---|
| 1104 | \chapheight3pt |
---|
| 1105 | \partskip=-8pt |
---|
| 1106 | {\normalsize\tocfonts\baselineskip=14pt |
---|
| 1107 | \hyphenpenalty=10000 |
---|
| 1108 | \@starttoc{toc}% |
---|
| 1109 | } |
---|
| 1110 | \egroup |
---|
| 1111 | \if@restonecol\twocolumn\fi |
---|
| 1112 | |
---|
| 1113 | \newpage |
---|
| 1114 | \markboth{}{} |
---|
| 1115 | } |
---|
| 1116 | |
---|
| 1117 | \def\splitintwo#1.#2*{\llap{#1}\rlap{.#2}} |
---|
| 1118 | |
---|
| 1119 | \newcommand{\listoftables}{% |
---|
| 1120 | %\startonoddpage |
---|
| 1121 | \global\titletrue |
---|
| 1122 | \chapter*{Lista de Tablas |
---|
| 1123 | \@mkboth{\uppercase{Lista de Tablas}}{\uppercase{Lista de Tablas}}}% |
---|
| 1124 | \addcontentsline{toc}{schapter}{Lista de Tablas} |
---|
| 1125 | \vskip-9pt |
---|
| 1126 | \bgroup\parskip=2pt |
---|
| 1127 | {\def\numberline##1{\def\one{##1}% |
---|
| 1128 | \hb@xt@\@tempdima{\expandafter\splitintwo\one*\hfil}} |
---|
| 1129 | \normalsize\tocfonts |
---|
| 1130 | \hyphenpenalty=10000 |
---|
| 1131 | \@starttoc{lot}% |
---|
| 1132 | } |
---|
| 1133 | \egroup |
---|
| 1134 | \if@restonecol\twocolumn\fi |
---|
| 1135 | \newpage |
---|
| 1136 | \markboth{}{} |
---|
| 1137 | } |
---|
| 1138 | |
---|
| 1139 | |
---|
| 1140 | |
---|
| 1141 | \newcommand{\listoffigures}{% |
---|
| 1142 | %\startonoddpage |
---|
| 1143 | \global\titletrue |
---|
| 1144 | \chapter*{Lista de Figuras |
---|
| 1145 | \@mkboth{\uppercase{Lista de Figuras}}{\uppercase{Lista de Figuras}}}% |
---|
| 1146 | \addcontentsline{toc}{schapter}{Lista de Figuras} |
---|
| 1147 | \vskip-9pt |
---|
| 1148 | \bgroup\parskip=2pt |
---|
| 1149 | {\def\numberline##1{\def\one{##1}% |
---|
| 1150 | \hb@xt@\@tempdima{\expandafter\splitintwo\one*\hfil}} |
---|
| 1151 | \normalsize\tocfonts |
---|
| 1152 | \hyphenpenalty=10000 |
---|
| 1153 | \@starttoc{lof}% |
---|
| 1154 | } |
---|
| 1155 | \egroup |
---|
| 1156 | \if@restonecol\twocolumn\fi |
---|
| 1157 | \newpage |
---|
| 1158 | \markboth{}{} |
---|
| 1159 | } |
---|
| 1160 | |
---|
| 1161 | \newskip\partskip |
---|
| 1162 | |
---|
| 1163 | \def\l@part#1#2{% |
---|
| 1164 | \ifnum \c@tocdepth >-2\relax |
---|
| 1165 | \addpenalty{-\@highpenalty}% |
---|
| 1166 | \vskip16pt |
---|
| 1167 | \begingroup |
---|
| 1168 | {\centering\leavevmode\chaptocfont |
---|
| 1169 | \uppercase{Parte\ \/ #1} |
---|
| 1170 | \vskip8pt |
---|
| 1171 | \vskip\partskip |
---|
| 1172 | }\par |
---|
| 1173 | \nobreak |
---|
| 1174 | \global\@nobreaktrue |
---|
| 1175 | \everypar{\global\@nobreakfalse\everypar{}} |
---|
| 1176 | \endgroup |
---|
| 1177 | \vskip1sp |
---|
| 1178 | \fi} |
---|
| 1179 | |
---|
| 1180 | \def\l@chapter#1#2{% |
---|
| 1181 | \ifnum \c@tocdepth >\m@ne |
---|
| 1182 | \addpenalty{-\@highpenalty}% |
---|
| 1183 | \vskip 10pt \@plus\p@ |
---|
| 1184 | \setlength\@tempdima{2.5em}% |
---|
| 1185 | \begingroup |
---|
| 1186 | \let\numberline\xnumberline |
---|
| 1187 | \parindent \z@ \rightskip \@pnumwidth |
---|
| 1188 | \parfillskip -\@pnumwidth |
---|
| 1189 | \leavevmode |
---|
| 1190 | \advance\leftskip\@tempdima |
---|
| 1191 | \hskip -\leftskip |
---|
| 1192 | \chaptocfont |
---|
| 1193 | #1\nobreak\hfil \nobreak\hbox |
---|
| 1194 | to\@pnumwidth{\hss\chaptocfont #2}\par |
---|
| 1195 | \penalty\@highpenalty |
---|
| 1196 | \endgroup |
---|
| 1197 | \vskip4pt |
---|
| 1198 | \fi} |
---|
| 1199 | |
---|
| 1200 | \def\l@schapter#1#2{% |
---|
| 1201 | \ifnum \c@tocdepth >1 |
---|
| 1202 | \addpenalty{-\@highpenalty}% |
---|
| 1203 | \vskip 3pt \@plus\p@ |
---|
| 1204 | \setlength\@tempdima{2.5em}% |
---|
| 1205 | \begingroup |
---|
| 1206 | \parindent \z@ \rightskip \@pnumwidth |
---|
| 1207 | \parfillskip -\@pnumwidth |
---|
| 1208 | \leavevmode |
---|
| 1209 | \advance\leftskip\@tempdima |
---|
| 1210 | \hskip -\leftskip |
---|
| 1211 | %\chaptocfont |
---|
| 1212 | #1\nobreak\hfil \nobreak\hbox |
---|
| 1213 | to\@pnumwidth{\hss #2}\par |
---|
| 1214 | \penalty\@highpenalty |
---|
| 1215 | \endgroup |
---|
| 1216 | \vskip1sp |
---|
| 1217 | \fi} |
---|
| 1218 | |
---|
| 1219 | |
---|
| 1220 | \def\l@sschapter#1#2{% |
---|
| 1221 | \ifnum \c@tocdepth >1 |
---|
| 1222 | \addpenalty{-\@highpenalty}% |
---|
| 1223 | \vskip 6pt \@plus\p@ |
---|
| 1224 | \setlength\@tempdima{2.5em}% |
---|
| 1225 | \begingroup |
---|
| 1226 | \parindent \z@ \rightskip \@pnumwidth |
---|
| 1227 | \parfillskip -\@pnumwidth |
---|
| 1228 | \leavevmode |
---|
| 1229 | \advance\leftskip\@tempdima |
---|
| 1230 | \hskip -\leftskip |
---|
| 1231 | \bf |
---|
| 1232 | #1\nobreak\hfil \nobreak\hbox |
---|
| 1233 | to\@pnumwidth{\hss #2}\par |
---|
| 1234 | \penalty\@highpenalty |
---|
| 1235 | \endgroup |
---|
| 1236 | \vskip1sp |
---|
| 1237 | \fi} |
---|
| 1238 | |
---|
| 1239 | \def\l@achapter#1#2{% |
---|
| 1240 | \ifnum \c@tocdepth >0 |
---|
| 1241 | \addpenalty{-\@highpenalty}% |
---|
| 1242 | \vskip 6pt |
---|
| 1243 | \setlength\@tempdima{2.5em}% |
---|
| 1244 | \begingroup |
---|
| 1245 | \parindent \z@ \rightskip \@pnumwidth |
---|
| 1246 | \parfillskip -\@pnumwidth |
---|
| 1247 | \leavevmode |
---|
| 1248 | \advance\leftskip\@tempdima |
---|
| 1249 | \hskip -\leftskip |
---|
| 1250 | \chaptocfont |
---|
| 1251 | #1\nobreak\hfil \nobreak\hbox |
---|
| 1252 | to\@pnumwidth{\hss #2}\par |
---|
| 1253 | \penalty\@highpenalty |
---|
| 1254 | \endgroup |
---|
| 1255 | \vskip4pt |
---|
| 1256 | \fi} |
---|
| 1257 | |
---|
| 1258 | % \@dottedtocline{NIVEL}{IDENTACIÓN}{AMPLITUD_NUMERO}{TÍTULO}{PÁGINA} : |
---|
| 1259 | % Macro para producir una línea de tabla de contenidos con los siguientes parámetros: |
---|
| 1260 | % NIVEL : Si NIVEL > \c@tocdepth, entonces no se genera la línea. |
---|
| 1261 | % IDENTACIÓN : Identación total desde el margen izquierdo. |
---|
| 1262 | % AMPLITUD_NUMERO : Amplitud de la caja para el número si el TÍTULO tiene un comando \numberline. |
---|
| 1263 | % Como de 25 Enero de 1988, esto también el la cantidad extra de identación agregada a la segunda y subsecuentes líneas para |
---|
| 1264 | % líneas de múltiples entradas. |
---|
| 1265 | % TÍTULO : Contenidos de entrada. |
---|
| 1266 | % PÁGINA : Número de página. |
---|
| 1267 | % |
---|
| 1268 | % Utilice los siguientes parámetros, los cuales deben ser configurados en el estilo del documento. |
---|
| 1269 | % Estos deben definirse con \def's. |
---|
| 1270 | % \@pnumwidth : Ancho de la caja en el cual el número de página es colocado. |
---|
| 1271 | % \@tocrmarg : Identación del márgen derecho para todas las líneas exceptuando la última en entradas múltiples. |
---|
| 1272 | % \@dotsep : Separación entre puntos, unidad in (pulgadas) mu (). Debe definirse para \def'd un número como 2 o 1.7 |
---|
| 1273 | % |
---|
| 1274 | |
---|
| 1275 | \def\@dottedtocline#1#2#3#4#5{% |
---|
| 1276 | \ifnum #1>\c@tocdepth \else \vskip 1sp {\leftskip #2\relax% |
---|
| 1277 | \rightskip \@tocrmarg \parfillskip -\rightskip \parindent #2\relax% |
---|
| 1278 | \@afterindenttrue \interlinepenalty \@M \leavevmode \@tempdima #3\relax % |
---|
| 1279 | \advance \leftskip \@tempdima \hbox {}\hskip -\leftskip #4% |
---|
| 1280 | \nobreak% \leaders \hbox {$\m@th \mkern% |
---|
| 1281 | % \@dotsep mu.\mkern \@dotsep mu$} |
---|
| 1282 | \hfill\nobreak\hbox to\@pnumwidth {\hfil #5}\par }\fi} |
---|
| 1283 | |
---|
| 1284 | \newskip\tabandfigskip |
---|
| 1285 | \tabandfigskip=6pt plus 3pt minus 3pt |
---|
| 1286 | \def\l@table{\setlength\@tempdima{18pt}% |
---|
| 1287 | \vskip\tabandfigskip |
---|
| 1288 | \@dottedtocline{1}{1.5em}{3.5em}} |
---|
| 1289 | \def\l@figure{\setlength\@tempdima{18pt}% |
---|
| 1290 | \vskip\tabandfigskip |
---|
| 1291 | \@dottedtocline{1}{1.5em}{3.5em}} |
---|
| 1292 | |
---|
| 1293 | \def\l@section{\setlength\@tempdima{18pt}% |
---|
| 1294 | \@dottedtocline{1}{2.5em}{3em}}%was 2.3em |
---|
| 1295 | \def\l@subsection{\@dottedtocline{2}{5.5em}{3.6em}}% #3 was 3.4em |
---|
| 1296 | \def\l@subsubsection{\@dottedtocline{3}{7em}{5.1em}} %was 4.1em |
---|
| 1297 | \def\l@paragraph{\@dottedtocline{4}{10em}{5em}} |
---|
| 1298 | \def\l@subparagraph{\@dottedtocline{5}{12em}{6em}} |
---|
| 1299 | |
---|
| 1300 | |
---|
| 1301 | %%% <<=== final TOC |
---|
| 1302 | |
---|
| 1303 | %%% Bibliografiá, Referencias, Agradecimientos ===>> |
---|
| 1304 | |
---|
| 1305 | %%%%%% Bibliografía utilizando BibTeX |
---|
| 1306 | |
---|
| 1307 | \def\chapbibliography{% |
---|
| 1308 | {\let\thebibliography\thechapbibliography |
---|
| 1309 | \let\endthebibliography\endthechapbibliography |
---|
| 1310 | \@input {\jobname.bbl}} |
---|
| 1311 | } |
---|
| 1312 | |
---|
| 1313 | \def\thechapbibliography#1{\section*{Referencias} |
---|
| 1314 | \markright{REFERENCIAS} |
---|
| 1315 | \addcontentsline{toc}{schapter}{Referencias} |
---|
| 1316 | \small |
---|
| 1317 | \labelsep 5pt |
---|
| 1318 | \list |
---|
| 1319 | {\@biblabel{\arabic{enumiv}}}{\settowidth\labelwidth{\@biblabel{#1}}% |
---|
| 1320 | \leftmargin\labelwidth |
---|
| 1321 | \advance\leftmargin\labelsep |
---|
| 1322 | \usecounter{enumiv}% |
---|
| 1323 | \let\p@enumiv\@empty |
---|
| 1324 | \def\theenumiv{\arabic{enumiv}}}% |
---|
| 1325 | \def\newblock{\hskip .11em plus.33em minus.07em}% |
---|
| 1326 | \sloppy\clubpenalty4000\widowpenalty4000 |
---|
| 1327 | \sfcode`\.=\@m} |
---|
| 1328 | |
---|
| 1329 | \def\endthechapbibliography{% |
---|
| 1330 | \endlist} |
---|
| 1331 | |
---|
| 1332 | |
---|
| 1333 | |
---|
| 1334 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
---|
| 1335 | \def\newblock{} |
---|
| 1336 | |
---|
| 1337 | \let\save@lbibitem\@lbibitem |
---|
| 1338 | \let\save@bibitem\@bibitem |
---|
| 1339 | \def\@lbibitem{\def\@biblabel##1{[##1]} |
---|
| 1340 | \save@lbibitem} |
---|
| 1341 | |
---|
| 1342 | \def\@bibitem{\labelsep=5pt\def\@biblabel##1{##1.}\save@bibitem} |
---|
| 1343 | |
---|
| 1344 | \def\bibitem{\@ifnextchar[\@lbibitem\@bibitem} |
---|
| 1345 | |
---|
| 1346 | |
---|
| 1347 | %% to get rid of the extra argument used for thebibliography, |
---|
| 1348 | %% when redefinining thebibliography to be chapreferences: |
---|
| 1349 | \def\chapthebibliography#1{\chapreferences} |
---|
| 1350 | \let\endchapthebibliography\endchapreferences |
---|
| 1351 | |
---|
| 1352 | \def\chapreferences#1{\ifvmode\vskip-\lastskip\fi |
---|
| 1353 | \vskip8pt\vskip1sp\section*{REFERENCIAS} |
---|
| 1354 | \addcontentsline{toc}{schapter}{Referencias} |
---|
| 1355 | \bgroup |
---|
| 1356 | \small |
---|
| 1357 | \list |
---|
| 1358 | {\@biblabel{\arabic{enumiv}}}{\settowidth\labelwidth{\@biblabel{#1}}% |
---|
| 1359 | \leftmargin\labelwidth |
---|
| 1360 | \advance\leftmargin\labelsep |
---|
| 1361 | \usecounter{enumiv}% |
---|
| 1362 | \let\p@enumiv\@empty |
---|
| 1363 | \def\theenumiv{\arabic{enumiv}}}% |
---|
| 1364 | \def\newblock{\hskip .11em plus.33em minus.07em}% |
---|
| 1365 | \sloppy\clubpenalty4000\widowpenalty4000 |
---|
| 1366 | \sfcode`\.=\@m |
---|
| 1367 | } |
---|
| 1368 | |
---|
| 1369 | \def\endchapreferences{\endlist\egroup} |
---|
| 1370 | |
---|
| 1371 | \def\thebibliography#1{\clearpage%\startonoddpage |
---|
| 1372 | \global\titletrue\dooffprintinfo |
---|
| 1373 | \chapter*{Referencias} |
---|
| 1374 | \markboth{REFERENCIAS}{REFERENCIAS} |
---|
| 1375 | \addcontentsline{toc}{schapter}{Referencias} |
---|
| 1376 | \small |
---|
| 1377 | \labelsep 5pt |
---|
| 1378 | \list |
---|
| 1379 | {\@biblabel{\arabic{enumiv}}}{\settowidth\labelwidth{\@biblabel{#1}}% |
---|
| 1380 | \leftmargin\labelwidth |
---|
| 1381 | \advance\leftmargin\labelsep |
---|
| 1382 | \usecounter{enumiv}% |
---|
| 1383 | \let\p@enumiv\@empty |
---|
| 1384 | \def\theenumiv{\arabic{enumiv}}}% |
---|
| 1385 | \def\newblock{\hskip .11em plus.33em minus.07em}% |
---|
| 1386 | \sloppy\clubpenalty4000\widowpenalty4000 |
---|
| 1387 | \sfcode`\.=\@m} |
---|
| 1388 | |
---|
| 1389 | \def\endthebibliography{% |
---|
| 1390 | \endlist} |
---|
| 1391 | |
---|
| 1392 | \def\references{\bgroup\thebibliography} |
---|
| 1393 | \def\endreferences{\endthebibliography\egroup} |
---|
| 1394 | |
---|
| 1395 | |
---|
| 1396 | %% final Bibliografía, Referencias y Agradecimientos |
---|
| 1397 | |
---|
| 1398 | |
---|
| 1399 | %%% Pié de páginas ===>>> |
---|
| 1400 | |
---|
| 1401 | % \renewcommand{\footnoterule}{% |
---|
| 1402 | % \kern-3\p@ |
---|
| 1403 | % \hrule width .4\columnwidth |
---|
| 1404 | % \kern 2.6\p@} |
---|
| 1405 | |
---|
| 1406 | \let\footnoterule\relax |
---|
| 1407 | |
---|
| 1408 | \@addtoreset{footnote}{chapter} |
---|
| 1409 | |
---|
| 1410 | \long\def\@makefntext#1{% |
---|
| 1411 | \parindent 1em% |
---|
| 1412 | \noindent |
---|
| 1413 | \@makefnmark#1} |
---|
| 1414 | |
---|
| 1415 | \newcount\footnum |
---|
| 1416 | \newcount\savefootnum |
---|
| 1417 | \def\endnote#1{\global\advance\footnum by 1\relax$^{\the\footnum}$% |
---|
| 1418 | \long\expandafter\gdef\csname foot\the\footnum\endcsname{% |
---|
| 1419 | \vtop{\footnotesize\hsize=\textwidth\leftskip=12pt\relax\parindent=-12pt |
---|
| 1420 | \indent\hbox to12pt{\the\footnum.\hfill}{#1\strut\vskip1sp}}\vskip1pt}} |
---|
| 1421 | |
---|
| 1422 | \def\endnotetext#1{\global\advance\footnum by 1\relax |
---|
| 1423 | \long\expandafter\gdef\csname foot\the\footnum\endcsname{% |
---|
| 1424 | \vtop{\footnotesize\hsize=\textwidth\leftskip=12pt\relax\parindent=-12pt |
---|
| 1425 | \indent\hbox to12pt{\the\footnum.\hfill}{#1\strut\vskip1sp}}\vskip1pt}} |
---|
| 1426 | |
---|
| 1427 | \newif\ifrefnoteused |
---|
| 1428 | \def\refnote{\ifrefnoteused\else\global\refnoteusedtrue |
---|
| 1429 | \typeout{^^J^^J!!! ===>>>^^J |
---|
| 1430 | Por favor no utilice el comando \string\refnote.^^J |
---|
| 1431 | En su lugar escriba una referencia estándar de LaTeX y utilice \string\cite |
---|
| 1432 | ^^J<<<=== !!!^^J^^J}\fi} |
---|
| 1433 | |
---|
| 1434 | \def\notes{\ifnum\footnum=0\else |
---|
| 1435 | \savefootnum=\footnum |
---|
| 1436 | \footnum=0 |
---|
| 1437 | \noindent\loop\ifnum\savefootnum>\footnum% |
---|
| 1438 | \global\advance\footnum by1\relax% |
---|
| 1439 | \csname foot\the\footnum\endcsname\relax% |
---|
| 1440 | \expandafter\gdef\csname foot\the\footnum\endcsname{\relax}\relax% |
---|
| 1441 | \repeat\global\footnum=0\relax\fi} |
---|
| 1442 | |
---|
| 1443 | \def\note{\hfill} |
---|
| 1444 | |
---|
| 1445 | |
---|
| 1446 | %%% <<<=== Final de Pié de páginas |
---|
| 1447 | |
---|
| 1448 | |
---|
| 1449 | |
---|
| 1450 | %%% Encabezados de ejecución ===>>> |
---|
| 1451 | |
---|
| 1452 | %% a menos que se necesite esto, déjelo descomentado |
---|
| 1453 | \let\@mkboth\@gobbletwo |
---|
| 1454 | \let\chaptermark\@gobble |
---|
| 1455 | \let\sectionmark\@gobble |
---|
| 1456 | |
---|
| 1457 | \def\ps@headings{\let\@mkboth\markboth |
---|
| 1458 | \def\@oddfoot{\rlap{\ifoffprintinfo\global\offprintinfofalse% |
---|
| 1459 | \printoffprintinfo\fi}% |
---|
| 1460 | \iftitle\global\titlefalse{\hfill\foliofont\thepage}\fi} |
---|
| 1461 | \def\@evenfoot{\iftitle\global\titlefalse{\foliofont\thepage\hfill}\fi |
---|
| 1462 | \llap{\ifoffprintinfo\global\offprintinfofalse% |
---|
| 1463 | \printoffprintinfo\fi}% |
---|
| 1464 | } |
---|
| 1465 | \def\@evenhead{\iftitle\else{\foliofont \thepage}\hskip1.5pc% |
---|
| 1466 | \footnotesize\runningheadfont\MakeUppercase\leftmark\fi\hfill} |
---|
| 1467 | \def\@oddhead{\hfill\iftitle\else{\footnotesize\runningheadfont |
---|
| 1468 | \MakeUppercase\rightmark}\hskip1.5pc% |
---|
| 1469 | \foliofont\thepage\fi}% |
---|
| 1470 | \def\chaptermark##1{\markboth {\uppercase{##1}}{}}% |
---|
| 1471 | \def\sectionmark##1{\markright {\uppercase{##1}}}} |
---|
| 1472 | |
---|
| 1473 | \markboth{}{} |
---|
| 1474 | |
---|
| 1475 | \ps@headings |
---|
| 1476 | |
---|
| 1477 | \pagestyle{headings} |
---|
| 1478 | \pagenumbering{roman} |
---|
| 1479 | |
---|
| 1480 | |
---|
| 1481 | |
---|
| 1482 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
---|
| 1483 | %% Uso especial de fuentes |
---|
| 1484 | %% |
---|
| 1485 | |
---|
| 1486 | %% Llamado a fuentes modernas de computadores. Se redefinirá si las fuentes son utilizadas |
---|
| 1487 | %% |
---|
| 1488 | %% \documentclass{wileysix} |
---|
| 1489 | %% \usepackage{w-bookps} |
---|
| 1490 | %% utilizará fuentes PostScript. |
---|
| 1491 | |
---|
| 1492 | %% \documentclass{wileysix} utilizará fuentes modernas de Computadoras. |
---|
| 1493 | |
---|
| 1494 | |
---|
| 1495 | %% Times-Roman |
---|
| 1496 | \def\timesroman{cmr10 } |
---|
| 1497 | \def\timesbold{cmbx10 } |
---|
| 1498 | \def\timesitalic{cmti10 } |
---|
| 1499 | \def\timesbolditalic{cmbx10 } |
---|
| 1500 | |
---|
| 1501 | %% Helvetica |
---|
| 1502 | \def\helvetica{cmss10 } |
---|
| 1503 | \def\helveticabold{cmssbx10 } |
---|
| 1504 | \def\helveticaboldoblique{cmssi10 } |
---|
| 1505 | \def\helveticaoblique{cmssi10 } |
---|
| 1506 | |
---|
| 1507 | %% Uso especial de fuentes |
---|
| 1508 | %% |
---|
| 1509 | %% Tabla de Contenidos |
---|
| 1510 | \font\tocarttitlefont=\helveticabold at 12pt |
---|
| 1511 | \font\chaptocfont=\helveticabold at 10pt |
---|
| 1512 | \font\tocfonts=\timesroman at 10pt |
---|
| 1513 | |
---|
| 1514 | |
---|
| 1515 | %% Encabezados |
---|
| 1516 | \font\runningheadfont=\helvetica at6,5pt |
---|
| 1517 | \font\foliofont=\helveticabold at 9pt |
---|
| 1518 | |
---|
| 1519 | %% Título del libro, Página de medio título |
---|
| 1520 | |
---|
| 1521 | \font\halftitlefont=\helveticabold at 20pt |
---|
| 1522 | \font\titlefont=\helveticabold at 27pt |
---|
| 1523 | \font\subtitlefont=\helveticabold at 20pt |
---|
| 1524 | \font\editionfont=\helvetica at 14pt |
---|
| 1525 | \font\authorfont=\helveticabold at 11pt |
---|
| 1526 | \font\affilfont=\helvetica at 10pt |
---|
| 1527 | \font\locfont=\timesbolditalic at 7pt |
---|
| 1528 | |
---|
| 1529 | \font\wileyfont=\helveticabold at 10pt |
---|
| 1530 | \font\imprintfont=\helvetica at 10pt |
---|
| 1531 | |
---|
| 1532 | %% Título de parte |
---|
| 1533 | \font\partfont=\helvetica at 24pt |
---|
| 1534 | \font\partnumberfont=\helveticabold at 14pt |
---|
| 1535 | |
---|
| 1536 | %% Título de capítulo |
---|
| 1537 | \font\chapternumberfont=\helveticabold at 14pt |
---|
| 1538 | \font\chaptertitlefont=\helvetica at 18pt |
---|
| 1539 | |
---|
| 1540 | %% Encabezados de sección |
---|
| 1541 | \font\sectionfont=\timesbold at 10pt |
---|
| 1542 | \font\subsectionfont=\helveticabold at 10pt |
---|
| 1543 | \font\subsubsectionfont=\helveticaboldoblique at 10pt |
---|
| 1544 | \font\paragraphfont=\helveticaoblique at 10pt |
---|
| 1545 | |
---|
| 1546 | %% Títulos de figuras y tablas |
---|
| 1547 | \font\fignumfont=\timesbold at 9pt |
---|
| 1548 | \font\tabnumfont=\timesbold at 9pt |
---|
| 1549 | \font\figtextfont=\timesroman at 9pt |
---|
| 1550 | \font\tabtextfont=\timesroman at 9pt |
---|
| 1551 | |
---|
| 1552 | %% Fuente de tablas |
---|
| 1553 | \def\tablefontsize{\small} |
---|
| 1554 | \def\tablefootnotesize{\footnotesize} |
---|
| 1555 | |
---|
| 1556 | %% Referencias/Bibligrafia |
---|
| 1557 | \def\bibfontsize{\small} |
---|
| 1558 | |
---|
| 1559 | %% Fuentes de texto |
---|
| 1560 | \font\bit=\timesbolditalic at 8pt |
---|
| 1561 | |
---|
| 1562 | %% Fuentes mayúscula pequeñas |
---|
| 1563 | \font\bigscfont\timesroman at 9.5pt |
---|
| 1564 | \font\smscfont\timesroman at 7.5pt |
---|
| 1565 | \font\wherefont\timesitalic at 8pt |
---|
| 1566 | |
---|
| 1567 | %% Configuración de problema |
---|
| 1568 | \font\probfont\timesbolditalic at 10pt |
---|
| 1569 | |
---|
| 1570 | |
---|
| 1571 | %%% <=== Final uso de fuentes especiales |
---|
| 1572 | |
---|
| 1573 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
---|
| 1574 | %%%% Fuentes mayúscula pequeñas |
---|
| 1575 | |
---|
| 1576 | % To use: \fakesc some stuff* |
---|
| 1577 | %% \bigscfont, \smscfont are listed in font section above. |
---|
| 1578 | |
---|
| 1579 | \def\fakesc#1*{\edef\stuff{#1 }% |
---|
| 1580 | \expandafter\pickupnewword\stuff* } |
---|
| 1581 | \def\saveast{*} |
---|
| 1582 | |
---|
| 1583 | \def\rrelax{\relax} |
---|
| 1584 | |
---|
| 1585 | \def\pickupnewlett#1{\def\letter{#1}% |
---|
| 1586 | \ifx\letter\saveast\unskip% |
---|
| 1587 | \let\go\relax \else% |
---|
| 1588 | \ifx\letter\rrelax{\bigscfont\ }% |
---|
| 1589 | \let\go\pickupnewword\else% |
---|
| 1590 | \uppercase{\def\ucletter{#1}% upper case letter |
---|
| 1591 | \ifx\letter\ucletter% |
---|
| 1592 | {\bigscfont#1}\else{\smscfont#1}\fi}%% |
---|
| 1593 | \let\go\pickupnewlett\fi\fi\go} |
---|
| 1594 | |
---|
| 1595 | \def\pickupnewword#1 {\expandafter\pickupnewlett#1\relax} |
---|
| 1596 | %% <== end fakesc |
---|
| 1597 | |
---|
| 1598 | %% ==> glosario |
---|
| 1599 | \def\glossary{ |
---|
| 1600 | %\startonoddpage |
---|
| 1601 | \global\titletrue |
---|
| 1602 | \dooffprintinfo |
---|
| 1603 | \markboth{GLOSARIO}{GLOSARIO} |
---|
| 1604 | \chapter*{Glosario} |
---|
| 1605 | \addcontentsline{toc}{schapter}{Glosario} |
---|
| 1606 | \everypar={} |
---|
| 1607 | \bgroup |
---|
| 1608 | \leftskip=1in \parindent=-1in |
---|
| 1609 | \def\term##1{\vskip3pt\indent\hbox to 1in{##1\hfill}\relax}} |
---|
| 1610 | \def\endglossary{\vskip12pt\egroup\newpage |
---|
| 1611 | \markboth{}{} |
---|
| 1612 | } |
---|
| 1613 | %% <== |
---|
| 1614 | |
---|
| 1615 | %% ==> acronimos |
---|
| 1616 | \def\acronyms{%\startonoddpage |
---|
| 1617 | \global\titletrue |
---|
| 1618 | \dooffprintinfo |
---|
| 1619 | \markboth{ACRÓNIMOS}{ACRÓNIMOS} |
---|
| 1620 | \chapter*{Acrónimos} |
---|
| 1621 | \addcontentsline{toc}{schapter}{Acrónimos} |
---|
| 1622 | \everypar={} |
---|
| 1623 | \bgroup |
---|
| 1624 | \normalsize |
---|
| 1625 | \leftskip=1pc \parindent=-1pc |
---|
| 1626 | \def\term##1{\vskip2pt{\bf ##1}\hskip1em\relax}} |
---|
| 1627 | \def\endacronyms{\vskip12pt\egroup\newpage |
---|
| 1628 | \markboth{}{} |
---|
| 1629 | } |
---|
| 1630 | |
---|
| 1631 | \def\acro#1#2{\vskip4pt\hbox to\textwidth{\normalsize |
---|
| 1632 | \hbox to5pc{#1\hfill}\vtop{\advance\hsize by |
---|
| 1633 | -5pc\raggedright\noindent#2}}} |
---|
| 1634 | |
---|
| 1635 | %% <== |
---|
| 1636 | |
---|
| 1637 | %% ==> símbolos |
---|
| 1638 | \def\symbols{\startonoddpage\global\titletrue |
---|
| 1639 | \dooffprintinfo |
---|
| 1640 | \markboth{LISTA DE SÍMBOLOS}{LISTA DE SÍMBOLOS} |
---|
| 1641 | \chapter*{Símbolos} |
---|
| 1642 | \addcontentsline{toc}{schapter}{Lista de Símbolos} |
---|
| 1643 | \everypar={} |
---|
| 1644 | \bgroup\leftskip=1pc \parindent=-1pc |
---|
| 1645 | \def\term##1{\vskip2pt{$##1\,$}\hskip1em\relax}} |
---|
| 1646 | \def\endsymbols{\vskip12pt\egroup |
---|
| 1647 | \newpage |
---|
| 1648 | \markboth{}{} |
---|
| 1649 | } |
---|
| 1650 | %% <== final de símbolos |
---|
| 1651 | |
---|
| 1652 | |
---|
| 1653 | |
---|
| 1654 | %%%%%%%%%%%%%%%%%%%%%%% |
---|
| 1655 | %% Índice ===>>> |
---|
| 1656 | |
---|
| 1657 | \makeindex |
---|
| 1658 | % latex default |
---|
| 1659 | %% Use \latexprintindex instead of \printindex to |
---|
| 1660 | %% get the default latex index. |
---|
| 1661 | |
---|
| 1662 | %% Contents of makeidx.sty contained in \latexprintindex command. |
---|
| 1663 | %% This is because \printindex is defined in this package so |
---|
| 1664 | %% user doing \usepackage{makeidx} will get error message. |
---|
| 1665 | |
---|
| 1666 | \providecommand*\seealso[2]{\emph{\alsoname} #1} |
---|
| 1667 | \providecommand*\alsoname{ver también} |
---|
| 1668 | |
---|
| 1669 | \newcommand\printindex{\startonoddpage |
---|
| 1670 | \def\see##1##2{\emph{\seename} ##1} |
---|
| 1671 | \def\seename{ver} |
---|
| 1672 | \@input@{\jobname.ind}} |
---|
| 1673 | |
---|
| 1674 | \def\indexname{Índice} |
---|
| 1675 | |
---|
| 1676 | \newenvironment{theindex} |
---|
| 1677 | {\if@twocolumn |
---|
| 1678 | \@restonecolfalse |
---|
| 1679 | \else |
---|
| 1680 | \@restonecoltrue |
---|
| 1681 | \fi |
---|
| 1682 | \columnseprule \z@ |
---|
| 1683 | \columnsep 35\p@ |
---|
| 1684 | \twocolumn[\@makeschapterhead{\indexname}]% |
---|
| 1685 | \@mkboth{\uppercase{\indexname}}% |
---|
| 1686 | {\uppercase{\indexname}}% |
---|
| 1687 | \addcontentsline{toc}{schapter}{\indexname} |
---|
| 1688 | \global\titletrue\dooffprintinfo |
---|
| 1689 | \parindent\z@ |
---|
| 1690 | \parskip\z@ \@plus .3\p@\relax |
---|
| 1691 | \let\item\@idxitem |
---|
| 1692 | \spaceskip=3pt plus 2pt minus 1pt\xspaceskip=\spaceskip |
---|
| 1693 | \footnotesize\baselineskip=10pt plus 1pt minus 1pt} |
---|
| 1694 | {\pagestyle{headings} |
---|
| 1695 | \if@restonecol\onecolumn\else |
---|
| 1696 | \clearpage\fi} |
---|
| 1697 | |
---|
| 1698 | \newcommand{\@idxitem} {\par\hangindent 40\p@} |
---|
| 1699 | \newcommand{\subitem} {\par\hangindent 40\p@ \hspace*{20\p@}} |
---|
| 1700 | \newcommand{\subsubitem}{\par\hangindent 40\p@ \hspace*{30\p@}} |
---|
| 1701 | \newcommand{\indexspace}{\par\vskip 10\p@ \@plus0\p@ \@minus3\p@\relax} |
---|
| 1702 | |
---|
| 1703 | \def\multiprintindex#1#2{\startonoddpage |
---|
| 1704 | \def\see##1##2{\emph{\seename} ##1} |
---|
| 1705 | \def\seename{ver} |
---|
| 1706 | \def\indexname{#2} |
---|
| 1707 | \markboth{#2}{#2} |
---|
| 1708 | \input #1.ind} |
---|
| 1709 | |
---|
| 1710 | \newskip\iletterskip |
---|
| 1711 | \iletterskip=8pt plus .1pt minus 2pt |
---|
| 1712 | \def\iletter#1{\goodbreak\vskip\iletterskip{\sectionfont\uppercase{#1}\vrule depth 8pt width0pt}\nobreak} |
---|
| 1713 | |
---|
| 1714 | \def\seealso#1{\hskip16pt{\it Ver también\ }{#1}} |
---|
| 1715 | |
---|
| 1716 | \def\ltr#1{\nobreak\vskip\iletterskip |
---|
| 1717 | \hrule |
---|
| 1718 | \nobreak |
---|
| 1719 | \vskip3pt |
---|
| 1720 | {\bf#1} |
---|
| 1721 | \nobreak |
---|
| 1722 | \vskip\iletterskip} |
---|
| 1723 | |
---|
| 1724 | |
---|
| 1725 | %%%%%%%%%%%%%% |
---|
| 1726 | % Borrador |
---|
| 1727 | |
---|
| 1728 | \def\draft{\global\drafttrue |
---|
| 1729 | \def\@oddfoot{\vtop to 0pt{\vskip24pt\large\tt |
---|
| 1730 | D R A F T\hfill\today, \realtime\hfill D R A F T\global\titlefalse\vss}} |
---|
| 1731 | \def\@evenfoot{\@oddfoot}\normalsize} |
---|
| 1732 | |
---|
| 1733 | \def\fix{\ifcase\oldtime 0\or0\or0\or% |
---|
| 1734 | 0\or0\or0\or0\or0\or0\or0\fi} |
---|
| 1735 | \def\fixtiming{\ifcase\timing 0\or0\or0\or% |
---|
| 1736 | 0\or0\or0\or0\or0\or0\or0\fi} |
---|
| 1737 | \newcount\timing |
---|
| 1738 | \newcount\hourcount |
---|
| 1739 | \newcount\oldtime |
---|
| 1740 | |
---|
| 1741 | \def\realtime{\timing=\time \oldtime=\time |
---|
| 1742 | \ifnum\timing>60 \divide\timing by 60 |
---|
| 1743 | \hourcount=\the\timing |
---|
| 1744 | \multiply\timing by 60 |
---|
| 1745 | \advance\oldtime by-\timing |
---|
| 1746 | \ifnum\hourcount<12 \number\hourcount:\fix\number\oldtime am\fi% |
---|
| 1747 | \ifnum\hourcount=12 \number\hourcount:\fix\number\oldtime pm\fi% |
---|
| 1748 | \ifnum\hourcount>12 \advance\hourcount by-12 |
---|
| 1749 | \number\hourcount:\fix\number\oldtime pm\fi |
---|
| 1750 | \else12:\fixtiming\number\timing am\fi} |
---|
| 1751 | |
---|
| 1752 | \newcommand{\today}{\ifcase\month\or |
---|
| 1753 | January\or February\or March\or April\or May\or June\or |
---|
| 1754 | July\or August\or September\or October\or November\or December\fi |
---|
| 1755 | \space\number\day, \number\year} |
---|
| 1756 | |
---|
| 1757 | |
---|
| 1758 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
---|
| 1759 | %%%%% Macros para problemas propuestos |
---|
| 1760 | |
---|
| 1761 | \newcount\probcount |
---|
| 1762 | \newcount\subprobcount |
---|
| 1763 | \newcount\c@subproblem |
---|
| 1764 | \def\problems{ |
---|
| 1765 | \global\probcount=0 |
---|
| 1766 | \global\subprobcount=0 |
---|
| 1767 | \global\c@subproblem=0 |
---|
| 1768 | \goodbreak\vskip12pt |
---|
| 1769 | \markright{PROBLEMS} |
---|
| 1770 | \addcontentsline{toc}{section}{\protect\numberline{}Problemas} |
---|
| 1771 | \noindent{\sectionfont\uppercase{Problemas}\vrule depth 4pt width0pt}\markright{PROBLEMAS}\nobreak} |
---|
| 1772 | |
---|
| 1773 | \long\def\xappendixname{\appendixname}% |
---|
| 1774 | |
---|
| 1775 | \def\endproblems{\xdef\@currentlabel{\thechapter}} |
---|
| 1776 | \def\appendchapt{\Alph {chapter}} |
---|
| 1777 | \def\prob{\ifx\@chapapp\xappendixname |
---|
| 1778 | \let\go\aprob\else\let\go\chapprob\fi\go} |
---|
| 1779 | \def\subprob{\ifx\@chapapp\xappendixname |
---|
| 1780 | \let\go\asubprob\else\let\go\chapsubprob\fi\go} |
---|
| 1781 | |
---|
| 1782 | |
---|
| 1783 | \def\aprob{\vskip6pt |
---|
| 1784 | \leftskip=0pt |
---|
| 1785 | \global\c@subproblem=0 |
---|
| 1786 | \global\advance\probcount by1 |
---|
| 1787 | \xdef\@currentlabel{\Alph{chapter}.\the\probcount} |
---|
| 1788 | \noindent{\bf\Alph{chapter}.\the\probcount\hskip12pt\relax}} |
---|
| 1789 | |
---|
| 1790 | |
---|
| 1791 | \def\asubprob{\vskip1pt |
---|
| 1792 | \global\advance\c@subproblem by1 |
---|
| 1793 | \leftskip=39pt |
---|
| 1794 | \xdef\@currentlabel{\Alph{chapter}.\the\probcount.\alph{subproblem}} |
---|
| 1795 | % |
---|
| 1796 | \noindent\hbox to 0pt{\hss\bf\alph{subproblem})\ \ }\relax} |
---|
| 1797 | |
---|
| 1798 | |
---|
| 1799 | \newcount\c@subproblem |
---|
| 1800 | |
---|
| 1801 | \def\chapprob{\vskip6pt |
---|
| 1802 | \leftskip=0pt |
---|
| 1803 | \global\c@subproblem=0 |
---|
| 1804 | \global\advance\probcount by1 |
---|
| 1805 | \xdef\@currentlabel{\the\c@chapter.\the\probcount} |
---|
| 1806 | \noindent{\bf\the\c@chapter.\the\probcount\hskip12pt\relax}} |
---|
| 1807 | |
---|
| 1808 | \def\chapsubprob{\vskip1pt |
---|
| 1809 | \global\advance\c@subproblem by1 |
---|
| 1810 | \leftskip=39pt |
---|
| 1811 | \xdef\@currentlabel{\the\c@chapter.\the\probcount.\alph{subproblem}} |
---|
| 1812 | % |
---|
| 1813 | \noindent\hbox to 0pt{\hss\alph{subproblem})\ \ }\relax} |
---|
| 1814 | |
---|
| 1815 | \def\sidebysideprob#1#2{\centerline{\vtop{\hsize=.475\textwidth |
---|
| 1816 | \prob #1}\hfill\vtop{\hsize=.475\textwidth \prob #2}}} |
---|
| 1817 | |
---|
| 1818 | \def\sidebysidesubprob#1#2{\centerline{\vtop{\hsize=.475\textwidth |
---|
| 1819 | \subprob #1}\hfill\vtop{\hsize=.475\textwidth \subprob #2}}} |
---|
| 1820 | |
---|
| 1821 | %%%% <<== Final de problemas propuestos |
---|
| 1822 | |
---|
| 1823 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
---|
| 1824 | %%%%% Ejercicios |
---|
| 1825 | |
---|
| 1826 | |
---|
| 1827 | \def\exercises{\goodbreak\vskip12pt |
---|
| 1828 | \markright{EJERCICIOS} |
---|
| 1829 | \addcontentsline{toc}{section}{\protect\numberline{}Ejercicios} |
---|
| 1830 | \section*{EJERCICIOS} |
---|
| 1831 | \global\probcount=0 |
---|
| 1832 | \global\subprobcount=0 |
---|
| 1833 | \global\c@subproblem=0 |
---|
| 1834 | \markright{EJERCICIOS}\nobreak} |
---|
| 1835 | |
---|
| 1836 | \def\endexercises{\vskip1sp\xdef\@currentlabel{\thechapter}} |
---|
| 1837 | |
---|
| 1838 | \let\exer\prob |
---|
| 1839 | \let\subexer\subprob |
---|
| 1840 | \let\sidebysideexer\sidebysideprob |
---|
| 1841 | \let\sidebysidesubexer\sidebysidesubprob |
---|
| 1842 | |
---|
| 1843 | |
---|
| 1844 | |
---|
| 1845 | %%%% <<== final de macro de ejercicios |
---|
| 1846 | |
---|
| 1847 | |
---|
| 1848 | \pagenumbering{roman} |
---|
| 1849 | \widowpenalty10000 |
---|
| 1850 | \clubpenalty10000 |
---|
| 1851 | |
---|
| 1852 | %%%%% |
---|
| 1853 | %%%% side by side |
---|
| 1854 | %%%% to use: |
---|
| 1855 | % \begin{figure or table} \sidebyside{}{} \end{figure or table} |
---|
| 1856 | % |
---|
| 1857 | % \begin{table} |
---|
| 1858 | % \sidebyside{\caption{table caption} first table} |
---|
| 1859 | % {\caption{table caption} second table} |
---|
| 1860 | % \end{table} |
---|
| 1861 | |
---|
| 1862 | % or |
---|
| 1863 | |
---|
| 1864 | % \begin{figure} |
---|
| 1865 | % \sidebyside{\vskip<dimen>\caption{fig caption}} |
---|
| 1866 | % {\vskip<dimen>\caption{fig caption}} |
---|
| 1867 | % \end{figure} |
---|
| 1868 | |
---|
| 1869 | %% To label for cross referencing, use \label after and <outside> of |
---|
| 1870 | %% \caption{} |
---|
| 1871 | |
---|
| 1872 | % \begin{table} |
---|
| 1873 | % \sidebyside{\caption{table caption}\label{tab1} |
---|
| 1874 | % first table} |
---|
| 1875 | % {\caption{table caption}\label{tab2} second table} |
---|
| 1876 | % \end{table} |
---|
| 1877 | |
---|
| 1878 | % or |
---|
| 1879 | |
---|
| 1880 | % \begin{figure} |
---|
| 1881 | % \sidebyside{\vskip<dimen>\caption{fig caption}\label{fig1}} |
---|
| 1882 | % {\vskip<dimen>\caption{fig caption}\label{fig2}} |
---|
| 1883 | % \end{figure} |
---|
| 1884 | |
---|
| 1885 | |
---|
| 1886 | |
---|
| 1887 | \long\def\sidebyside#1#2{% |
---|
| 1888 | \hbox to\textwidth{\vtop{\hsize=.5\textwidth% |
---|
| 1889 | \advance\hsize by -.5\columnsep |
---|
| 1890 | \parindent=0pt |
---|
| 1891 | \centering |
---|
| 1892 | |
---|
| 1893 | #1\vskip1sp}\hskip\columnsep\vtop{\hsize=.5\textwidth% |
---|
| 1894 | \advance\hsize by -.5\columnsep |
---|
| 1895 | \parindent=0pt |
---|
| 1896 | \centering |
---|
| 1897 | #2 |
---|
| 1898 | |
---|
| 1899 | }\hfill}} |
---|
| 1900 | |
---|
| 1901 | \def\copyrightpage{\thispagestyle{empty}% |
---|
| 1902 | \vbox to\textheight\bgroup\vfill\obeylines\obeyspaces\xcopyrightpage} |
---|
| 1903 | |
---|
| 1904 | \def\xcopyrightpage#1#2\end#3{\scriptsize\parindent=0pt |
---|
| 1905 | %Copyleft \copyright{#1} por Fundación CENDITEL. |
---|
| 1906 | %\vskip6.5pt |
---|
| 1907 | %Publicado por Fundación CENDITEL - MPPCTI.\\ |
---|
| 1908 | %\vskip6.5pt |
---|
| 1909 | |
---|
| 1910 | Derecho de Autor © 2014 de: Endira Mora, Antonio Araujo, Víctor Bravo, Rodolfo Sumoza, José Contreras, Daniel Quintero. |
---|
| 1911 | |
---|
| 1912 | Fundación Centro Nacional de Desarrollo e Investigación en Tecnologías Libres (CENDITEL). |
---|
| 1913 | Ministerio del Poder Popular para la Educación Universitaria, Ciencia y Tecnología. |
---|
| 1914 | República Bolivariana de Venezuela. |
---|
| 1915 | Algunos Derechos Reservados – Copyleft. |
---|
| 1916 | |
---|
| 1917 | La presente obra está liberada bajo una Licencia ``Creative Commons Atribución - Reconocimiento, No comercial, Sin obra derivada 3.0'', que permite copiar, distribuir, exhibir y ejecutar la obra, no hacer obras derivadas y no hacer usos comerciales de la misma, bajo las condiciones de atribuir el crédito correspondiente a los autores y compartir las obras derivadas resultantes bajo esta misma licencia.\\ |
---|
| 1918 | |
---|
| 1919 | Más información sobre la licencia en: http://creativecommons.org/licenses/by-nc-sa/3.0/\\ |
---|
| 1920 | |
---|
| 1921 | ISBN de la obra independiente: No. ''en trámite''\\ |
---|
| 1922 | Deposito Legal No. ''en trámite''\\ |
---|
| 1923 | |
---|
| 1924 | |
---|
| 1925 | %\vskip10pt |
---|
| 1926 | %{\locfont Publicaciones de CENDITEL:} |
---|
| 1927 | %\vskip8pt |
---|
| 1928 | %#2 |
---|
| 1929 | %Impreso en la República Bolivariana de Venezuela.\\ |
---|
| 1930 | |
---|
| 1931 | %10\ \ 9\ \ 8\ \ 7\ \ 6\ \ 5\ \ 4\ \ 3\ \ 2\ \ 1 |
---|
| 1932 | \vskip24pt |
---|
| 1933 | \egroup\let\@badend\relax\endgroup} |
---|
| 1934 | |
---|
| 1935 | \let\endcopyrightpage\relax |
---|
| 1936 | |
---|
| 1937 | \def\seriespage{\newpage\thispagestyle{empty}\vbox to\textheight\bgroup\vfill |
---|
| 1938 | \leftskip=34pt \rightskip=-34pt} |
---|
| 1939 | \def\endseriespage{\vskip6pt{\noindent\hskip-12pt |
---|
| 1940 | Texto adicional de información} \vskip24pt\egroup |
---|
| 1941 | \newpage} |
---|
| 1942 | \def\series#1#2{\noindent\hskip-12pt\uppercase{#1}\\ |
---|
| 1943 | \global\setbox0=\hbox{\footnotesize#2} |
---|
| 1944 | \hsize=\wd0 |
---|
| 1945 | \footnotesize#2} |
---|
| 1946 | |
---|
| 1947 | \def\eds#1{\vskip6pt\footnotesize\noindent Editors: {\it #1}} |
---|
| 1948 | |
---|
| 1949 | %%%%%%%%%%%% |
---|
| 1950 | %% Información de la separata |
---|
| 1951 | |
---|
| 1952 | \newif\ifoffprintinfo |
---|
| 1953 | \def\dooffprintinfo{\global\offprintinfotrue} |
---|
| 1954 | |
---|
| 1955 | \def\copyrightyear#1{\def\thecopyrightyear{#1}} |
---|
| 1956 | |
---|
| 1957 | \copyrightyear{\the\year} |
---|
| 1958 | |
---|
| 1959 | \def\dofnote#1#2{\vtop{\hyphenpenalty=10000 |
---|
| 1960 | \advance\hsize -10pt \raggedright |
---|
| 1961 | \footnotesize{\it #1. }\\{Por #2} |
---|
| 1962 | \noindent\hbox{\footnotesize |
---|
| 1963 | Copyright \copyright\ \thecopyrightyear\ Fundación CENDITEL}}} |
---|
| 1964 | |
---|
| 1965 | |
---|
| 1966 | \def\offprintinfo#1#2{ |
---|
| 1967 | \def\theoffprint{\bgroup\frenchspacing |
---|
| 1968 | \dofnote{#1}{#2} |
---|
| 1969 | \egroup}} |
---|
| 1970 | |
---|
| 1971 | \def\x@makefntext#1{ |
---|
| 1972 | \kern-3\p@ |
---|
| 1973 | \hrule\@width.4\columnwidth |
---|
| 1974 | \kern2.6\p@ |
---|
| 1975 | \vrule height 9pt width0pt \relax |
---|
| 1976 | #1} |
---|
| 1977 | |
---|
| 1978 | \def\offprintinfoerror{\typeout{^^J^^J |
---|
| 1979 | !! Please enter {\string\offprintinfo\string{(Título, |
---|
| 1980 | Edición)\string}\string{(Autor)\string}^^J en el inicio de su documento.!!^^J^^J}} |
---|
| 1981 | \bgroup |
---|
| 1982 | \x@makefntext{Por favor introduzca {\tt \string\offprintinfo\string{(Título, |
---|
| 1983 | Edición)\string}\string{(Autor)\string}\newline en el inicio de su |
---|
| 1984 | documento.\vrule depth8pt width0pt}\egroup}} |
---|
| 1985 | |
---|
| 1986 | |
---|
| 1987 | \def\printoffprintinfo{\vtop to0pt{% |
---|
| 1988 | \hsize=\textwidth\footnotesize |
---|
| 1989 | \expandafter\ifx\csname theoffprint\endcsname\relax |
---|
| 1990 | \offprintinfoerror\else\theoffprint\fi\vskip1sp\vss}} |
---|
| 1991 | |
---|
| 1992 | \let\c@CHAPTER\c@chapter |
---|
| 1993 | |
---|
| 1994 | %% LaTeX2e Cropmark Macros |
---|
| 1995 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
---|
| 1996 | \newif\ifcropmarkson |
---|
| 1997 | \def\noprintcropmarks{\global\cropmarksonfalse} |
---|
| 1998 | \def\nocropmarks{\global\cropmarksonfalse} |
---|
| 1999 | \global\cropmarksonfalse |
---|
| 2000 | |
---|
| 2001 | |
---|
| 2002 | \newdimen\widthofcropmarks |
---|
| 2003 | |
---|
| 2004 | \widthofcropmarks=39.25pc |
---|
| 2005 | \advance\widthofcropmarks.125in %% new |
---|
| 2006 | \widthofcropmarks=6.125in |
---|
| 2007 | |
---|
| 2008 | \newdimen\raisetopcropmarks |
---|
| 2009 | \raisetopcropmarks=-25pt |
---|
| 2010 | \advance\raisetopcropmarks.25in |
---|
| 2011 | |
---|
| 2012 | \newdimen\raisebottomcropmarks |
---|
| 2013 | %\raisebottomcropmarks-48pt |
---|
| 2014 | |
---|
| 2015 | \raisebottomcropmarks-34pt % was 80pt |
---|
| 2016 | |
---|
| 2017 | |
---|
| 2018 | \newdimen\movecropmarksright |
---|
| 2019 | \movecropmarksright=-92pt |
---|
| 2020 | |
---|
| 2021 | \def\topcropmarks{\ifcropmarkson |
---|
| 2022 | \vtop to0pt{\vss |
---|
| 2023 | \hbox to0pt{\hskip\movecropmarksright\hbox to0pt{\hss% |
---|
| 2024 | \hbox to2pc{\hrulefill\hskip3pt}\raise6pt\hbox{\vrule height 2pc}}% |
---|
| 2025 | \hskip\widthofcropmarks% |
---|
| 2026 | \hbox to0pt{% |
---|
| 2027 | \raise6pt\hbox{\vrule height 2pc}\hbox to2pc{\hskip3pt\hrulefill}\hss}\hss}% |
---|
| 2028 | \vskip\raisetopcropmarks} |
---|
| 2029 | \fi} |
---|
| 2030 | |
---|
| 2031 | \def\bottomcropmarks{\ifcropmarkson |
---|
| 2032 | \vtop to0pt{\vskip-\raisebottomcropmarks |
---|
| 2033 | \hbox to0pt{\hskip\movecropmarksright\hbox to0pt{\hss% |
---|
| 2034 | \hbox to2pc{\hrulefill\hskip3pt}\lower6pt\hbox{\vrule depth 2pc height |
---|
| 2035 | 0pt}}% |
---|
| 2036 | \hskip\widthofcropmarks% |
---|
| 2037 | \hbox to0pt{% |
---|
| 2038 | \lower6pt\hbox{\vrule depth 2pc height0pt}\hbox |
---|
| 2039 | to2pc{\hskip3pt\hrulefill}\hss}\hss}% |
---|
| 2040 | \vss}\fi} |
---|
| 2041 | |
---|
| 2042 | |
---|
| 2043 | \long\def\docropmarks{\let\saveshipout\shipout |
---|
| 2044 | \long\def\shipout\vbox##1{\saveshipout\vbox{\topcropmarks##1\bottomcropmarks |
---|
| 2045 | }} |
---|
| 2046 | } |
---|
| 2047 | |
---|
| 2048 | \docropmarks |
---|
| 2049 | |
---|
| 2050 | \voffset-35pt |
---|
| 2051 | \hoffset-25pt % was 48 |
---|
| 2052 | |
---|
| 2053 | |
---|
| 2054 | %% new additions, as of Jan 25, 2005 |
---|
| 2055 | \newtheorem{theorem}{Theorem}[chapter] |
---|
| 2056 | |
---|
| 2057 | \newif\iffirstappendix |
---|
| 2058 | \global\firstappendixtrue |
---|
| 2059 | |
---|
| 2060 | \newcount\c@appfootnote |
---|
| 2061 | |
---|
| 2062 | \def\appthanks#1{*\gdef\realthanks{#1}} |
---|
| 2063 | |
---|
| 2064 | \newif\ifappend |
---|
| 2065 | |
---|
| 2066 | \def\lookatapp{\if\next[\let\go\yappendix\else |
---|
| 2067 | \let\go\xappendix\fi\go} |
---|
| 2068 | |
---|
| 2069 | \def\appendix{\global\appendtrue |
---|
| 2070 | \let\thetable\savethetable |
---|
| 2071 | \let\thefigure\savethefigure |
---|
| 2072 | \renewcommand{\@chapapp}{\appendixname}% |
---|
| 2073 | %% if using answers.sty: |
---|
| 2074 | \expandafter\ifx\csname Closesolutionfile\endcsname \relax |
---|
| 2075 | \else |
---|
| 2076 | \Closesolutionfile{ans}\fi |
---|
| 2077 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
---|
| 2078 | \futurelet\next\lookatapp} |
---|
| 2079 | |
---|
| 2080 | \def\yappendix[#1]#2{%\startonoddpage |
---|
| 2081 | \global\titletrue\dooffprintinfo |
---|
| 2082 | \global\@mainmattertrue% <<=== |
---|
| 2083 | \gdef \thepage {\csname @arabic\endcsname \c@page } |
---|
| 2084 | %% To fix includeonly numbering bug: ====>> |
---|
| 2085 | \if@partsw\else |
---|
| 2086 | \iffirstappendix\setcounter{chapter}{0}\fi |
---|
| 2087 | \global\firstappendixfalse\fi% |
---|
| 2088 | \refstepcounter{chapter} |
---|
| 2089 | % <<==== end bug fix |
---|
| 2090 | %% when using answers.sty, |
---|
| 2091 | %% to open an ans<chapnum> file to be used for solutions section |
---|
| 2092 | \expandafter\ifx\csname Opensolutionfile\endcsname\relax\else |
---|
| 2093 | \Opensolutionfile{ans}[ans\Alph{chapter}]\fi |
---|
| 2094 | \setcounter{section}{0}% |
---|
| 2095 | \setcounter{figure}{0}% |
---|
| 2096 | \setcounter{table}{0}% |
---|
| 2097 | \setcounter{equation}{0}% |
---|
| 2098 | \setcounter{theorem}{0}% |
---|
| 2099 | \def\two{#2}\ifx\two\empty |
---|
| 2100 | \chapter*{Apéndice \Alph{chapter}} |
---|
| 2101 | \renewcommand{\thechapter}{\Alph{chapter}} |
---|
| 2102 | \addcontentsline{toc}{achapter}{\thechapter} |
---|
| 2103 | \else |
---|
| 2104 | \chapter*{\vtop{\let\thanks\appthanks |
---|
| 2105 | \baselineskip=30pt \parindent=0pt |
---|
| 2106 | \leftskip=0pt |
---|
| 2107 | \Alph{chapter}\vskip4pt |
---|
| 2108 | #2}} |
---|
| 2109 | % |
---|
| 2110 | \renewcommand{\thechapter}{\Alph{chapter}} |
---|
| 2111 | \addcontentsline{toc}{achapter}{\thechapter\hskip2pt \ \quad #1} |
---|
| 2112 | \fi |
---|
| 2113 | % |
---|
| 2114 | \def\one{#1} |
---|
| 2115 | {\let\\ \ |
---|
| 2116 | \ifx\one\empty |
---|
| 2117 | \markboth{\uppercase{Apéndice \thechapter}}{\uppercase{Apéndice \thechapter}} |
---|
| 2118 | \else |
---|
| 2119 | \markboth{\uppercase{#1}}{\uppercase{#1}} |
---|
| 2120 | \fi |
---|
| 2121 | } |
---|
| 2122 | \xdef\@currentlabel{\thechapter} |
---|
| 2123 | \ifx\realthanks\xrelax\else |
---|
| 2124 | \xdef\dofoot{\realthanks} |
---|
| 2125 | \fi |
---|
| 2126 | {\ifx\realthanks\xrelax\else |
---|
| 2127 | \def\thefootnote{*} |
---|
| 2128 | \footnotetext{\dofoot}\fi} |
---|
| 2129 | \gdef\realthanks{\relax} |
---|
| 2130 | } |
---|
| 2131 | |
---|
| 2132 | |
---|
| 2133 | \let\dofoot\relax |
---|
| 2134 | \gdef\realthanks{\relax} |
---|
| 2135 | \def\xrelax{\relax} |
---|
| 2136 | \def\xappendix#1{\startonoddpage |
---|
| 2137 | \global\titletrue\dooffprintinfo |
---|
| 2138 | \global\@mainmattertrue% <<=== |
---|
| 2139 | \gdef \thepage {\csname @arabic\endcsname \c@page } |
---|
| 2140 | %% To fix includeonly numbering bug: ====>> |
---|
| 2141 | \if@partsw\else |
---|
| 2142 | \iffirstappendix\setcounter{chapter}{0}\fi |
---|
| 2143 | \global\firstappendixfalse\fi% |
---|
| 2144 | \refstepcounter{chapter} |
---|
| 2145 | % <<==== end bug fix |
---|
| 2146 | %% when using answers.sty, |
---|
| 2147 | %% to open an ans<chapnum> file to be used for solutions section |
---|
| 2148 | % |
---|
| 2149 | \expandafter\ifx\csname Opensolutionfile\endcsname\relax\else |
---|
| 2150 | \Opensolutionfile{ans}[ans\Alph{chapter}]\fi |
---|
| 2151 | \setcounter{section}{0}% |
---|
| 2152 | \setcounter{figure}{0}% |
---|
| 2153 | \setcounter{table}{0}% |
---|
| 2154 | \setcounter{equation}{0}% |
---|
| 2155 | \setcounter{theorem}{0}% |
---|
| 2156 | \renewcommand{\@chapapp}{\appendixname}% |
---|
| 2157 | \def\one{#1}\ifx\one\empty |
---|
| 2158 | \chapter*{Apéndice \Alph{chapter}} |
---|
| 2159 | \renewcommand{\thechapter}{\Alph{chapter}} |
---|
| 2160 | \addcontentsline{toc}{achapter}{\thechapter\hskip2pt \ \quad Apéndice} |
---|
| 2161 | \else |
---|
| 2162 | \chapter*{\vtop{\let\thanks\appthanks |
---|
| 2163 | \baselineskip=30pt |
---|
| 2164 | \leftskip=0pt \parindent=0pt |
---|
| 2165 | Apéndice \Alph{chapter}\vskip4pt |
---|
| 2166 | #1}} |
---|
| 2167 | \renewcommand{\thechapter}{\Alph{chapter}} |
---|
| 2168 | \let\thanks\eatone |
---|
| 2169 | \addcontentsline{toc}{achapter}{\thechapter\hskip2pt \ \quad |
---|
| 2170 | #1} |
---|
| 2171 | \fi |
---|
| 2172 | \def\one{#1} |
---|
| 2173 | {\let\\ \ |
---|
| 2174 | \ifx\one\empty |
---|
| 2175 | \markboth{\uppercase{Apéndice \thechapter}}{\uppercase{Apéndice \thechapter}} |
---|
| 2176 | \else |
---|
| 2177 | \let\thanks\eatone |
---|
| 2178 | \markboth{\uppercase{#1}}{\uppercase{#1}} |
---|
| 2179 | \fi |
---|
| 2180 | } |
---|
| 2181 | \xdef\@currentlabel{\thechapter} |
---|
| 2182 | \ifx\realthanks\xrelax\else |
---|
| 2183 | \xdef\dofoot{\realthanks} |
---|
| 2184 | \fi |
---|
| 2185 | {\ifx\realthanks\xrelax\else |
---|
| 2186 | \def\thefootnote{*} |
---|
| 2187 | \footnotetext{\dofoot}} |
---|
| 2188 | \fi |
---|
| 2189 | \gdef\realthanks{\relax} |
---|
| 2190 | \egroup |
---|
| 2191 | } |
---|
| 2192 | |
---|
| 2193 | |
---|
| 2194 | %% For square boxes for Q.E.D. symbol, used in end proof |
---|
| 2195 | |
---|
| 2196 | \newdimen\slugwidth |
---|
| 2197 | \newdimen\slugheight |
---|
| 2198 | \newdimen\slugdepth |
---|
| 2199 | |
---|
| 2200 | \slugwidth=4.5pt |
---|
| 2201 | \slugheight=4.5pt |
---|
| 2202 | \slugdepth=0pt |
---|
| 2203 | |
---|
| 2204 | |
---|
| 2205 | \def\qed{\unskip\nobreak~~~\hfill\llap{% |
---|
| 2206 | \vbox{\unskip\nobreak~~~\hfill\llap{\vrule height \slugheight width |
---|
| 2207 | \slugwidth depth\slugdepth}}}} |
---|
| 2208 | |
---|
| 2209 | \def\sslug{\raise.5ex\hbox{\vrule width 4pt height4pt depth0pt}} |
---|
| 2210 | \def\slug{\vrule width 7pt height7pt depth0pt} |
---|
| 2211 | \@addtoreset{exampnum}{chapter} |
---|
| 2212 | \newcount\c@exampnum |
---|
| 2213 | |
---|
| 2214 | %%%%%%%%%%%% Ejemplo %%%%%%%%%%%%%%%%% |
---|
| 2215 | \def\exbox{{\fboxsep=0pt \fboxrule =.5pt |
---|
| 2216 | \fbox{\vrule height 7pt width 0pt\hskip7pt}% |
---|
| 2217 | \hskip-5.5pt\raise 2pt\hbox{\vrule width 7.25pt height 7.25pt} |
---|
| 2218 | }} |
---|
| 2219 | |
---|
| 2220 | \def\example{\@ifnextchar[{\xexample}{\yexample}} |
---|
| 2221 | |
---|
| 2222 | \def\xexample[#1]{\goodbreak\everypar={}\vskip12pt\global\advance\c@exampnum by 1 |
---|
| 2223 | \xdef\@currentlabel{\thechapter.\the\c@exampnum} |
---|
| 2224 | \noindent\vrule depth14pt width0pt\exbox\ \ {\small\bf |
---|
| 2225 | \uppercase{Example} \thechapter.\the\c@exampnum}\hskip1em {\bf #1}% |
---|
| 2226 | \vskip1sp |
---|
| 2227 | \bgroup\nobreak\vskip1sp |
---|
| 2228 | \leftskip=18pt |
---|
| 2229 | \@afterindentfalse\@afterheading\nobreak} |
---|
| 2230 | |
---|
| 2231 | \def\yexample{\goodbreak\everypar={}\vskip12pt\global\advance\c@exampnum by 1 |
---|
| 2232 | \xdef\@currentlabel{\thechapter.\the\c@exampnum} |
---|
| 2233 | \noindent\vrule depth14pt width0pt\exbox\ \ {\small\bf \uppercase{Ejemplo} \thechapter.\the\c@exampnum} |
---|
| 2234 | \vskip1sp |
---|
| 2235 | \bgroup |
---|
| 2236 | \leftskip=18pt |
---|
| 2237 | \@afterindentfalse\@afterheading\nobreak} |
---|
| 2238 | |
---|
| 2239 | \def\endexample{\vskip1sp\egroup\vskip6pt |
---|
| 2240 | \global\everypar={\hskip-\parindent\everypar={}} |
---|
| 2241 | \leftskip=0pt |
---|
| 2242 | } |
---|
| 2243 | |
---|
| 2244 | %% ==> Algoritmo |
---|
| 2245 | \def\xpar{\par\leavevmode} |
---|
| 2246 | {\catcode`\^^M=\active % these lines must end with % |
---|
| 2247 | \gdef\xobeylines{\catcode`\^^M\active \let^^M\xpar}% |
---|
| 2248 | } |
---|
| 2249 | |
---|
| 2250 | \@addtoreset{algorithm}{chapter} |
---|
| 2251 | \@addtoreset{algo}{chapter} |
---|
| 2252 | \newtheorem{algo}{Algorithm}[chapter] |
---|
| 2253 | \newcount\c@algorithm |
---|
| 2254 | |
---|
| 2255 | \def\algorithm{\vskip12pt |
---|
| 2256 | \global\advance\c@algorithm by 1 |
---|
| 2257 | \xdef\@currentlabel{\thechapter.\the\c@algorithm} |
---|
| 2258 | \noindent{\bf Algoritmo \arabic{chapter}.\arabic{algorithm}} |
---|
| 2259 | \vskip6pt |
---|
| 2260 | \bgroup\xobeylines\obeyspaces\def\ {\quad} |
---|
| 2261 | \parindent=0pt\footnotesize\tt\leftskip=1pc\vskip4pt\relax} |
---|
| 2262 | |
---|
| 2263 | \def\endalgorithm{\vskip4pt\egroup} |
---|
| 2264 | |
---|
| 2265 | %% <== Algoritmo |
---|
| 2266 | |
---|
| 2267 | \let\savelabel\label |
---|
| 2268 | |
---|
| 2269 | \def\proof{\everypar={} |
---|
| 2270 | \futurelet\next\lookforbracket} |
---|
| 2271 | |
---|
| 2272 | \def\lookforbracket{\ifx\next[\let\go\usespecialterm |
---|
| 2273 | \else\let\go\relax |
---|
| 2274 | \ifvmode\vskip-\lastskip\fi |
---|
| 2275 | \vskip8pt |
---|
| 2276 | \noindent{\it Proof\/:}% |
---|
| 2277 | \enskip\relax\fi\ignorespaces\go} |
---|
| 2278 | |
---|
| 2279 | \def\usespecialterm[#1]{\ifvmode\vskip-\lastskip\fi |
---|
| 2280 | \vskip6pt |
---|
| 2281 | \noindent% |
---|
| 2282 | {\it Proof\ \ {\rm(#1):}}\ \ \relax\ignorespaces} |
---|
| 2283 | |
---|
| 2284 | \def\endproof{\qed\vskip6pt\relax} |
---|
| 2285 | |
---|
| 2286 | %%%%%%%%%%%%%%%%% |
---|
| 2287 | %% Answers macros |
---|
| 2288 | %%%% Problems and Solutions, Accomodating answers.sty commands |
---|
| 2289 | |
---|
| 2290 | |
---|
| 2291 | \def\solutionchap#1{\section*{\uppercase{Soluciones por Capítulo} #1} |
---|
| 2292 | \openin1 ans#1.tex \ifeof1 |
---|
| 2293 | \typeout{^^J^^J No file ans#1.tex! |
---|
| 2294 | ^^J\string\solutionchap\string{#1\string} requires ans#1.tex^^J |
---|
| 2295 | Please |
---|
| 2296 | make sure that you have entered |
---|
| 2297 | \string\usepackage{answers} and |
---|
| 2298 | \string\Newassociation\string{sol\string}\string{Solution\string}\string{ans\string}\space and then run LaTeX on your file again.} |
---|
| 2299 | \else |
---|
| 2300 | \input{ans#1}\fi} |
---|
| 2301 | |
---|
| 2302 | \def\solutionappendix#1{\section*{\uppercase{Soluciones por Apéndice} #1} |
---|
| 2303 | \openin1 ans#1.tex \ifeof1 |
---|
| 2304 | \typeout{^^J^^J No file ans#1.tex! |
---|
| 2305 | ^^J\string\solutionchap\string{#1\string} requires ans#1.tex^^J |
---|
| 2306 | Please |
---|
| 2307 | make sure that you have entered |
---|
| 2308 | \string\usepackage{answers} and |
---|
| 2309 | \string\Newassociation\string{sol\string}\string{Solution\string}\string{ans\string}\space and then run LaTeX on your file again.} |
---|
| 2310 | \else |
---|
| 2311 | \input{ans#1}\fi} |
---|
| 2312 | |
---|
| 2313 | |
---|
| 2314 | \def\solutions{\newpage\ifodd\c@page\else\thispagestyle{empty} |
---|
| 2315 | \null\newpage\fi |
---|
| 2316 | \chapter*{Problem Solutions} |
---|
| 2317 | \markboth{Problem Solutions}{Problem Solutions} |
---|
| 2318 | \addcontentsline{toc}{schapter}{Problem Solutions} |
---|
| 2319 | \expandafter\ifx\csname Closesolutionfile\endcsname \relax\else |
---|
| 2320 | \Closesolutionfile{ans}\fi |
---|
| 2321 | } |
---|
| 2322 | |
---|
| 2323 | \let\savedocument\document |
---|
| 2324 | \let\saveenddocument\enddocument |
---|
| 2325 | |
---|
| 2326 | \def\enddocument{ |
---|
| 2327 | \expandafter\ifx\csname Closesolutionfile\endcsname \relax\else |
---|
| 2328 | \Closesolutionfile{ans}\fi |
---|
| 2329 | \saveenddocument} |
---|
| 2330 | |
---|
| 2331 | \def\document{% |
---|
| 2332 | \savedocument |
---|
| 2333 | \expandafter\ifx\csname Newassociation\endcsname\relax |
---|
| 2334 | \def\sol{\typeout{^^J^^J To make \string\begin\string{sol\string} work, please use \string\usepackage\string{answers\string} |
---|
| 2335 | ^^J^^J}} |
---|
| 2336 | \def\endsol{\typeout{^^J^^J}} |
---|
| 2337 | \def\Solution##1{\typeout{^^J^^J To make \string\Solution\space work, please use \string\usepackage\string{answers\string} |
---|
| 2338 | ^^J^^J}} |
---|
| 2339 | \else |
---|
| 2340 | \Newassociation{sol}{Solution}{ans}\fi |
---|
| 2341 | } |
---|
| 2342 | |
---|
| 2343 | \def\xnumberline#1{\hb@xt@\@tempdima{\hskip12pt\llap{#1}\hfill}} |
---|
| 2344 | |
---|
| 2345 | \newcommand{\contentsinbrief}{% |
---|
| 2346 | %\startonoddpage |
---|
| 2347 | \global\titletrue |
---|
| 2348 | \advance\chapskip-6pt |
---|
| 2349 | \chapheight=-12pt |
---|
| 2350 | \partskip=-12pt |
---|
| 2351 | \vglue-10.5pc |
---|
| 2352 | \chapter*{Lista breve de Contenidos} |
---|
| 2353 | \@mkboth{\uppercase{Lista breve de Contenidos}}{\uppercase{Lista breve de Contenidos}}% |
---|
| 2354 | \bgroup |
---|
| 2355 | \let\numberline\xnumberline |
---|
| 2356 | \parskip=6pt |
---|
| 2357 | {\hyphenpenalty=10000 |
---|
| 2358 | \parindent=0pt |
---|
| 2359 | \@startchaptoc{toc} |
---|
| 2360 | } |
---|
| 2361 | \egroup |
---|
| 2362 | \if@restonecol\twocolumn\fi |
---|
| 2363 | \newpage |
---|
| 2364 | \setcounter{tocdepth}{2} |
---|
| 2365 | \markboth{}{} |
---|
| 2366 | } |
---|
| 2367 | |
---|
| 2368 | \def\@startchaptoc#1{% |
---|
| 2369 | \begingroup |
---|
| 2370 | \def\l@chapter##1##2{% |
---|
| 2371 | \ifnum \c@tocdepth >\m@ne |
---|
| 2372 | \addpenalty{-\@highpenalty}% |
---|
| 2373 | \vskip 12pt \@plus6\p@ |
---|
| 2374 | \setlength\@tempdima{2em}% was 1.5 |
---|
| 2375 | \begingroup\chaptocfont |
---|
| 2376 | \parindent \z@ \rightskip \@pnumwidth |
---|
| 2377 | \parfillskip -\@pnumwidth |
---|
| 2378 | \leavevmode |
---|
| 2379 | \advance\leftskip\@tempdima |
---|
| 2380 | \hskip -\leftskip |
---|
| 2381 | ##1\nobreak\hfil \nobreak\hbox to\@pnumwidth{\hss ##2}\par |
---|
| 2382 | \penalty\@highpenalty |
---|
| 2383 | \endgroup |
---|
| 2384 | \fi\vskip-6pt} |
---|
| 2385 | \setcounter{tocdepth}{0} |
---|
| 2386 | \makeatletter |
---|
| 2387 | \@input{\jobname.#1}% |
---|
| 2388 | \@nobreakfalse |
---|
| 2389 | \endgroup} |
---|
| 2390 | |
---|
| 2391 | |
---|
| 2392 | %%% Macros de libro editado: |
---|
| 2393 | |
---|
| 2394 | \font\chapauthorfont=cmcsc10 |
---|
| 2395 | \font\chapaffilfont=\timesroman at 9pt |
---|
| 2396 | |
---|
| 2397 | \def\chapteraffil#1{\vskip6pt |
---|
| 2398 | \noindent{\let\affilmark\newaffilmark\chapaffilfont\ignorespaces #1\vskip1sp}} |
---|
| 2399 | \def\saveaffilmark#1{$^{#1}$} |
---|
| 2400 | \def\newaffilmark#1{\leftskip4pt\hbox to0pt{\hss\hbox to 4pt{$^{#1}$}}} |
---|
| 2401 | \def\eatone#1{} |
---|
| 2402 | |
---|
| 2403 | \newdimen\chapskip |
---|
| 2404 | \chapskip=26pt |
---|
| 2405 | \newdimen\chapheight |
---|
| 2406 | \newdimen\authorskip |
---|
| 2407 | |
---|
| 2408 | \def\chapterauthors#1{\vbox to0pt{\vglue-1in |
---|
| 2409 | \let\affilmark\saveaffilmark\chapauthorfont #1\vrule height 10pt width0pt\ } |
---|
| 2410 | {\let\chapteraffil\eatone\let\affilmark\eatone |
---|
| 2411 | \addtocontents{toc}{\string\nobreak |
---|
| 2412 | \vskip\authorskip |
---|
| 2413 | \string\noindent\vrule height 9pt width0pt\hskip\chapskip#1\hfill\vskip\chapheight}\ \vskip3pt}} |
---|
| 2414 | |
---|
| 2415 | \def\contributors{\chapter*{CONTRIBUYENTES} |
---|
| 2416 | \vskip1sp |
---|
| 2417 | \leftskip=10pt |
---|
| 2418 | \parindent-10pt |
---|
| 2419 | \vskip-2pt |
---|
| 2420 | \everypar={} |
---|
| 2421 | \def\footnote##1{\hskip-10pt\savefootnote{##1}\hskip10pt} |
---|
| 2422 | \setcounter{page}{5} |
---|
| 2423 | \global\titletrue |
---|
| 2424 | \markboth{CONTRIBUYENTES}{CONTRIBUYENTES}} |
---|
| 2425 | |
---|
| 2426 | \def\endcontributors{\newpage\markboth{}{}} |
---|
| 2427 | |
---|
| 2428 | \def\name#1{\vskip2pt\fakesc #1*\hskip10pt} |
---|
| 2429 | |
---|
| 2430 | %%%%%%%%%%%%%%%%%%%%% |
---|
| 2431 | %% Warn against using earlier commands |
---|
| 2432 | \expandafter\def\csname chapreferences*\endcsname{ |
---|
| 2433 | \typeout{^^J^^J \string\begin\string{chapreferences*\string}\space is |
---|
| 2434 | obsolete.^^J Please use |
---|
| 2435 | \string\begin\string{chapreferences\string}\string{<widest label>\string}\space instead.^^J Consulte docs.pdf si tiene preguntas.}\stop } |
---|
| 2436 | |
---|
| 2437 | \expandafter\def\csname references*\endcsname{ |
---|
| 2438 | \typeout{^^J^^J \string\begin\string{references*\string}\space is |
---|
| 2439 | obsolete.^^J Please use |
---|
| 2440 | \string\begin\string{references\string}\string{<widest label>\string}\space instead.^^J Consulte docs.pdf si tiene preguntas.}\stop } |
---|
| 2441 | |
---|
| 2442 | |
---|
| 2443 | \expandafter\def\csname namedchapreferences\endcsname{ |
---|
| 2444 | \typeout{^^J^^J \string\begin\string{namedchapreferences\string}\space is |
---|
| 2445 | obsolete.^^J Please use |
---|
| 2446 | \string\begin\string{chapreferences\string}\string{<widest label>\string}\space instead.^^J Consulte docs.pdf si tiene preguntas.}\stop } |
---|
| 2447 | |
---|
| 2448 | \expandafter\def\csname namedreferences\endcsname{ |
---|
| 2449 | \typeout{^^J^^J \string\begin\string{namedreferences\string}\space is |
---|
| 2450 | obsolete.^^J Please use |
---|
| 2451 | \string\begin\string{references\string}\string{<widest label>\string}\space instead.^^J Consulte docs.pdf si tiene preguntas.}\stop } |
---|
| 2452 | |
---|
| 2453 | \endinput |
---|
| 2454 | |
---|
| 2455 | |
---|
| 2456 | |
---|
| 2457 | |
---|
| 2458 | |
---|
| 2459 | |
---|
| 2460 | |
---|
| 2461 | |
---|
| 2462 | |
---|
| 2463 | |
---|