source: libros/maquetacion/libros_cenditel.cls @ 1a023af

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

Agregado el número de ISBN a las plantillas de libro impreso y electrónico respectivamente. Agregadas imágenes del código de barras del ISBN al control de versiones.

  • 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
1957HECHO EL DEPÓSITO DE LEY\\
1958Depósito Legal: lf70120146003464\\
1959ISBN: 978-980-7154-17-8 \\
1960
1961Maquetación y Dibujos: Gabriela Villasana\\
1962Portada: Cipriano Alvarado\\
1963Correción de textos: Luis Perales\\
1964Impresión: JC Impresores\\
1965
1966Edición colaborativa usando la herramienta de control de versiones Git.\\
1967Maquetado usando \LaTeX, Bib\TeX y pdf\TeX.
1968
1969%\vskip10pt
1970%{\locfont Publicaciones de CENDITEL:}
1971%\vskip8pt
1972%#2
1973%Impreso en la República Bolivariana de Venezuela.\\
1974
1975%10\ \ 9\ \ 8\ \ 7\ \ 6\ \ 5\ \  4\ \ 3\ \ 2\ \ 1
1976\vskip24pt
1977\egroup\let\@badend\relax\endgroup}
1978
1979\let\endcopyrightpage\relax
1980
1981\def\seriespage{\newpage\thispagestyle{empty}\vbox to\textheight\bgroup\vfill
1982\leftskip=34pt \rightskip=-34pt}
1983\def\endseriespage{\vskip6pt{\noindent\hskip-12pt
1984Texto adicional de información} \vskip24pt\egroup
1985\newpage}
1986\def\series#1#2{\noindent\hskip-12pt\uppercase{#1}\\
1987\global\setbox0=\hbox{\footnotesize#2}
1988\hsize=\wd0
1989\footnotesize#2}
1990
1991\def\eds#1{\vskip6pt\footnotesize\noindent Editors: {\it #1}}
1992
1993%%%%%%%%%%%%
1994%% Información de la separata
1995
1996\newif\ifoffprintinfo
1997%\def\dooffprintinfo{\global\offprintinfotrue}
1998% \offprintinfofalse -> deshabilita el texto que aparece en la parte inferior
1999%izquierda de inicio de capitulo
2000\def\dooffprintinfo{\global\offprintinfofalse}
2001
2002\def\copyrightyear#1{\def\thecopyrightyear{#1}}
2003
2004\copyrightyear{\the\year}
2005
2006\def\dofnote#1#2{\vtop{\hyphenpenalty=10000
2007\advance\hsize -10pt \raggedright
2008\footnotesize{\it #1. }\\{By #2}
2009\noindent\hbox{\footnotesize
2010Copyright \copyright\ \thecopyrightyear\ John Wiley \&
2011Sons, Inc.}}}
2012
2013
2014\def\offprintinfo#1#2{
2015\def\theoffprint{\bgroup\frenchspacing
2016\dofnote{#1}{#2}
2017\egroup}}
2018
2019\def\x@makefntext#1{   
2020\kern-3\p@
2021\hrule\@width.4\columnwidth
2022\kern2.6\p@
2023\vrule height 9pt width0pt \relax
2024#1}
2025
2026\def\offprintinfoerror{\typeout{^^J^^J
2027!! Please enter {\string\offprintinfo\string{(Título,
2028Edición)\string}\string{(Autor)\string}^^J en el inicio de su documento.!!^^J^^J}}
2029\bgroup
2030\x@makefntext{Por favor introduzca {\tt \string\offprintinfo\string{(Título,
2031Edición)\string}\string{(Autor)\string}\newline en el inicio de su
2032documento.\vrule depth8pt width0pt}\egroup}}
2033
2034
2035\def\printoffprintinfo{\vtop to0pt{%
2036\hsize=\textwidth\footnotesize
2037\expandafter\ifx\csname theoffprint\endcsname\relax
2038\offprintinfoerror\else\theoffprint\fi\vskip1sp\vss}}
2039
2040\let\c@CHAPTER\c@chapter
2041
2042%% LaTeX2e Cropmark Macros
2043%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2044\newif\ifcropmarkson
2045\def\noprintcropmarks{\global\cropmarksonfalse}
2046\def\nocropmarks{\global\cropmarksonfalse}
2047\global\cropmarksonfalse
2048
2049
2050\newdimen\widthofcropmarks
2051
2052\widthofcropmarks=39.25pc
2053\advance\widthofcropmarks.125in %% new
2054\widthofcropmarks=6.125in
2055
2056\newdimen\raisetopcropmarks
2057\raisetopcropmarks=-25pt
2058\advance\raisetopcropmarks.25in
2059
2060\newdimen\raisebottomcropmarks
2061%\raisebottomcropmarks-48pt
2062
2063\raisebottomcropmarks-34pt % was 80pt
2064
2065
2066\newdimen\movecropmarksright
2067\movecropmarksright=-92pt
2068
2069\def\topcropmarks{\ifcropmarkson
2070\vtop to0pt{\vss
2071\hbox to0pt{\hskip\movecropmarksright\hbox to0pt{\hss%
2072\hbox to2pc{\hrulefill\hskip3pt}\raise6pt\hbox{\vrule height 2pc}}%
2073\hskip\widthofcropmarks%
2074\hbox to0pt{%
2075\raise6pt\hbox{\vrule height 2pc}\hbox to2pc{\hskip3pt\hrulefill}\hss}\hss}%
2076\vskip\raisetopcropmarks}
2077\fi}
2078
2079\def\bottomcropmarks{\ifcropmarkson
2080\vtop to0pt{\vskip-\raisebottomcropmarks
2081\hbox to0pt{\hskip\movecropmarksright\hbox to0pt{\hss%
2082\hbox to2pc{\hrulefill\hskip3pt}\lower6pt\hbox{\vrule depth 2pc height
20830pt}}%
2084\hskip\widthofcropmarks%
2085\hbox to0pt{%
2086\lower6pt\hbox{\vrule depth 2pc height0pt}\hbox
2087to2pc{\hskip3pt\hrulefill}\hss}\hss}%
2088\vss}\fi}
2089
2090
2091\long\def\docropmarks{\let\saveshipout\shipout
2092\long\def\shipout\vbox##1{\saveshipout\vbox{\topcropmarks##1\bottomcropmarks
2093}}
2094}
2095
2096\docropmarks
2097
2098\voffset-25pt
2099\hoffset40pt % was 48
2100
2101
2102%% new additions, as of Jan 25, 2005
2103\newtheorem{theorem}{Theorem}[chapter]
2104
2105\newif\iffirstappendix
2106\global\firstappendixtrue
2107
2108\newcount\c@appfootnote
2109
2110\def\appthanks#1{*\gdef\realthanks{#1}}
2111
2112\newif\ifappend
2113
2114\def\lookatapp{\if\next[\let\go\yappendix\else
2115\let\go\xappendix\fi\go}
2116
2117\def\appendix{\global\appendtrue
2118\let\thetable\savethetable
2119\let\thefigure\savethefigure
2120  \renewcommand{\@chapapp}{\appendixname}%
2121%% if using answers.sty:
2122\expandafter\ifx\csname Closesolutionfile\endcsname \relax
2123\else
2124\Closesolutionfile{ans}\fi
2125%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2126\futurelet\next\lookatapp}
2127
2128\def\yappendix[#1]#2{\startonoddpage
2129\global\titletrue\dooffprintinfo
2130\global\@mainmattertrue% <<===
2131\gdef \thepage {\csname @arabic\endcsname \c@page }
2132%% To fix includeonly numbering bug: ====>>
2133\if@partsw\else
2134\iffirstappendix\setcounter{chapter}{0}\fi
2135\global\firstappendixfalse\fi%
2136\refstepcounter{chapter}
2137% <<====  end bug fix
2138%% when using answers.sty,
2139%% to open an ans<chapnum> file to be used for solutions section
2140\expandafter\ifx\csname Opensolutionfile\endcsname\relax\else
2141\Opensolutionfile{ans}[ans\Alph{chapter}]\fi
2142  \setcounter{section}{0}%
2143  \setcounter{figure}{0}%
2144  \setcounter{table}{0}%
2145  \setcounter{equation}{0}%
2146 \setcounter{theorem}{0}%
2147\def\two{#2}\ifx\two\empty
2148\chapter*{Apéndice \Alph{chapter}}
2149\renewcommand{\thechapter}{\Alph{chapter}}
2150\addcontentsline{toc}{achapter}{\thechapter}
2151\else
2152\chapter*{\vtop{\let\thanks\appthanks
2153 \baselineskip=30pt \parindent=0pt
2154\leftskip=0pt
2155\Alph{chapter}\vskip4pt
2156 #2}}
2157%
2158\renewcommand{\thechapter}{\Alph{chapter}}
2159\addcontentsline{toc}{achapter}{\thechapter\hskip2pt \ \quad #1}
2160\fi
2161%
2162\def\one{#1}
2163{\let\\ \
2164\ifx\one\empty
2165\markboth{\uppercase{Apéndice \thechapter}}{\uppercase{Apéndice \thechapter}}
2166\else
2167\markboth{\uppercase{#1}}{\uppercase{#1}}
2168\fi
2169}
2170\xdef\@currentlabel{\thechapter}
2171\ifx\realthanks\xrelax\else
2172\xdef\dofoot{\realthanks}
2173\fi
2174{\ifx\realthanks\xrelax\else
2175\def\thefootnote{*}
2176\footnotetext{\dofoot}\fi}
2177\gdef\realthanks{\relax}
2178}
2179
2180
2181\let\dofoot\relax
2182\gdef\realthanks{\relax}
2183\def\xrelax{\relax}
2184\def\xappendix#1{\startonoddpage
2185\global\titletrue\dooffprintinfo
2186\global\@mainmattertrue% <<===
2187\gdef \thepage {\csname @arabic\endcsname \c@page }
2188%% To fix includeonly numbering bug: ====>>
2189\if@partsw\else
2190\iffirstappendix\setcounter{chapter}{0}\fi
2191\global\firstappendixfalse\fi%
2192\refstepcounter{chapter}
2193% <<====  end bug fix
2194%% when using answers.sty,
2195%% to open an ans<chapnum> file to be used for solutions section
2196%
2197\expandafter\ifx\csname Opensolutionfile\endcsname\relax\else
2198\Opensolutionfile{ans}[ans\Alph{chapter}]\fi
2199  \setcounter{section}{0}%
2200  \setcounter{figure}{0}%
2201  \setcounter{table}{0}%
2202  \setcounter{equation}{0}%
2203 \setcounter{theorem}{0}%
2204  \renewcommand{\@chapapp}{\appendixname}%
2205\def\one{#1}\ifx\one\empty
2206\chapter*{Apéndice \Alph{chapter}}
2207\renewcommand{\thechapter}{\Alph{chapter}}
2208\addcontentsline{toc}{achapter}{\thechapter\hskip2pt \ \quad Apéndice}
2209\else
2210\chapter*{\vtop{\let\thanks\appthanks
2211 \baselineskip=30pt
2212\leftskip=0pt \parindent=0pt
2213 Apéndice \Alph{chapter}\vskip4pt
2214 #1}}
2215\renewcommand{\thechapter}{\Alph{chapter}}
2216\let\thanks\eatone
2217\addcontentsline{toc}{achapter}{\thechapter\hskip2pt \ \quad
2218 #1}
2219\fi
2220\def\one{#1}
2221{\let\\ \
2222\ifx\one\empty
2223\markboth{\uppercase{Apéndice \thechapter}}{\uppercase{Apéndice \thechapter}}
2224\else
2225\let\thanks\eatone
2226\markboth{\uppercase{#1}}{\uppercase{#1}}
2227\fi
2228}
2229\xdef\@currentlabel{\thechapter}
2230\ifx\realthanks\xrelax\else
2231\xdef\dofoot{\realthanks}
2232\fi
2233{\ifx\realthanks\xrelax\else
2234\def\thefootnote{*}
2235\footnotetext{\dofoot}}
2236\fi
2237\gdef\realthanks{\relax}
2238\egroup
2239}
2240
2241
2242%% For square boxes for Q.E.D. symbol, used in end proof
2243
2244 \newdimen\slugwidth
2245 \newdimen\slugheight
2246 \newdimen\slugdepth
2247
2248 \slugwidth=4.5pt
2249 \slugheight=4.5pt
2250 \slugdepth=0pt
2251
2252
2253 \def\qed{\unskip\nobreak~~~\hfill\llap{%
2254 \vbox{\unskip\nobreak~~~\hfill\llap{\vrule height \slugheight width
2255 \slugwidth depth\slugdepth}}}}
2256
2257\def\sslug{\raise.5ex\hbox{\vrule width 4pt height4pt depth0pt}}
2258\def\slug{\vrule width 7pt height7pt depth0pt}
2259\@addtoreset{exampnum}{chapter}
2260\newcount\c@exampnum
2261
2262%%%%%%%%%%%% Ejemplo %%%%%%%%%%%%%%%%%
2263\def\exbox{{\fboxsep=0pt \fboxrule =.5pt
2264\fbox{\vrule height 7pt width 0pt\hskip7pt}%
2265\hskip-5.5pt\raise 2pt\hbox{\vrule width 7.25pt height 7.25pt}
2266}}
2267
2268\def\example{\@ifnextchar[{\xexample}{\yexample}}
2269
2270\def\xexample[#1]{\goodbreak\everypar={}\vskip12pt\global\advance\c@exampnum by 1
2271\xdef\@currentlabel{\thechapter.\the\c@exampnum}
2272\noindent\vrule depth14pt width0pt\exbox\ \ {\small\bf
2273\uppercase{Example} \thechapter.\the\c@exampnum}\hskip1em {\bf #1}%
2274\vskip1sp
2275\bgroup\nobreak\vskip1sp
2276\leftskip=18pt
2277\@afterindentfalse\@afterheading\nobreak}
2278
2279\def\yexample{\goodbreak\everypar={}\vskip12pt\global\advance\c@exampnum by 1
2280\xdef\@currentlabel{\thechapter.\the\c@exampnum}
2281\noindent\vrule depth14pt width0pt\exbox\ \ {\small\bf \uppercase{Ejemplo} \thechapter.\the\c@exampnum}
2282\vskip1sp
2283\bgroup
2284\leftskip=18pt
2285\@afterindentfalse\@afterheading\nobreak}
2286
2287\def\endexample{\vskip1sp\egroup\vskip6pt
2288\global\everypar={\hskip-\parindent\everypar={}}
2289\leftskip=0pt
2290}
2291
2292%% ==> Algoritmo
2293\def\xpar{\par\leavevmode}
2294{\catcode`\^^M=\active % these lines must end with %
2295  \gdef\xobeylines{\catcode`\^^M\active \let^^M\xpar}%
2296}
2297
2298\@addtoreset{algorithm}{chapter}
2299\@addtoreset{algo}{chapter}
2300\newtheorem{algo}{Algorithm}[chapter]
2301\newcount\c@algorithm
2302
2303\def\algorithm{\vskip12pt
2304\global\advance\c@algorithm by 1
2305\xdef\@currentlabel{\thechapter.\the\c@algorithm}
2306\noindent{\bf Algoritmo \arabic{chapter}.\arabic{algorithm}}
2307\vskip6pt
2308\bgroup\xobeylines\obeyspaces\def\ {\quad}
2309\parindent=0pt\footnotesize\tt\leftskip=1pc\vskip4pt\relax}
2310
2311\def\endalgorithm{\vskip4pt\egroup}
2312
2313%% <== Algoritmo
2314
2315\let\savelabel\label
2316
2317 \def\proof{\everypar={}
2318 \futurelet\next\lookforbracket}
2319
2320 \def\lookforbracket{\ifx\next[\let\go\usespecialterm
2321 \else\let\go\relax
2322 \ifvmode\vskip-\lastskip\fi
2323 \vskip8pt
2324 \noindent{\it Proof\/:}%
2325\enskip\relax\fi\ignorespaces\go}
2326
2327 \def\usespecialterm[#1]{\ifvmode\vskip-\lastskip\fi
2328 \vskip6pt
2329 \noindent%
2330 {\it Proof\ \ {\rm(#1):}}\ \ \relax\ignorespaces}
2331
2332 \def\endproof{\qed\vskip6pt\relax}
2333
2334%%%%%%%%%%%%%%%%%
2335%% Answers macros
2336%%%% Problems and Solutions, Accomodating answers.sty commands
2337
2338
2339\def\solutionchap#1{\section*{\uppercase{Soluciones por Capítulo} #1}
2340\openin1 ans#1.tex \ifeof1
2341\typeout{^^J^^J No file ans#1.tex!
2342^^J\string\solutionchap\string{#1\string} requires ans#1.tex^^J
2343Please
2344make sure that you have entered
2345\string\usepackage{answers} and
2346\string\Newassociation\string{sol\string}\string{Solution\string}\string{ans\string}\space and then run LaTeX on your file again.}
2347\else
2348\input{ans#1}\fi}
2349
2350\def\solutionappendix#1{\section*{\uppercase{Soluciones por Apéndice} #1}
2351\openin1 ans#1.tex \ifeof1
2352\typeout{^^J^^J No file ans#1.tex!
2353^^J\string\solutionchap\string{#1\string} requires ans#1.tex^^J
2354Please
2355make sure that you have entered
2356\string\usepackage{answers} and
2357\string\Newassociation\string{sol\string}\string{Solution\string}\string{ans\string}\space and then run LaTeX on your file again.}
2358\else
2359\input{ans#1}\fi}
2360
2361
2362\def\solutions{\newpage\ifodd\c@page\else\thispagestyle{empty}
2363\null\newpage\fi
2364\chapter*{Problem Solutions}
2365\markboth{Problem Solutions}{Problem Solutions}
2366\addcontentsline{toc}{schapter}{Problem Solutions}
2367\expandafter\ifx\csname Closesolutionfile\endcsname \relax\else
2368\Closesolutionfile{ans}\fi
2369}
2370
2371\let\savedocument\document
2372\let\saveenddocument\enddocument
2373
2374\def\enddocument{
2375\expandafter\ifx\csname Closesolutionfile\endcsname \relax\else
2376\Closesolutionfile{ans}\fi
2377\saveenddocument}
2378
2379\def\document{%
2380\savedocument
2381\expandafter\ifx\csname Newassociation\endcsname\relax
2382\def\sol{\typeout{^^J^^J To make \string\begin\string{sol\string} work, please use \string\usepackage\string{answers\string}
2383^^J^^J}}
2384\def\endsol{\typeout{^^J^^J}}
2385\def\Solution##1{\typeout{^^J^^J To make \string\Solution\space work, please use \string\usepackage\string{answers\string}
2386^^J^^J}}
2387\else
2388\Newassociation{sol}{Solution}{ans}\fi
2389}
2390
2391\def\xnumberline#1{\hb@xt@\@tempdima{\hskip12pt\llap{#1}\hfill}}
2392
2393\newcommand{\contentsinbrief}{%
2394\startonoddpage
2395\global\titletrue
2396\advance\chapskip-6pt
2397\chapheight=-12pt
2398\partskip=-12pt
2399\vglue-10.5pc
2400    \chapter*{Lista breve de Contenidos}
2401    \@mkboth{\uppercase{Lista breve de Contenidos}}{\uppercase{Lista breve de Contenidos}}%
2402\bgroup
2403\let\numberline\xnumberline
2404\parskip=6pt
2405{\hyphenpenalty=10000
2406\parindent=0pt
2407\@startchaptoc{toc}
2408}
2409\egroup
2410    \if@restonecol\twocolumn\fi
2411\newpage
2412\setcounter{tocdepth}{2}
2413\markboth{}{}
2414    }
2415
2416\def\@startchaptoc#1{%
2417  \begingroup
2418\def\l@chapter##1##2{%
2419  \ifnum \c@tocdepth >\m@ne
2420    \addpenalty{-\@highpenalty}%
2421    \vskip 12pt \@plus6\p@
2422     \setlength\@tempdima{2em}% was 1.5
2423    \begingroup\chaptocfont
2424      \parindent \z@ \rightskip \@pnumwidth
2425      \parfillskip -\@pnumwidth
2426      \leavevmode
2427      \advance\leftskip\@tempdima
2428      \hskip -\leftskip
2429 ##1\nobreak\hfil \nobreak\hbox to\@pnumwidth{\hss ##2}\par
2430      \penalty\@highpenalty
2431    \endgroup
2432  \fi\vskip-6pt}
2433\setcounter{tocdepth}{0}
2434    \makeatletter
2435    \@input{\jobname.#1}%
2436    \@nobreakfalse
2437  \endgroup}
2438
2439
2440%%% Macros de libro editado:
2441
2442\font\chapauthorfont=cmcsc10
2443\font\chapaffilfont=\timesroman at 9pt
2444
2445\def\chapteraffil#1{\vskip6pt
2446\noindent{\let\affilmark\newaffilmark\chapaffilfont\ignorespaces #1\vskip1sp}}
2447\def\saveaffilmark#1{$^{#1}$}
2448\def\newaffilmark#1{\leftskip4pt\hbox to0pt{\hss\hbox to 4pt{$^{#1}$}}}
2449\def\eatone#1{}
2450
2451\newdimen\chapskip
2452\chapskip=26pt
2453\newdimen\chapheight
2454\newdimen\authorskip
2455
2456\def\chapterauthors#1{\vbox to0pt{\vglue-1in
2457\let\affilmark\saveaffilmark\chapauthorfont #1\vrule height 10pt width0pt\ }
2458{\let\chapteraffil\eatone\let\affilmark\eatone
2459\addtocontents{toc}{\string\nobreak
2460\vskip\authorskip
2461\string\noindent\vrule height 9pt width0pt\hskip\chapskip#1\hfill\vskip\chapheight}\ \vskip3pt}}
2462
2463\def\contributors{\chapter*{COLABORADORES}
2464\vskip1sp
2465\leftskip=10pt
2466\parindent-10pt
2467\vskip-2pt
2468\everypar={}
2469\def\footnote##1{\hskip-10pt\savefootnote{##1}\hskip10pt}
2470\setcounter{page}{5}
2471\global\titletrue
2472\markboth{COLABORADORES}{COLABORADORES}}
2473
2474\def\endcontributors{\newpage\markboth{}{}}
2475
2476\def\name#1{\vskip2pt\fakesc #1*\hskip10pt}
2477
2478%%%%%%%%%%%%%%%%%%%%%
2479%% Warn against using earlier commands
2480\expandafter\def\csname chapreferences*\endcsname{
2481\typeout{^^J^^J \string\begin\string{chapreferences*\string}\space is
2482obsolete.^^J Please use
2483\string\begin\string{chapreferences\string}\string{<widest label>\string}\space instead.^^J Consulte docs.pdf si tiene preguntas.}\stop }
2484
2485\expandafter\def\csname references*\endcsname{
2486\typeout{^^J^^J \string\begin\string{references*\string}\space is
2487obsolete.^^J Please use
2488\string\begin\string{references\string}\string{<widest label>\string}\space instead.^^J Consulte docs.pdf si tiene preguntas.}\stop }
2489
2490
2491\expandafter\def\csname namedchapreferences\endcsname{
2492\typeout{^^J^^J \string\begin\string{namedchapreferences\string}\space is
2493obsolete.^^J Please use
2494\string\begin\string{chapreferences\string}\string{<widest label>\string}\space instead.^^J Consulte docs.pdf si tiene preguntas.}\stop }
2495
2496\expandafter\def\csname namedreferences\endcsname{
2497\typeout{^^J^^J \string\begin\string{namedreferences\string}\space is
2498obsolete.^^J Please use
2499\string\begin\string{references\string}\string{<widest label>\string}\space instead.^^J Consulte docs.pdf si tiene preguntas.}\stop }
2500
2501\endinput
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
Note: See TracBrowser for help on using the repository browser.