/[dtapublic]/pubs/books/ucbka/trunk/custbook.cls
ViewVC logotype

Diff of /pubs/books/ucbka/trunk/custbook.cls

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.139  
changed lines
  Added in v.140

dashley@gmail.com
ViewVC Help
Powered by ViewVC 1.1.25