Debian Codegraph @

texmf-dist/tex/latex/extsizes/extbook.cls

raw
1 %% This is file `extbook.cls',
2 %% Copyright 1993 1994 1995 1996 1997 1998 1999
3 %% The LaTeX3 Project and any individual authors listed elsewhere
4 %% in this file.
5 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
6 \ProvidesClass{extbook}
7 [1999/01/07 v1.4a
8 NON-Standard LaTeX document class]
9 \newcommand\@ptsize{}
10 \newif\if@restonecol
11 \newif\if@titlepage
12 \@titlepagetrue
13 \newif\if@openright
14 \newif\if@mainmatter \@mainmattertrue
15 \DeclareOption{a4paper}
16 {\setlength\paperheight {297mm}%
17 \setlength\paperwidth {210mm}}
18 \DeclareOption{a5paper}
19 {\setlength\paperheight {210mm}%
20 \setlength\paperwidth {148mm}}
21 \DeclareOption{b5paper}
22 {\setlength\paperheight {250mm}%
23 \setlength\paperwidth {176mm}}
24 \DeclareOption{letterpaper}
25 {\setlength\paperheight {11in}%
26 \setlength\paperwidth {8.5in}}
27 \DeclareOption{legalpaper}
28 {\setlength\paperheight {14in}%
29 \setlength\paperwidth {8.5in}}
30 \DeclareOption{executivepaper}
31 {\setlength\paperheight {10.5in}%
32 \setlength\paperwidth {7.25in}}
33 \DeclareOption{landscape}
34 {\setlength\@tempdima {\paperheight}%
35 \setlength\paperheight {\paperwidth}%
36 \setlength\paperwidth {\@tempdima}}
37 \DeclareOption{8pt}{\renewcommand\@ptsize{8}}
38 \DeclareOption{9pt}{\renewcommand\@ptsize{9}}
39 \DeclareOption{10pt}{\renewcommand\@ptsize{0}}
40 \DeclareOption{11pt}{\renewcommand\@ptsize{1}}
41 \DeclareOption{12pt}{\renewcommand\@ptsize{2}}
42 \DeclareOption{14pt}{\renewcommand\@ptsize{14}}
43 \DeclareOption{17pt}{\renewcommand\@ptsize{17}}
44 \DeclareOption{20pt}{\renewcommand\@ptsize{20}}
45 \DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse}
46 \DeclareOption{twoside}{\@twosidetrue \@mparswitchtrue}
47 \DeclareOption{draft}{\setlength\overfullrule{5pt}}
48 \DeclareOption{final}{\setlength\overfullrule{0pt}}
49 \DeclareOption{titlepage}{\@titlepagetrue}
50 \DeclareOption{notitlepage}{\@titlepagefalse}
51 \DeclareOption{openright}{\@openrighttrue}
52 \DeclareOption{openany}{\@openrightfalse}
53 \DeclareOption{onecolumn}{\@twocolumnfalse}
54 \DeclareOption{twocolumn}{\@twocolumntrue}
55 \DeclareOption{leqno}{\input{leqno.clo}}
56 \DeclareOption{fleqn}{\input{fleqn.clo}}
57 \DeclareOption{openbib}{%
58 \AtEndOfPackage{%
59 \renewcommand\@openbib@code{%
60 \advance\leftmargin\bibindent
61 \itemindent -\bibindent
62 \listparindent \itemindent
63 \parsep \z@
64 }%
65 \renewcommand\newblock{\par}}%
66 }
67 \ExecuteOptions{letterpaper,10pt,twoside,onecolumn,final,openright}
68 \ProcessOptions
69 \def\EC@family#1#2#3#4#5{%
70 \DeclareFontShape{#1}{#2}{#3}{#4}%
71 {<5><6><7><8><9><10><10.95><12><14.4>%
72 <17.28><20.74><24.88><29.86><35.83><42.99><51.59>genb*#5}{}}
73 \EC@family{T1}{cmr}{m}{n}{ecrm}
74 \EC@family{T1}{cmr}{m}{sl}{ecsl}
75 \EC@family{T1}{cmr}{m}{it}{ecti}
76 \EC@family{T1}{cmr}{m}{sc}{eccc}
77 \EC@family{T1}{cmr}{bx}{n}{ecbx}
78 \EC@family{T1}{cmr}{b}{n}{ecrb}
79 \EC@family{T1}{cmr}{bx}{it}{ecbi}
80 \EC@family{T1}{cmr}{bx}{sl}{ecbl}
81 \EC@family{T1}{cmr}{bx}{sc}{ecxc}
82 \EC@family{T1}{cmr}{m}{ui}{ecui}
83 \DeclareFontShape{OT1}{cmr}{m}{n}%
84 {<5><6><7><8><9><10><12>gen*cmr%
85 <10.95>cmr10%
86 <14.4>cmr12%
87 <17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmr17}{}
88 \DeclareFontShape{OT1}{cmr}{m}{sl}%
89 {<5><6><7>cmsl8%
90 <8><9>gen*cmsl%
91 <10><10.95>cmsl10%
92 <12><14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmsl12%
93 }{}
94 \DeclareFontShape{OT1}{cmr}{m}{it}%
95 {<5><6><7>cmti7%
96 <8>cmti8%
97 <9>cmti9%
98 <10><10.95>cmti10%
99 <12><14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmti12%
100 }{}
101 \DeclareFontShape{OT1}{cmr}{m}{sc}%
102 {<5><6><7><8><9><10><10.95><12>%
103 <14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmcsc10%
104 }{}
105 \DeclareFontShape{OT1}{cmr}{m}{ui}
106 {<5><6><7><8><9><10><10.95><12>%
107 <14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmu10%
108 }{}
109 \DeclareFontShape{OT1}{cmr}{b}{n}
110 {<5><6><7><8><9><10><10.95><12>%
111 <14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmb10%
112 }{}
113 \DeclareFontShape{OT1}{cmr}{bx}{n}
114 {<5><6><7><8><9>gen*cmbx%
115 <10><10.95>cmbx10%
116 <12><14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmbx12%
117 }{}
118 \DeclareFontShape{OT1}{cmr}{bx}{sl}
119 {<5><6><7><8><9>%
120 <10><10.95><12><14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmbxsl10%
121 }{}
122 \DeclareFontShape{OT1}{cmr}{bx}{it}
123 {<5><6><7><8><9>%
124 <10><10.95><12><14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmbxti10%
125 }{}
126 \ifnum\@ptsize<3
127 \input{bk1\@ptsize.clo}
128 \else
129 \input{size\@ptsize.clo}
130 \fi
131 \RequirePackage{exscale}
132 \setlength\lineskip{1\p@}
133 \setlength\normallineskip{1\p@}
134 \renewcommand\baselinestretch{}
135 \setlength\parskip{0\p@ \@plus \p@}
136 \@lowpenalty 51
137 \@medpenalty 151
138 \@highpenalty 301
139 \setcounter{topnumber}{2}
140 \renewcommand\topfraction{.7}
141 \setcounter{bottomnumber}{1}
142 \renewcommand\bottomfraction{.3}
143 \setcounter{totalnumber}{3}
144 \renewcommand\textfraction{.2}
145 \renewcommand\floatpagefraction{.5}
146 \setcounter{dbltopnumber}{2}
147 \renewcommand\dbltopfraction{.7}
148 \renewcommand\dblfloatpagefraction{.5}
149 \if@twoside
150 \def\ps@headings{%
151 \let\@oddfoot\@empty\let\@evenfoot\@empty
152 \def\@evenhead{\thepage\hfil\slshape\leftmark}%
153 \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
154 \let\@mkboth\markboth
155 \def\chaptermark##1{%
156 \markboth {\MakeUppercase{%
157 \ifnum \c@secnumdepth >\m@ne
158 \if@mainmatter
159 \@chapapp\ \thechapter. \ %
160 \fi
161 \fi
162 ##1}}{}}%
163 \def\sectionmark##1{%
164 \markright {\MakeUppercase{%
165 \ifnum \c@secnumdepth >\z@
166 \thesection. \ %
167 \fi
168 ##1}}}}
169 \else
170 \def\ps@headings{%
171 \let\@oddfoot\@empty
172 \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
173 \let\@mkboth\markboth
174 \def\chaptermark##1{%
175 \markright {\MakeUppercase{%
176 \ifnum \c@secnumdepth >\m@ne
177 \if@mainmatter
178 \@chapapp\ \thechapter. \ %
179 \fi
180 \fi
181 ##1}}}}
182 \fi
183 \def\ps@myheadings{%
184 \let\@oddfoot\@empty\let\@evenfoot\@empty
185 \def\@evenhead{\thepage\hfil\slshape\leftmark}%
186 \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
187 \let\@mkboth\@gobbletwo
188 \let\chaptermark\@gobble
189 \let\sectionmark\@gobble
190 }
191 \if@titlepage
192 \newcommand\maketitle{\begin{titlepage}%
193 \let\footnotesize\small
194 \let\footnoterule\relax
195 \let \footnote \thanks
196 \null\vfil
197 \vskip 60\p@
198 \begin{center}%
199 {\LARGE \@title \par}%
200 \vskip 3em%
201 {\large
202 \lineskip .75em%
203 \begin{tabular}[t]{c}%
204 \@author
205 \end{tabular}\par}%
206 \vskip 1.5em%
207 {\large \@date \par}% % Set date in \large size.
208 \end{center}\par
209 \@thanks
210 \vfil\null
211 \end{titlepage}%
212 \setcounter{footnote}{0}%
213 \global\let\thanks\relax
214 \global\let\maketitle\relax
215 \global\let\@thanks\@empty
216 \global\let\@author\@empty
217 \global\let\@date\@empty
218 \global\let\@title\@empty
219 \global\let\title\relax
220 \global\let\author\relax
221 \global\let\date\relax
222 \global\let\and\relax
223 }
224 \else
225 \newcommand\maketitle{\par
226 \begingroup
227 \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
228 \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
229 \long\def\@makefntext##1{\parindent 1em\noindent
230 \hb@[email protected]{%
231 \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
232 \if@twocolumn
233 \ifnum \col@number=\@ne
234 \@maketitle
235 \else
236 \twocolumn[\@maketitle]%
237 \fi
238 \else
239 \newpage
240 \global\@topnum\z@ % Prevents figures from going at top of page.
241 \@maketitle
242 \fi
243 \thispagestyle{plain}\@thanks
244 \endgroup
245 \setcounter{footnote}{0}%
246 \global\let\thanks\relax
247 \global\let\maketitle\relax
248 \global\let\@maketitle\relax
249 \global\let\@thanks\@empty
250 \global\let\@author\@empty
251 \global\let\@date\@empty
252 \global\let\@title\@empty
253 \global\let\title\relax
254 \global\let\author\relax
255 \global\let\date\relax
256 \global\let\and\relax
257 }
258 \def\@maketitle{%
259 \newpage
260 \null
261 \vskip 2em%
262 \begin{center}%
263 \let \footnote \thanks
264 {\LARGE \@title \par}%
265 \vskip 1.5em%
266 {\large
267 \lineskip .5em%
268 \begin{tabular}[t]{c}%
269 \@author
270 \end{tabular}\par}%
271 \vskip 1em%
272 {\large \@date}%
273 \end{center}%
274 \par
275 \vskip 1.5em}
276 \fi
277 \newcommand*\chaptermark[1]{}
278 \setcounter{secnumdepth}{2}
279 \newcounter {part}
280 \newcounter {chapter}
281 \newcounter {section}[chapter]
282 \newcounter {subsection}[section]
283 \newcounter {subsubsection}[subsection]
284 \newcounter {paragraph}[subsubsection]
285 \newcounter {subparagraph}[paragraph]
286 \renewcommand \thepart {\@Roman\c@part}
287 \renewcommand \thechapter {\@arabic\c@chapter}
288 \renewcommand \thesection {\thechapter.\@arabic\c@section}
289 \renewcommand\thesubsection {\thesection.\@arabic\c@subsection}
290 \renewcommand\thesubsubsection{\thesubsection .\@arabic\c@subsubsection}
291 \renewcommand\theparagraph {\thesubsubsection.\@arabic\c@paragraph}
292 \renewcommand\thesubparagraph {\theparagraph.\@arabic\c@subparagraph}
293 \newcommand\@chapapp{\chaptername}
294 \newcommand\frontmatter{%
295 \cleardoublepage
296 \@mainmatterfalse
297 \pagenumbering{roman}}
298 \newcommand\mainmatter{%
299 \cleardoublepage
300 \@mainmattertrue
301 \pagenumbering{arabic}}
302 \newcommand\backmatter{%
303 \if@openright
304 \cleardoublepage
305 \else
306 \clearpage
307 \fi
308 \@mainmatterfalse}
309 \newcommand\part{%
310 \if@openright
311 \cleardoublepage
312 \else
313 \clearpage
314 \fi
315 \thispagestyle{plain}%
316 \if@twocolumn
317 \onecolumn
318 \@tempswatrue
319 \else
320 \@tempswafalse
321 \fi
322 \null\vfil
323 \secdef\@part\@spart}
324
325 \def\@part[#1]#2{%
326 \ifnum \c@secnumdepth >-2\relax
327 \refstepcounter{part}%
328 \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
329 \else
330 \addcontentsline{toc}{part}{#1}%
331 \fi
332 \markboth{}{}%
333 {\centering
334 \interlinepenalty \@M
335 \normalfont
336 \ifnum \c@secnumdepth >-2\relax
337 \huge\bfseries \partname~\thepart
338 \par
339 \vskip 20\p@
340 \fi
341 \Huge \bfseries #2\par}%
342 \@endpart}
343 \def\@spart#1{%
344 {\centering
345 \interlinepenalty \@M
346 \normalfont
347 \Huge \bfseries #1\par}%
348 \@endpart}
349 \def\@endpart{\vfil\newpage
350 \if@twoside
351 \null
352 \thispagestyle{empty}%
353 \newpage
354 \fi
355 \if@tempswa
356 \twocolumn
357 \fi}
358 \newcommand\chapter{\if@openright\cleardoublepage\else\clearpage\fi
359 \thispagestyle{plain}%
360 \global\@topnum\z@
361 \@afterindentfalse
362 \secdef\@chapter\@schapter}
363 \def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
364 \if@mainmatter
365 \refstepcounter{chapter}%
366 \typeout{\@chapapp\space\thechapter.}%
367 \addcontentsline{toc}{chapter}%
368 {\protect\numberline{\thechapter}#1}%
369 \else
370 \addcontentsline{toc}{chapter}{#1}%
371 \fi
372 \else
373 \addcontentsline{toc}{chapter}{#1}%
374 \fi
375 \chaptermark{#1}%
376 \addtocontents{lof}{\protect\addvspace{10\p@}}%
377 \addtocontents{lot}{\protect\addvspace{10\p@}}%
378 \if@twocolumn
379 \@topnewpage[\@makechapterhead{#2}]%
380 \else
381 \@makechapterhead{#2}%
382 \@afterheading
383 \fi}
384 \def\@makechapterhead#1{%
385 \vspace*{50\p@}%
386 {\parindent \z@ \raggedright \normalfont
387 \ifnum \c@secnumdepth >\m@ne
388 \if@mainmatter
389 \huge\bfseries \@chapapp\space \thechapter
390 \par\nobreak
391 \vskip 20\p@
392 \fi
393 \fi
394 \interlinepenalty\@M
395 \Huge \bfseries #1\par\nobreak
396 \vskip 40\p@
397 }}
398 \def\@schapter#1{\if@twocolumn
399 \@topnewpage[\@makeschapterhead{#1}]%
400 \else
401 \@makeschapterhead{#1}%
402 \@afterheading
403 \fi}
404 \def\@makeschapterhead#1{%
405 \vspace*{50\p@}%
406 {\parindent \z@ \raggedright
407 \normalfont
408 \interlinepenalty\@M
409 \Huge \bfseries #1\par\nobreak
410 \vskip 40\p@
411 }}
412 \newcommand\section{\@startsection {section}{1}{\z@}%
413 {-3.5ex \@plus -1ex \@minus -.2ex}%
414 {2.3ex \@plus.2ex}%
415 {\normalfont\Large\bfseries}}
416 \newcommand\subsection{\@startsection{subsection}{2}{\z@}%
417 {-3.25ex\@plus -1ex \@minus -.2ex}%
418 {1.5ex \@plus .2ex}%
419 {\normalfont\large\bfseries}}
420 \newcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
421 {-3.25ex\@plus -1ex \@minus -.2ex}%
422 {1.5ex \@plus .2ex}%
423 {\normalfont\normalsize\bfseries}}
424 \newcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
425 {3.25ex \@plus1ex \@minus.2ex}%
426 {-1em}%
427 {\normalfont\normalsize\bfseries}}
428 \newcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
429 {3.25ex \@plus1ex \@minus .2ex}%
430 {-1em}%
431 {\normalfont\normalsize\bfseries}}
432 \if@twocolumn
433 \setlength\leftmargini {2em}
434 \else
435 \setlength\leftmargini {2.5em}
436 \fi
437 \leftmargin \leftmargini
438 \setlength\leftmarginii {2.2em}
439 \setlength\leftmarginiii {1.87em}
440 \setlength\leftmarginiv {1.7em}
441 \if@twocolumn
442 \setlength\leftmarginv {.5em}
443 \setlength\leftmarginvi {.5em}
444 \else
445 \setlength\leftmarginv {1em}
446 \setlength\leftmarginvi {1em}
447 \fi
448 \setlength \labelsep {.5em}
449 \setlength \labelwidth{\leftmargini}
450 \addtolength\labelwidth{-\labelsep}
451 \@beginparpenalty -\@lowpenalty
452 \@endparpenalty -\@lowpenalty
453 \@itempenalty -\@lowpenalty
454 \renewcommand\theenumi{\@arabic\c@enumi}
455 \renewcommand\theenumii{\@alph\c@enumii}
456 \renewcommand\theenumiii{\@roman\c@enumiii}
457 \renewcommand\theenumiv{\@Alph\c@enumiv}
458 \newcommand\labelenumi{\theenumi.}
459 \newcommand\labelenumii{(\theenumii)}
460 \newcommand\labelenumiii{\theenumiii.}
461 \newcommand\labelenumiv{\theenumiv.}
462 \renewcommand\p@enumii{\theenumi}
463 \renewcommand\p@enumiii{\theenumi(\theenumii)}
464 \renewcommand\p@enumiv{\p@enumiii\theenumiii}
465 \newcommand\labelitemi{\textbullet}
466 \newcommand\labelitemii{\normalfont\bfseries \textendash}
467 \newcommand\labelitemiii{\textasteriskcentered}
468 \newcommand\labelitemiv{\textperiodcentered}
469 \newenvironment{description}
470 {\list{}{\labelwidth\z@ \itemindent-\leftmargin
471 \let\makelabel\descriptionlabel}}
472 {\endlist}
473 \newcommand*\descriptionlabel[1]{\hspace\labelsep
474 \normalfont\bfseries #1}
475 \newenvironment{verse}
476 {\let\\\@centercr
477 \list{}{\itemsep \z@
478 \itemindent -1.5em%
479 \listparindent\itemindent
480 \rightmargin \leftmargin
481 \advance\leftmargin 1.5em}%
482 \item\relax}
483 {\endlist}
484 \newenvironment{quotation}
485 {\list{}{\listparindent 1.5em%
486 \itemindent \listparindent
487 \rightmargin \leftmargin
488 \parsep \z@ \@plus\p@}%
489 \item\relax}
490 {\endlist}
491 \newenvironment{quote}
492 {\list{}{\rightmargin\leftmargin}%
493 \item\relax}
494 {\endlist}
495 \newenvironment{titlepage}
496 {%
497 \cleardoublepage
498 \if@twocolumn
499 \@restonecoltrue\onecolumn
500 \else
501 \@restonecolfalse\newpage
502 \fi
503 \thispagestyle{empty}%
504 \setcounter{page}\@ne
505 }%
506 {\if@restonecol\twocolumn \else \newpage \fi
507 \if@twoside\else
508 \setcounter{page}\@ne
509 \fi
510 }
511 \newcommand\appendix{\par
512 \setcounter{chapter}{0}%
513 \setcounter{section}{0}%
514 \gdef\@chapapp{\appendixname}%
515 \gdef\thechapter{\@Alph\c@chapter}}
516 \setlength\arraycolsep{5\p@}
517 \setlength\tabcolsep{6\p@}
518 \setlength\arrayrulewidth{.4\p@}
519 \setlength\doublerulesep{2\p@}
520 \setlength\tabbingsep{\labelsep}
521 \skip\@mpfootins = \skip\footins
522 \setlength\fboxsep{3\p@}
523 \setlength\fboxrule{.4\p@}
524 \@addtoreset {equation}{chapter}
525 \renewcommand\theequation
526 {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@equation}
527 \newcounter{figure}[chapter]
528 \renewcommand \thefigure
529 {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@figure}
530 \def\fps@figure{tbp}
531 \def\ftype@figure{1}
532 \def\ext@figure{lof}
533 \def\fnum@figure{\figurename~\thefigure}
534 \newenvironment{figure}
535 {\@float{figure}}
536 {\end@float}
537 \newenvironment{figure*}
538 {\@dblfloat{figure}}
539 {\end@dblfloat}
540 \newcounter{table}[chapter]
541 \renewcommand \thetable
542 {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@table}
543 \def\fps@table{tbp}
544 \def\ftype@table{2}
545 \def\ext@table{lot}
546 \def\fnum@table{\tablename~\thetable}
547 \newenvironment{table}
548 {\@float{table}}
549 {\end@float}
550 \newenvironment{table*}
551 {\@dblfloat{table}}
552 {\end@dblfloat}
553 \newlength\abovecaptionskip
554 \newlength\belowcaptionskip
555 \setlength\abovecaptionskip{10\p@}
556 \setlength\belowcaptionskip{0\p@}
557 \long\def\@makecaption#1#2{%
558 \vskip\abovecaptionskip
559 \sbox\@tempboxa{#1: #2}%
560 \ifdim \wd\@tempboxa >\hsize
561 #1: #2\par
562 \else
563 \global \@minipagefalse
564 \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
565 \fi
566 \vskip\belowcaptionskip}
567 \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
568 \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
569 \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
570 \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
571 \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
572 \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
573 \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
574 \DeclareRobustCommand*\cal{\@fontswitch\relax\mathcal}
575 \DeclareRobustCommand*\mit{\@fontswitch\relax\mathnormal}
576 \newcommand\@pnumwidth{1.55em}
577 \newcommand\@tocrmarg{2.55em}
578 \newcommand\@dotsep{4.5}
579 \setcounter{tocdepth}{2}
580 \newcommand\tableofcontents{%
581 \if@twocolumn
582 \@restonecoltrue\onecolumn
583 \else
584 \@restonecolfalse
585 \fi
586 \chapter*{\contentsname
587 \@mkboth{%
588 \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}%
589 \@starttoc{toc}%
590 \if@restonecol\twocolumn\fi
591 }
592 \newcommand*\l@part[2]{%
593 \ifnum \c@tocdepth >-2\relax
594 \addpenalty{-\@highpenalty}%
595 \addvspace{2.25em \@plus\p@}%
596 \begingroup
597 \parindent \z@ \rightskip \@pnumwidth
598 \parfillskip -\@pnumwidth
599 {\leavevmode
600 \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
601 \nobreak
602 \global\@nobreaktrue
603 \everypar{\global\@nobreakfalse\everypar{}}%
604 \endgroup
605 \fi}
606 \newcommand*\l@chapter[2]{%
607 \ifnum \c@tocdepth >\m@ne
608 \addpenalty{-\@highpenalty}%
609 \vskip 1.0em \@plus\p@
610 \setlength\@tempdima{1.5em}%
611 \begingroup
612 \parindent \z@ \rightskip \@pnumwidth
613 \parfillskip -\@pnumwidth
614 \leavevmode \bfseries
615 \advance\leftskip\@tempdima
616 \hskip -\leftskip
617 #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
618 \penalty\@highpenalty
619 \endgroup
620 \fi}
621 \newcommand*\l@section{\@dottedtocline{1}{1.5em}{2.3em}}
622 \newcommand*\l@subsection{\@dottedtocline{2}{3.8em}{3.2em}}
623 \newcommand*\l@subsubsection{\@dottedtocline{3}{7.0em}{4.1em}}
624 \newcommand*\l@paragraph{\@dottedtocline{4}{10em}{5em}}
625 \newcommand*\l@subparagraph{\@dottedtocline{5}{12em}{6em}}
626 \newcommand\listoffigures{%
627 \if@twocolumn
628 \@restonecoltrue\onecolumn
629 \else
630 \@restonecolfalse
631 \fi
632 \chapter*{\listfigurename
633 \@mkboth{\MakeUppercase\listfigurename}%
634 {\MakeUppercase\listfigurename}}%
635 \@starttoc{lof}%
636 \if@restonecol\twocolumn\fi
637 }
638 \newcommand*\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}
639 \newcommand\listoftables{%
640 \if@twocolumn
641 \@restonecoltrue\onecolumn
642 \else
643 \@restonecolfalse
644 \fi
645 \chapter*{\listtablename
646 \@mkboth{%
647 \MakeUppercase\listtablename}{\MakeUppercase\listtablename}}%
648 \@starttoc{lot}%
649 \if@restonecol\twocolumn\fi
650 }
651 \let\l@table\l@figure
652 \newdimen\bibindent
653 \setlength\bibindent{1.5em}
654 \newenvironment{thebibliography}[1]
655 {\chapter*{\bibname
656 \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}}%
657 \list{\@biblabel{\@arabic\c@enumiv}}%
658 {\settowidth\labelwidth{\@biblabel{#1}}%
659 \leftmargin\labelwidth
660 \advance\leftmargin\labelsep
661 \@openbib@code
662 \usecounter{enumiv}%
663 \let\p@enumiv\@empty
664 \renewcommand\theenumiv{\@arabic\c@enumiv}}%
665 \sloppy
666 \clubpenalty4000
667 \@clubpenalty \clubpenalty
668 \widowpenalty4000%
669 \sfcode`\.\@m}
670 {\def\@noitemerr
671 {\@latex@warning{Empty `thebibliography' environment}}%
672 \endlist}
673 \newcommand\newblock{\hskip .11em\@plus.33em\@minus.07em}
674 \let\@openbib@code\@empty
675 \newenvironment{theindex}
676 {\if@twocolumn
677 \@restonecolfalse
678 \else
679 \@restonecoltrue
680 \fi
681 \columnseprule \z@
682 \columnsep 35\p@
683 \twocolumn[\@makeschapterhead{\indexname}]%
684 \@mkboth{\MakeUppercase\indexname}%
685 {\MakeUppercase\indexname}%
686 \thispagestyle{plain}\parindent\z@
687 \parskip\z@ \@plus .3\p@\relax
688 \let\item\@idxitem}
689 {\if@restonecol\onecolumn\else\clearpage\fi}
690 \newcommand\@idxitem{\par\hangindent 40\p@}
691 \newcommand\subitem{\@idxitem \hspace*{20\p@}}
692 \newcommand\subsubitem{\@idxitem \hspace*{30\p@}}
693 \newcommand\indexspace{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
694 \renewcommand\footnoterule{%
695 \kern-3\p@
696 \hrule\@width.4\columnwidth
697 \kern2.6\p@}
698 \@addtoreset{footnote}{chapter}
699 \newcommand\@makefntext[1]{%
700 \parindent 1em%
701 \noindent
702 \hb@[email protected]{\hss\@makefnmark}#1}
703 \newcommand\contentsname{Contents}
704 \newcommand\listfigurename{List of Figures}
705 \newcommand\listtablename{List of Tables}
706 \newcommand\bibname{Bibliography}
707 \newcommand\indexname{Index}
708 \newcommand\figurename{Figure}
709 \newcommand\tablename{Table}
710 \newcommand\partname{Part}
711 \newcommand\chaptername{Chapter}
712 \newcommand\appendixname{Appendix}
713 \def\today{\ifcase\month\or
714 January\or February\or March\or April\or May\or June\or
715 July\or August\or September\or October\or November\or December\fi
716 \space\number\day, \number\year}
717 \setlength\columnsep{10\p@}
718 \setlength\columnseprule{0\p@}
719 \pagestyle{headings}
720 \pagenumbering{arabic}
721 \if@twoside
722 \else
723 \raggedbottom
724 \fi
725 \if@twocolumn
726 \twocolumn
727 \sloppy
728 \flushbottom
729 \else
730 \onecolumn
731 \fi
732 \endinput
733 %%
734 %% End of file `book.cls'.