Debian Codegraph @

texmf-dist/tex/latex/base/book.cls

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