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

UCC git Repository :: git.ucc.asn.au