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