-
Notifications
You must be signed in to change notification settings - Fork 0
/
erc_bbk_report.cls
executable file
·330 lines (330 loc) · 9.35 KB
/
erc_bbk_report.cls
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
%%
%% This is file `ucl_thesis.cls',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% ucl_thesis.dcl
%%
%% IMPORTANT NOTICE:
%%
%% For the copyright see the source file.
%%
%% You are *not* allowed to modify this file.
%%
%% You are *not* allowed to distribute this file.
%% For distribution of the original source see the terms
%% for copying and modification in the file ucl_thesis.dcl.
%%
%% A LaTeX2e class defining a UCL MRes, MPhil or PhD thesis.
%%
%% Copyright (c) 1996, Russel Winder.
%%
\def \fileversion{v1.4}
\def \filedate{1996/07/20}
\def \docdate{\filedate}
\newcommand \@doctor{Doctor of Philosophy}
\newcommand \@master{Master of Philosophy}
\newcommand \@mres{Master of Research}
\newcommand \@msc{Master of Science}
\newcommand \@degree@string{\@msc}
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{erc_bbk_report}[\filedate\space\fileversion\space UCL MRes/MPhil/PhD Thesis class]
\DeclareOption{mres}{\renewcommand\@degree@string{\@mres}}
\DeclareOption{MRes}{\renewcommand\@degree@string{\@mres}}
\DeclareOption{mphil}{\renewcommand\@degree@string{\@master}}
\DeclareOption{MPhil}{\renewcommand\@degree@string{\@master}}
\DeclareOption{phd}{\renewcommand\@degree@string{\@doctor}}
\DeclareOption{PhD}{\renewcommand\@degree@string{\@doctor}}
\DeclareOption{twocolumn}{%
\ClassError{ucl_document}{Option `twocolumn' not supported for UCL theses.}{}}
\newif \if@draftmode
\@draftmodefalse
\DeclareOption{draft}{\@draftmodetrue\PassOptionsToClass{draft}{book}}
\DeclareOption{final}{\@draftmodefalse\PassOptionsToClass{final}{book}}
\PassOptionsToClass{a4paper}{book}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}}
\ProcessOptions
\LoadClass{book}
\RequirePackage{ucl_a4}
\RequirePackage{times}
\setlength \textwidth {415\p@}
\setlength \textheight {692\p@}
\setlength \topmargin {36\p@}
\setlength \oddsidemargin {96\p@}
\if@twoside
\setlength \evensidemargin {60\p@}
\else
\setlength \evensidemargin {96\p@}
\fi
\def \ps@headings{%
\def \@oddhead{\underline{\underline{\normalfont \rmfamily \slshape \hfill \rightmark \hfill \thepage}}}%
\def \@evenhead{\underline{\underline{\normalfont \rmfamily \slshape \thepage \hfill \leftmark \hfill}}}%
\let \@oddfoot \@empty%
\let \@evenfoot \@empty%
\let \@mkboth \markboth%
\def \chaptermark##1{%
\markboth{%
\ifnum \c@secnumdepth >\m@ne%
\if@mainmatter%
\@chapapp\ \thechapter. \ %
\fi%
\fi%
##1%
}{}%
}%
\def \sectionmark##1{%
\markright {%
\ifnum \c@secnumdepth >\z@%
\thesection. \ %
\fi%
##1%
}%
}%
}
\pagestyle{headings}
\renewcommand \footnoterule {%
\kern -3\p@%
\hrule%
\kern 2.6\p@%
}
\setlength \parindent{2em}
\setlength \parskip {\z@ \@plus 1\p@}
\setlength \headsep {16\p@}
\ifcase \@ptsize
\setlength \footskip{26\p@}
\or
\setlength \footskip{27\p@}
\or
\setlength \footskip{28\p@}
\fi
\setlength \partopsep {\z@}
\tolerance = \@m
\emergencystretch = 10\p@
\vfuzz = 2\p@
\hfuzz = 2\p@
\flushbottom
\renewcommand \baselinestretch{1.5}
\renewcommand \tableofcontents{%
\if@twocolumn%
\@restonecoltrue \onecolumn%
\else%
\@restonecolfalse%
\fi%
\chapter*{%
\contentsname%
\@mkboth{\contentsname}{\contentsname}%
}%
\@starttoc{toc}%
\if@restonecol%
\twocolumn%
\fi%
}
\renewcommand \listoffigures{%
\if@twocolumn%
\@restonecoltrue \onecolumn%
\else%
\@restonecolfalse%
\fi%
\chapter*{%
\listfigurename%
\@mkboth{\listfigurename}{\listfigurename}%
}%
\@starttoc{lof}%
\if@restonecol%
\twocolumn%
\fi%
}
\renewcommand \listoftables{%
\if@twocolumn%
\@restonecoltrue \onecolumn%
\else%
\@restonecolfalse%
\fi%
\chapter*{%
\listtablename%
\@mkboth{\listtablename}{\listtablename}%
}%
\@starttoc{lot}%
\if@restonecol%
\twocolumn%
\fi%
}
\renewenvironment{thebibliography}[1]{%
\chapter*{%
\bibname%
\@mkboth{\bibname}{\bibname}%
}%
\addcontentsline{toc}{chapter}{\bibname} % New line
\list{\@biblabel{\arabic{enumiv}}}%
{\settowidth \labelwidth{\@biblabel{#1}}%
\leftmargin \labelwidth%
\advance \leftmargin \labelsep%
\@openbib@code%
\usecounter{enumiv}%
\let \p@enumiv \@empty%
\renewcommand \theenumiv{\arabic{enumiv}}%
}%
\sloppy%
\clubpenalty 4000%
\@clubpenalty \clubpenalty%
\widowpenalty 4000%
\sfcode`\.=\@m%
}{%
\def \@noitemerr{\@latex@warning{Empty `thebibliography' environment}}%
\endlist%
}
\renewenvironment{theindex}{%
\if@twocolumn%
\@restonecolfalse%
\else%
\@restonecoltrue%
\fi%
\columnseprule \z@%
\columnsep 35\p@%
\twocolumn[\@makeschapterhead{\indexname}]%
\@mkboth{\indexname}{\indexname}%
\thispagestyle{plain}%
\small%
\parindent \z@%
\parskip \z@ \@plus .3\p@%
\relax%
%%%
%%% It appears that there is an error in the definition of \@idxitem
%%% which causes horrid looking indexes. Redefine the miscreant
%%% so as to insert the missing \par. NB. Cannot use
%%% |\renewcommand| since this appears not to work on outer block,
%%% even if |\global| is used.
%%%
%%% As noticed on 1998.03.15, this appears to have been fixed.
%%%
%%% \gdef \@idxitem{\par \hangindent 40\p@}
%%%
\let \item \@idxitem%
}{%
\if@restonecol%
\onecolumn%
\else%
\clearpage%
\fi%
}
\renewcommand \maketitle{%
\setcounter{page}{1}%
\thispagestyle{empty}%
\@maketitle%
\setcounter{footnote}{0}%
\let \thanks = \relax%
\gdef \@address{}%
\gdef \@thanks{}%
\gdef \@author{}%
\gdef \@title{}%
\let \maketitle = \relax%
}
\newcommand \@maketitle{%
\newpage%
\null%
\vspace*{5em}%
\begin{center}%
{\huge \bfseries \@title}\\[5em]%
{\Large \itshape \@author}\\%
\end{center}%
\vfill%
\begin{center}%
A dissertation submitted in partial fulfillment \\
of the requirements for the degree of \\
\textbf{\@degree@string} \\
of the \\
\textbf{University of London}.
\end{center}%
\vspace{2em}%
\begin{center}%
Department of Computer Science \\
University College London
\end{center}%
\vspace{2em}%
\begin{center}%
\@date%
\end{center}%
}
\renewcommand \chapter{%
\if@openright%
\cleardoublepage%
\else%
\clearpage%
\fi
\thispagestyle{empty}%
\global \@topnum \z@%
\@afterindentfalse%
\secdef \@chapter \@schapter%
}
\def \@makechapterhead#1{%
\vspace*{40\p@}%
{\parindent \z@%
\raggedright%
\reset@font%
\ifnum \c@secnumdepth >\m@ne%
\if@mainmatter%
\Large \bfseries \@chapapp{} \thechapter%
\par%
\vskip 20\p@%
\fi%
\fi%
\huge \bfseries #1%
\par%
\nobreak%
\vskip 40\p@%
}%
}
\def \@makeschapterhead#1{%
\vspace*{50\p@}%
{\parindent \z@%
\raggedright%
\reset@font%
\huge \bfseries #1%
\par%
\nobreak%
\vskip 40\p@%
}%
}
\renewcommand \section{\@startsection {section}{1}{\z@}%
{-1ex \@plus -.4ex \@minus -.2ex}%
{.6ex \@plus .1ex}%
{\reset@font \Large \bfseries}}
\renewcommand \subsection{\@startsection{subsection}{2}{\z@}%
{-.7ex\@plus -.3ex \@minus -.2ex}%
{.4ex \@plus .1ex}%
{\reset@font \large \bfseries}}
\renewcommand \subsubsection{\@startsection{subsubsection}{3}{\z@}%
{-.5ex\@plus -.2ex \@minus -.2ex}%
{.3ex \@plus .1ex}%
{\reset@font \large}}
\renewcommand \paragraph{\@startsection{paragraph}{4}{\z@}%
{.5ex \@plus .1ex \@minus .2ex}%
{-.2em}%
{\reset@font \normalsize \bfseries}}
\renewcommand \subparagraph{\@startsection{subparagraph}{5}{\parindent}%
{-.3ex \@plus .1ex \@minus .2ex}%
{-.2em}%
{\reset@font \normalsize \bfseries}}
\setcounter{secnumdepth}{2}
\newcommand \@abstract{Abstract}
\newenvironment{abstract}{%
\chapter*{\@abstract}%
\@mkboth{\@abstract}{\@abstract}%
}{%
}
\newcommand \@acknowledgements{Acknowledgements}
\newenvironment{acknowledgements}{%
\chapter*{\@acknowledgements}%
\@mkboth{\@acknowledgements}{\@acknowledgements}%
}{%
}
%\newcommand \@publications{Publications}
%\newenvironment{publications}{%
% \chapter*{\@publications}%
% \@mkboth{\@publications}{\@publications}%
%}{%
%}
\endinput
%%
%% End of file `ucl_thesis.cls'.