arxmliv
arxmliv build tool
 
KWARC group
LaTeXML
About
   
 

Back to Homepage

--- /arXMLiv/repos/arXMLiv/trunk/sty/aipproc.cls	2012-08-16 16:30:52.562232008 +0200
+++ /arXMLiv/repos/arXMLiv/trunk/sty/elsarticleq.cls	2010-04-01 20:37:32.000000000 +0200
@@ -1,1040 +1,705 @@
+%NB: This is a modified version for particular use of file `elsarticle.cls'.
+%The original source can be downloaded at
+%http://www.elsevier.com/wps/find/authorsview.authors/elsarticle
+\def\numding{72}
 %%
-%% This is file `aipproc.cls',
-%% generated with the docstrip utility.
+
 %%
 %% The original source files were:
 %%
-%% aipproc.dtx  (with options: `class')
+%% elsarticle.dtx  (with options: `class')
 %%
-%% Class aipproc to use with LaTeX2e
-%% (C) 1998,2000 American Institute of Physics and Frank Mittelbach
-%% All rights reserved
+%% Copyright 2007, 2008 Elsevier Ltd.
 %%
-%% Class aipproc to use with LaTeX2e
+%% This file is part of the 'Elsarticle Bundle'.
+%% -------------------------------------------
 %%
-%% Copyright (C) 1998, 2000, 2001, 2002, 2004, 2005 Frank Mittelbach
-%% Copyright (C) 1998, 2000, 2001, 2002, 2004, 2005 American Institute of Physics
-%% All rights reserved.
+%% It may be distributed under the conditions of the LaTeX Project Public
+%% License, either version 1.2 of this license or (at your option) any
+%% later version.  The latest version of this license is in
+%%    http://www.latex-project.org/lppl.txt
+%% and version 1.2 or later is part of all distributions of LaTeX
+%% version 1999/12/01 or later.
 %%
-%% Development of this class was commissioned by American Institute of Physics.
+%% The list of all files belonging to the 'Elsarticle Bundle' is
+%% given in the file `manifest.txt'.
 %%
-\NeedsTeXFormat{LaTeX2e}[1999/06/01]
-\ProvidesClass{aipproc}
-       [2005/11/11 v1.5a AIP Proceedings (FMi)]
-%% \CharacterTable
-%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%%   Digits        \0\1\2\3\4\5\6\7\8\9
-%%   Exclamation   \!     Double quote  \"     Hash (number) \#
-%%   Dollar        \$     Percent       \%     Ampersand     \&
-%%   Acute accent  \'     Left paren    \(     Right paren   \)
-%%   Asterisk      \*     Plus          \+     Comma         \,
-%%   Minus         \-     Point         \.     Solidus       \/
-%%   Colon         \:     Semicolon     \;     Less than     \<
-%%   Equals        \=     Greater than  \>     Question mark \?
-%%   Commercial at \@     Left bracket  \[     Backslash     \\
-%%   Right bracket \]     Circumflex    \^     Underscore    \_
-%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
-%%   Right brace   \}     Tilde         \~}
+%% $Id: elsarticle.cls,v 1.18 2008-08-28 06:03:47 cvr Exp $
 %%
-\IfFileExists{fixltx2e.sty}
-  {\RequirePackage{fixltx2e}}
-  {\RequirePackage{fix2col}[1998/08/17]}
-\@ifpackageloaded{fixltx2e}{%
-\@ifpackagelater{fixltx2e}{1999/12/02}{}{%
-\def\addpenalty#1{%
-  \ifvmode
-    \if@minipage
-    \else
-      \if@nobreak
-      \else
-        \ifdim\lastskip=\z@
-          \penalty#1\relax
-        \else
-          \@tempskipb\lastskip
-          \advance \@tempskipb
-               \ifdim\prevdepth>\maxdepth\maxdepth\else
-                 \ifdim \prevdepth = -\@m\p@ \z@ \else \prevdepth \fi
-               \fi
-          \vskip -\@tempskipb
-          \penalty#1%
-          \vskip\@tempskipb
-        \fi
-      \fi
-    \fi
-  \else
-    \@noitemerr
-  \fi}
-\def \@doclearpage {%
-     \ifvoid\footins
-       \setbox\@tempboxa\vsplit\@cclv to\z@ \unvbox\@tempboxa
-       \setbox\@tempboxa\box\@cclv
-       \xdef\@deferlist{\@toplist\@botlist\@deferlist}%
-       \global \let \@toplist \@empty
-       \global \let \@botlist \@empty
-       \global \@colroom \@colht
-       \ifx \@currlist\@empty
-       \else
-          \@latexerr{Float(s) lost}\@ehb
-          \global \let \@currlist \@empty
-       \fi
-       \@makefcolumn\@deferlist
-       \@whilesw\if@fcolmade \fi{\@opcol\@makefcolumn\@deferlist}%
-       \if@twocolumn
-         \if@firstcolumn
-           \xdef\@deferlist{\@dbltoplist\@deferlist}%
-           \global \let \@dbltoplist \@empty
-           \global \@colht \textheight
-           \begingroup
-              \@dblfloatplacement
-              \@makefcolumn\@deferlist
-              \@whilesw\if@fcolmade \fi{\@outputpage
-                                        \@makefcolumn\@deferlist}%
-           \endgroup
-         \else
-           \vbox{}\clearpage
-         \fi
-       \fi
-       \ifx\@deferlist\@empty \else\clearpage \fi
-     \else
-       \setbox\@cclv\vbox{\box\@cclv\vfil}%
-       \@makecol\@opcol
-       \clearpage
-     \fi
-}
-\def \@addtocurcol {%
-   \@insertfalse
-   \@setfloattypecounts
-   \ifnum \@fpstype=8
-   \else
-     \ifnum \@fpstype=24
-     \else
-       \@flsettextmin
-       \advance \@textmin \@textfloatsheight
-       \@reqcolroom \@pageht
-       \ifdim \@textmin>\@reqcolroom
-         \@reqcolroom \@textmin
-       \fi
-       \advance \@reqcolroom \ht\@currbox
-       \ifdim \@colroom>\@reqcolroom
-         \@flsetnum \@colnum
-         \ifnum \@colnum>\z@
-           \@bitor\@currtype\@deferlist
-          \@testwrongwidth\@currbox
-           \if@test
-           \else
-             \@bitor\@currtype\@botlist
-             \if@test
-               \@addtobot
-             \else
-               \ifodd \count\@currbox
-                 \advance \@reqcolroom \intextsep
-                 \ifdim \@colroom>\@reqcolroom
-                   \global \advance \@colnum \m@ne
-                   \global \advance \@textfloatsheight \ht\@currbox
-                   \global \advance \@textfloatsheight 2\intextsep
-                   \@cons \@midlist \@currbox
-                   \if@nobreak
-                     \nobreak
-                     \@nobreakfalse
-                     \everypar{}%
-                   \else
-                     \addpenalty \interlinepenalty
-                   \fi
-                   \vskip \intextsep
-                   \box\@currbox
-                   \penalty\interlinepenalty
-                   \vskip\intextsep
-                   \ifnum\outputpenalty <-\@Mii \vskip -\parskip\fi
-                   \outputpenalty \z@
-                   \@inserttrue
-                 \fi
-               \fi
-               \if@insert
-               \else
-                 \@addtotoporbot
-               \fi
-             \fi
-           \fi
-         \fi
-       \fi
-     \fi
-   \fi
-   \if@insert
-   \else
-     \@resethfps
-     \@cons\@deferlist\@currbox
-   \fi
-}}}
-{}
-\RequirePackage{calc}
-\RequirePackage{ifthen}
-\RequirePackage[final]{graphicx}
-\newif\if@load@natbib \@load@natbibtrue
-\IfFileExists{url.sty}
-  {\RequirePackage{url}%
-  }
-  {\def\url##1{\texttt{##1}}%
-   \ClassWarningNoLine{aipproc}
-      {\noexpand\url command might fail with
-        this LaTeX \MessageBreak installation since url.sty
-        is missing}%
-  }
-\IfFileExists{textcase.sty}
-  {\RequirePackage{textcase}%
-  }
-  {\global\let\MakeTextUppercase\MakeUppercase
-   \ClassWarningNoLine{aipproc}
-      {\noexpand\section commands should not contain math
-        as this on LaTeX \MessageBreak installation the textcase
-        package is missing}%
-  }
-\newcommand\AIP@optionnotsupported[1]
-    {\ClassWarningNoLine{aipproc}%
-                {Option~ `#1'~ not~ supported~ ---~ request~ ignored}}
-\newcommand\AIP@error{\ClassError{aipproc}}
-\newcommand\AIP@cmdnotsupported[1]
-    {\def#1{\AIP@error{Command \noexpand#1not supported by
-                       class}\@eha}}
-\newcommand\AIP@natbibnotavailable[1]
-    {\def#1{\AIP@error{Command \noexpand#1not supported if natbib
-                       not installed}\@eha}}
-\newcommand*\DesignerError[1]{%
-  \AIP@error{#1}{Probably bug in class file.}}
-\newcommand*\InformationError[1]{%
-  \AIP@error{#1}%
-    {Add the necessary information to the document.}}
-\newcommand\MakeSpaceIgnore{%
-    \catcode`\~=10\relax
-    \catcode`\ = 9\relax
-    \catcode`\^^M = 9\relax
-}
-\newcommand\MakeSpaceNormal{%
-    \catcode`\~= 13\relax
-    \catcode`\ = 10\relax
-    \catcode`\^^M = 5\relax
-}
-\let\UnbreakableSpace~
-\MakeSpaceIgnore
-\DeclareOption{a5paper}       {\AIP@optionnotsupported\CurrentOption}
-\DeclareOption{b5paper}       {\AIP@optionnotsupported\CurrentOption}
-\DeclareOption{legalpaper}    {\AIP@optionnotsupported\CurrentOption}
-\DeclareOption{executivepaper}{\AIP@optionnotsupported\CurrentOption}
-\DeclareOption{landscape}     {\AIP@optionnotsupported\CurrentOption}
-\DeclareOption{10pt}          {\AIP@optionnotsupported\CurrentOption}
-\DeclareOption{11pt}          {\AIP@optionnotsupported\CurrentOption}
-\DeclareOption{12pt}          {\AIP@optionnotsupported\CurrentOption}
-\DeclareOption{titlepage}     {\AIP@optionnotsupported\CurrentOption}
-\DeclareOption{notitlepage}   {\AIP@optionnotsupported\CurrentOption}
-\DeclareOption{oneside}       {\AIP@optionnotsupported\CurrentOption}
-\DeclareOption{twoside}       {\AIP@optionnotsupported\CurrentOption}
-\DeclareOption{onecolumn}     {\AIP@optionnotsupported\CurrentOption}
-\DeclareOption{twocolumn}     {\AIP@optionnotsupported\CurrentOption}
-\DeclareOption{leqno}         {\AIP@optionnotsupported\CurrentOption}
-\DeclareOption{fleqn}         {\AIP@optionnotsupported\CurrentOption}
-\DeclareOption{openbib}       {\AIP@optionnotsupported\CurrentOption}
-\DeclareOption{tnotealph}  {\def\AIP@tnote@representation{\@alph}}
-\DeclareOption{tnotesymbol}{\def\AIP@tnote@representation{\@fnsymbol}}
-\newboolean{@cmrfonts}
-\DeclareOption{cmfonts}    {\setboolean{@cmrfonts}{true}
-                            \def\AIP@mathfontsused{0}}
-\DeclareOption{mathptm}    {\def\AIP@mathfontsused{1}}
-\DeclareOption{mathtime}   {\def\AIP@mathfontsused{2}}
-\DeclareOption{nomathfonts}{\def\AIP@mathfontsused{3}}
-\DeclareOption{mathptmx}   {\def\AIP@mathfontsused{4}}
-\DeclareOption{mtpro}      {\def\AIP@mathfontsused{5}}
-\def\pageref{0}
-\DeclareOption{varioref}      {\def\pageref{1}}
-\DeclareOption{nonvarioref}   {\def\pageref{2}}
-\DeclareOption{numcites}      {\def\AIPcitestyleselect{num}}
-\DeclareOption{bibliocites}   {\def\AIPcitestyleselect{biblio}}
-\DeclareOption{nonatbib}      {\dont@load@natbibfalse}
-\DeclareOption{numberedheadings}
-    {\AtEndOfClass{\setcounter{secnumdepth}{3}}}
-\DeclareOption{unnumberedheadings}
-    {\AtEndOfClass{\setcounter{secnumdepth}{-\maxdimen}}}
-\DeclareOption{draft}{\PassOptionsToClass{\CurrentOption}{article}%
-    \@drafttrue
-    \AtEndOfPackage{
-          \let\AIP@pagenumerror\@gobble
-          \def\@oddfoot{\reset@font
-            \AIPfoliofont
-            \AIPfolioformat\@shorttitle\@date\thepage
-            }}}
-\newif\if@draft
-\DeclareOption{final}{\PassOptionsToClass{\CurrentOption}{article}}
+ \def\RCSfile{elsarticleq}%
+%\def\RCSversion{1.0.1}%
+%\def\RCSdate{2008/05/22}%
+ \def\@shortjnl{\relax}
+% \def\@journal{Elsevier Science} \def\@company{Elsevier Science}
+ \def\@issn{000-0000}
+ \def\@shortjid{elsarticleq}
+\NeedsTeXFormat{LaTeX2e}[1995/12/01]
+%\ProvidesClass{\@shortjid}[\RCSdate, \RCSversion: \@journal]
+\def\ABD{\AtBeginDocument}
+\newif\ifpreprint \preprintfalse
+\newif\iflongmktitle \longmktitlefalse
+
+\def\@blstr{1}
+\newdimen\@bls
+\@bls=\baselineskip
+
+%\def\@finalWarning{%
+%  *****************************************************\MessageBreak
+%   This document is typeset in the CRC style which\MessageBreak
+%   is not suitable for submission.\MessageBreak
+%   \MessageBreak
+%   Please typeset again using 'preprint' option\MessageBreak
+%   for creating PDF suitable for submission.\MessageBreak
+%  ******************************************************\MessageBreak
+%}
+
+\DeclareOption{preprint}{\global\preprinttrue
+  \gdef\@blstr{1}\xdef\jtype{0}%
+   \AtBeginDocument{\@twosidefalse\@mparswitchfalse}}
+%\DeclareOption{final}{\gdef\@blstr{1}\global\preprintfalse}
+%\DeclareOption{review}{\global\preprinttrue\gdef\@blstr{1.5}}
+\DeclareOption{authoryear}{\xdef\@biboptions{authoryear}}
+\DeclareOption{number}{\xdef\@biboptions{square,numbers}}
+\DeclareOption{numbers}{\xdef\@biboptions{square,numbers}}
+\DeclareOption{longtitle}{\global\longmktitletrue}
+\DeclareOption{5p}{\xdef\jtype{5}\global\preprintfalse
+  \ExecuteOptions{twocolumn}}
+  \def\jtype{0}
+\DeclareOption{3p}{\xdef\jtype{3}\global\preprintfalse}
+\DeclareOption{1p}{\xdef\jtype{1}\global\preprintfalse
+  \AtBeginDocument{\@twocolumnfalse}}
+%%\DeclareOption{times}{\IfFileExists{txfonts.sty}%
+%  {\AtEndOfClass{\RequirePackage{txfonts}%
+%  \gdef\ttdefault{cmtt}%
+%   \let\iint\relax
+%  \let\iiint\relax
+%  \let\iiiint\relax
+%  \let\idotsint\relax
+%  \let\openbox\relax}}{\RequirePackage{times}}}
+\ExecuteOptions{a4paper,10pt,oneside,onecolumn,number,preprint}
 \DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
-\ExecuteOptions{mathptmx,tnotesymbol,numcites,unnumberedheadings,letterpaper}
-\ProcessOptions\relax
-\MakeSpaceNormal
+\ProcessOptions
 \LoadClass{article}
-\MakeSpaceIgnore
-\def\layoutstyle#1{%
-    \expandafter\let\expandafter
-       \AIP@layoutstylename
-       \csname AIP@layout@style@#1 \endcsname
-    \ifx\AIP@layoutstylename\relax
-       \def\AIP@layoutstylename{#1}
-    \fi
-    \MakeSpaceIgnore
-    \makeatletter
-    \InputIfFileExists{aip-\AIP@layoutstylename.clo}
-        {\let\AIP@check@layoutstyle\relax}
-        {\AIP@error{The~ layout~ style~ `#1'~ is~ not~
-                    known\MessageBreak  or~ its~
-                    support~ file~ can~ not~ be~ found}
-         {The~ \noexpand \layoutstyle command~ tried~ to~ load~ the~ file~
-          aip-\AIP@layoutstylename.clo~ without~ success!\MessageBreak
-          This~ might~ be~ due~ to~ misspelling~ the~ style~
-          name.\MessageBreak
-          Standard~ styles~ are~ `6x9',~ `8x11single',~
-          `8x11double',~ and~ `arlo',~ but\MessageBreak there~
-           might~ be~ others~ (see~ the~ class~
-          documentation).\MessageBreak
-          It~ could~ also~ be~ due~ to~ an~ incomplete~ installation~
-          of~ the~ class.
+\RequirePackage{graphicx}
+\let\comma\@empty
+\let\tnotesep\@empty
+\def\title#1{\gdef\@title{#1}}
+\let\@title\@empty
+
+\def\elsLabel#1{\@bsphack\protected@write\@auxout{}%
+         {\string\Newlabel{#1}{\@currentlabel}}\@esphack}
+\def\Newlabel#1#2{\expandafter\xdef\csname X@#1\endcsname{#2}}
+
+\def\Ref#1{\@ifundefined{X@#1}{0}{\csname X@#1\endcsname}%
+}
+
+\def\tnotemark[#1]{\textsuperscript{\@for\@@tmark:=#1\do{%
+      \edef\tnotenum{\@ifundefined{X@\@@tmark}{1}{\Ref{\@@tmark}}}%
+      \ifcase\tnotenum\or\ding{\numding}\or,\ding{\numding}\ding{\numding}\fi}}%
+}
+\let\@tnotemark\@empty
+
+\let\@tnotes\@empty
+\RequirePackage{pifont}
+\newcounter{tnote}
+\def\tnotetext[#1]#2{\g@addto@macro\@tnotes{%
+  \refstepcounter{tnote}\elsLabel{#1}%
+   \def\thefootnote{\ifcase\c@tnote\or\ding{\numding}\or\ding{\numding}\ding{\numding}\fi}%
+    \footnotetext{#2}}}
+
+\newcounter{fnote}
+\def\fnmark[#1]{\let\comma\@empty
+    \def\@fnmark{\@for\@@fnmark:=#1\do{%
+    \edef\fnotenum{\@ifundefined{X@\@@fnmark}{1}{\Ref{\@@fnmark}}}%
+  \unskip\comma\fnotenum\let\comma,}}%
+}
+
+\let\@fnotes\@empty\let\@fnmark\@empty
+\def\fntext[#1]#2{\g@addto@macro\@fnotes{%
+     \refstepcounter{fnote}\elsLabel{#1}%
+   \def\thefootnote{\thefnote}%
+   \global\setcounter{footnote}{\thefnote}%
+   \footnotetext{#2}}}
+
+\def\cormark[#1]{\edef\cnotenum{\Ref{#1}}\unskip%
+   \textsuperscript{\sep\ifcase\cnotenum\or
+       $\ast$\or$\ast\ast$\fi\hspace{-1pt}}\let\sep=,}
+
+\let\@cormark\@empty
+\let\@cornotes\@empty
+\newcounter{cnote}
+\def\cortext[#1]#2{\g@addto@macro\@cornotes{%
+    \refstepcounter{cnote}\elsLabel{#1}%
+    \def\thefootnote{\ifcase\thecnote\or$\ast$\or
+    $\ast\ast$\fi}%
+    \footnotetext{#2}}}
+
+\def\corref#1{\cormark[#1]}
+\def\fnref#1{\fnmark[#1]}
+\def\tnoteref#1{\tnotemark[#1]}
+
+\def\resetTitleCounters{\c@cnote=0
+   \c@fnote=0 \c@tnote=0 \c@footnote=0}
+
+\let\eadsep\@empty
+\let\@elseads\@empty
+\let\@elsuads\@empty
+\let\@cormark\@empty
+\def\ead{\@ifnextchar[{\@uad}{\@ead}}
+\gdef\@ead#1{\bgroup\def\_{\string\_}\def\{{\string\{}%
+   \def\}{\string\}}%
+   \edef\tmp{\the\@eadauthor}
+   \immediate\write\@auxout{\string\emailauthor
+     {#1}{\expandafter\strip@prefix\meaning\tmp}}%
+  \egroup
          }
+\newcounter{ead}
+\gdef\emailauthor#1#2{\stepcounter{ead}%
+     \g@addto@macro\@elseads{\raggedright%
+      \let\corref\@gobble
+      \eadsep\texttt{#1} (#2)\def\eadsep{\unskip,\space}}%
+}
+\gdef\@uad[#1]#2{\bgroup
+   \edef\tmp{\the\@eadauthor}
+   \immediate\write\@auxout{\string\urlauthor
+     {#2}{\expandafter\strip@prefix\meaning\tmp}}%
+  \egroup
         }
-    \MakeSpaceNormal
-    \makeatother
-    \ifdim\columnsep>\z@
-       \@twocolumntrue
+\def\urlauthor#1#2{\g@addto@macro\@elsuads{\let\corref\@gobble%
+     \raggedright\eadsep\texttt{#1}\space(#2)%
+     \def\eadsep{\unskip,\space}}%
+}
+
+\def\elsauthors{}
+\def\pprinttitle{}
+\let\authorsep\@empty
+\let\sep\@empty
+\newcounter{author}
+\def\author{\@ifnextchar[{\@@author}{\@author}}
+
+\newtoks\@eadauthor
+\def\@@author[#1]#2{\g@addto@macro\elsauthors{%
+    \def\baselinestretch{1}%
+    \authorsep#2\unskip\textsuperscript{%#1%
+      \@for\@@affmark:=#1\do{%
+       \edef\affnum{\@ifundefined{X@\@@affmark}{1}{\Ref{\@@affmark}}}%
+     \unskip\sep\affnum\let\sep=,}%
+      \ifx\@fnmark\@empty\else\unskip\sep\@fnmark\let\sep=,\fi}%
+    \def\authorsep{\unskip,\space}%
+    \global\let\sep\@empty
+    \global\let\@fnmark\@empty}%
+    \@eadauthor={#2}
+}
+
+\def\@author#1{\g@addto@macro\elsauthors{\normalsize%
+    \def\baselinestretch{1}%
+    \upshape\authorsep#1\unskip\textsuperscript{%
+      \ifx\@fnmark\@empty\else\unskip\sep\@fnmark\let\sep=,\fi}%
+    \def\authorsep{\unskip,\space}%
+    \global\let\@fnmark\@empty
+    \global\let\sep\@empty}%
+    \@eadauthor={#1}
+}
+
+\def\elsaddress{}
+\def\addsep{\par\vskip6pt}
+\def\address{\@ifnextchar[{\@@address}{\@address}}
+
+\newcounter{affn}
+\renewcommand\theaffn{\alph{affn}}
+
+\long\def\@@address[#1]#2{\g@addto@macro\elsaddress{%
+    \def\baselinestretch{1}%
+     \refstepcounter{affn}\elsLabel{#1}%
+    \textsuperscript{\theaffn}#2\par}}
+
+\long\def\@address#1{\g@addto@macro\elsauthors{%
+    \def\baselinestretch{1}%
+    \addsep\footnotesize\itshape#1\def\addsep{\par\vskip6pt}%
+    \def\authorsep{\par\vskip8pt}}}
+
+\newbox\absbox
+\renewenvironment{abstract}{\global\setbox\absbox=\vbox\bgroup
+  \hsize=\textwidth\def\baselinestretch{1}%
+  \noindent\unskip\textbf{Abstract}
+ \par\medskip\noindent\unskip\ignorespaces}
+ {\egroup}
+
+\newbox\keybox
+\def\keyword{%
+  \def\sep{\unskip, }%
+ \def\MSC{\@ifnextchar[{\@MSC}{\@MSC[2000]}}
+  \def\@MSC[##1]{\par\leavevmode\hbox {\it ##1~MSC:\space}}%
+  \def\PACS{\par\leavevmode\hbox {\it PACS:\space}}%
+  \def\JEL{\par\leavevmode\hbox {\it JEL:\space}}%
+  \global\setbox\keybox=\vbox\bgroup\hsize=\textwidth
+  \normalsize\normalfont\def\baselinestretch{1}
+  \parskip\z@
+  \noindent\textit{Key words: }
+  \raggedright                         % Keywords are not justified.
+  \ignorespaces}
+\def\endkeyword{\par \egroup}
+
+\newdimen\Columnwidth
+\Columnwidth=\columnwidth
+
+\def\printFirstPageNotes{%
+  \iflongmktitle
+   \let\columnwidth=\textwidth\fi
+  \ifx\@tnotes\@empty\else\@tnotes\fi
+  \ifx\@cornotes\@empty\else\@cornotes\fi
+  \ifx\@elseads\@empty\relax\else
+   \let\thefootnote\relax
+   \footnotetext{\ifnum\theead=1\relax
+      \textit{Email address:\space}\else
+      \textit{Email addresses:\space}\fi
+     \@elseads}\fi
+  \ifx\@elsuads\@empty\relax\else
+   \let\thefootnote\relax
+   \footnotetext{\textit{URL:\space}%
+     \@elsuads}\fi
+  \ifx\@fnotes\@empty\else\@fnotes\fi
+  \iflongmktitle\if@twocolumn
+   \let\columnwidth=\Columnwidth\fi\fi
+}
+
+\long\def\pprintMaketitle{\clearpage
+  \iflongmktitle\if@twocolumn\let\columnwidth=\textwidth\fi\fi
+  \resetTitleCounters
+  \def\baselinestretch{1}%
+  \printFirstPageNotes
+  \begin{center}%
+ \thispagestyle{pprintTitle}%
+   \def\baselinestretch{1}%
+    \Large\@title\par\vskip18pt
+    \normalsize\elsauthors\par\vskip10pt
+    \footnotesize\itshape\elsaddress\par\vskip36pt
+    \vskip12pt
+    \ifvoid\absbox\else\unvbox\absbox\par\vskip10pt\fi
+    \ifvoid\keybox\else\unvbox\keybox\par\vskip10pt\fi
+    \vskip12pt
+    \end{center}%
+  \gdef\thefootnote{\arabic{footnote}}%
+  }
+
+\def\printWarning{%
+     \mbox{}\par\vfill\par\bgroup
+     \fboxsep12pt\fboxrule1pt
+     \hspace*{.18\textwidth}
+     \fcolorbox{gray50}{gray10}{\box\warnbox}
+     \egroup\par\vfill\thispagestyle{empty}
+     \setcounter{page}{0}
+     \clearpage}
+
+%\long\def\finalMaketitle{%
+%  \resetTitleCounters
+%  \def\baselinestretch{1}%
+%   \MaketitleBox
+%   \thispagestyle{pprintTitle}%
+%  \gdef\thefootnote{\arabic{footnote}}%
+%  }
+
+\long\def\MaketitleBox{%
+  \resetTitleCounters
+  \def\baselinestretch{1}%
+  \begin{center}%
+   \def\baselinestretch{1}%
+    \Large\@title\par\vskip18pt
+    \normalsize\elsauthors\par\vskip10pt
+    \footnotesize\itshape\elsaddress\par\vskip36pt
+    \vskip12pt
+    \ifvoid\absbox\else\unvbox\absbox\par\vskip10pt\fi
+    \ifvoid\keybox\else\unvbox\keybox\par\vskip10pt\fi
+    \vskip12pt
+    \end{center}%
+  }
+
+\def\FNtext#1{\par\bgroup\footnotesize#1\egroup}
+\newdimen\space@left
+\def\alarm#1{\typeout{******************************}%
+             \typeout{#1}%
+             \typeout{******************************}%
+}
+\long\def\getSpaceLeft{%\global\@twocolumnfalse%
+   \global\setbox0=\vbox{\hsize=\textwidth\MaketitleBox}%
+   \global\setbox1=\vbox{\hsize=\textwidth
+    \let\footnotetext\FNtext
+    \printFirstPageNotes}%
+    \xdef\noteheight{\the\ht1}%
+    \xdef\titleheight{\the\ht0}%
+    \@tempdima=\vsize
+    \advance\@tempdima-\noteheight
+    \advance\@tempdima-1\baselineskip
+}
+
+  \skip\footins=24pt
+
+\newbox\els@boxa
+\newbox\els@boxb
+
+\ifpreprint
+  \def\maketitle{\pprintMaketitle}
+  \else
+   \ifnum\jtype=1
+    \def\maketitle{%
+      \iflongmktitle\getSpaceLeft
+       \global\setbox\els@boxa=\vsplit0 to \@tempdima
+       \box\els@boxa\par\resetTitleCounters
+       \thispagestyle{pprintTitle}%
+       \printFirstPageNotes
+       \box0%
+      \else
+       \finalMaketitle\printFirstPageNotes
+      \fi
+    \gdef\thefootnote{\arabic{footnote}}}%
+  \else
+ \ifnum\jtype=5
+    \def\maketitle{%
+      \iflongmktitle\getSpaceLeft
+       \global\setbox\els@boxa=\vsplit0 to \@tempdima
+       \box\els@boxa\par\resetTitleCounters
+       \thispagestyle{pprintTitle}%
+       \printFirstPageNotes
+       \twocolumn[\box0]%\printFirstPageNotes
     \else
-       \@twocolumnfalse
+       \twocolumn[\finalMaketitle]\printFirstPageNotes
     \fi
-}
-\@onlypreamble\layoutstyle
-\def\declare@layoutstyle#1#2{
-  \@namedef{AIP@layout@style@#1}{#2}
-}
-\@onlypreamble\declare@layoutstyle
-\declare@layoutstyle{6x9}{6s}
-\declare@layoutstyle{8x11single}{8s}
-\declare@layoutstyle{8x11double}{8d}
-\def\AIP@check@layoutstyle{
-  \AIP@error{No~ \noexpand\layoutstyle command~ seen}
-    {The~ class~ requires~ a~ \noexpand\layoutstyle{}~
-     declaration~ in~ the~ preamble!\MessageBreak
-     Standard~ styles~ are~ `6x9',~ `8x11single',~
-    `8x11double',~ and~ `arlo',~ but\MessageBreak there~
-     might~ be~ others~ (see~ the~ class~
-     documentation).\MessageBreak
-     To~ be~ able~ to~ proceed~ the~ 6x9~ style~ is~ assumed.
-    }
-    \layoutstyle{6x9}
-  \@colht\textheight
-  \@colroom\textheight \vsize\textheight
-  \columnwidth\textwidth
-  \@clubpenalty\clubpenalty
-  \if@twocolumn
-    \advance\columnwidth -\columnsep
-    \divide\columnwidth\tw@ \hsize\columnwidth \@firstcolumntrue
-  \fi
-  \hsize\columnwidth \linewidth\hsize
-}
-\AtBeginDocument{\AIP@check@layoutstyle}
-\newcommand*\SetInternalRegister[2]{#1=#2\relax}
-\let\SetInternalCounter\count@assign
-\newcommand*\DeclareParagraphLayout[9]{%
-    \@namedef{#1Para}{
-  \fontsize{#2}{#3}\selectfont
-          #9
-  \setlength\parindent  {#4}
-  \setlength\leftskip   {#5}
-  \setlength\rightskip  {#6}
-  \@rightskip\rightskip
-  \setlength\parfillskip{#7}
-  \setlength\parskip    {#8}
-}
-}
-\@onlypreamble\DeclareParagraphLayout
-\newcommand*\UseParagraphLayout[1]{
-    \@ifundefined{#1Para}
-       {\DesignerError{Paragraph~ layout~ '#1'~ undefined}}
-       {\@nameuse{#1Para}}
-}
-\newcommand*\DeclareParagraphLayoutAlias[2]{%
-      \@ifundefined{#2Para}
-           {\DesignerError{Paragraph~ layout~ '#2'~ undefined}}
-           {\expandafter\let
-              \csname#1Para\expandafter\endcsname
-              \csname#2Para\endcsname
-           }
-}
-\@onlypreamble\DeclareParagraphLayoutAlias
-\newcommand*\UseBBskip[1]
-  {\ifvmode
-    \setlength\@tempskipa{#1 - \parskip - \baselineskip}
-    \vskip\@tempskipa
+     \gdef\thefootnote{\arabic{footnote}}}
    \else
-    \DesignerError{\protect\UseBBskip\space outside~ vmode}
-   \fi
-  }
-\newcommand*\DeclarePagestyle[5]
-  {
-   \@namedef{ps@#1}
-     {
-      \def\@oddhead {#2}
-      \def\@oddfoot {#3}
-      \def\@evenhead{#4}
-      \def\@evenfoot{#5}
-     }
-   }
-\newdimen\bodytextsize
-\newdimen\bodytextbaselineskip
-\newdimen\bodytextenspace
-\newdimen\bodytextparindent
-\pagestyle{empty}
-\AIP@cmdnotsupported\pagestyle
-\newcommand\AIP@pagenumerror[1]{%
-  \AIP@error{Command~ \string#1~ can't~ be~ used~
-       in~ production}%
-      {This~ command~ will~ produce~ page~ numbers~ which~ will~
-       be~ incorrect~ in~ the\MessageBreak final~ production.
-       It~ should~ therefore~ only~ be~ used~ while~ producing~
-       drafts.}}
-\let\@@tableofcontents\tableofcontents
-\let\@@listoffigures\listoffigures
-\let\@@listoftables\listoftables
-\renewcommand\tableofcontents{%
-   \AIP@pagenumerror\tableofcontents\@@tableofcontents}
-\renewcommand\listoffigures{%
-   \AIP@pagenumerror\listoffigures\@@listoffigures}
-\renewcommand\listoftables{%
-   \AIP@pagenumerror\listoftables\@@listoftables}
-\RequirePackage{aipxfm}
-\MakeSpaceIgnore
-\def\AIP@startsection#1#2#3#4#5{
-    \@tempskipa#2\relax
-    \advance\@tempskipa-\parskip
-    \ifdim\@tempskipa<\z@
-      \DesignerError{#2~ -~ \protect\parskip needs~ to~ be~
-                     non-negative}
-    \fi
-    \ifthenelse{\equal#1{true}}
-      \relax
-      {\@tempskipa-\@tempskipa}
-    \edef\AIP@preskip{\the\@tempskipa}
-    \@tempskipa#4\relax
-    \advance\@tempskipa-\parskip
-    \ifdim\@tempskipa<\z@
-      \DesignerError{#2~ -~ \protect\parskip needs~ to~ be~
-                     non-negative}
-    \fi
-    \ifthenelse{\equal#3{true}}
-      {\@tempskipa-\@tempskipa}
-      \relax
-    \edef\AIP@postskip{\the\@tempskipa}
-    \@secpenalty#5\relax
-    \@startsection
-}
-\renewcommand\section
-   {\AIP@startsection
-      \AIPsectionafterindent\AIPsectionpreskip
-      \AIPsectionrunin\AIPsectionpostskip
-      \AIPsectionpenalty
-       {section}{1}{\AIPsectionindent}%
-                   {\AIP@preskip}%
-                   {\AIP@postskip}%
-                   {\AIPsectionfont\AIPsectionformat}}
-\renewcommand\subsection
-   {\AIP@startsection
-      \AIPsubsectionafterindent\AIPsubsectionpreskip
-      \AIPsubsectionrunin\AIPsubsectionpostskip
-      \AIPsubsectionpenalty
-    {subsection}{2}{\AIPsubsectionindent}%
-                   {\AIP@preskip}%
-                   {\AIP@postskip}%
-                   {\AIPsubsectionfont\AIPsubsectionformat}}
-\renewcommand\subsubsection
-   {\AIP@startsection
-      \AIPsubsubsectionafterindent\AIPsubsubsectionpreskip
-      \AIPsubsubsectionrunin\AIPsubsubsectionpostskip
-      \AIPsubsubsectionpenalty
-    {subsubsection}{3}{\AIPsubsubsectionindent}%
-                   {\AIP@preskip}%
-                   {\AIP@postskip}%
-                   {\AIPsubsubsectionfont\AIPsubsubsectionformat}}
-\renewcommand\paragraph
-   {\AIP@startsection
-      \AIPparagraphafterindent\AIPparagraphpreskip
-      \AIPparagraphrunin\AIPparagraphpostskip
-      \AIPparagraphpenalty
-     {paragraph}{4}{\AIPparagraphindent}%
-                   {\AIP@preskip}%
-                   {\AIP@postskip}%
-                   {\AIPparagraphfont\AIPparagraphformat}}
-\renewcommand\subparagraph
-   {\AIP@startsection
-      \AIPsubparagraphafterindent\AIPsubparagraphpreskip
-      \AIPsubparagraphrunin\AIPsubparagraphpostskip
-      \AIPsubparagraphpenalty
-  {subparagraph}{5}{\AIPsubparagraphindent}%
-                   {\AIP@preskip}%
-                   {\AIP@postskip}%
-                   {\AIPsubparagraphfont\AIPsubparagraphformat}}
-\newcommand\UseNoHyphens{\hyphenpenalty\@M\exhyphenpenalty\@M}
-\ifcase \AIP@mathfontsused
-                                 % 0 use cm for everything
-\or
-\MakeSpaceNormal
-  \RequirePackage{mathptm}       % 1
-\MakeSpaceIgnore
-\or
-\MakeSpaceNormal
-  \RequirePackage{mathtime}      % 2
-\MakeSpaceIgnore
-\or
-                                 % 3 use cm for math
-\or
-\MakeSpaceNormal
-  \RequirePackage{mathptmx}      % 4
-\MakeSpaceIgnore
-\or
-\MakeSpaceNormal
-  \RequirePackage{mtpro}         % 5
-\MakeSpaceIgnore
-\fi
-\ifnum \AIP@mathfontsused > 0
-  \RequirePackage{times}
-  \normalfont
-  \RequirePackage[T1]{fontenc}
-  \RequirePackage{textcomp}
-\fi
-\AtBeginDocument{\UseParagraphLayout{AIPbodytext}}
-\renewcommand\footnoterule{
-  \setlength\skip@{\AIPfootnoteruleheight+\AIPfootnoterulepostskip}
-  \vskip-\skip@
-  \moveright \AIPfootnoteruleindent\vbox{%
-    \hrule \@width \AIPfootnoterulewidth
-           \@height \AIPfootnoteruleheight}%
-  \vskip \AIPfootnoterulepostskip \relax}
-\AtBeginDocument{
-  \setlength{\skip\footins}{\AIPfootnoterulepreskip
-                            +\AIPfootnoterulepostskip}}
-\renewcommand\@makefntext[1]{
-    \UseParagraphLayout{AIPfootnote}
-    \noindent
-    \hbox{\AIPfootnotetextmarkerformat
-             {\AIPfootnotetextmarkerfont\@thefnmark}}%
-    \ignorespaces
-    #1}
-\def\@makefnmark{\hbox{%
-  \AIPfootnotemarkerformat{\AIPfootnotemarkerfont\@thefnmark}}}
-\def \@makecol {%
-   \setbox\@outputbox \box\@cclv
-   \@combinefloats
-   \ifvoid\footins
+  \if@twocolumn
+    \def\maketitle{%
+      \iflongmktitle\getSpaceLeft
+       \global\setbox\els@boxa=\vsplit0 to \@tempdima
+       \box\els@boxa\par\resetTitleCounters
+       \thispagestyle{pprintTitle}%
+       \printFirstPageNotes
+       \twocolumn[\box0]%
    \else
-     \setbox\@outputbox \vbox {%
-       \boxmaxdepth \@maxdepth
-       \unvbox \@outputbox
-       \vskip \skip\footins
-       \color@begingroup
-         \normalcolor
-         \footnoterule
-         \unvbox \footins
-       \color@endgroup
-       }%
+       \twocolumn[\finalMaketitle]\printFirstPageNotes
    \fi
-   \xdef\@freelist{\@freelist\@midlist}%
-   \global \let \@midlist \@empty
-   \ifvbox\@kludgeins
-     \@makespecialcolbox
+     \gdef\thefootnote{\arabic{footnote}}}%
    \else
-     \setbox\@outputbox \vbox to\@colht {%
-       \@texttop
-       \dimen@ \dp\@outputbox
-       \unvbox \@outputbox
-       \vskip -\dimen@
-       \@textbottom
-       }%
-   \fi
-   \global \maxdepth \@maxdepth
-}
-\def\@fnsymbol#1{\ensuremath{\ifcase#1\or *\or \dagger\or **\or
-   \ddagger\or \mathsection\or \mathparagraph\or \|\or \dagger\dagger
-   \or \ddagger\ddagger \or\mathsection\mathsection
-   \or \mathparagraph\mathparagraph \or *{*}*\or
-   \dagger{\dagger}\dagger \or\ddagger{\ddagger}\ddagger\or
-   \mathsection{\mathsection}\mathsection
-   \or \mathparagraph{\mathparagraph}\mathparagraph \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 l\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 bb\or cc\or dd\or ee\or ff\or gg\or hh\or
-  ii\or jj\or kk\or ll\or mm\or nn\or oo\or pp\or qq\or rr\or ss\or
-  tt\or uu\or vv\or ww\or xx\or yy\or zz\else\@ctrerr\fi}
-\AtBeginDocument{%
-  \ifx\tagform@\@undefined
-    \def\eqref#1{\mbox{\AIPeqreffont\AIPeqrefformat{\ref{#1}}}}%
+    \def\maketitle{%
+      \iflongmktitle\getSpaceLeft
+       \global\setbox\els@boxa=\vsplit0 to \@tempdima
+       \box\els@boxa\par\resetTitleCounters
+       \thispagestyle{pprintTitle}%
+       \printFirstPageNotes
+       \box0%
   \else
-    \def\tagform@#1{\mbox{\AIPeqreffont
-      \AIPeqrefformat{\ignorespaces
-                      #1\unskip\@@italiccorr}}}%
+       \finalMaketitle\printFirstPageNotes
   \fi
-  \def\@eqnnum{{\AIPeqfont\AIPeqformat\theequation}}
-}
-\ifnum\pageref>0
- \MakeSpaceNormal
-  \RequirePackage{varioref}
- \MakeSpaceIgnore
- \renewcommand\reftextfaceafter {on~ the~ next~ page}
- \renewcommand\reftextfacebefore{on~ the~ \reftextvario{previous}
-                                                     {preceding}~ page}
- \renewcommand\reftextafter     {on~ the~ \reftextvario{following}
-                                                     {next}~ page}
- \renewcommand\reftextbefore    {on~ the~ \reftextvario{preceding~ page}
-                                                     {page~ before}}
- \renewcommand\reftextcurrent   {on~ \reftextvario{this}%
-                                                 {the~ current}~ page}
- \renewcommand\reftextfaraway[1]{%
-   \is@pos@number\@tempb
-    {\ifnum\@tempb<0\@tempa\relax
-       \reftextearlier
-     \else
-       \reftextlater
-     \fi}%
-   {\@setref\relax\relax{#1}}}
- \newcommand\reftextearlier{\reftextvario{on~ an~ earlier~ page}
-                                         {earlier~ on}}
- \newcommand\reftextlater  {\reftextvario{later~ on}{further~ down}}
- \ifnum\pageref=2
-   \def\reftextvario#1#2{#1}
+    \gdef\thefootnote{\arabic{footnote}}}%
  \fi
- \let\pageref\vpageref
-\else
-  \renewcommand\pageref[1]
-    {\AIP@error{Page~ references~ not~ supported}
-      {This~ class~ does~ not~ support~ references~ to~ page~
-       numbers~ unless~ the~ varioref~ or~ the~ nonvarioref~ option~
-       is~ used,~ since~ it~ doesn't~ print~ page~ numbers.}}
 \fi
-\newcommand\AIP@maketablecaption[2]{%
-  \UseParagraphLayout{AIPtable-singlelinecaption}
-  \settowidth\@tempdima{%
-      \noindent
-      {\AIPtablecaptionheadfont\AIPtablecaptionheadformat{#1}}
-      \AIPtablecaptiontextfont\ignorespaces#2}
-  \ifdim\@tempdima>\hsize
-     \UseParagraphLayout{AIPtable-multilinecaption}
   \fi
-  \noindent
-  {\AIPtablecaptionheadfont\AIPtablecaptionheadformat{#1}}
-  \AIPtablecaptiontextfont\ignorespaces#2\par
-  \vskip\AIPtablecaptionskip}
-\newskip\AIPtablecaptionskip
-\newcommand\AIP@makefigurecaption[2]{%
-  \UseParagraphLayout{AIPfigure-singlelinecaption}
-  \UseBBskip\AIPfigurecaptionBBskip
-  \settowidth\@tempdima{%
-      \noindent
-      {\AIPfigurecaptionheadfont\AIPfigurecaptionheadformat{#1}}
-      \AIPfigurecaptiontextfont\ignorespaces#2}
-  \ifdim\@tempdima>\hsize
-     \UseParagraphLayout{AIPfigure-multilinecaption}
   \fi
-  \noindent
-  {\AIPfigurecaptionheadfont\AIPfigurecaptionheadformat{#1}}
-  \AIPfigurecaptiontextfont\ignorespaces#2\par
-}
-\newskip\AIPfigurecaptionBBskip
-\newcommand\AIP@sourceerror{\AIP@error
-  {\noexpand\source is only supported with `table' or `figure'
-   environment}\@ehd}
-\let\source\AIP@sourceerror
-\newcommand\AIP@fsource@setup{%
-    \def\source##1{\gdef\AIP@typeset@source
-      {\addvspace\AIPfiguresourceskip
-       \rightline{\AIPfiguresourceheadfont \AIPfiguresourceheadtext
-                  \AIPfiguresourcetextfont ##1}
-      }}
-    \global\let\AIP@typeset@source\@empty}
-\newcommand\AIP@tsource@setup{%
-    \def\source##1{\gdef\AIP@typeset@source
-      {\addvspace\AIPtablesourceskip
-       \rightline{\AIPtablesourceheadfont \AIPtablesourceheadtext
-                  \AIPtablesourcetextfont ##1}
+\def\ps@pprintTitle{%
+     \let\@oddhead\@empty
+     \let\@evenhead\@empty
+     \def\@oddfoot{\footnotesize\itshape
+       %Preprint submitted to \ifx\@journal\@empty Elsevier
+       %\else\@journal\fi \hfill\today%
+      }%
+     \let\@evenfoot\@oddfoot}
+
+\def\@seccntDot{.}
+\def\@seccntformat#1{\csname the#1\endcsname\@seccntDot\hskip 0.5em}
+
+\renewcommand\section{\@startsection {section}{1}{\z@}%
+           {18\p@ \@plus 6\p@ \@minus 3\p@}%
+           {9\p@ \@plus 6\p@ \@minus 3\p@}%
+           {\normalsize\bfseries\boldmath}}
+\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
+           {12\p@ \@plus 6\p@ \@minus 3\p@}%
+           {3\p@ \@plus 6\p@ \@minus 3\p@}%
+           {\normalfont\normalsize\itshape}}
+\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
+           {12\p@ \@plus 6\p@ \@minus 3\p@}%
+           {\p@}%
+           {\normalfont\normalsize\itshape}}
+
+\def\paragraph{\secdef{\els@aparagraph}{\els@bparagraph}}
+\def\els@aparagraph[#1]#2{\elsparagraph[#1]{#2.}}
+\def\els@bparagraph#1{\elsparagraph*{#1.}}
+
+\newcommand\elsparagraph{\@startsection{paragraph}{4}{0\z@}%
+           {10\p@ \@plus 6\p@ \@minus 3\p@}%
+           {-6\p@}%
+           {\normalfont\itshape}}
+\newdimen\leftMargin
+\leftMargin=2em
+\newtoks\@enLab  %\newtoks\@enfont
+\def\@enQmark{?}
+\def\@enLabel#1#2{%
+  \edef\@enThe{\noexpand#1{\@enumctr}}%
+  \@enLab\expandafter{\the\@enLab\csname the\@enumctr\endcsname}%
+  \@enloop}
+\def\@enSpace{\afterassignment\@enSp@ce\let\@tempa= }
+\def\@enSp@ce{\@enLab\expandafter{\the\@enLab\space}\@enloop}
+\def\@enGroup#1{\@enLab\expandafter{\the\@enLab{#1}}\@enloop}
+\def\@enOther#1{\@enLab\expandafter{\the\@enLab#1}\@enloop}
+\def\@enloop{\futurelet\@entemp\@enloop@}
+\def\@enloop@{%
+  \ifx A\@entemp         \def\@tempa{\@enLabel\Alph  }\else
+  \ifx a\@entemp         \def\@tempa{\@enLabel\alph  }\else
+  \ifx i\@entemp         \def\@tempa{\@enLabel\roman }\else
+  \ifx I\@entemp         \def\@tempa{\@enLabel\Roman }\else
+  \ifx 1\@entemp         \def\@tempa{\@enLabel\arabic}\else
+  \ifx \@sptoken\@entemp \let\@tempa\@enSpace         \else
+  \ifx \bgroup\@entemp   \let\@tempa\@enGroup         \else
+  \ifx \@enum@\@entemp   \let\@tempa\@gobble          \else
+                         \let\@tempa\@enOther
+             \fi\fi\fi\fi\fi\fi\fi\fi
+  \@tempa}
+\newlength{\@sep} \newlength{\@@sep}
+\setlength{\@sep}{.5\baselineskip plus.2\baselineskip
+            minus.2\baselineskip}
+\setlength{\@@sep}{.1\baselineskip plus.01\baselineskip
+            minus.05\baselineskip}
+\providecommand{\sfbc}{\rmfamily\upshape}
+\providecommand{\sfn}{\rmfamily\upshape}
+\def\@enfont{\ifnum \@enumdepth >1\let\@nxt\sfn \else\let\@nxt\sfbc \fi\@nxt}
+\def\enumerate{%
+   \ifnum \@enumdepth >3 \@toodeep\else
+      \advance\@enumdepth \@ne
+      \edef\@enumctr{enum\romannumeral\the\@enumdepth}\fi
+   \@ifnextchar[{\@@enum@}{\@enum@}}
+\def\@@enum@[#1]{%
+  \@enLab{}\let\@enThe\@enQmark
+  \@enloop#1\@enum@
+  \ifx\@enThe\@enQmark\@warning{The counter will not be printed.%
+   ^^J\space\@spaces\@spaces\@spaces The label is: \the\@enLab}\fi
+  \expandafter\edef\csname label\@enumctr\endcsname{\the\@enLab}%
+  \expandafter\let\csname the\@enumctr\endcsname\@enThe
+  \csname c@\@enumctr\endcsname7
+  \expandafter\settowidth
+            \csname leftmargin\romannumeral\@enumdepth\endcsname
+            {\the\@enLab\hskip\labelsep}%
+  \@enum@}
+\def\@enum@{\list{{\@enfont\csname label\@enumctr\endcsname}}%
+           {\usecounter{\@enumctr}\def\makelabel##1{\hss\llap{##1}}%
+     \ifnum \@enumdepth>1\setlength{\topsep}{\@@sep}\else
+           \setlength{\topsep}{\@sep}\fi
+     \ifnum \@enumdepth>1\setlength{\itemsep}{0pt plus1pt minus1pt}%
+      \else \setlength{\itemsep}{\@@sep}\fi
+     %\setlength\leftmargin{\leftMargin}%%%{1.8em}
+     \setlength{\parsep}{0pt plus1pt minus1pt}%
+     \setlength{\parskip}{0pt plus1pt minus1pt}
       }}
-    \global\let\AIP@typeset@source\@empty}
-\newcommand\AIP@tablenoteerror{\AIP@error
-  {\noexpand\tablenote is only supported inside `table'
-   environment\MessageBreak and not allowed inside
-   the \noexpand\caption or \noexpand\source command}\@ehd}
-\let\tablenote\AIP@tablenoteerror
-\newcommand\AIP@tablenote[2]{%
-       \leavevmode
-       \stepcounter\@mpfn
-       \protected@xdef\@thefnmark{\thempfn}%
-       #1\@footnotemark
-       \protected@xdef\AIP@tnote@process
-            {\AIP@tnote@process
-             \protect\footnotetext
-               [\the\c@mpfootnote]
-               {\protect\UseParagraphLayout{AIPtablenote}#2}}%
-}
-\newcommand\AIP@tnote@setup{%
-    \def\@mpfn{mpfootnote}%
-    \def\thempfn{\thempfootnote}%
-    \def\thempfootnote{\AIP@tnote@representation\c@mpfootnote}%
-    \global\c@mpfootnote\z@
-    \def\tablenote{\@ifstar{\AIP@tablenote\relax}
-                           {\AIP@tablenote\rlap}}
-    \gdef\AIP@tnote@process{}%
-    \setlength{\skip\@mpfootins}{\AIPtablenoteskip}
-    \let\footnoterule\relax
-    \let\@footnotetext\@mpfootnotetext
-}
-\newskip\AIPtablenoteskip
-\newcommand\AIP@tablehead[4]{\multicolumn{#1}{#2}%
-   {\AIPtableheadfont\begin{tabular}[#3]{@{}#2@{}}%
-    \vrule \@height \bodytextsize\@width \z@\relax
-    \ignorespaces#4\unskip
-    \vrule \@depth .5\bodytextsize\@width \z@\end{tabular}}}
-\def\hline{%
-  \noalign{\ifnum0=`}\fi\vskip\AIPhlinesep
-      \hrule \@height \arrayrulewidth\vskip3\AIPhlinesep
-      \futurelet \reserved@a\@xhline}
-\newdimen\AIPhlinesep
-\newenvironment{ltxtable}[1][tbp]
-               {\@float{table}[#1]
-                \let\tablehead\AIP@tablehead
-                \let\@makecaption\AIP@maketablecaption
-                \AIPtablefont}
-               {\end@float}
-\newenvironment{ltxtable*}[1][tbp]
-               {\@dblfloat{table}[#1]
-                \let\tablehead\AIP@tablehead
-                \let\@makecaption\AIP@maketablecaption
-                \AIPtablefont}
-               {\end@dblfloat}
-\renewenvironment{table*}[1][tbp]
-   {\AIP@error{Environment `table*' not supported\MessageBreak
-                         --- environment `table' used instead}%
-    {The class automatically determines the position of the float
-     according\MessageBreak
-     to its size.}%
-    \begin{table}}
-   {\end{table}}
-\renewenvironment{table}[1][tbp]
-   {\def\AIP@floatspec{#1}%
-    \let\tablehead\AIP@tablehead
-    \let\@makecaption\AIP@maketablecaption
-    \AIP@tsource@setup
-    \AIP@tnote@setup
-    \global \setbox\AIP@box
-    \color@hbox
-      \hbox \bgroup
-      \@floatboxreset
-         \def\caption##1{\gdef\AIP@save@caption{##1}\let\caption\AIP@caption@error}%
-         \def\label##1{\gdef\AIP@save@label{##1}}%
-         \global\let\AIP@save@caption\@undefined
-         \global\let\AIP@save@label\@undefined
-       \normalcolor
-       \AIPtablefont
-       \ignorespaces
-   }
-   {%
-       \AIP@remove@any@previous@space
-       \outer@nobreak
-      \egroup
-    \color@endbox
-    \setlength\dimen@{\columnwidth+1pt}%
-    \ifdim\wd\AIP@box >\dimen@
-      \setlength\dimen@{\textwidth+1pt}%
-      \ifdim\wd\AIP@box >\dimen@
-        \def\@captype{table}%
-        \sbox\@tempboxa{\AIP@make@table@body}%
-        \setlength\dimen@{\ht\@tempboxa+\dp\@tempboxa}%
-        \ifdim\dimen@ <\columnwidth
-          \def\@tempa{\@float{table}}%
-          \expandafter\@tempa\expandafter[\AIP@floatspec]%
-            \centerline{\rotatebox{90}{\box\@tempboxa}}%
-          \end@float
-        \else
-           \def\@tempa{\@dblfloat{table}}%
-           \expandafter\@tempa\expandafter[\AIP@floatspec]%
-           \setbox\@tempboxa\hbox{\rotatebox{90}{\box\@tempboxa}}
-           \dimen@\wd\@tempboxa
-           \advance\dimen@ -5\p@   % grace
-           \ifdim \dimen@ >\textwidth
-             \AIP@error{Table~ too~ wide~ (\the\wd\@tempboxa\space
-                        >~\the\textwidth)}
-                {Table~ doesn't~ fit~ even~ after~ turning~ it~
-                 by~ 90~ degrees.~ You~ probably\MessageBreak
-                 have~ to~ change~ it~ somewhat.}
-           \fi
-           \centerline{\unhbox \@tempboxa}
-          \end@dblfloat
-        \fi
-      \else
-        \def\@tempa{\@dblfloat{table}}%
-        \expandafter\@tempa\expandafter[\AIP@floatspec]%
-          \AIP@make@table@body
-        \end@dblfloat
-      \fi
-    \else
-      \def\@tempa{\@float{table}}%
-      \expandafter\@tempa\expandafter[\AIP@floatspec]%
-        \AIP@make@table@body
-      \end@float
-    \fi
-}
-\newcommand\AIP@caption@error{\AIP@error{Only~ one~
-           \noexpand\caption command~ per~ float~ supported}
-    {If~ you~ need~ more~ than~ one~ \noexpand\caption~ command~ try~ the~
-     ltxfigure~ or~ ltxtable\MessageBreak
-     environment~ as~ explained~ in~ the~ aipguide.}}
-\newcommand\AIP@make@table@body{%
-      \centering
-      \@tempdima\wd\AIP@box
-      \ifdim\@tempdima<\AIPtablecaptionminwidth
-        \@tempdima\AIPtablecaptionminwidth
-      \fi
-      \begin{minipage}\@tempdima
-        \ifx\AIP@save@caption\@undefined\else
-          \let\tablenote\AIP@tablenoteerror
-          \caption{\AIP@save@caption
-                   \ifx\AIP@save@label\@undefined\else
-                     \label\AIP@save@label
-                   \fi}%
-        \fi
-        \par
-        \offinterlineskip                % or we get \lineskip
-        \vbox{\hsize\wd\AIP@box
-                          \box\AIP@box
-                          \AIP@typeset@source}%
-        \AIP@tnote@process
-     \end{minipage}%
-}
-\newdimen\AIPtablecaptionminwidth
-\newcommand\AIP@remove@any@previous@space
-  {\unskip\loop\unskip\ifdim\lastskip>\z@\repeat}
-\newbox\AIP@box
-\newenvironment{ltxfigure}[1][tbp]
-               {\@float{figure}[#1]
-                \let\@makecaption\AIP@makefigurecaption}
-               {\end@float}
-\newenvironment{ltxfigure*}[1][tbp]
-               {\@dblfloat{figure}[#1]
-                \let\@makecaption\AIP@makefigurecaption}
-               {\end@dblfloat}
-\renewenvironment{figure}[1][tbp]
-   {\def\AIP@floatspec{#1}%
-    \AIP@fsource@setup
-    \global \setbox\AIP@box
-    \color@hbox
-      \hbox \bgroup
-      \@floatboxreset
-         \def\caption##1{\let\caption\AIP@caption@error\gdef\AIP@save@caption{##1}}%
-         \def\label##1{\gdef\AIP@save@label{##1}}%
-         \global\let\AIP@save@caption\@undefined
-         \global\let\AIP@save@label\@undefined
-       \normalcolor
-       \normalfont
-       \normalsize
-       \ignorespaces
-   }
-   {%
-       \AIP@remove@any@previous@space
-       \outer@nobreak
-      \egroup
-    \color@endbox
-    \def\@tempa{\@dblfloat{figure}}%
-    \setlength\dimen@{\columnwidth+1pt}%
-    \ifdim\wd\AIP@box >\dimen@
-      \expandafter\@tempa\expandafter[\AIP@floatspec]%
-        \AIP@make@figure@body
-      \end@dblfloat
-    \else
-      \def\@tempa{\@float{figure}}%
-      \expandafter\@tempa\expandafter[\AIP@floatspec]%
-        \AIP@make@figure@body
-      \end@float
-    \fi
-}
-\renewenvironment{figure*}{\figure}{\endfigure}
-\newcommand\AIP@make@figure@body{%
-      \centering
-      \setlength\@tempdima{\wd\AIP@box-1pt}%
-      \ifdim\@tempdima>\columnwidth
-         \@tempdima\textwidth
-      \else
-         \@tempdima\columnwidth
-      \fi
-      \begin{minipage}\@tempdima
-        \centerline{\vbox{\hsize\wd\AIP@box
-                          \box\AIP@box
-                          \AIP@typeset@source}}%
-        \ifx\AIP@save@caption\@undefined\else
-          \let\@makecaption\AIP@makefigurecaption
-          \caption{\AIP@save@caption
-                   \ifx\AIP@save@label\@undefined\else
-                     \label\AIP@save@label
-                   \fi}%
-        \fi
-        \par
-     \end{minipage}}
-\renewcommand\fnum@figure{\thefigure}
-\renewcommand\fnum@table{\thetable}
-\newcommand\spaceforfigure[2]{\parbox{#1}{\mbox{}\vspace*{#2}}}
-\AtBeginDocument{%
-\newcommand\@@longtable{}%
-\let\@@longtable\longtable
-\def\longtable{%
+
+\def\endenumerate{\par\ifnum \@enumdepth >1\addvspace{\@@sep}\else
+           \addvspace{\@sep}\fi \endlist}
+
+\def\sitem{\@noitemargtrue\@item[\@itemlabel *]}
+
+\def\itemize{\@ifnextchar[{\@Itemize}{\@Itemize[]}}
+
+\def\@Itemize[#1]{\def\next{#1}%
+  \ifnum \@itemdepth >\thr@@\@toodeep\else
+   \advance\@itemdepth\@ne
+  \ifx\next\@empty\else\expandafter\def\csname
+   labelitem\romannumeral\the\@itemdepth\endcsname{#1}\fi%
+  \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
+  \expandafter\list\csname\@itemitem\endcsname
+  {\def\makelabel##1{\hss\llap{##1}}}%
+ \fi}
+\def\newdefinition#1{%
+  \@ifnextchar[{\@odfn{#1}}{\@ndfn{#1}}}%]
+\def\@ndfn#1#2{%
+  \@ifnextchar[{\@xndfn{#1}{#2}}{\@yndfn{#1}{#2}}}
+\def\@xndfn#1#2[#3]{%
+  \expandafter\@ifdefinable\csname #1\endcsname
+    {\@definecounter{#1}\@newctr{#1}[#3]%
+     \expandafter\xdef\csname the#1\endcsname{%
+       \expandafter\noexpand\csname the#3\endcsname \@dfncountersep
+          \@dfncounter{#1}}%
+     \global\@namedef{#1}{\@dfn{#1}{#2}}%
+     \global\@namedef{end#1}{\@enddefinition}}}
+\def\@yndfn#1#2{%
+  \expandafter\@ifdefinable\csname #1\endcsname
+    {\@definecounter{#1}%
+     \expandafter\xdef\csname the#1\endcsname{\@dfncounter{#1}}%
+     \global\@namedef{#1}{\@dfn{#1}{#2}}%
+     \global\@namedef{end#1}{\@enddefinition}}}
+\def\@odfn#1[#2]#3{%
+  \@ifundefined{c@#2}{\@nocounterr{#2}}%
+    {\expandafter\@ifdefinable\csname #1\endcsname
+    {\global\@namedef{the#1}{\@nameuse{the#2}}
+  \global\@namedef{#1}{\@dfn{#2}{#3}}%
+  \global\@namedef{end#1}{\@enddefinition}}}}
+\def\@dfn#1#2{%
+  \refstepcounter{#1}%
+  \@ifnextchar[{\@ydfn{#1}{#2}}{\@xdfn{#1}{#2}}}
+\def\@xdfn#1#2{%
+  \@begindefinition{#2}{\csname the#1\endcsname}\ignorespaces}
+\def\@ydfn#1#2[#3]{%
+  \@opargbegindefinition{#2}{\csname the#1\endcsname}{#3}\ignorespaces}
+\def\@dfncounter#1{\noexpand\arabic{#1}}
+\def\@dfncountersep{.}
+\def\@begindefinition#1#2{\trivlist
+   \item[\hskip\labelsep{\bfseries #1\ #2.}]\upshape}
+\def\@opargbegindefinition#1#2#3{\trivlist
+      \item[\hskip\labelsep{\bfseries #1\ #2\ (#3).}]\upshape}
+\def\@enddefinition{\endtrivlist}
+
+\def\@begintheorem#1#2{\trivlist
+  \let\baselinestretch\@blstr
+   \item[\hskip \labelsep{\bfseries #1\ #2.}]\itshape}
+\def\@opargbegintheorem#1#2#3{\trivlist
+  \let\baselinestretch\@blstr
+      \item[\hskip \labelsep{\bfseries #1\ #2\ (#3).}]\itshape}
+
+\def\newproof#1{%
+  \@ifnextchar[{\@oprf{#1}}{\@nprf{#1}}}
+\def\@nprf#1#2{%
+  \@ifnextchar[{\@xnprf{#1}{#2}}{\@ynprf{#1}{#2}}}
+\def\@xnprf#1#2[#3]{%
+  \expandafter\@ifdefinable\csname #1\endcsname
+    {\@definecounter{#1}\@newctr{#1}[#3]%
+     \expandafter\xdef\csname the#1\endcsname{%
+       \expandafter\noexpand\csname the#3\endcsname \@prfcountersep
+          \@prfcounter{#1}}%
+     \global\@namedef{#1}{\@prf{#1}{#2}}%
+     \global\@namedef{end#1}{\@endproof}}}
+\def\@ynprf#1#2{%
+  \expandafter\@ifdefinable\csname #1\endcsname
+    {\@definecounter{#1}%
+     \expandafter\xdef\csname the#1\endcsname{\@prfcounter{#1}}%
+     \global\@namedef{#1}{\@prf{#1}{#2}}%
+     \global\@namedef{end#1}{\@endproof}}}
+\def\@oprf#1[#2]#3{%
+  \@ifundefined{c@#2}{\@nocounterr{#2}}%
+    {\expandafter\@ifdefinable\csname #1\endcsname
+    {\global\@namedef{the#1}{\@nameuse{the#2}}%
+  \global\@namedef{#1}{\@prf{#2}{#3}}%
+  \global\@namedef{end#1}{\@endproof}}}}
+\def\@prf#1#2{%
+  \refstepcounter{#1}%
+  \@ifnextchar[{\@yprf{#1}{#2}}{\@xprf{#1}{#2}}}
+\def\@xprf#1#2{%
+  \@beginproof{#2}{\csname the#1\endcsname}\ignorespaces}
+\def\@yprf#1#2[#3]{%
+  \@opargbeginproof{#2}{\csname the#1\endcsname}{#3}\ignorespaces}
+\def\@prfcounter#1{\noexpand\arabic{#1}}
+\def\@prfcountersep{.}
+\def\@beginproof#1#2{\trivlist\let\baselinestretch\@blstr
+   \item[\hskip \labelsep{\scshape #1.}]\rmfamily}
+\def\@opargbeginproof#1#2#3{\trivlist\let\baselinestretch\@blstr
+      \item[\hskip \labelsep{\scshape #1\ (#3).}]\rmfamily}
+\def\@endproof{\endtrivlist}
+\newcommand*{\qed}{\hbox{}\hfill$\Box$}
+
+\@ifundefined{@biboptions}{\xdef\@biboptions{numbers}}{}
+\InputIfFileExists{\jobname.spl}{}{}
+\RequirePackage[\@biboptions]{natbib}
+
+\newwrite\splwrite
+\immediate\openout\splwrite=\jobname.spl
+\def\biboptions#1{\def\next{#1}\immediate\write\splwrite{%
+   \string\g@addto@macro\string\@biboptions{%
+    ,\expandafter\strip@prefix\meaning\next}}}
+
+\let\baselinestretch=\@blstr
+
+\ifnum\jtype=1
+ \RequirePackage{geometry}
+ \geometry{twoside,
+  paperwidth=210mm,
+  paperheight=297mm,
+  textheight=562pt,
+  textwidth=384pt,
+  centering,
+  headheight=50pt,
+  headsep=12pt,
+  footskip=12pt,
+  footnotesep=24pt plus 2pt minus 12pt,
+ }
+ \global\let\bibfont=\footnotesize
+ \global\bibsep=0pt
+ \if@twocolumn\global\@twocolumnfalse\fi
+\else\ifnum\jtype=3
+ \RequirePackage{geometry}
+ \geometry{twoside,
+  paperwidth=210mm,
+  paperheight=297mm,
+  textheight=622pt,
+  textwidth=468pt,
+  centering,
+ headheight=50pt,
+  headsep=12pt,
+  footskip=12pt,
+  footnotesep=24pt plus 2pt minus 12pt,
+  columnsep=2pc
+ }
+ \global\let\bibfont=\footnotesize
+ \global\bibsep=0pt
+ \if@twocolumn\input{fleqn.clo}\fi
+\else\ifnum\jtype=5
+ \RequirePackage{geometry}
+ \geometry{twoside,
+  paperwidth=210mm,
+  paperheight=297mm,
+  textheight=682pt,
+  textwidth=522pt,
+  centering,
+ headheight=50pt,
+  headsep=12pt,
+  footskip=18pt,
+  footnotesep=24pt plus 2pt minus 12pt,
+  columnsep=18pt
+ }%
+ \global\let\bibfont=\footnotesize
+ \global\bibsep=0pt
+ \input{fleqn.clo}
+ \global\@twocolumntrue
+%%
+%% End of option '5p'
+%%
+\fi\fi\fi
+
+\def\journal#1{\gdef\@journal{#1}}
+ \let\@journal\@empty
+\newenvironment{frontmatter}{}{\maketitle}
+
+\long\def\@makecaption#1#2{%
+  \vskip\abovecaptionskip\footnotesize
+  \sbox\@tempboxa{#1: #2}%
+  \ifdim \wd\@tempboxa >\hsize
+    #1: #2\par
+  \else
+    \global \@minipagefalse
+    \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
+  \fi
+  \vskip\belowcaptionskip}
+
+\AtBeginDocument{\@ifpackageloaded{hyperref}
+  {\def\@linkcolor{blue}
+   \def\@anchorcolor{blue}
+   \def\@citecolor{blue}
+   \def\@filecolor{blue}
+   \def\@urlcolor{blue}
+   \def\@menucolor{blue}
+   \def\@pagecolor{blue}
   \begingroup
-    \LTcapwidth\z@
-    \advance\c@LT@tables\@ne   % local as stepcounter comes later
-    \let\LT@entry\AIP@get@longtable@width
-    \csname LT@\romannumeral\c@LT@tables\endcsname
-    \ifdim \LTcapwidth=\z@ \global \LTcapwidth2in
-    \else \global\LTcapwidth\LTcapwidth
-    \fi
+  \@makeother\`%
+  \@makeother\=%
+  \edef\x{%
+    \edef\noexpand\x{%
   \endgroup
-  \AIPtablefont
-  \let\tablehead\AIP@tablehead
-  \@@longtable
+      \noexpand\toks@{%
+        \catcode 96=\noexpand\the\catcode`\noexpand\`\relax
+        \catcode 61=\noexpand\the\catcode`\noexpand\=\relax
 }%
-\def\LT@makecaption#1#2#3{%
-  \LT@mcol\LT@cols {@{}l@{}}{\rlap{\parbox[t]\LTcapwidth{%
-  \UseParagraphLayout{AIPtable-multilinecaption}
-  \noindent
-  {\AIPtablecaptionheadfont\AIPtablecaptionheadformat{#1#2}}
-  \AIPtablecaptiontextfont\ignorespaces#3\endgraf
-  \vspace*\AIPtablecaptionskip
-  }}}}%
-\def\LT@hline{%
-  \noalign{\ifnum0=`}\fi
-    \penalty\@M\vskip\AIPhlinesep
-    \futurelet\@let@token\LT@@hline}
-\def\LT@@hline{%
-  \ifx\@let@token\hline
-    \global\let\@gtempa\@gobble
-    \gdef\LT@sep{\penalty-\@medpenalty\vskip\doublerulesep}%
-  \else
-    \global\let\@gtempa\@empty
-    \gdef\LT@sep{\penalty-\@lowpenalty\vskip-\arrayrulewidth}%
-  \fi
-  \ifnum0=`{\fi}%
-  \multispan\LT@cols
-     \unskip\leaders\hrule\@height\arrayrulewidth\hfill\cr
-  \noalign{\LT@sep}%
-  \multispan\LT@cols
-     \unskip\leaders\hrule\@height\arrayrulewidth\hfill\cr
-  \noalign{\penalty\@M\vskip3\AIPhlinesep}%
-  \@gtempa}
-}
-\newcommand\AIP@get@longtable@width[2]{\advance\LTcapwidth#2\relax }
-\newenvironment{theacknowledgments}
-     {\AIPacknowledgmentsheadtype\AIPacknowledgmentsheadtext
-      \UseParagraphLayout{AIPacknowledgments}}
-     {\par}
-\renewenvironment{theindex}
-               {
-                \if@twocolumn
-                  \@restonecolfalse
-                  \AIPindexheadtype\indexname
-                \else
-                  \columnseprule \z@
-                  \columnsep 35\p@
-                  \@restonecoltrue
-                  \twocolumn[\AIPindexheadtype\indexname]
-                \fi
-                \parindent\z@
-                \parskip\z@ \@plus .3\p@\relax
-                \let\item\@idxitem}
-               {\if@restonecol\onecolumn\fi}
-\IfFileExists{natbib.sty}
-  {
-   \if@load@natbib
-     \AtBeginDocument{
-        \citestyle
-%%           {\csname AIP \AIPcitestyleselect citestyle\endcsname}
-        {aa}
-     }
-    \MakeSpaceNormal
-    \RequirePackage{natbib}
-    \MakeSpaceIgnore
-   \fi
-   }{}
-\ifx\citet\@undefined
-   \def\citet{\AIP@natbibnotavailable\citet}
-   \def\citep{\AIP@natbibnotavailable\citep}
-   \def\citealt{\AIP@natbibnotavailable\citealt}
-   \def\citealp{\AIP@natbibnotavailable\citealp}
-   \def\citetext{\AIP@natbibnotavailable\citetext}
-   \def\citeauthor{\AIP@natbibnotavailable\citeauthor}
-   \def\citeyear{\AIP@natbibnotavailable\citeyear}
-   \def\citeyearpar{\AIP@natbibnotavailable\citeyearpar}
-   \def\Citet{\AIP@natbibnotavailable\Citet}
-   \def\Citep{\AIP@natbibnotavailable\Citep}
-   \def\Citealt{\AIP@natbibnotavailable\Citealt}
-   \def\Citealp{\AIP@natbibnotavailable\Citealp}
-   \def\Citetext{\AIP@natbibnotavailable\Citetext}
-   \def\Citeauthor{\AIP@natbibnotavailable\Citeauthor}
-   \def\Citeyear{\AIP@natbibnotavailable\Citeyear}
-   \def\Citeyearpar{\AIP@natbibnotavailable\Citeyearpar}
-   \renewenvironment{thebibliography}[1]
-     {\AIPbibliographyheadtype\refname
-      \list{\AIPbibliographymarkerformat{\@arabic\c@enumiv}}%
-           {\settowidth\labelwidth{\AIPbibliographymarkerformat{#1}}%
-            \UseParagraphLayout{AIPbibliography}
-            \leftmargin\labelwidth
-            \advance\leftmargin\labelsep
-            \setlength\itemsep\AIPbibliographyitemsep
-            \@openbib@code
-            \usecounter{enumiv}%
-            \let\p@enumiv\@empty
-            \renewcommand\theenumiv{\@arabic\c@enumiv}}%
-      \sfcode`\.\@m}
-     {\def\@noitemerr
-       {\@latex@warning{Empty `thebibliography' environment}}%
-      \endlist}
-  \renewcommand*\@cite[2]{{\AIPcitefont
-     \AIPciteformat{#1\if@tempswa , #2\fi}}}
-  \AtBeginDocument{
-        \ifthenelse{\equal\AIPcitestyleselect{num}}
-           {}
-           {\AIP@error{Author/year~ citation~ style~ impossible}
-              {Without~ the~ natbib~ system~ only~ numerical~ citations~ are~
-               possible.~ But~ you~ (or~ the~ journal~ \string\layoutstyle)~
-               requested~ a~ diffferent~ citation~ style.}
-           }
-    }
-\else
-   \renewcommand\bibsection{\AIPbibliographyheadtype\refname}
-   \renewcommand\NAT@bibsetnum[1]{
-      \ifdim\AIPbibliographylabelwidth=\maxdimen
-\settowidth\labelwidth{\@biblabel{#1}}
-        \setlength\leftmargin\labelwidth
-      \else
-        \setlength\labelwidth\AIPbibliographylabelwidth
-        \setlength\leftmargin
-          {\AIPbibliographyleftmargin+\AIPbibliographyleftmarginextra}
-        \setlength\itemindent{-\AIPbibliographyleftmarginextra}
-      \fi
-      \addtolength\leftmargin\AIPbibliographylabelsep
-      \setlength\labelsep\AIPbibliographylabelsep
-      \setlength\itemsep\AIPbibliographyitemsep
-      \UseParagraphLayout{AIPbibliography}
-      \setlength\parsep{\parskip}
-   }
-  \renewcommand\NAT@bibsetup[1]{
-       \setlength\leftmargin
-          {\AIPbibliographyleftmargin+\AIPbibliographyleftmarginextra}
-       \setlength\itemindent{-\AIPbibliographyleftmarginextra}
-       \setlength\itemsep\AIPbibliographyitemsep
-       \UseParagraphLayout{AIPbibliography}
-       \setlength\parsep{\parskip}
-      }
-  \newcommand\bibstyle@arlonum{\bibpunct{}{}{,}{s}{}{\textsuperscript{,}}%
-     \gdef\NAT@biblabelnum##1{\textsuperscript{##1}}
-     \gdef\thefootnote{\alph{footnote}}
-  }
-  \newcommand\bibstyle@aipproc{\bibpunct{[}{]}{,}{n}{}{,}
-     \gdef\NAT@biblabelnum##1{##1.\hfill}}
-\fi
-\MakeSpaceNormal
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+    }%
+    \noexpand\x
+  }%
+\x
+\@makeother\`
+\@makeother\=
+}{}}
+%%
+
 \endinput
 %%
-%% End of file `aipproc.cls'.
+

 

Close Window
 
  The service has been written by
Heinrich Stamerjohanns