source: libros/maquetacion/libros_cenditel.cls @ 6e29135

revisionfinal
Last change on this file since 6e29135 was 6e29135, checked in by Endira Mora <emora@…>, 10 years ago

Agregada fecha y número de edición en la licencia del libro.

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