OpenCores
URL https://opencores.org/ocsvn/phr/phr/trunk

Subversion Repositories phr

[/] [phr/] [trunk/] [doc/] [informe-tesis/] [template/] [Sothampton_University/] [tex/] [latex/] [ecsdocs/] [ecsthesis.cls] - Blame information for rev 146

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.