source: libros/maquetacion/libros_cenditel.cls @ 13f4d72

Last change on this file since 13f4d72 was 257e64f, checked in by aaraujo <aaraujo@…>, 10 years ago

Cambios menores de revisión. Nombre de imprenta. Depósito legal. Acrónimos en un solo archivo.

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