source: trunk/Documents/DrivePaper/elsart5p.cls@ 10160

Last change on this file since 10160 was 9109, checked in by tbretz, 16 years ago
*** empty log message ***
File size: 13.7 KB
Line 
1%%
2%% This is file `elsart5p.cls',
3%% generated with the docstrip utility.
4%%
5%% The original source files were:
6%%
7%% esl.dtx (with options: `package,elsauth,wrapper,SL5P')
8%%
9%% elsart5p.cls Copyright (C) 1994-2007 Elsevier Science
10%%
11%% This file may be distributed and/or modified under the
12%% conditions of the LaTeX Project Public License, either version 1.2
13%% of this license or (at your option) any later version.
14%% The latest version of this license is in
15%% http://www.latex-project.org/lppl.txt
16%% and version 1.2 or later is part of all distributions of LaTeX
17%% version 1999/12/01 or later.
18%%
19\def\readRCS$#1: #2 #3 #4 #5${%
20 \def\RCSfile{#2}%
21 \def\RCSversion{#3}%
22 \def\RCSdate{#4}%
23}
24 \def\esp@fileversion{2.20}
25 \def\esp@filedate{2007/08/16}
26 \def\@journal{Elsevier} \def\@company{Elsevier}
27 \def\@issn{000-0000}
28 \def\@shortjid{elsart5p}
29\NeedsTeXFormat{LaTeX2e}[1995/12/01]
30\ProvidesClass{\@shortjid}[\esp@filedate, \esp@fileversion: \@journal]
31\let\@save@journal\@journal
32\let\@save@company\@company
33\let\@save@shortjid\@shortjid
34
35\DeclareOption{narrowdisplay}{}
36\DeclareOption*{\PassOptionsToClass{\CurrentOption}{elsart}}
37\ProcessOptions\relax
38 \LoadClass[twocolumn]{elsart}
39
40\let\@journal\@save@journal
41\let\@company\@save@company
42\let\@shortjid\@save@shortjid
43
44\def\@xiiipt{12}
45\def\@titlesize{\Large}
46\def\@bibitemsep{\z@ \@plus 0.5\p@ \@minus 0.5\p@}
47\def\captionwidth{.8\linewidth}
48\def\@abstractsize{\fontsize{\@ixpt}{11pt}\selectfont}
49\def\@articletypesize{\fontsize{\@xiiipt}{13pt}\selectfont}
50\def\normalsize{\@setfontsize\normalsize\@xpt{12}%
51\def\@ptsize{0}
52\abovedisplayskip 5.75\p@ \@plus 2\p@ \@minus 2\p@%
53\belowdisplayskip \abovedisplayskip
54\abovedisplayshortskip \z@ \@plus 2\p@%
55\belowdisplayshortskip 3.5\p@ \@plus 2\p@ \@minus 2\p@
56\let\@listi\@listI}
57\def\small{\@setfontsize\small\@viiipt{10}%
58\abovedisplayskip 7\p@ \@plus 2\p@ \@minus 4\p@%
59\belowdisplayskip \abovedisplayskip
60\abovedisplayshortskip \z@ \@plus 1\p@%
61\belowdisplayshortskip 3\p@ \@plus 1\p@ \@minus 2\p@
62\def\@listi{\topsep 0.5\@bls \parsep\z@ \itemsep\parsep}}
63\let\footnotesize=\small
64\let\@xviiipt\@xviipt
65\def\scriptsize{\@setfontsize\scriptsize\@viipt{8}}
66\def\tiny{\@setfontsize\tiny\@vipt{7}}
67\def\large{\@setfontsize\large\@xiiipt{14}}
68\def\Large{\@setfontsize\Large\@xviipt{20}}
69\def\LARGE{\@setfontsize\LARGE\@xviiipt{22}}
70\def\huge{\@setfontsize\huge\@xxpt{22}}
71\def\Huge{\@setfontsize\Huge\@xxvpt{27}}
72\normalsize % Choose the normalsize font.
73\if@twoside
74 \oddsidemargin -3pc
75 \evensidemargin \z@
76 \marginparwidth 10\p@
77\else
78 \oddsidemargin -3pc
79 \evensidemargin -3pc
80 \marginparwidth 2pc
81\fi
82\marginparsep 20\p@ % Horizontal space between outer margin and
83 % marginal note
84\topmargin \z@ % Nominal distance from top of page to top of
85 % box containing running head.
86\headheight 10\p@ %
87 \headsep 11\p@ %
88 \footskip 23\p@
89\bigskipamount=\@bls \@plus 0.3\@bls \@minus 0.3\@bls % 1/1 line
90\medskipamount=0.5\bigskipamount % 1/2 line
91\smallskipamount=0.25\bigskipamount % 1/4 line
92 \textheight 56\baselineskip % \@Height of text (incl. footnotes and figures,
93\advance\textheight\topskip % excl. running head and foot).
94 \textwidth 43.5pc % \@Width of text line.
95 % For two-column mode:
96 \columnsep 1.5pc % Space between columns
97\columnseprule \z@ % \@Width of rule between columns.
98 \footnotesep 6.65\p@
99\skip\footins 12\p@ \@plus 8\p@ % Space between last line of text and
100 % top of first footnote.
101\floatsep 8\p@ \@plus 4\p@ \@minus 2\p@ % Space between adjacent floats moved
102 % to top or bottom of text page.
103\textfloatsep 8\p@ \@plus 4\p@ \@minus 2\p@ % Space between main text and floats
104 % at top or bottom of page.
105\intextsep 8\p@ \@plus 4\p@ \@minus 2\p@ % Space between in-text figures and
106 % text.
107\dblfloatsep 8\p@ \@plus 4\p@ \@minus 4\p@ % Same as \floatsep for double-column
108 % figures in two-column mode.
109\dbltextfloatsep 12\p@ \@plus 4\p@ \@minus 4\p@ % \textfloatsep for double-column
110 % floats.
111\@fptop \z@ \@plus 1fil % Stretch at top of float page/column. (Must be
112 % \z@ \@plus ...)
113\@fpsep 8\p@ \@plus 2fil % Space between floats on float page/column.
114\@fpbot \z@ \@plus 1fil % Stretch at bottom of float page/column. (Must be
115 % \z@ \@plus ... )
116\@dblfptop \z@ \@plus 1fil % Stretch at top of float page. (Must be \z@ \@plus ...)
117\@dblfpsep 8\p@ \@plus 2fil % Space between floats on float page.
118\@dblfpbot \z@ \@plus 1fil % Stretch at bottom of float page. (Must be
119 % \z@ \@plus ... )
120\marginparpush 5\p@ % Minimum vertical separation between two marginal
121 % notes.
122\parskip \z@
123\parindent 1em
124 \eqntopsep 8\p@ \@plus 2\p@ \@minus 2\p@ %\parskip, added above and below
125\eqnarraycolsep 1\p@ % in an \eqnarray.
126\def\part{\@startsection{part}{1}{\z@}{2\@bls \@plus
127 0.4\@bls}{\@bls}{\normalsize}}
128\def\partmark#1{}
129\if@ussrhead
130\def\section{\@startsection{section}{1}{\parindent}{\@bls
131 \@plus .3\@bls \@minus .1\@bls}{-0.00001pt}{\normalsize\bfseries\boldmath}{\relax}}
132\else
133\def\section{\@startsection{section}{1}{\z@}{\@bls
134 \@plus .3\@bls \@minus .1\@bls}{\@bls}{\normalsize\bfseries
135 \boldmath}}
136\fi
137\def\subsection{\@startsection{subsection}{2}{\z@}{\@bls
138 \@plus .3\@bls \@minus .1\@bls}{\@bls}{\normalsize\itshape}}
139\def\subsubsection{\@startsection{subsubsection}{3}{\z@}{\@bls
140 \@plus .2\@bls}{0.0001pt}{\normalsize\itshape}}
141\def\paragraph{\@startsection{paragraph}{4}{\z@}{3.25ex \@plus
142 2ex \@minus 0.2ex}{-1em}{\normalfont\normalsize\itshape}}
143\def\subparagraph{\@startsection{subparagraph}{5}{1em}{3.25ex \@plus
144 2ex \@minus 0.2ex}{-1em}{\normalfont\normalsize\itshape}}
145\def\@sect#1#2#3#4#5#6[#7]#8{%
146 \ifnum #2>\c@secnumdepth
147 \let\@svsec\@empty
148 \else
149 \refstepcounter{#1}\def\@tempa{#8}%
150 \ifx\@tempa\@empty
151 \edef\@svsec{\csname lb@empty@#1\endcsname}%
152 \else
153 \edef\@svsec{\csname lb@#1\endcsname}\fi\fi
154 \@tempskipa #5\relax
155 \ifdim \@tempskipa>\z@
156 \begingroup #6\relax
157\noindent \hskip #3\relax{\@secnumfont{#2}\@svsec}%
158 {\head@style\head@format{#2}{#8}\par}%
159 \endgroup
160 \csname #1mark\endcsname{#7}%
161 \addcontentsline{toc}{#1}{\ifnum #2>\c@secnumdepth \else
162 \protect\numberline{\csname the#1\endcsname}\fi #7}%
163 \else
164 \def\@svsechd{#6\hskip #3\relax {\@secnumfont{#2}\@svsec }%
165 {\head@style\head@format{#2}{#8}}\csname #1mark\endcsname{#7}%
166 \addcontentsline{toc}{#1}{\ifnum #2>\c@secnumdepth \else
167 \protect\numberline{\csname the#1\endcsname}\fi #7}}%
168 \fi
169 \@xsect{#5}}
170\def\@ssect#1#2#3#4#5#6{%
171 \@tempskipa #4\relax
172 \ifdim \@tempskipa>\z@
173 \begingroup
174 #5{%
175 \@hangfrom{\hskip #2}%
176 \interlinepenalty \@M \head@format{#1}{#6}\@@par}%
177 \endgroup
178 \else
179 \def\@svsechd{#5{\hskip #2\relax \head@format{#1}{#6}}}%
180 \fi
181 \@xsect{#4}}
182\def\@startsection#1#2#3#4#5#6{%
183 \if@noskipsec \leavevmode \fi
184 \par
185 \@tempskipa #4\relax
186 \@afterindenttrue
187 \ifdim \@tempskipa <\z@
188 \@tempskipa -\@tempskipa \@afterindentfalse
189 \fi
190 \if@nobreak
191 \everypar{}%
192 \else
193 \addpenalty\@secpenalty\addvspace\@tempskipa
194 \fi
195 \@ifstar
196 {\@ssect{#2}{#3}{#4}{#5}{#6}}%
197 {\@dblarg{\@sect{#1}{#2}{#3}{#4}{#5}{#6}}}}
198
199\@maxlistdepth=2
200\def\labelitemi{--}
201\def\labelitemii{$\cdot$}
202\def\labelenumi{(\theenumi)} \def\theenumi{\roman{enumi}}
203\def\labelenumii{(\theenumii)} \def\theenumii{\alph{enumii}}
204 \tabcolsep 1\p@ % idem in tabular environment.
205\def\@arrayclassz{\ifcase \@lastchclass \@acolampacol \or \@ampacol \or
206 \or \or \@addamp \or \@acolampacol \or \@firstampfalse \@acol \fi
207 \edef\@preamble{\@preamble
208 \ifcase \@chnum
209 \hfil$\relax\displaystyle\@sharp$\hfil \or
210 $\relax\displaystyle\@sharp$\hfil \or
211 \hfil$\relax\displaystyle\@sharp$\fi}}
212\newdimen\Arrayrulewidth \Arrayrulewidth=1.0\p@
213\def\Hline{\noalign{\ifnum0=`}\fi\hrule \@height \Arrayrulewidth \futurelet
214 \@tempa\@xhline}
215\newdimen\crulepostskip \crulepostskip -7\p@
216\def\ccline#1{%
217 \noalign{\vskip\rulepreskip}%
218 \do@ccline(#1,1-0)\cr
219 \noalign{\vskip\crulepostskip}}
220\def\do@ccline(#1-#2,#3){%
221 \ifnum#1>#2\else\@cline[#1-#2]\do@ccline(#3,1-0)\fi
222 \ignorespaces}
223\newdimen\@Ldec \newdimen\@Rdec
224\def\dec #1.#2 {\hbox to\@Ldec{\hss#1}\def\@tempb{#2}%
225\ifx\@tempb\empty\hbox to\@Rdec{\hfill}\else\hbox to\@Rdec{.#2\hss}\fi}
226\def\setdec #1.#2 {\relax
227 \bgroup
228 \setbox0\hbox{\kern1pt\relax#1}\setbox1\hbox{\kern1pt\relax#2}%
229 \global\@Ldec\wd0\global\@Rdec\wd1
230 \egroup}
231\setdec 000.000 % default 3 digits on each side
232\newdimen\@Lpmdec \newdimen\@Rpmdec
233\def\pmdec #1.#2 {\hbox to\@Lpmdec{\hss#1}\def\@tempb{#2}%
234\ifx\@tempb\empty\hbox to\@Rpmdec{\hfill}\else\hbox to\@Rpmdec{.#2\hss}\fi}
235\def\setpmdec #1.#2 {\relax
236 \bgroup
237 \setbox0\hbox{\kern1pt\relax#1}\setbox1\hbox{\kern1pt\relax#2}%
238 \global\@Lpmdec\wd0\global\@Rpmdec\wd1
239 \egroup}
240\setpmdec 0.0 % default 1 digit on each side
241\def\add@thanksref#1{%
242 \global\advance\note@cnt\@ne
243 \def\@tempa{*}\def\@tempb{#1}%
244 \ifx\@tempa\@tempb
245 \ifnum\note@cnt>\@ne \add@xtok\t@loc@notes{\note@sep}\fi
246 \add@tok\t@loc@notes{*}%
247 \else
248 \ifnum\note@cnt>\@ne \add@xtok\t@loc@notes{\note@sep}\fi
249 \add@tok\t@loc@notes{%
250 \if@Elproofing#1\else\ref{#1}\fi
251 }%
252 \fi}
253\def\thanks@optarg[#1]#2{%
254 \def\@tempa{*}\def\@tempb{#1}%
255 \ifx\@tempa\@tempb
256 \@tempcnta=\c@footnote \c@footnote=-1 \label{#1}\c@footnote=\@tempcnta
257 \gdef\@corresp@note{\footnotetext[-1]{#2}}%
258 \else
259 \add@tok\t@glob@notes{\footnotetext}%
260 \refstepcounter{footnote}%
261 \if@Elproofing\else\if@tempswa\label{#1}\else\relax\fi\fi
262 \add@xtok\t@glob@notes{[\the\c@footnote]}%
263 \add@tok\t@glob@notes{{#2}}%
264 \fi
265 \ignorespaces}
266\def\frontmatter{%
267 \newif\if@hastoc\@hastocfalse
268 \let\ltx@tableofcontents\tableofcontents
269 \def\tableofcontents{\global\@hastoctrue}
270 \NoHyper
271 \let\@corresp@note\relax
272 \global\t@glob@notes={}\global\c@author\z@
273 \global\c@collab\z@ \global\c@address\z@
274 \sv@mathsurround\mathsurround \m@th
275 \global\n@author=0\n@author@\relax
276 \global\n@collab=0\n@collab@\relax
277 \global\advance\n@author\m@ne % In comparisons later on we need
278 \global\advance\n@collab\m@ne % n@author-1 and n@collab-1
279 \global\@firstauthortrue % set to false by first \author or \collab
280 \global\@hasabstractfalse % Default: no abstract or keywords
281 \global\@haskeywordsfalse % Default: no abstract or keywords
282 \global\@prefacefalse % not preface
283 \ifnum\c@firstpage=\c@lastpage
284 \gdef\@pagerange{\@pagenumprefix\ESpagenumber{firstpage}}
285 \else
286 \gdef\@pagerange{\@pagenumprefix
287 \ESpagenumber{firstpage}--\@pagenumprefix\ESpagenumber{lastpage}}%
288 \fi
289 \@ifundefined{RIfM@}{}{\global\let\vec\@bfvec}%
290 \open@fm \ignorespaces}
291\t@xtheight\textheight \advance\t@xtheight-\splittopskip
292\def\title@fmt#1#2{%
293\@ifundefined{@runtitle}{\global\def\@runtitle{#1}}{}%
294 \vspace*{\@overtitleskip} % Vertical space above article type,
295 \@articletypesize % Size for article type
296 \leavevmode\vphantom{Aye!}
297 \@articletype
298 \vskip12\p@
299 {\@titlesize #1\,\hbox{$^{#2}$}\par}%
300 \vskip\@undertitleskip
301 }
302\def\address@fmt@init{%
303 \par % Start new paragraph
304 \vskip \@overaddressskip} % Vertical space before addresses
305\def\@abstract[#1]{%
306 \global\@hasabstracttrue
307 \hyphenpenalty\sv@hyphenpenalty % restore \hyphenpenalty
308 \global\setbox\t@abstract=\vbox\bgroup
309 \leftskip\z@
310 \@rightskip\z@ \rightskip\@rightskip \parfillskip\@flushglue
311 \@abstractsize % Text in 9/11
312 \parindent 1em % \parindent in abstract
313 \noindent {\bfseries\abstractname} % caption `Abstract' (bold)
314 \vskip 0.5\@bls % half a line of space below
315\noindent\ignorespaces
316}
317\def\@bfvec#1{\boldsymbol{#1}}
318\def\@pmbfvec#1{\pmb{#1}}
319\mathchardef\Gamma="0000
320\mathchardef\Delta="0001
321\mathchardef\Theta="0002
322\mathchardef\Lambda="0003
323\mathchardef\Xi="0004
324\mathchardef\Pi="0005
325\mathchardef\Sigma="0006
326\mathchardef\Upsilon="0007
327\mathchardef\Phi="0008
328\mathchardef\Psi="0009
329\mathchardef\Omega="000A
330\mathchardef\varGamma="0100
331\mathchardef\varDelta="0101
332\mathchardef\varTheta="0102
333\mathchardef\varLambda="0103
334\mathchardef\varXi="0104
335\mathchardef\varPi="0105
336\mathchardef\varSigma="0106
337\mathchardef\varUpsilon="0107
338\mathchardef\varPhi="0108
339\mathchardef\varPsi="0109
340\mathchardef\varOmega="010A
341\if@TwoColumn
342 \adjdemerits=100
343 \linepenalty=100
344 \doublehyphendemerits=5000 % experimental (1993-12-14)
345 \emergencystretch=1.6pc
346 \spaceskip=0.3em \@plus 0.17em \@minus 0.12em
347\fi
348\binoppenalty=300
349\relpenalty=100
350\clubpenalty=5000 % 'Club line' at bottom of page.
351\widowpenalty=2000 % 'Widow line' at top of page.
352\displaywidowpenalty=1000 % Math display widow line.
353\predisplaypenalty=150 % Breaking before a math display.
354\postdisplaypenalty=50 % Breaking after a math display.
355\hfuzz=1\p@
356\hbadness=3000
357\@frontmatterwidth\textwidth
358\endinput
359%%
360%% End of file `elsart5p.cls'.
Note: See TracBrowser for help on using the repository browser.