~ubuntu-branches/ubuntu/utopic/xen/utopic

« back to all changes in this revision

Viewing changes to docs/xenstyle.cls

  • Committer: Bazaar Package Importer
  • Author(s): Bastian Blank
  • Date: 2010-05-06 15:47:38 UTC
  • mto: (1.3.1) (15.1.1 sid) (4.1.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20100506154738-agoz0rlafrh1fnq7
Tags: upstream-4.0.0
ImportĀ upstreamĀ versionĀ 4.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
%% 
2
 
%% xenstyle.cls
3
 
%%
4
 
%% A modified version of 'report.cls':
5
 
%%
6
 
%% This is file `report.cls', generated 
7
 
%% on <1994/9/30> with the docstrip utility (2.2h).
8
 
%% 
9
 
%% The original source files were:
10
 
%% 
11
 
%% classes.dtx  (with options: `report')
12
 
%% 
13
 
%% Copyright 1994 the LaTeX3 project and the individual authors. 
14
 
%% All rights reserved. For further copyright information see the file 
15
 
%% legal.txt, and any other copyright indicated in this file. 
16
 
%% 
17
 
%% This file is part of the LaTeX2e system. 
18
 
%% ---------------------------------------- 
19
 
%% 
20
 
%% This system is distributed in the hope that it will be useful, 
21
 
%% but WITHOUT ANY WARRANTY; without even the implied warranty of 
22
 
%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
23
 
%% 
24
 
%% 
25
 
%% IMPORTANT NOTICE: 
26
 
%% 
27
 
%% For error reports in case of UNCHANGED versions see bugs.txt. 
28
 
%% 
29
 
%% Please do not request updates from us directly. Distribution is 
30
 
%% done through Mail-Servers and TeX organizations. 
31
 
%% 
32
 
%% You are not allowed to change this file. 
33
 
%% 
34
 
%% You are allowed to distribute this file under the condition that 
35
 
%% it is distributed together with all files mentioned in manifest.txt. 
36
 
%% 
37
 
%% If you receive only some of these files from someone, complain! 
38
 
%% 
39
 
%% You are NOT ALLOWED to distribute this file alone. You are NOT 
40
 
%% ALLOWED to take money for the distribution or use of either this 
41
 
%% file or a changed version, except for a nominal charge for copying 
42
 
%% etc. 
43
 
%% \CharacterTable
44
 
%%  {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
45
 
%%   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
46
 
%%   Digits        \0\1\2\3\4\5\6\7\8\9
47
 
%%   Exclamation   \!     Double quote  \"     Hash (number) \#
48
 
%%   Dollar        \$     Percent       \%     Ampersand     \&
49
 
%%   Acute accent  \'     Left paren    \(     Right paren   \)
50
 
%%   Asterisk      \*     Plus          \+     Comma         \,
51
 
%%   Minus         \-     Point         \.     Solidus       \/
52
 
%%   Colon         \:     Semicolon     \;     Less than     \<
53
 
%%   Equals        \=     Greater than  \>     Question mark \?
54
 
%%   Commercial at \@     Left bracket  \[     Backslash     \\
55
 
%%   Right bracket \]     Circumflex    \^     Underscore    \_
56
 
%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
57
 
%%   Right brace   \}     Tilde         \~}
58
 
\NeedsTeXFormat{LaTeX2e}
59
 
\ProvidesClass{xenstyle}[]
60
 
\newcommand\@ptsize{}
61
 
\newif\if@restonecol
62
 
\newif\if@titlepage
63
 
\@titlepagetrue
64
 
\newif\if@openright
65
 
\newif\if@openbib
66
 
\@openbibfalse
67
 
\DeclareOption{a4paper}
68
 
   {\setlength\paperheight {297mm}%
69
 
    \setlength\paperwidth  {210mm}}
70
 
\DeclareOption{a5paper}
71
 
   {\setlength\paperheight {210mm}%
72
 
    \setlength\paperwidth  {148mm}}
73
 
\DeclareOption{b5paper}
74
 
   {\setlength\paperheight {250mm}%
75
 
    \setlength\paperwidth  {176mm}}
76
 
\DeclareOption{letterpaper}
77
 
   {\setlength\paperheight {11in}%
78
 
    \setlength\paperwidth  {8.5in}}
79
 
\DeclareOption{legalpaper}
80
 
   {\setlength\paperheight {14in}%
81
 
    \setlength\paperwidth  {8.5in}}
82
 
\DeclareOption{executivepaper}
83
 
   {\setlength\paperheight {10.5in}%
84
 
    \setlength\paperwidth  {7.25in}}
85
 
\DeclareOption{landscape}
86
 
   {\setlength\@tempdima   {\paperheight}%
87
 
    \setlength\paperheight {\paperwidth}%
88
 
    \setlength\paperwidth  {\@tempdima}}
89
 
\DeclareOption{10pt}{\renewcommand\@ptsize{0}}
90
 
\DeclareOption{11pt}{\renewcommand\@ptsize{1}}
91
 
\DeclareOption{12pt}{\renewcommand\@ptsize{2}}
92
 
\DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse}
93
 
\DeclareOption{twoside}{\@twosidetrue  \@mparswitchtrue}
94
 
\DeclareOption{draft}{\setlength\overfullrule{5pt}}
95
 
\DeclareOption{final}{\setlength\overfullrule{0pt}}
96
 
\DeclareOption{titlepage}{\@titlepagetrue}
97
 
\DeclareOption{notitlepage}{\@titlepagefalse}
98
 
\DeclareOption{openright}{\@openrighttrue}
99
 
\DeclareOption{openany}{\@openrightfalse}
100
 
\DeclareOption{onecolumn}{\@twocolumnfalse}
101
 
\DeclareOption{twocolumn}{\@twocolumntrue}
102
 
\DeclareOption{leqno}{\input{leqno.clo}}
103
 
\DeclareOption{fleqn}{\input{fleqn.clo}}
104
 
\DeclareOption{openbib}{\@openbibtrue}
105
 
\ExecuteOptions{letterpaper,10pt,oneside,onecolumn,final,openany}
106
 
\ProcessOptions
107
 
\input{size1\@ptsize.clo}
108
 
\setlength\lineskip{1\p@}
109
 
\setlength\normallineskip{1\p@}
110
 
\renewcommand\baselinestretch{}
111
 
\setlength\parskip{0\p@ \@plus \p@}
112
 
\@lowpenalty   51
113
 
\@medpenalty  151
114
 
\@highpenalty 301
115
 
\setcounter{topnumber}{2}
116
 
\renewcommand\topfraction{.7}
117
 
\setcounter{bottomnumber}{1}
118
 
\renewcommand\bottomfraction{.3}
119
 
\setcounter{totalnumber}{3}
120
 
\renewcommand\textfraction{.2}
121
 
\renewcommand\floatpagefraction{.5}
122
 
\setcounter{dbltopnumber}{2}
123
 
\renewcommand\dbltopfraction{.7}
124
 
\renewcommand\dblfloatpagefraction{.5}
125
 
\if@twoside
126
 
    \def\ps@headings{%
127
 
      \let\@oddfoot\@empty\let\@evenfoot\@empty
128
 
      \def\@evenhead{\thepage\hfil\slshape\leftmark}%
129
 
      \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
130
 
      \let\@mkboth\markboth
131
 
      \def\chaptermark##1{%
132
 
        \markboth {\uppercase{\ifnum \c@secnumdepth >\m@ne
133
 
            \@chapapp\ \thechapter. \ \fi
134
 
            ##1}}{}}%
135
 
      \def\sectionmark##1{%
136
 
        \markright {\uppercase{\ifnum \c@secnumdepth >\z@
137
 
            \thesection. \ \fi
138
 
            ##1}}}}
139
 
\else
140
 
    \def\ps@headings{%
141
 
      \let\@oddfoot\@empty
142
 
      \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
143
 
      \let\@mkboth\markboth
144
 
      \def\chaptermark##1{%
145
 
        \markright {\uppercase{\ifnum \c@secnumdepth >\m@ne
146
 
            \@chapapp\ \thechapter. \ \fi
147
 
            ##1}}}}
148
 
\fi
149
 
\def\ps@myheadings{%
150
 
    \let\@oddfoot\@empty\let\@evenfoot\@empty
151
 
    \def\@evenhead{\thepage\hfil\slshape\leftmark}%
152
 
    \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
153
 
    \let\@mkboth\@gobbletwo
154
 
    \let\chaptermark\@gobble
155
 
    \let\sectionmark\@gobble
156
 
    }
157
 
\if@titlepage
158
 
  \newcommand\maketitle{\begin{titlepage}%
159
 
  \let\footnotesize\small
160
 
  \let\footnoterule\relax
161
 
  \null\vfil
162
 
  \vskip 60\p@
163
 
  \begin{center}%
164
 
    {\LARGE \@title \par}%
165
 
    \vskip 3em%
166
 
    {\large
167
 
     \lineskip .75em%
168
 
      \begin{tabular}[t]{c}%
169
 
        \@author
170
 
      \end{tabular}\par}%
171
 
      \vskip 1.5em%
172
 
    {\large \@date \par}%       % Set date in \large size.
173
 
  \end{center}\par
174
 
  \@thanks
175
 
  \vfil\null
176
 
  \end{titlepage}%
177
 
  \setcounter{footnote}{0}%
178
 
  \let\thanks\relax\let\maketitle\relax
179
 
  \gdef\@thanks{}\gdef\@author{}\gdef\@title{}}
180
 
\else
181
 
\newcommand\maketitle{\par
182
 
  \begingroup
183
 
    \renewcommand\thefootnote{\fnsymbol{footnote}}%
184
 
    \def\@makefnmark{\hbox to\z@{$\m@th^{\@thefnmark}$\hss}}%
185
 
    \long\def\@makefntext##1{\parindent 1em\noindent
186
 
            \hbox to1.8em{\hss$\m@th^{\@thefnmark}$}##1}%
187
 
    \if@twocolumn
188
 
      \ifnum \col@number=\@ne
189
 
        \@maketitle
190
 
      \else
191
 
        \twocolumn[\@maketitle]%
192
 
      \fi
193
 
    \else
194
 
      \newpage
195
 
      \global\@topnum\z@   % Prevents figures from going at top of page.
196
 
      \@maketitle
197
 
    \fi
198
 
    \thispagestyle{plain}\@thanks
199
 
  \endgroup
200
 
  \setcounter{footnote}{0}%
201
 
  \let\thanks\relax
202
 
  \let\maketitle\relax\let\@maketitle\relax
203
 
  \gdef\@thanks{}\gdef\@author{}\gdef\@title{}}
204
 
\def\@maketitle{%
205
 
  \newpage
206
 
  \null
207
 
  \vskip 2em%
208
 
  \begin{center}%
209
 
    {\LARGE \@title \par}%
210
 
    \vskip 1.5em%
211
 
    {\large
212
 
      \lineskip .5em%
213
 
      \begin{tabular}[t]{c}%
214
 
        \@author
215
 
      \end{tabular}\par}%
216
 
    \vskip 1em%
217
 
    {\large \@date}%
218
 
  \end{center}%
219
 
  \par
220
 
  \vskip 1.5em}
221
 
\fi
222
 
\newcommand\chaptermark[1]{}
223
 
\setcounter{secnumdepth}{2}
224
 
\newcounter {part}
225
 
\newcounter {chapter}
226
 
\newcounter {section}[chapter]
227
 
\newcounter {subsection}[section]
228
 
\newcounter {subsubsection}[subsection]
229
 
\newcounter {paragraph}[subsubsection]
230
 
\newcounter {subparagraph}[paragraph]
231
 
\renewcommand\thepart          {\Roman{part}}
232
 
\renewcommand\thechapter       {\arabic{chapter}}
233
 
\renewcommand\thesection       {\thechapter.\arabic{section}}
234
 
\renewcommand\thesubsection    {\thesection.\arabic{subsection}}
235
 
\renewcommand\thesubsubsection {\thesubsection .\arabic{subsubsection}}
236
 
\renewcommand\theparagraph     {\thesubsubsection.\arabic{paragraph}}
237
 
\renewcommand\thesubparagraph  {\theparagraph.\arabic{subparagraph}}
238
 
\newcommand\@chapapp{\chaptername}
239
 
\newcommand\part{\cleardoublepage
240
 
                 \thispagestyle{plain}%
241
 
                 \if@twocolumn
242
 
                     \onecolumn
243
 
                     \@tempswatrue
244
 
                   \else
245
 
                     \@tempswafalse
246
 
                 \fi
247
 
                 \hbox{}\vfil
248
 
                 \secdef\@part\@spart}
249
 
 
250
 
\def\@part[#1]#2{%
251
 
    \ifnum \c@secnumdepth >-2\relax
252
 
      \refstepcounter{part}%
253
 
      \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
254
 
    \else
255
 
      \addcontentsline{toc}{part}{#1}%
256
 
    \fi
257
 
    \markboth{}{}
258
 
    {\centering
259
 
     \interlinepenalty \@M
260
 
     \reset@font
261
 
     \ifnum \c@secnumdepth >-2\relax
262
 
       \huge\bfseries \partname~\thepart
263
 
       \par
264
 
       \vskip 20\p@
265
 
     \fi
266
 
     \Huge \bfseries #2\par}%
267
 
    \@endpart}
268
 
\def\@spart#1{%
269
 
    {\centering
270
 
     \interlinepenalty \@M
271
 
     \reset@font
272
 
     \Huge \bfseries #1\par}%
273
 
    \@endpart}
274
 
\def\@endpart{\vfil\newpage
275
 
              \if@twoside
276
 
                \hbox{}%
277
 
                \thispagestyle{empty}%
278
 
                \newpage
279
 
              \fi
280
 
              \if@tempswa
281
 
                \twocolumn
282
 
              \fi}
283
 
\newcommand\chapter{\if@openright\cleardoublepage\else\clearpage\fi
284
 
                    \thispagestyle{plain}%
285
 
                    \global\@topnum\z@
286
 
                    \@afterindentfalse
287
 
                    \secdef\@chapter\@schapter}
288
 
\def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
289
 
                         \refstepcounter{chapter}%
290
 
                         \typeout{\@chapapp\space\thechapter.}%
291
 
                         \addcontentsline{toc}{chapter}%
292
 
                                   {\protect\numberline{\thechapter}#1}%
293
 
                    \else
294
 
                      \addcontentsline{toc}{chapter}{#1}
295
 
                    \fi
296
 
                    \chaptermark{#1}%
297
 
                    \addtocontents{lof}{\protect\addvspace{10\p@}}%
298
 
                    \addtocontents{lot}{\protect\addvspace{10\p@}}%
299
 
                    \if@twocolumn
300
 
                      \@topnewpage[\@makechapterhead{#2}]%
301
 
                    \else
302
 
                      \@makechapterhead{#2}%
303
 
                      \@afterheading
304
 
                    \fi}
305
 
\def\@makechapterhead#1{%
306
 
  \vspace*{50\p@}%
307
 
  {\parindent \z@ \raggedright \reset@font
308
 
    \ifnum \c@secnumdepth >\m@ne
309
 
         \huge\bfseries \@chapapp{} \thechapter
310
 
         \par
311
 
         \vskip 20\p@
312
 
       \fi
313
 
    \Huge \bfseries #1\par
314
 
    \nobreak
315
 
    \vskip 40\p@
316
 
  }}
317
 
\def\@schapter#1{\if@twocolumn
318
 
                   \@topnewpage[\@makeschapterhead{#1}]%
319
 
                 \else
320
 
                   \@makeschapterhead{#1}%
321
 
                   \@afterheading
322
 
                 \fi}
323
 
\def\@makeschapterhead#1{%
324
 
  \vspace*{50\p@}%
325
 
  {\parindent \z@ \raggedright
326
 
    \reset@font
327
 
    \Huge \bfseries  #1\par
328
 
    \nobreak
329
 
    \vskip 40\p@
330
 
  }}
331
 
\newcommand\section{\@startsection {section}{1}{\z@}%
332
 
                                   {-3.5ex \@plus -1ex \@minus -.2ex}%
333
 
                                   {2.3ex \@plus.2ex}%
334
 
                                   {\reset@font\Large\bfseries}}
335
 
\newcommand\subsection{\@startsection{subsection}{2}{\z@}%
336
 
                                     {-3.25ex\@plus -1ex \@minus -.2ex}%
337
 
                                     {1.5ex \@plus .2ex}%
338
 
                                     {\reset@font\large\bfseries}}
339
 
\newcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
340
 
                                     {-3.25ex\@plus -1ex \@minus -.2ex}%
341
 
                                     {1.5ex \@plus .2ex}%
342
 
                                     {\reset@font\normalsize\bfseries}}
343
 
\newcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
344
 
                                    {3.25ex \@plus1ex \@minus.2ex}%
345
 
                                    {-1em}%
346
 
                                    {\reset@font\normalsize\bfseries}}
347
 
\newcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
348
 
                                       {3.25ex \@plus1ex \@minus .2ex}%
349
 
                                       {-1em}%
350
 
                                      {\reset@font\normalsize\bfseries}}
351
 
\if@twocolumn
352
 
  \setlength\leftmargini  {2em}
353
 
\else
354
 
  \setlength\leftmargini  {2.5em}
355
 
\fi
356
 
\setlength\leftmarginii  {2.2em}
357
 
\setlength\leftmarginiii {1.87em}
358
 
\setlength\leftmarginiv  {1.7em}
359
 
\if@twocolumn
360
 
  \setlength\leftmarginv  {.5em}
361
 
  \setlength\leftmarginvi {.5em}
362
 
\else
363
 
  \setlength\leftmarginv  {1em}
364
 
  \setlength\leftmarginvi {1em}
365
 
\fi
366
 
\setlength\leftmargin    {\leftmargini}
367
 
\setlength  \labelsep  {.5em}
368
 
\setlength  \labelwidth{\leftmargini}
369
 
\addtolength\labelwidth{-\labelsep}
370
 
\@beginparpenalty -\@lowpenalty
371
 
\@endparpenalty   -\@lowpenalty
372
 
\@itempenalty     -\@lowpenalty
373
 
\renewcommand\theenumi{\arabic{enumi}}
374
 
\renewcommand\theenumii{\alph{enumii}}
375
 
\renewcommand\theenumiii{\roman{enumiii}}
376
 
\renewcommand\theenumiv{\Alph{enumiv}}
377
 
\newcommand\labelenumi{\theenumi.}
378
 
\newcommand\labelenumii{(\theenumii)}
379
 
\newcommand\labelenumiii{\theenumiii.}
380
 
\newcommand\labelenumiv{\theenumiv.}
381
 
\renewcommand\p@enumii{\theenumi}
382
 
\renewcommand\p@enumiii{\theenumi(\theenumii)}
383
 
\renewcommand\p@enumiv{\p@enumiii\theenumiii}
384
 
\newcommand\labelitemi{$\m@th\bullet$}
385
 
\newcommand\labelitemii{\normalfont\bfseries --}
386
 
\newcommand\labelitemiii{$\m@th\ast$}
387
 
\newcommand\labelitemiv{$\m@th\cdot$}
388
 
\newenvironment{description}
389
 
               {\list{}{\labelwidth\z@ \itemindent-\leftmargin
390
 
                        \let\makelabel\descriptionlabel}}
391
 
               {\endlist}
392
 
\newcommand\descriptionlabel[1]{\hspace\labelsep
393
 
                                \normalfont\bfseries #1}
394
 
\if@titlepage
395
 
  \newenvironment{abstract}{%
396
 
      \titlepage
397
 
      \null\vfil
398
 
      \begin{center}
399
 
        \bfseries \abstractname
400
 
      \end{center}}
401
 
     {\par\vfil\null\endtitlepage}
402
 
\else
403
 
  \newenvironment{abstract}{%
404
 
      \if@twocolumn
405
 
        \section*{\abstractname}%
406
 
      \else
407
 
        \small
408
 
        \begin{center}%
409
 
          {\bfseries \abstractname\vspace{-.5em}\vspace{\z@}}%
410
 
        \end{center}%
411
 
        \quotation
412
 
      \fi}
413
 
      {\if@twocolumn\else\endquotation\fi}
414
 
\fi
415
 
\newenvironment{verse}
416
 
               {\let\\=\@centercr
417
 
                \list{}{\itemsep      \z@
418
 
                        \itemindent   -1.5em%
419
 
                        \listparindent\itemindent
420
 
                        \rightmargin  \leftmargin
421
 
                        \advance\leftmargin 1.5em}%
422
 
                \item[]}
423
 
               {\endlist}
424
 
\newenvironment{quotation}
425
 
               {\list{}{\listparindent 1.5em%
426
 
                        \itemindent    \listparindent
427
 
                        \rightmargin   \leftmargin
428
 
                        \parsep        \z@ \@plus\p@}%
429
 
                \item[]}
430
 
               {\endlist}
431
 
\newenvironment{quote}
432
 
               {\list{}{\rightmargin\leftmargin}%
433
 
                \item[]}
434
 
               {\endlist}
435
 
\newenvironment{titlepage}
436
 
    {%
437
 
      \if@twocolumn
438
 
        \@restonecoltrue\onecolumn
439
 
      \else
440
 
        \@restonecolfalse\newpage
441
 
      \fi
442
 
      \thispagestyle{empty}%
443
 
      \if@compatibility
444
 
        \setcounter{page}{0}
445
 
      \else
446
 
        \setcounter{page}{1}%
447
 
      \fi}%
448
 
    {\if@restonecol\twocolumn \else \newpage \fi
449
 
      \setcounter{page}{1}%
450
 
    }
451
 
\newcommand\appendix{\par
452
 
  \setcounter{chapter}{0}%
453
 
  \setcounter{section}{0}%
454
 
  \renewcommand\@chapapp{\appendixname}%
455
 
  \renewcommand\thechapter{\Alph{chapter}}}
456
 
\setlength\arraycolsep{5\p@}
457
 
\setlength\tabcolsep{6\p@}
458
 
\setlength\arrayrulewidth{.4\p@}
459
 
\setlength\doublerulesep{2\p@}
460
 
\setlength\tabbingsep{\labelsep}
461
 
\skip\@mpfootins = \skip\footins
462
 
\setlength\fboxsep{3\p@}
463
 
\setlength\fboxrule{.4\p@}
464
 
\@addtoreset{equation}{chapter}
465
 
\renewcommand\theequation{\thechapter.\arabic{equation}}
466
 
\newcounter{figure}[chapter]
467
 
\renewcommand\thefigure{\thechapter.\@arabic\c@figure}
468
 
\def\fps@figure{tbp}
469
 
\def\ftype@figure{1}
470
 
\def\ext@figure{lof}
471
 
\def\fnum@figure{\figurename~\thefigure}
472
 
\newenvironment{figure}
473
 
               {\@float{figure}}
474
 
               {\end@float}
475
 
\newenvironment{figure*}
476
 
               {\@dblfloat{figure}}
477
 
               {\end@dblfloat}
478
 
\newcounter{table}[chapter]
479
 
\renewcommand\thetable{\thechapter.\@arabic\c@table}
480
 
\def\fps@table{tbp}
481
 
\def\ftype@table{2}
482
 
\def\ext@table{lot}
483
 
\def\fnum@table{\tablename~\thetable}
484
 
\newenvironment{table}
485
 
               {\@float{table}}
486
 
               {\end@float}
487
 
\newenvironment{table*}
488
 
               {\@dblfloat{table}}
489
 
               {\end@dblfloat}
490
 
\newlength\abovecaptionskip
491
 
\newlength\belowcaptionskip
492
 
\setlength\abovecaptionskip{10\p@}
493
 
\setlength\belowcaptionskip{0\p@}
494
 
\long\def\@makecaption#1#2{%
495
 
  \vskip\abovecaptionskip
496
 
  \sbox\@tempboxa{#1: #2}%
497
 
  \ifdim \wd\@tempboxa >\hsize
498
 
    #1: #2\par
499
 
  \else
500
 
    \hbox to\hsize{\hfil\box\@tempboxa\hfil}%
501
 
  \fi
502
 
  \vskip\belowcaptionskip}
503
 
\DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
504
 
\DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
505
 
\DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
506
 
\DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
507
 
\DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
508
 
\DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
509
 
\DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
510
 
%\renewcommand{\cal}{\protect\pcal}
511
 
%\newcommand{\pcal}{\@fontswitch{\relax}{\mathcal}}
512
 
%\renewcommand{\mit}{\protect\pmit}
513
 
%\newcommand{\pmit}{\@fontswitch{\relax}{\mathnormal}}
514
 
\newcommand\@pnumwidth{1.55em}
515
 
\newcommand\@tocrmarg {2.55em}
516
 
\newcommand\@dotsep{4.5}
517
 
\setcounter{tocdepth}{2}
518
 
\newcommand\tableofcontents{%
519
 
    \if@twocolumn
520
 
      \@restonecoltrue\onecolumn
521
 
    \else
522
 
      \@restonecolfalse
523
 
    \fi
524
 
    \chapter*{\contentsname
525
 
        \@mkboth{\uppercase{\contentsname}}{\uppercase{\contentsname}}}%
526
 
    \@starttoc{toc}%
527
 
    \if@restonecol\twocolumn\fi
528
 
    }
529
 
\newcommand\l@part[2]{%
530
 
  \ifnum \c@tocdepth >-2\relax
531
 
    \addpenalty{-\@highpenalty}%
532
 
    \addvspace{2.25em \@plus\p@}%
533
 
    \begingroup
534
 
      \setlength\@tempdima{3em}%
535
 
      \parindent \z@ \rightskip \@pnumwidth
536
 
      \parfillskip -\@pnumwidth
537
 
      {\leavevmode
538
 
       \large \bfseries #1\hfil \hbox to\@pnumwidth{\hss #2}}\par
539
 
       \nobreak
540
 
         \global\@nobreaktrue
541
 
         \everypar{\global\@nobreakfalse\everypar{}}
542
 
    \endgroup
543
 
  \fi}
544
 
\newcommand\l@chapter[2]{%
545
 
  \ifnum \c@tocdepth >\m@ne
546
 
    \addpenalty{-\@highpenalty}%
547
 
    \vskip 1.0em \@plus\p@
548
 
    \setlength\@tempdima{1.5em}%
549
 
    \begingroup
550
 
      \parindent \z@ \rightskip \@pnumwidth
551
 
      \parfillskip -\@pnumwidth
552
 
      \leavevmode \bfseries
553
 
      \advance\leftskip\@tempdima
554
 
      \hskip -\leftskip
555
 
      #1\nobreak\hfil \nobreak\hbox to\@pnumwidth{\hss #2}\par
556
 
      \penalty\@highpenalty
557
 
    \endgroup
558
 
  \fi}
559
 
\newcommand\l@section      {\@dottedtocline{1}{1.5em}{2.3em}}
560
 
\newcommand\l@subsection   {\@dottedtocline{2}{3.8em}{3.2em}}
561
 
\newcommand\l@subsubsection{\@dottedtocline{3}{7.0em}{4.1em}}
562
 
\newcommand\l@paragraph    {\@dottedtocline{4}{10em}{5em}}
563
 
\newcommand\l@subparagraph {\@dottedtocline{5}{12em}{6em}}
564
 
\newcommand\listoffigures{%
565
 
    \if@twocolumn
566
 
      \@restonecoltrue\onecolumn
567
 
    \else
568
 
      \@restonecolfalse
569
 
    \fi
570
 
    \chapter*{\listfigurename
571
 
      \@mkboth{\uppercase{\listfigurename}}%
572
 
              {\uppercase{\listfigurename}}}%
573
 
    \@starttoc{lof}%
574
 
    \if@restonecol\twocolumn\fi
575
 
    }
576
 
\newcommand\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}
577
 
\newcommand\listoftables{%
578
 
    \if@twocolumn
579
 
      \@restonecoltrue\onecolumn
580
 
    \else
581
 
      \@restonecolfalse
582
 
    \fi
583
 
    \chapter*{\listtablename
584
 
      \@mkboth{\uppercase{\listtablename}}{\uppercase{\listtablename}}}%
585
 
    \@starttoc{lot}%
586
 
    \if@restonecol\twocolumn\fi
587
 
    }
588
 
\let\l@table\l@figure
589
 
\newdimen\bibindent
590
 
\bibindent=1.5em
591
 
\newenvironment{thebibliography}[1]
592
 
     {\chapter*{\bibname
593
 
        \@mkboth{\uppercase{\bibname}}{\uppercase{\bibname}}}%
594
 
      \list{\@biblabel{\arabic{enumiv}}}%
595
 
           {\settowidth\labelwidth{\@biblabel{#1}}%
596
 
            \leftmargin\labelwidth
597
 
            \advance\leftmargin\labelsep
598
 
            \if@openbib
599
 
              \advance\leftmargin\bibindent
600
 
              \itemindent -\bibindent
601
 
              \listparindent \itemindent
602
 
              \parsep \z@
603
 
            \fi
604
 
            \usecounter{enumiv}%
605
 
            \let\p@enumiv\@empty
606
 
            \renewcommand\theenumiv{\arabic{enumiv}}}%
607
 
      \if@openbib
608
 
        \renewcommand\newblock{\par}
609
 
      \else
610
 
        \renewcommand\newblock{\hskip .11em \@plus.33em \@minus.07em}%
611
 
      \fi
612
 
      \sloppy\clubpenalty4000\widowpenalty4000%
613
 
      \sfcode`\.=\@m}
614
 
     {\def\@noitemerr
615
 
       {\@latex@warning{Empty `thebibliography' environment}}%
616
 
      \endlist}
617
 
\newcommand\newblock{}
618
 
\newenvironment{theindex}
619
 
               {\if@twocolumn
620
 
                  \@restonecolfalse
621
 
                \else
622
 
                  \@restonecoltrue
623
 
                \fi
624
 
                \columnseprule \z@
625
 
                \columnsep 35\p@
626
 
                \twocolumn[\@makeschapterhead{\indexname}]%
627
 
                \@mkboth{\uppercase{\indexname}}%
628
 
                        {\uppercase{\indexname}}%
629
 
                \thispagestyle{plain}\parindent\z@
630
 
                \parskip\z@ \@plus .3\p@\relax
631
 
                \let\item\@idxitem}
632
 
               {\if@restonecol\onecolumn\else\clearpage\fi}
633
 
\newcommand\@idxitem  {\par\hangindent 40\p@}
634
 
\newcommand\subitem   {\par\hangindent 40\p@ \hspace*{20\p@}}
635
 
\newcommand\subsubitem{\par\hangindent 40\p@ \hspace*{30\p@}}
636
 
\newcommand\indexspace{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
637
 
\renewcommand\footnoterule{%
638
 
  \kern-3\p@
639
 
  \hrule width .4\columnwidth
640
 
  \kern 2.6\p@}
641
 
\@addtoreset{footnote}{chapter}
642
 
\long\def\@makefntext#1{%
643
 
    \parindent 1em%
644
 
    \noindent
645
 
    \hbox to 1.8em{\hss\@makefnmark}#1}
646
 
\newcommand\contentsname{Contents}
647
 
\newcommand\listfigurename{List of Figures}
648
 
\newcommand\listtablename{List of Tables}
649
 
\newcommand\bibname{Bibliography}
650
 
\newcommand\indexname{Index}
651
 
\newcommand\figurename{Figure}
652
 
\newcommand\tablename{Table}
653
 
\newcommand\partname{Part}
654
 
\newcommand\chaptername{Chapter}
655
 
\newcommand\appendixname{Appendix}
656
 
\newcommand\abstractname{Abstract}
657
 
\newcommand\today{\ifcase\month\or
658
 
  January\or February\or March\or April\or May\or June\or
659
 
  July\or August\or September\or October\or November\or December\fi
660
 
  \space\number\day, \number\year}
661
 
\setlength\columnsep{10\p@}
662
 
\setlength\columnseprule{0\p@}
663
 
\pagestyle{plain}
664
 
\pagenumbering{arabic}      % Arabic page numbers
665
 
\if@twoside
666
 
\else
667
 
  \raggedbottom
668
 
\fi
669
 
\if@twocolumn
670
 
  \twocolumn
671
 
  \sloppy
672
 
  \flushbottom
673
 
\else
674
 
  \onecolumn
675
 
\fi
676
 
\endinput