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

Subversion Repositories phr

[/] [phr/] [trunk/] [doc/] [informe-tesis/] [template/] [Sothampton_University/] [tex/] [latex/] [ecsdocs/] [ecsgdp.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 `ecsgdp.cls',
3
%% generated with the docstrip utility.
4
%%
5
%% The original source files were:
6
%%
7
%% ecsdocs.dtx  (with options: `gdp')
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{ecsgdp}
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
      \vfill
186
      {\large A group design project report submitted for}
187
      {\large the award of \par \degreename \par}
188
      \vfill
189
      {\normalsize Supervisor: \supname \par}
190
      {\normalsize Examiner: \examname \par}
191
      \vfill
192
      \hspace{6mm}\parbox[t][51mm][s]{89mm}{
193
        \center
194
        \vfill
195
        {\large \bf \@title \par}
196
        \vfill
197
        {\normalsize by \authornames \par}
198
        \vfill
199
        {\normalsize \@date \par}
200
        \vfill
201
      }
202
      \parbox[t][95mm][s]{89mm}{}
203
    \end{center}
204
    \par
205
    \@thanks
206
    \vfil\null
207
  \end{titlepage}
208
  \setcounter{footnote}{0}%
209
  \global\let\thanks\relax
210
  \global\let\maketitle\relax
211
  \global\let\@thanks\@empty
212
  \global\let\@author\@empty
213
  \global\let\@date\@empty
214
  \global\let\@title\@empty
215
  \global\let\title\relax
216
  \global\let\author\relax
217
  \global\let\date\relax
218
  \global\let\and\relax
219
  \cleardoublepage
220
}
221
\newenvironment{abstract}
222
{
223
  \btypeout{Abstract Page}
224
  \thispagestyle{empty}
225
  \null\vfil
226
  \begin{center}
227
    \setlength{\parskip}{0pt}
228
    {\normalsize \UNIVNAME \par}
229
    \bigskip
230
    {\underline{ABSTRACT} \par}
231
    \bigskip
232
    {\normalsize \FACNAME \par}
233
    \bigskip
234
    {\normalsize \underline{A group design project report submitted for the award of \degreename}\par}
235
    \bigskip
236
    {\normalsize\bf \@title \par}
237
    \medskip
238
    {\normalsize by \authornames \par}
239
    \bigskip
240
  \end{center}
241
}
242
{
243
  \vfil\vfil\vfil\null
244
  \cleardoublepage
245
}
246
\addtocounter{secnumdepth}{1}
247
\setcounter{tocdepth}{6}
248
\newcounter{dummy}
249
\newcommand\addtotoc[1]{
250
\refstepcounter{dummy}
251
\addcontentsline{toc}{chapter}{#1}}
252
\renewcommand\tableofcontents{
253
\btypeout{Table of Contents}
254
\begin{spacing}{1}{
255
    \setlength{\parskip}{1pt}
256
    \if@twocolumn
257
      \@restonecoltrue\onecolumn
258
    \else
259
      \@restonecolfalse
260
    \fi
261
    \chapter*{\contentsname
262
        \@mkboth{
263
           \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}
264
    \@starttoc{toc}
265
    \if@restonecol\twocolumn\fi
266
   \cleardoublepage
267
}\end{spacing}
268
}
269
\renewcommand\listoffigures{
270
\btypeout{List of Figures}
271
\begin{spacing}{1}{
272
    \setlength{\parskip}{1pt}
273
    \if@twocolumn
274
      \@restonecoltrue\onecolumn
275
    \else
276
      \@restonecolfalse
277
    \fi
278
    \chapter*{\listfigurename
279
      \@mkboth{\MakeUppercase\listfigurename}
280
              {\MakeUppercase\listfigurename}}
281
    \@starttoc{lof}
282
    \if@restonecol\twocolumn\fi
283
    \cleardoublepage
284
}\end{spacing}
285
}
286
\renewcommand\listoftables{
287
\btypeout{List of Tables}
288
\begin{spacing}{1}{
289
    \setlength{\parskip}{1pt}
290
    \if@twocolumn
291
      \@restonecoltrue\onecolumn
292
    \else
293
      \@restonecolfalse
294
    \fi
295
    \chapter*{\listtablename
296
      \@mkboth{
297
          \MakeUppercase\listtablename}{\MakeUppercase\listtablename}}
298
    \@starttoc{lot}
299
    \if@restonecol\twocolumn\fi
300
    \cleardoublepage
301
}\end{spacing}
302
}
303
\newcommand\listsymbolname{List of Symbols}
304
\usepackage{longtable}
305
\newcommand\listofsymbols[2]{
306
\btypeout{\listsymbolname}
307
\addtotoc{\listsymbolname}
308
    \chapter*{\listsymbolname
309
      \@mkboth{
310
          \MakeUppercase\listsymbolname}{\MakeUppercase\listsymbolname}}
311
\begin{longtable}[c]{#1}#2\end{longtable}\par
312
    \cleardoublepage
313
}
314
\newcommand\acknowledgements[1]{
315
\btypeout{Acknowledgements}
316
\addtotoc{Acknowledgements}
317
\thispagestyle{plain}
318
\null\vfil
319
\vskip 60\p@
320
\begin{center}{\Large\bf Acknowledgements \par}\end{center}
321
{\normalsize #1}
322
\vfil\vfil\null
323
\cleardoublepage
324
}
325
\newcommand\dedicatory[1]{
326
\btypeout{Dedicatory}
327
\thispagestyle{plain}
328
\null\vfil
329
\vskip 60\p@
330
\begin{center}{\Large \sl #1}\end{center}
331
\vfil\null
332
\cleardoublepage
333
}
334
\renewcommand\backmatter{
335
  \if@openright
336
    \cleardoublepage
337
  \else
338
    \clearpage
339
  \fi
340
  \addtotoc{\bibname}
341
  \btypeout{\bibname}
342
  \@mainmatterfalse}
343
\endinput
344
%%
345
%% End of file `ecsgdp.cls'.

powered by: WebSVN 2.1.0

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