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

Subversion Repositories phr

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

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

Line No. Rev Author Line
1 110 guanucolui
%%
2
%% This is file `ecsarticle.cls',
3
%% generated with the docstrip utility.
4
%%
5
%% The original source files were:
6
%%
7
%% ecsdocs.dtx  (with options: `article')
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{ecsarticle}
15
              [2003/25/04 v1.6
16
   LaTeX document class]
17
\def\baseclass{article}
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
\singlespacing
36
\setlength{\parindent}{0pt}
37
\setlength{\parskip}{2.0ex plus0.5ex minus0.2ex}
38
\usepackage{vmargin}
39
\setmarginsrb           { 0.8in}  % left margin
40
                        { 0.6in}  % top margin
41
                        { 0.8in}  % 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{\sectionmark}[1]{\btypeout{\thesection\space #1}}
60
\renewcommand{\subsectionmark}[1]{}
61
\renewcommand{\subsubsectionmark}[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}[section]
70
\newtheorem{theorem}{Theorem}[section]
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
\if@titlepage
168
  \renewcommand\maketitle{
169
    \btypeout{Title Page}
170
    \hypersetup{pdftitle={\@title}}
171
    \hypersetup{pdfsubject={\subjectname}}
172
    \hypersetup{pdfauthor={\authornames}}
173
    \hypersetup{pdfkeywords={\keywordnames}}
174
    \markboth{\authornames}{\@title}
175
    \begin{titlepage}
176
    \thispagestyle{empty}
177
    \let\footnotesize\small
178
    \let\footnoterule\relax
179
    \let \footnote \thanks
180
    \null\vfil
181
    \vskip 60\p@
182
    \begin{center}
183
      {\LARGE \@title \par}
184
      \vskip 3em
185
      {\large \lineskip .75em
186
        \begin{tabular}[t]{c} \authornames \end{tabular}
187
      \par}
188
      \vskip 1em
189
      {\large \lineskip .5em
190
        \begin{tabular}[t]{c} \addressnames \end{tabular}
191
      \par}
192
      \vskip 1.5em
193
      {\large \@date \par}
194
      \if\keywordnames
195
      \else
196
        \quotation
197
        \vskip 1.5em
198
        {\noindent \normalsize
199
            \textbf{Keywords:}
200
            \textit{\keywordnames}
201
        \par}
202
        \endquotation
203
      \fi
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\@maketitle\relax
213
    \global\let\@thanks\@empty
214
    \global\let\@author\@empty
215
    \global\let\@date\@empty
216
    \global\let\@title\@empty
217
    \global\let\title\relax
218
    \global\let\author\relax
219
    \global\let\date\relax
220
    \global\let\and\relax
221
  }
222
\else
223
  \renewcommand\maketitle{
224
    \btypeout{Title Page}
225
    \hypersetup{pdftitle={\@title}}
226
    \hypersetup{pdfsubject=\subjectname}
227
    \hypersetup{pdfauthor=\authornames}
228
    \hypersetup{pdfkeywords=\keywordnames}
229
    \markboth{\authornames}{\@title}
230
    \thispagestyle{empty}
231
    \par
232
    \begingroup
233
      \renewcommand\thefootnote{\@fnsymbol\c@footnote}
234
      \def\@makefnmark{
235
        \rlap{\@textsuperscript{\normalfont\@thefnmark}}
236
      }
237
      \long\def\@makefntext##1{
238
        \parindent 1em\noindent \hb@xt@1.8em
239
        {\hss\@textsuperscript{\normalfont\@thefnmark}}##1
240
      }
241
      \if@twocolumn
242
        \ifnum \col@number=\@ne
243
          \@maketitle
244
        \else
245
          \twocolumn[\@maketitle]%
246
        \fi
247
      \else
248
        \newpage
249
        % Prevent figures from going at top of page.
250
        \global\@topnum\z@
251
        \@maketitle
252
      \fi
253
      \thispagestyle{plain}\@thanks
254
    \endgroup
255
    \setcounter{footnote}{0}%
256
    \global\let\thanks\relax
257
    \global\let\maketitle\relax
258
    \global\let\@maketitle\relax
259
    \global\let\@thanks\@empty
260
    \global\let\@author\@empty
261
    \global\let\@date\@empty
262
    \global\let\@title\@empty
263
    \global\let\title\relax
264
    \global\let\author\relax
265
    \global\let\date\relax
266
    \global\let\and\relax
267
  }
268
  \def\@maketitle{
269
    \newpage
270
    \null
271
    \vskip 2em
272
    \begin{center}
273
      \let \footnote \thanks
274
      {\LARGE \@title \par}
275
      \vskip 1.5em
276
      {\large \lineskip .5em
277
        \begin{tabular}[t]{c} \authornames \end{tabular}
278
      \par}
279
      \vskip 0.7em
280
      {\large \lineskip .5em
281
        \begin{tabular}[t]{c} \addressnames \end{tabular}
282
      \par}
283
      \vskip 1em
284
      {\large \@date}
285
    \end{center}
286
    \par
287
    \vskip 1.5em
288
  }
289
\fi
290
\if@titlepage
291
  \renewenvironment{abstract}{
292
      \titlepage
293
      \null\vfil
294
      \@beginparpenalty\@lowpenalty
295
      \begin{center}
296
        \bfseries \abstractname
297
        \@endparpenalty\@M
298
      \end{center}
299
      \begin{itshape}
300
      \noindent
301
  }
302
  {
303
      \par
304
      \end{itshape}
305
      \if\keywordnames
306
      \else
307
        \quote
308
        \vskip 1.5em
309
        {\noindent \normalsize
310
            \textbf{Keywords:}
311
            \textit{\keywordnames}
312
        \par}
313
        \endquote
314
      \fi
315
      \vfil\null\endtitlepage
316
  }
317
\else
318
  \renewenvironment{abstract}{
319
      \if@twocolumn
320
        \section*{\abstractname}
321
      \else
322
        \small
323
        \begin{center}
324
          {\bfseries \abstractname\vspace{-.5em}\vspace{\z@}}
325
        \end{center}
326
        \quote
327
      \fi
328
      \begin{itshape}
329
  }
330
  {
331
      \end{itshape}
332
      \if\keywordnames
333
      \else
334
        \vskip 1.5em
335
        {\noindent \normalsize
336
            \textbf{Keywords:}
337
            \textit{\keywordnames}
338
        \par}
339
      \fi
340
      \if@twocolumn\else\endquote\fi
341
  }
342
\fi
343
\addtocounter{secnumdepth}{1}
344
\setcounter{tocdepth}{6}
345
\newcounter{dummy}
346
\newcommand\addtotoc[1]{
347
\refstepcounter{dummy}
348
\addcontentsline{toc}{section}{#1}}
349
\renewcommand\tableofcontents{
350
\btypeout{Table of Contents}
351
\begin{spacing}{1}{
352
    \setlength{\parskip}{1pt}
353
    \if@twocolumn
354
      \@restonecoltrue\onecolumn
355
    \else
356
      \@restonecolfalse
357
    \fi
358
    \section*{\contentsname
359
        \@mkboth{
360
           \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}
361
    \@starttoc{toc}
362
    \if@restonecol\twocolumn\fi
363
}\end{spacing}
364
}
365
\renewcommand\listoffigures{
366
\btypeout{List of Figures}
367
\begin{spacing}{1}{
368
    \setlength{\parskip}{1pt}
369
    \if@twocolumn
370
      \@restonecoltrue\onecolumn
371
    \else
372
      \@restonecolfalse
373
    \fi
374
    \section*{\listfigurename
375
      \@mkboth{\MakeUppercase\listfigurename}
376
              {\MakeUppercase\listfigurename}}
377
    \@starttoc{lof}
378
    \if@restonecol\twocolumn\fi
379
}\end{spacing}
380
}
381
\renewcommand\listoftables{
382
\btypeout{List of Tables}
383
\begin{spacing}{1}{
384
    \setlength{\parskip}{1pt}
385
    \if@twocolumn
386
      \@restonecoltrue\onecolumn
387
    \else
388
      \@restonecolfalse
389
    \fi
390
    \section*{\listtablename
391
      \@mkboth{
392
          \MakeUppercase\listtablename}{\MakeUppercase\listtablename}}
393
    \@starttoc{lot}
394
    \if@restonecol\twocolumn\fi
395
}\end{spacing}
396
}
397
\newcommand\listsymbolname{Nomenclature}
398
\usepackage{longtable}
399
\newcommand\listofsymbols[2]{
400
\btypeout{\listsymbolname}
401
\addtotoc{\listsymbolname}
402
    \section*{\listsymbolname
403
      \@mkboth{
404
          \MakeUppercase\listsymbolname}{\MakeUppercase\listsymbolname}}
405
\begin{longtable}[c]{#1}#2\end{longtable}\par
406
}
407
\newcommand\acknowledgements[1]{
408
\btypeout{Acknowledgements}
409
\addtotoc{Acknowledgements}
410
\section*{Acknowledgements}
411
{\normalsize #1}
412
}
413
\newcommand\dedicatory[1]{
414
\btypeout{Dedicatory}
415
}
416
\newcommand\frontmatter{ }
417
\newcommand\mainmatter{ }
418
\newcommand\bibname{References}
419
\newcommand\backmatter{
420
  \addtotoc{\bibname}
421
  \btypeout{\bibname}
422
}
423
\endinput
424
%%
425
%% End of file `ecsarticle.cls'.

powered by: WebSVN 2.1.0

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