source: libros/maquetacion/libros_cenditel.cls @ 8c45dad

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

Correción de nombre de partes del libro. Cambios en licencia. Agregada cita.

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