source: libros/maquetacion/libros_cenditel.cls @ a1abb37

Last change on this file since a1abb37 was a1abb37, checked in by aaraujo <aaraujo@…>, 10 years ago

Corrección de error en capítulo 4 (comillas), reubicación de imágenes del capítulo 10.

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