arxmliv
arxmliv build tool
 
KWARC group
LaTeXML
About
   
 

Back to Homepage

--- /arXMLiv/repos/arXMLiv/trunk/sty/elsarXiv.cls	2010-04-03 05:26:27.000000000 +0200
+++ /arXMLiv/repos/arXMLiv/trunk/sty/elsarxiv.cls	2012-08-16 16:04:53.259280196 +0200
@@ -6,7 +6,7 @@
 %%
 %% esl.dtx  (with options: `package,elsart,ONECOL,DEEPLIST')
 %%
-%% elsart.cls Copyright (C) 1994-2001 Elsevier Science
+%% elsart.cls Copyright (C) 1994-2007 Elsevier Science
 %%
 %% This file may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either version 1.2
@@ -21,11 +21,10 @@
  \def\RCSversion{#3}%
  \def\RCSdate{#4}%
 }
-\readRCS
-$Header: /home/cvs/ISEPD/product/awg/source/htdocs/latex/elsart.cls,v 1.1 2004/03/18 15:18:54 iowen Exp $ \def\@shortjnl{\relax}
- \def\esp@fileversion{2.18}
- \def\esp@filedate{2001/01/05}
- \def\@journal{http://arXiv.org} \def\@company{arXiv.org}
+\def\@shortjnl{\relax}
+ \def\esp@fileversion{2.20}
+ \def\esp@filedate{2007/08/16}
+ \def\@journal{Elsevier} \def\@company{Elsevier}
   \def\@issn{000-0000}
   \def\@shortjid{elsart}
 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
@@ -43,8 +42,20 @@
 \DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse}
 \DeclareOption{twoside}{\@twosidetrue  \@mparswitchtrue}
 \@twocolumnfalse
-\DeclareOption{onecolumn}{\@twocolumnfalse\@TwoColumnfalse}
-\DeclareOption{twocolumn}{\@twocolumntrue\@TwoColumntrue}
+\DeclareOption{onecolumn}{\@TwoColumnfalse}
+\DeclareOption{twocolumn}{\@TwoColumntrue}
+\newif\if@narrowdisplay
+\@narrowdisplayfalse
+\DeclareOption{narrowdisplay}{\@narrowdisplaytrue}
+\newif\if@draft\@draftfalse
+\DeclareOption{draft}{%
+  \@drafttrue
+  \overfullrule 5\p@                  % to indicate overfull boxes
+}
+\DeclareOption{final}{%
+  \@draftfalse
+  \overfullrule \z@
+}
 \let\snm\relax \let\cty\relax \let\cny\relax\let\jr\relax
 \newif\if@ussrhead \@ussrheadfalse
 \DeclareOption{ussrhead}{\@ussrheadtrue}
@@ -64,6 +75,8 @@
  \ExecuteOptions{oneside}
  \ExecuteOptions{onecolumn,final}
 \ProcessOptions
+\if@TwoColumn\@narrowdisplayfalse\fi
+\if@draft\else\@narrowdisplayfalse\fi
 \def\@pagenumprefix{}
 \def\author@font{}
 \def\partname{Part}
@@ -100,6 +113,7 @@
 \def\@keywordsize{\small}
 \def\@overaddressskip{2pt}
 \def\@titlesize{\Large\bfseries}
+\def\@bibitemsep{0.3\@bls \@plus 0.1\@bls \@minus 0.1\@bls}
 \def\@authorsize{\large}
 \def\@keywordheading{{\it Key words: \ }}
 \def\@addressstyle{\small\itshape}
@@ -113,12 +127,14 @@
 \def\@secnumfont#1{\upshape}
 \def\@catchlinesize{\footnotesize}
 \def\@runheadsize{\normalsize}
+\def\@narrowdisplaywidth{259pt}
 \def\etal{et al.}
 \def\AND{\&}
 \def\@Colofonheight{1cm}
 \def\@abstractsize{\fontsize{\@ixpt}{11pt}\selectfont}
 \def\@articletypesize{\fontsize{\@xiiipt}{13pt}\selectfont}
 \def\normalsize{\@setfontsize\normalsize\@xiipt{14.5}%
+\def\@ptsize{2}
 \abovedisplayskip 12\p@ \@plus 2\p@ \@minus 2\p@%
 \belowdisplayskip \abovedisplayskip
 \abovedisplayshortskip \z@ \@plus 2\p@%
@@ -366,10 +382,18 @@
 \else
   \mathindent 2em
 \fi
+\if@narrowdisplay
+  \def\calcmathindent{%
+    \mathindent\linewidth\relax
+    \advance\mathindent-\@narrowdisplaywidth}
+\else
+  \let\calcmathindent\relax
+\fi
 \def\[{\relax\ifmmode\@badmath
   \else%\bgroup removed on request from BW (1993-05-17)
   \@beginparpenalty\predisplaypenalty
   \@endparpenalty\postdisplaypenalty
+\calcmathindent
   \begin{trivlist}\@topsep \eqntopsep       % used by first \item
    \@topsepadd \eqntopsep                   % used by \@endparenv
   \item[]\leavevmode
@@ -383,6 +407,7 @@
   \refstepcounter{equation}\trivlist
   \@topsep \eqntopsep                      % used by first \item
   \@topsepadd \eqntopsep                   % used by \@endparenv
+\calcmathindent
   \item[]\leavevmode
    \hbox to\linewidth\bgroup $ \displaystyle \hskip\mathindent\bgroup}
 \def\endequation{\egroup$\hfil \displaywidth\linewidth
@@ -392,6 +417,7 @@
   \noindent                                          %BW
   \baselineskip\eqnbaselineskip\lineskip\eqnlineskip %BW
   \lineskiplimit\eqnlineskip                         %BW
+\calcmathindent
   \stepcounter{equation}%
   \let\@currentlabel=\theequation
   \global\@eqnswtrue
@@ -452,6 +478,8 @@
 \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
 \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
 \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
+\DeclareRobustCommand*\cal{\@fontswitch\relax\mathcal}
+\DeclareRobustCommand*\mit{\@fontswitch\relax\mathnormal}
 \RequirePackage{latexsym}
 \def\qed{\relax\ifmmode\hskip2em \Box\else\unskip\nobreak\hskip1em $\Box$\fi}
 \def\proof@headerfont{\upshape\bfseries}
@@ -514,7 +542,7 @@
 \def\ext@algorithm{lof}
 \def\fnum@algorithm{Algorithm \thealgorithm}
 \def\algorithm{\let\@makecaption\@makealgocaption\@float{algorithm}}
-\let\endalgorithm\end@float
+\def\endalgorithm{\end@float}
 \newtheorem{note}{Note}
 \newtheorem{summ}{Summary}
 \newtheorem{case}{Case}
@@ -565,7 +593,7 @@
     \labelsep 3\p@ \itemindent\z@
     \leftmargin\labelwidth \advance\leftmargin\labelsep
 \fi
-     \itemsep 0.3\@bls \@plus 0.1\@bls \@minus 0.1\@bls
+\itemsep\@bibitemsep
     \usecounter{enumiv}\let\p@enumiv\@empty
     \def\theenumiv{\arabic{enumiv}}}%
     \tolerance\@M
@@ -635,7 +663,8 @@
 \newcount\@tempcntc
 \def\collapse@citex[#1]#2{\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi
  \@tempcnta\z@\@tempcntb\m@ne\def\@citea{}\@cite{\@for\@citeb:=#2\do
-  {\@ifundefined
+  {\edef\@citeb{\expandafter\@firstofone\@citeb\@empty}%
+   \@ifundefined
    {b@\@citeb}{\@citeo\@tempcntb\m@ne\@citea\def\@citea{,}{\bfseries ?}\@warning
    {Citation `\@citeb' on page \thepage \space undefined}}%
   {\setbox\z@\hbox{\global\@tempcntc0\csname b@\@citeb\endcsname\relax}%
@@ -757,7 +786,7 @@
 \def\figure{%
  \let\@makecaption\@makefigurecaption
   \let\contcaption\contfigurecaption \@float{figure}}
-\let\endfigure\end@float
+\def\endfigure{\end@float}
 \@namedef{figure*}{%
  \let\@makecaption\@makefigurecaption
   \let\contcaption\contfigurecaption \@dblfloat{figure}}
@@ -777,7 +806,7 @@
 }%
   \let\footnoterule\relax
   \let\contcaption\conttablecaption \@float{table}}
-\let\endtable\end@float
+\def\endtable{\end@float}
 \@namedef{table*}{%
 \let\@makecaption\@maketablecaption
 \def\@floatboxreset{%
@@ -893,7 +922,7 @@
   \let\@ead@au\@empty\fi}
 \let\ead@endau\ead@newau
 \def\ead@addau#1{ (#1)}
-\def\ead@au#1{\edef\@ead@au{#1}}
+\def\ead@au#1{\def\@ead@au{#1}}
 \def\email@name{Email address}
 \def\emails@name{Email addresses}
 \chardef\has@ead@email=0
@@ -911,6 +940,9 @@
  \let\report@elt\@gobble
 \newenvironment{NoHyper}{}{}
 \def\frontmatter{%
+  \newif\if@hastoc\@hastocfalse
+  \let\ltx@tableofcontents\tableofcontents
+  \def\tableofcontents{\global\@hastoctrue}
   \NoHyper
   \let\@corresp@note\relax
   \global\t@glob@notes={}\global\c@author\z@
@@ -956,6 +988,10 @@
     \vskip \@overkeywordskip
     \unvbox\t@keyword                   % Keyword abstract, if any
   \fi                                   % FI
+  \if@hastoc                       % IF keywords THEN
+    \vskip \@overkeywordskip
+    \ltx@tableofcontents                   % Keyword abstract, if any
+  \fi                                   % FI
   \vskip 10\p@
   \hrule height 0.4\p@                 % rule below abstract/keywords
   \dedicated@fmt                        % print dedication
@@ -963,6 +999,7 @@
 \fi                                   % FI
   \close@fm                             % Close front matter material.
    \output@glob@notes  % Put notes at bottom of 1st page
+  \endNoHyper
   \global\c@footnote=\c@sv@footnote     % restore footnote number
   \global\@prefacefalse
   \global\leftskip\z@                   % Restore the normal values of
@@ -978,7 +1015,8 @@
 \let\maketitle\relax
 \newdimen\t@xtheight
 \t@xtheight\textheight \advance\t@xtheight-\splittopskip
-\def\open@fm{\global\setbox\fm@box=\vbox\bgroup
+\let\nolinenumbers\relax
+\def\open@fm{\global\setbox\fm@box=\vbox\bgroup\nolinenumbers
   \hsize=\@frontmatterwidth                 % Front matter is page-wide by default
   \centering                                % and centered
   \sv@hyphenpenalty\hyphenpenalty           % (save \hyphenpenalty)
@@ -1087,7 +1125,7 @@
 \def\collab{\@ifstar{\collab@arg}{\collab@arg}}
 \let\collaboration=\collab
 \def\collab@arg#1{\stepcounter{collab}%
-  \if@firstauthor \first@collab \global\@firstauthorfalse \fi
+  \if@firstauthor \first@author \global\@firstauthorfalse \fi
   \gdef\@runningauthor{#1}%
   \beg@elem
   \proc@elem{collab}{#1}%
@@ -1097,11 +1135,10 @@
   \ifnum\prev@elem=\e@collab \global\@newelemfalse \fi
   \if@newelem \collab@fmt@init \fi
   \par                                 % Start new paragraph
-  {\large #3\,$^{\mathrm{#2}}$}}
-\def\first@collab{
-  \collab@note@fmt                     % re-define \thefootnote as
-  \add@tok\t@glob@notes                % appropriate for collab/address
-    {\collab@note@fmt}}%
+  \edef\@tempb{#2}\ifx\@tempb\@empty
+    {\@authorsize #3}\else
+    {\@authorsize #3\,$^{\mathrm{#2}}$}%
+  \fi}
 \def\collab@fmt@init{\vskip 1em}       % Vertical space above list
 \def\author@note@fmt{\setcounter{footnote}{0}%
   \def\thefootnote{\xarabic{footnote}}}
@@ -1291,19 +1328,21 @@
     \vskip 4\p@ \@plus 3\p@
     \normalsize\it\centering \@dedicated
     \fi}
-\def\@alph#1{\ifcase#1\or a\or b\or c\or d\or e\or f\or g\or h\or i\or j\or
-k\or \ell\or m\or n\or o\or p\or q\or r\or s\or t\or u\or v\or w\or x\or
-y\or z\or aa\or ab\or ac\or ad\or ae\or af\or ag\or ah\or ai\or aj\or
-ak\or a\ell\or am\or an\or ao\or ap\or aq\or ar\or as\or at\or au\or av\or
-aw\or ay\or az\or ba\or bb\or bc\or bd\or be\or bf\or bg\or bh\or bi\or
-bj\or bk\or b\ell\or bm\or bn\or bo\or bp\or bq\or br\or bs\or bt\or
-bu\or bw\or bx\or by\or bz\or ca\or cb\or cc\or cd\or ce\or cf\or cg\or
-ch\or ci\or cj\or ck\or c\ell\or cm\or cn\or co\or cp\or cq\or cr\or
-cs\or ct\or cu\or cw\or cx\or cy\or cz\or da\or db\or dc\or dd\or de\or df\or dg\or dh\or di\or dj\or dk\or
-d\ell\or dm\or dn\or do\or dp\or dq\or dr\or ds\or dt\or du\or dw\or
-dx\or dy\or dz\or ea\or eb\or ec\or ed\or ee\or ef\or eg\or eh\or
-ei\or ej\or ek\or e\ell\or em\or en\or eo\or ep\or eq\or er\or es\or
-et\or eu\or ew\or ex\or ey\or ez\else\@ctrerr\fi}
+\def\@alph#1{\ifcase#1\or a\or b\or c\or d\or e\or f\or g\or h\or i\or
+j\or k\or \ensuremath{\ell}\or m\or n\or o\or p\or q\or r\or s\or t\or
+u\or v\or w\or x\or y\or z\or aa\or ab\or ac\or ad\or ae\or af\or ag\or
+ah\or ai\or aj\or ak\or a\ensuremath{\ell}\or am\or an\or ao\or ap\or
+aq\or ar\or as\or at\or au\or av\or aw\or ay\or az\or ba\or bb\or bc\or
+bd\or be\or bf\or bg\or bh\or bi\or bj\or bk\or b\ensuremath{\ell}\or
+bm\or bn\or bo\or bp\or bq\or br\or bs\or bt\or bu\or bw\or bx\or by\or
+bz\or ca\or cb\or cc\or cd\or ce\or cf\or cg\or ch\or ci\or cj\or ck\or
+c\ensuremath{\ell}\or cm\or cn\or co\or cp\or cq\or cr\or cs\or ct\or
+cu\or cw\or cx\or cy\or cz\or da\or db\or dc\or dd\or de\or df\or dg\or
+dh\or di\or dj\or dk\or d\ensuremath{\ell}\or dm\or dn\or do\or dp\or
+dq\or dr\or ds\or dt\or du\or dw\or dx\or dy\or dz\or ea\or eb\or ec\or
+ed\or ee\or ef\or eg\or eh\or ei\or ej\or ek\or e\ensuremath{\ell}\or
+em\or en\or eo\or ep\or eq\or er\or es\or et\or eu\or ew\or ex\or ey\or
+ez\else\@ctrerr\fi}
 \def\fnstar#1{\@fnstar{\@nameuse{c@#1}}}
 \def\@fnstar#1{\ifcase#1\or
     \hbox{$\star$}\or
@@ -1349,7 +1388,8 @@
   \def\@oddfoot{\small\slshape
     \def\@tempa{0}
     \ifx\@volume\@tempa
-      Preprint submitted to \@journal\hfil\@date\/%
+      %Preprint submitted to \@journal\hfil\@date\/%
+      Journal of Mechanics and Physics of Solids (article in press, nov.\ 2011)\hfil
     \else
       Article published in \@jou@vol@pag\hfil\hbox{}\fi}%
   \let\@evenfoot\@oddfoot

 

Close Window
 
  The service has been written by
Heinrich Stamerjohanns