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

Subversion Repositories phr

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

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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