1 |
110 |
guanucolui |
%%
|
2 |
|
|
%% This is file `ecsminithesis.cls',
|
3 |
|
|
%% generated with the docstrip utility.
|
4 |
|
|
%%
|
5 |
|
|
%% The original source files were:
|
6 |
|
|
%%
|
7 |
|
|
%% ecsdocs.dtx (with options: `minithesis')
|
8 |
|
|
%%
|
9 |
|
|
%% Copyright (C) 2001 by Steve R. Gunn
|
10 |
|
|
%%
|
11 |
|
|
%% This file is part of the ECSDocs class distribution
|
12 |
|
|
%%
|
13 |
|
|
\NeedsTeXFormat{LaTeX2e}[1996/12/01]
|
14 |
|
|
\ProvidesClass{ecsminithesis}
|
15 |
|
|
[2003/25/04 v1.6
|
16 |
|
|
LaTeX document class]
|
17 |
|
|
\def\baseclass{book}
|
18 |
|
|
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{\baseclass}}
|
19 |
|
|
\def\@checkoptions#1#2{
|
20 |
|
|
\edef\@curroptions{\@ptionlist{\@currname.\@currext}}
|
21 |
|
|
\@tempswafalse
|
22 |
|
|
\@tfor\@this:=#2\do{
|
23 |
|
|
\@expandtwoargs\in@{,\@this,}{,\@curroptions,}
|
24 |
|
|
\ifin@ \@tempswatrue \@break@tfor \fi}
|
25 |
|
|
\let\@this\@empty
|
26 |
|
|
\if@tempswa \else \PassOptionsToClass{#1}{\baseclass}\fi
|
27 |
|
|
}
|
28 |
|
|
\@checkoptions{11pt}{{10pt}{11pt}{12pt}}
|
29 |
|
|
\PassOptionsToClass{a4paper}{\baseclass}
|
30 |
|
|
\ProcessOptions\relax
|
31 |
|
|
\LoadClass{\baseclass}
|
32 |
|
|
\newcommand\bhrule{\typeout{------------------------------------------------------------------------------}}
|
33 |
|
|
\newcommand\btypeout[1]{\bhrule\typeout{\space #1}\bhrule}
|
34 |
|
|
\usepackage{setspace}
|
35 |
|
|
\onehalfspacing
|
36 |
|
|
\setlength{\parindent}{0pt}
|
37 |
|
|
\setlength{\parskip}{2.0ex plus0.5ex minus0.2ex}
|
38 |
|
|
\usepackage{vmargin}
|
39 |
|
|
\setmarginsrb { 1.5in} % left margin
|
40 |
|
|
{ 0.6in} % top margin
|
41 |
|
|
{ 1.0in} % right margin
|
42 |
|
|
{ 0.8in} % bottom margin
|
43 |
|
|
{ 20pt} % head height
|
44 |
|
|
{0.25in} % head sep
|
45 |
|
|
{ 9pt} % foot height
|
46 |
|
|
{ 0.3in} % foot sep
|
47 |
|
|
\raggedbottom
|
48 |
|
|
\setlength{\topskip}{1\topskip \@plus 5\p@}
|
49 |
|
|
\doublehyphendemerits=10000 % No consecutive line hyphens.
|
50 |
|
|
\brokenpenalty=10000 % No broken words across columns/pages.
|
51 |
|
|
\widowpenalty=9999 % Almost no widows at bottom of page.
|
52 |
|
|
\clubpenalty=9999 % Almost no orphans at top of page.
|
53 |
|
|
\interfootnotelinepenalty=9999 % Almost never break footnotes.
|
54 |
|
|
\usepackage{fancyhdr}
|
55 |
|
|
\lhead[\rm\thepage]{\fancyplain{}{\sl{\rightmark}}}
|
56 |
|
|
\rhead[\fancyplain{}{\sl{\leftmark}}]{\rm\thepage}
|
57 |
|
|
\chead{}\lfoot{}\rfoot{}\cfoot{}
|
58 |
|
|
\pagestyle{fancy}
|
59 |
|
|
\renewcommand{\chaptermark}[1]{\btypeout{\thechapter\space #1}\markboth{\@chapapp\ \thechapter\ #1}{\@chapapp\ \thechapter\ #1}}
|
60 |
|
|
\renewcommand{\sectionmark}[1]{}
|
61 |
|
|
\renewcommand{\subsectionmark}[1]{}
|
62 |
|
|
\def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else
|
63 |
|
|
\hbox{}
|
64 |
|
|
\thispagestyle{empty}
|
65 |
|
|
\newpage
|
66 |
|
|
\if@twocolumn\hbox{}\newpage\fi\fi\fi}
|
67 |
|
|
\usepackage{amsmath,amsfonts,amssymb,amscd,amsthm,xspace}
|
68 |
|
|
\theoremstyle{plain}
|
69 |
|
|
\newtheorem{example}{Example}[chapter]
|
70 |
|
|
\newtheorem{theorem}{Theorem}[chapter]
|
71 |
|
|
\newtheorem{corollary}[theorem]{Corollary}
|
72 |
|
|
\newtheorem{lemma}[theorem]{Lemma}
|
73 |
|
|
\newtheorem{proposition}[theorem]{Proposition}
|
74 |
|
|
\newtheorem{axiom}[theorem]{Axiom}
|
75 |
|
|
\theoremstyle{definition}
|
76 |
|
|
\newtheorem{definition}[theorem]{Definition}
|
77 |
|
|
\theoremstyle{remark}
|
78 |
|
|
\newtheorem{remark}[theorem]{Remark}
|
79 |
|
|
\usepackage[centerlast,small,sc]{caption2}
|
80 |
|
|
\setlength{\captionmargin}{20pt}
|
81 |
|
|
\newcommand{\fref}[1]{Figure~\ref{#1}}
|
82 |
|
|
\newcommand{\tref}[1]{Table~\ref{#1}}
|
83 |
|
|
\newcommand{\eref}[1]{Equation~\ref{#1}}
|
84 |
|
|
\newcommand{\cref}[1]{Chapter~\ref{#1}}
|
85 |
|
|
\newcommand{\sref}[1]{Section~\ref{#1}}
|
86 |
|
|
\newcommand{\aref}[1]{Appendix~\ref{#1}}
|
87 |
|
|
\renewcommand{\topfraction}{0.85}
|
88 |
|
|
\renewcommand{\bottomfraction}{.85}
|
89 |
|
|
\renewcommand{\textfraction}{0.1}
|
90 |
|
|
\renewcommand{\dbltopfraction}{.85}
|
91 |
|
|
\renewcommand{\floatpagefraction}{0.75}
|
92 |
|
|
\renewcommand{\dblfloatpagefraction}{.75}
|
93 |
|
|
\setcounter{topnumber}{9}
|
94 |
|
|
\setcounter{bottomnumber}{9}
|
95 |
|
|
\setcounter{totalnumber}{20}
|
96 |
|
|
\setcounter{dbltopnumber}{9}
|
97 |
|
|
\usepackage{graphicx}
|
98 |
|
|
\usepackage{epstopdf}
|
99 |
|
|
\usepackage[scriptsize]{subfigure}
|
100 |
|
|
\usepackage{booktabs}
|
101 |
|
|
\usepackage{rotating}
|
102 |
|
|
\usepackage{listings}
|
103 |
|
|
\usepackage{lstpatch}
|
104 |
|
|
\lstset{captionpos=b,
|
105 |
|
|
frame=tb,
|
106 |
|
|
basicstyle=\scriptsize\ttfamily,
|
107 |
|
|
showstringspaces=false,
|
108 |
|
|
keepspaces=true}
|
109 |
|
|
\lstdefinestyle{matlab} {
|
110 |
|
|
language=Matlab,
|
111 |
|
|
keywordstyle=\color{blue},
|
112 |
|
|
commentstyle=\color[rgb]{0.13,0.55,0.13}\em,
|
113 |
|
|
stringstyle=\color[rgb]{0.7,0,0} }
|
114 |
|
|
\usepackage[pdfpagemode={UseOutlines},bookmarks=true,bookmarksopen=true,
|
115 |
|
|
bookmarksopenlevel=0,bookmarksnumbered=true,hypertexnames=false,
|
116 |
|
|
colorlinks,linkcolor={blue},citecolor={blue},urlcolor={red},
|
117 |
|
|
pdfstartview={FitV},unicode,breaklinks=true]{hyperref}
|
118 |
|
|
\pdfstringdefDisableCommands{
|
119 |
|
|
\let\\\space
|
120 |
|
|
}
|
121 |
|
|
\newcommand*{\supervisor}[1]{\def\supname{#1}}
|
122 |
|
|
\newcommand*{\examiner}[1]{\def\examname{#1}}
|
123 |
|
|
\newcommand*{\degree}[1]{\def\degreename{#1}}
|
124 |
|
|
\newcommand*{\authors}[1]{\def\authornames{#1}}
|
125 |
|
|
\newcommand*{\addresses}[1]{\def\addressnames{#1}}
|
126 |
|
|
\newcommand*{\university}[1]{\def\univname{#1}}
|
127 |
|
|
\newcommand*{\UNIVERSITY}[1]{\def\UNIVNAME{#1}}
|
128 |
|
|
\newcommand*{\department}[1]{\def\deptname{#1}}
|
129 |
|
|
\newcommand*{\DEPARTMENT}[1]{\def\DEPTNAME{#1}}
|
130 |
|
|
\newcommand*{\group}[1]{\def\groupname{#1}}
|
131 |
|
|
\newcommand*{\GROUP}[1]{\def\GROUPNAME{#1}}
|
132 |
|
|
\newcommand*{\faculty}[1]{\def\facname{#1}}
|
133 |
|
|
\newcommand*{\FACULTY}[1]{\def\FACNAME{#1}}
|
134 |
|
|
\newcommand*{\subject}[1]{\def\subjectname{#1}}
|
135 |
|
|
\newcommand*{\keywords}[1]{\def\keywordnames{#1}}
|
136 |
|
|
\supervisor {}
|
137 |
|
|
\examiner {}
|
138 |
|
|
\degree {}
|
139 |
|
|
\authors {}
|
140 |
|
|
\university {\texorpdfstring{\href{http://www.soton.ac.uk}
|
141 |
|
|
{University of Southampton}}
|
142 |
|
|
{University of Southampton}}
|
143 |
|
|
\UNIVERSITY {\texorpdfstring{\href{http://www.soton.ac.uk}
|
144 |
|
|
{UNIVERSITY OF SOUTHAMPTON}}
|
145 |
|
|
{UNIVERSITY OF SOUTHAMPTON}}
|
146 |
|
|
\department {\texorpdfstring{\href{http://www.ecs.soton.ac.uk}
|
147 |
|
|
{School of Electronics and Computer Science}}
|
148 |
|
|
{School of Electronics and Computer Science}}
|
149 |
|
|
\DEPARTMENT {\texorpdfstring{\href{http://www.ecs.soton.ac.uk}
|
150 |
|
|
{SCHOOL OF ELECTRONICS AND COMPUTER SCIENCE}}
|
151 |
|
|
{SCHOOL OF ELECTRONICS AND COMPUTER SCIENCE}}
|
152 |
|
|
\group {\texorpdfstring{\href{http://www.isis.ecs.soton.ac.uk}
|
153 |
|
|
{Image, Speech and Intelligent Systems Group}}
|
154 |
|
|
{Image, Speech and Intelligent Systems Group}}
|
155 |
|
|
\GROUP {\texorpdfstring{\href{http://www.isis.ecs.soton.ac.uk}
|
156 |
|
|
{IMAGE, SPEECH AND INTELLIGENT SYSTEMS GROUP}}
|
157 |
|
|
{IMAGE, SPEECH AND INTELLIGENT SYSTEMS GROUP}}
|
158 |
|
|
\faculty {\texorpdfstring{\href{http://www.engineering.soton.ac.uk}
|
159 |
|
|
{Faculty of Engineering, Science and Mathematics}}
|
160 |
|
|
{Faculty of Engineering, Science and Mathematics}}
|
161 |
|
|
\FACULTY {\texorpdfstring{\href{http://www.engineering.soton.ac.uk}
|
162 |
|
|
{FACULTY OF ENGINEERING, SCIENCE AND MATHEMATICS}}
|
163 |
|
|
{FACULTY OF ENGINEERING, SCIENCE AND MATHEMATICS}}
|
164 |
|
|
\addresses {}
|
165 |
|
|
\subject {}
|
166 |
|
|
\keywords {}
|
167 |
|
|
\renewcommand\maketitle{
|
168 |
|
|
\btypeout{Title Page}
|
169 |
|
|
\hypersetup{pdftitle={\@title}}
|
170 |
|
|
\hypersetup{pdfsubject=\subjectname}
|
171 |
|
|
\hypersetup{pdfauthor=\authornames}
|
172 |
|
|
\hypersetup{pdfkeywords=\keywordnames}
|
173 |
|
|
\thispagestyle{empty}
|
174 |
|
|
\begin{titlepage}
|
175 |
|
|
\let\footnotesize\small
|
176 |
|
|
\let\footnoterule\relax
|
177 |
|
|
\let \footnote \thanks
|
178 |
|
|
\setcounter{footnote}{0}
|
179 |
|
|
\null\vfil
|
180 |
|
|
\vskip 60\p@
|
181 |
|
|
\begin{center}
|
182 |
|
|
\setlength{\parskip}{0pt}
|
183 |
|
|
{\large\textbf{\UNIVNAME}\par}
|
184 |
|
|
{\large \facname \par}
|
185 |
|
|
{\large \deptname \par}
|
186 |
|
|
\vfill
|
187 |
|
|
{\large A mini-thesis submitted for transfer from}
|
188 |
|
|
{\large MPhil to PhD \par}
|
189 |
|
|
\vfill
|
190 |
|
|
{\normalsize Supervisor: \supname \par}
|
191 |
|
|
{\normalsize Examiner: \examname \par}
|
192 |
|
|
\vfill
|
193 |
|
|
\hspace{6mm}\parbox[t][51mm][s]{89mm}{
|
194 |
|
|
\center
|
195 |
|
|
\vfill
|
196 |
|
|
{\large \bf \@title \par}
|
197 |
|
|
\vfill
|
198 |
|
|
{\normalsize by \authornames \par}
|
199 |
|
|
\vfill
|
200 |
|
|
{\normalsize \@date \par}
|
201 |
|
|
\vfill
|
202 |
|
|
}
|
203 |
|
|
\parbox[t][95mm][s]{89mm}{}
|
204 |
|
|
\end{center}
|
205 |
|
|
\par
|
206 |
|
|
\@thanks
|
207 |
|
|
\vfil\null
|
208 |
|
|
\end{titlepage}
|
209 |
|
|
\setcounter{footnote}{0}%
|
210 |
|
|
\global\let\thanks\relax
|
211 |
|
|
\global\let\maketitle\relax
|
212 |
|
|
\global\let\@thanks\@empty
|
213 |
|
|
\global\let\@author\@empty
|
214 |
|
|
\global\let\@date\@empty
|
215 |
|
|
\global\let\@title\@empty
|
216 |
|
|
\global\let\title\relax
|
217 |
|
|
\global\let\author\relax
|
218 |
|
|
\global\let\date\relax
|
219 |
|
|
\global\let\and\relax
|
220 |
|
|
\cleardoublepage
|
221 |
|
|
}
|
222 |
|
|
\newenvironment{abstract}
|
223 |
|
|
{
|
224 |
|
|
\btypeout{Abstract Page}
|
225 |
|
|
\thispagestyle{empty}
|
226 |
|
|
\null\vfil
|
227 |
|
|
\begin{center}
|
228 |
|
|
\setlength{\parskip}{0pt}
|
229 |
|
|
{\normalsize \UNIVNAME \par}
|
230 |
|
|
\bigskip
|
231 |
|
|
{\underline{ABSTRACT} \par}
|
232 |
|
|
\bigskip
|
233 |
|
|
{\normalsize \FACNAME \par}
|
234 |
|
|
{\normalsize \DEPTNAME \par}
|
235 |
|
|
\bigskip
|
236 |
|
|
{\normalsize \underline{A mini-thesis submitted for transfer from MPhil to PhD}\par}
|
237 |
|
|
\bigskip
|
238 |
|
|
{\normalsize\bf \@title \par}
|
239 |
|
|
\medskip
|
240 |
|
|
{\normalsize by \authornames \par}
|
241 |
|
|
\bigskip
|
242 |
|
|
\end{center}
|
243 |
|
|
}
|
244 |
|
|
{
|
245 |
|
|
\vfil\vfil\vfil\null
|
246 |
|
|
\cleardoublepage
|
247 |
|
|
}
|
248 |
|
|
\addtocounter{secnumdepth}{1}
|
249 |
|
|
\setcounter{tocdepth}{6}
|
250 |
|
|
\newcounter{dummy}
|
251 |
|
|
\newcommand\addtotoc[1]{
|
252 |
|
|
\refstepcounter{dummy}
|
253 |
|
|
\addcontentsline{toc}{chapter}{#1}}
|
254 |
|
|
\renewcommand\tableofcontents{
|
255 |
|
|
\btypeout{Table of Contents}
|
256 |
|
|
\begin{spacing}{1}{
|
257 |
|
|
\setlength{\parskip}{1pt}
|
258 |
|
|
\if@twocolumn
|
259 |
|
|
\@restonecoltrue\onecolumn
|
260 |
|
|
\else
|
261 |
|
|
\@restonecolfalse
|
262 |
|
|
\fi
|
263 |
|
|
\chapter*{\contentsname
|
264 |
|
|
\@mkboth{
|
265 |
|
|
\MakeUppercase\contentsname}{\MakeUppercase\contentsname}}
|
266 |
|
|
\@starttoc{toc}
|
267 |
|
|
\if@restonecol\twocolumn\fi
|
268 |
|
|
\cleardoublepage
|
269 |
|
|
}\end{spacing}
|
270 |
|
|
}
|
271 |
|
|
\renewcommand\listoffigures{
|
272 |
|
|
\btypeout{List of Figures}
|
273 |
|
|
\begin{spacing}{1}{
|
274 |
|
|
\setlength{\parskip}{1pt}
|
275 |
|
|
\if@twocolumn
|
276 |
|
|
\@restonecoltrue\onecolumn
|
277 |
|
|
\else
|
278 |
|
|
\@restonecolfalse
|
279 |
|
|
\fi
|
280 |
|
|
\chapter*{\listfigurename
|
281 |
|
|
\@mkboth{\MakeUppercase\listfigurename}
|
282 |
|
|
{\MakeUppercase\listfigurename}}
|
283 |
|
|
\@starttoc{lof}
|
284 |
|
|
\if@restonecol\twocolumn\fi
|
285 |
|
|
\cleardoublepage
|
286 |
|
|
}\end{spacing}
|
287 |
|
|
}
|
288 |
|
|
\renewcommand\listoftables{
|
289 |
|
|
\btypeout{List of Tables}
|
290 |
|
|
\begin{spacing}{1}{
|
291 |
|
|
\setlength{\parskip}{1pt}
|
292 |
|
|
\if@twocolumn
|
293 |
|
|
\@restonecoltrue\onecolumn
|
294 |
|
|
\else
|
295 |
|
|
\@restonecolfalse
|
296 |
|
|
\fi
|
297 |
|
|
\chapter*{\listtablename
|
298 |
|
|
\@mkboth{
|
299 |
|
|
\MakeUppercase\listtablename}{\MakeUppercase\listtablename}}
|
300 |
|
|
\@starttoc{lot}
|
301 |
|
|
\if@restonecol\twocolumn\fi
|
302 |
|
|
\cleardoublepage
|
303 |
|
|
}\end{spacing}
|
304 |
|
|
}
|
305 |
|
|
\newcommand\listsymbolname{Nomenclature}
|
306 |
|
|
\usepackage{longtable}
|
307 |
|
|
\newcommand\listofsymbols[2]{
|
308 |
|
|
\btypeout{\listsymbolname}
|
309 |
|
|
\addtotoc{\listsymbolname}
|
310 |
|
|
\chapter*{\listsymbolname
|
311 |
|
|
\@mkboth{
|
312 |
|
|
\MakeUppercase\listsymbolname}{\MakeUppercase\listsymbolname}}
|
313 |
|
|
\begin{longtable}[c]{#1}#2\end{longtable}\par
|
314 |
|
|
\cleardoublepage
|
315 |
|
|
}
|
316 |
|
|
\newcommand\acknowledgements[1]{
|
317 |
|
|
\btypeout{Acknowledgements}
|
318 |
|
|
\addtotoc{Acknowledgements}
|
319 |
|
|
\thispagestyle{plain}
|
320 |
|
|
\null\vfil
|
321 |
|
|
\vskip 60\p@
|
322 |
|
|
\begin{center}{\Large\bf Acknowledgements \par}\end{center}
|
323 |
|
|
{\normalsize #1}
|
324 |
|
|
\vfil\vfil\null
|
325 |
|
|
\cleardoublepage
|
326 |
|
|
}
|
327 |
|
|
\newcommand\dedicatory[1]{
|
328 |
|
|
\btypeout{Dedicatory}
|
329 |
|
|
\thispagestyle{plain}
|
330 |
|
|
\null\vfil
|
331 |
|
|
\vskip 60\p@
|
332 |
|
|
\begin{center}{\Large \sl #1}\end{center}
|
333 |
|
|
\vfil\null
|
334 |
|
|
\cleardoublepage
|
335 |
|
|
}
|
336 |
|
|
\renewcommand\backmatter{
|
337 |
|
|
\if@openright
|
338 |
|
|
\cleardoublepage
|
339 |
|
|
\else
|
340 |
|
|
\clearpage
|
341 |
|
|
\fi
|
342 |
|
|
\addtotoc{\bibname}
|
343 |
|
|
\btypeout{\bibname}
|
344 |
|
|
\@mainmatterfalse}
|
345 |
|
|
\endinput
|
346 |
|
|
%%
|
347 |
|
|
%% End of file `ecsminithesis.cls'.
|