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