arxmliv
arxmliv build tool
 
KWARC group
LaTeXML
About
   
 

Back to Homepage

--- /arXMLiv/repos/arXMLiv/trunk/sty/article2.cls	2012-08-17 10:00:26.985146293 +0200
+++ /arXMLiv/repos/arXMLiv/trunk/sty/epl3.cls	2010-04-01 17:55:10.000000000 +0200
@@ -1,65 +1,129 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%         epl2.cls is a LaTeX document class for the EPLA journal         %%
+%%                                                                         %%
+%%                          %%  EPL  %%                                    %%
+%%                                                                         %%
+%%                usage: \documentclass[options]{epl2}                     %%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+%%
+%% marco 2006-10-25
+%%
+%% version: 1.0.a, 1.1
+%%
+%% modified and upgraded by Marco Bellacosa
+%% contact: marco@sif.it, europhys@sif.it, http://www.sif.it
+%%
+
+
+
+%% mala 2006-05-31
 %%
-%% This is file `article.cls',
-%% generated with the docstrip utility.
+%% version: 0.0.a
 %%
-%% The original source files were:
+%% written from scratch by Stefano Frabetti (mala), stefano@sif.it
+%% on behalf of the Italian Physical Society, http://www.sif.it/
+%% based on article.cls 2001/04/21 v1.4e
+%% based on epl.cls 2002/12/19 v0.9.6 [1.29 2005/11/10 15:26:26]
+%% contact: stefano@sif.it, http://www.sif.it/
 %%
-%% classes.dtx  (with options: `article')
+
 %%
-%% This is a generated file.
+%% identification
 %%
-%% Copyright 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004
-%% The LaTeX3 Project and any individual authors listed elsewhere
-%% in this file.
-%%
-%% This file was generated from file(s) of the LaTeX base system.
-%% --------------------------------------------------------------
-%%
-%% It may be distributed and/or modified under the
-%% conditions of the LaTeX Project Public License, either version 1.3
-%% 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.3 or later is part of all distributions of LaTeX
-%% version 2003/12/01 or later.
-%%
-%% This file has the LPPL maintenance status "maintained".
-%%
-%% This file may only be distributed together with a copy of the LaTeX
-%% base system. You may however distribute the LaTeX base system without
-%% such generated files.
-%%
-%% The list of all files belonging to the LaTeX base distribution is
-%% given in the file `manifest.txt'. See also `legal.txt' for additional
-%% information.
-%%
-%% The list of derived (unpacked) files belonging to the distribution
-%% and covered by LPPL is defined by the unpacking scripts (with
-%% extension .ins) which are part of the distribution.
-%% \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         \~}
 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
-\ProvidesClass{article}
-              [2004/02/16 v1.4f
- Standard LaTeX document class]
-\newcommand\@ptsize{}
-\newif\if@restonecol
-\newif\if@titlepage
-\@titlepagefalse
-\if@compatibility\else
+\ProvidesClass{epl2}[2006/05/31 v0.1 Europhysics Letters 2 class]
+
+
+% $Id: epl2-authors.cls,v 1.7 2007/04/18 10:54:32 marco Exp $
+
+
+%%
+%% constants
+%%
+\def\epl@shortname{epl}
+\def\epl@copyrighter{EPLA}
+\newcommand\contentsname{Contents}
+\newcommand\listfigurename{List of Figures}
+\newcommand\listtablename{List of Tables}
+\newcommand\refname{REFERENCES}
+\newcommand\indexname{Index}
+\newcommand\figurename{Fig.}
+\newcommand\tablename{Table}
+\newcommand\partname{Part}
+\newcommand\appendixname{Appendix}
+\newcommand\abstractname{Abstract}
+\def\today{\ifcase\month\or
+  January\or February\or March\or April\or May\or June\or
+  July\or August\or September\or October\or November\or December\fi
+  \space\number\day, \number\year}
+
+%%
+%% flags
+%%
+\newif\ifepl@cite\epl@citefalse
+\newif\ifepl@bm\epl@bmfalse
+\newif\ifepl@graphicx\epl@graphicxfalse
+\newif\ifepl@figures\epl@figuresfalse
+\newif\ifepl@reply\epl@replyfalse
+\newif\ifepl@comment\epl@commentfalse
+\newif\ifepl@noabstr\epl@noabstrfalse
+
+%% [marco]
+\newif\ifepl@dedication\epl@dedicationfalse
+
+%%
+%% styles support
+%%
+%% [marco]
+\def\doublecol{doublecol}
+\def\orcish{orcish}
+\def\tight{tight}
+\def\ugly{ugly}
+\def\pretty{pretty}
+\def\headleft{head-left}
+\def\headcentre{head-centre}
+\def\headclassic{head-classic}
+\def\pageid{page-id}
+\def\pageclassic{page-classic}
+
+%% [marco]
+\def\epl@stylemark{%
+  \hbox to0pt{%
+    \hskip0em
+    \vbox to 0pt{%
+     \vss
+      \hbox{\sffamily\huge
+%	\textbf{epl draft} %
+      }%
+       \vskip6ex
+    }%
+    \hss
+  }%
+}
+%%
+%% options
+%%
+
+%% [marco]
+\DeclareOption{doublecol}{\@twocolumntrue\let\epl@styleC\doublecol}
+\DeclareOption{orcish}{\@twocolumnfalse\let\epl@styleC\orcish}
+\DeclareOption{tight}{\@twocolumnfalse\let\epl@styleC\tight}
+\DeclareOption{ugly}{\let\epl@styleA\ugly}
+\DeclareOption{pretty}{\let\epl@styleA\pretty}
+\DeclareOption{left}{\let\epl@styleB\headleft}
+\DeclareOption{centre}{\let\epl@styleB\headcentre}
+\DeclareOption{classic}{\let\epl@styleB\headclassic}
+\DeclareOption{pageid}{\let\epl@stylepage\pageid}
+\DeclareOption{pageclassic}{\let\epl@stylepage\pageclassic}
+\DeclareOption{cite}{\epl@citetrue}
+\DeclareOption{nocite}{\epl@citefalse}
+\DeclareOption{bm}{\epl@bmtrue}
+\DeclareOption{nobm}{\epl@bmfalse}
+\DeclareOption{graphicx}{\epl@graphicxtrue}
+\DeclareOption{nographicx}{\epl@graphicxfalse}
+\DeclareOption{figures}{\epl@figurestrue\epl@graphicxtrue}
+\DeclareOption{nofigures}{\epl@figuresfalse}
 \DeclareOption{a4paper}
    {\setlength\paperheight {297mm}%
     \setlength\paperwidth  {210mm}}
@@ -78,49 +142,211 @@
 \DeclareOption{executivepaper}
    {\setlength\paperheight {10.5in}%
     \setlength\paperwidth  {7.25in}}
-\DeclareOption{landscape}
-   {\setlength\@tempdima   {\paperheight}%
-    \setlength\paperheight {\paperwidth}%
-    \setlength\paperwidth  {\@tempdima}}
+\DeclareOption{draft}{\setlength\overfullrule{5pt}}
+\DeclareOption{final}{\setlength\overfullrule{0pt}}
+%\DeclareOption{onecolumn}{\@twocolumnfalse}
+%\DeclareOption{twocolumn}{\@twocolumntrue}
+\DeclareOption{reply}{%
+  \epl@replytrue
+  \epl@noabstrtrue
+}
+\DeclareOption{comment}{%
+  \epl@commenttrue
+  \epl@noabstrtrue
+}
+
+
+\@twosidetrue\@mparswitchtrue % [mala] was option twoside
+\ExecuteOptions{a4paper,draft,cite,bm,graphicx,tight,ugly,left,pageid}
+\ProcessOptions
+
+%%
+%% modules
+%%
+\RequirePackage{color}
+\newcommand{\revision}[1]{{\color{red}{#1}}}
+
+\ifepl@graphicx
+  \RequirePackage{graphicx}
 \fi
-\if@compatibility
-  \renewcommand\@ptsize{0}
+\ifepl@bm
+  \RequirePackage{bm}
 \else
-\DeclareOption{10pt}{\renewcommand\@ptsize{0}}
+  \let\bm\mathbf
 \fi
-\DeclareOption{11pt}{\renewcommand\@ptsize{1}}
-\DeclareOption{12pt}{\renewcommand\@ptsize{2}}
-\if@compatibility\else
-\DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse}
+\ifepl@cite
+  \RequirePackage{cite}%
+  \renewcommand{\citeleft}{\bgroup\normalfont[}%
+  \renewcommand{\citeright}{]\egroup}%
 \fi
-\DeclareOption{twoside}{\@twosidetrue  \@mparswitchtrue}
-\DeclareOption{draft}{\setlength\overfullrule{5pt}}
-\if@compatibility\else
-\DeclareOption{final}{\setlength\overfullrule{0pt}}
+
+%%%
+%%% from size10.clo
+%%%
+
+%%
+%% font sizes
+%%
+\renewcommand\normalsize{%
+   \@setfontsize\normalsize\@xpt\@xiipt
+   \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
+   \abovedisplayshortskip \z@ \@plus3\p@
+   \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
+   \belowdisplayskip \abovedisplayskip
+   \let\@listi\@listI}
+\normalsize
+\newcommand\small{%
+   \@setfontsize\small\@ixpt{11}%
+   \abovedisplayskip 8.5\p@ \@plus3\p@ \@minus4\p@
+   \abovedisplayshortskip \z@ \@plus2\p@
+   \belowdisplayshortskip 4\p@ \@plus2\p@ \@minus2\p@
+   \def\@listi{\leftmargin\leftmargini
+               \topsep 4\p@ \@plus2\p@ \@minus2\p@
+               \parsep 2\p@ \@plus\p@ \@minus\p@
+               \itemsep \parsep}%
+   \belowdisplayskip \abovedisplayskip
+}
+\newcommand\footnotesize{%
+   \@setfontsize\footnotesize\@viiipt{9.5}%
+   \abovedisplayskip 6\p@ \@plus2\p@ \@minus4\p@
+   \abovedisplayshortskip \z@ \@plus\p@
+   \belowdisplayshortskip 3\p@ \@plus\p@ \@minus2\p@
+   \def\@listi{\leftmargin\leftmargini
+               \topsep 3\p@ \@plus\p@ \@minus\p@
+               \parsep 2\p@ \@plus\p@ \@minus\p@
+               \itemsep \parsep}%
+   \belowdisplayskip \abovedisplayskip
+}
+\newcommand\scriptsize{\@setfontsize\scriptsize\@viipt\@viiipt}
+\newcommand\tiny{\@setfontsize\tiny\@vpt\@vipt}
+\newcommand\large{\@setfontsize\large\@xiipt{14}}
+\newcommand\Large{\@setfontsize\Large\@xivpt{18}}
+\newcommand\LARGE{\@setfontsize\LARGE\@xviipt{22}}
+\newcommand\huge{\@setfontsize\huge\@xxpt{25}}
+\newcommand\Huge{\@setfontsize\Huge\@xxvpt{30}}
+
+%%
+%% misc parameters
+%%
+\if@twocolumn
+  \setlength\parindent{1em}
+\else
+  \setlength\parindent{15\p@}
 \fi
-\DeclareOption{titlepage}{\@titlepagetrue}
-\if@compatibility\else
-\DeclareOption{notitlepage}{\@titlepagefalse}
-\fi
-\if@compatibility\else
-\DeclareOption{onecolumn}{\@twocolumnfalse}
-\fi
-\DeclareOption{twocolumn}{\@twocolumntrue}
-\DeclareOption{leqno}{\input{leqno.clo}}
-\DeclareOption{fleqn}{\input{fleqn.clo}}
-\DeclareOption{openbib}{%
-  \AtEndOfPackage{%
-   \renewcommand\@openbib@code{%
-      \advance\leftmargin\bibindent
-      \itemindent -\bibindent
-      \listparindent \itemindent
+\setlength\smallskipamount{3\p@ \@plus 1\p@ \@minus 1\p@}
+\setlength\medskipamount{6\p@ \@plus 2\p@ \@minus 2\p@}
+\setlength\bigskipamount{12\p@ \@plus 4\p@ \@minus 4\p@}
+\setlength\headheight{12\p@}
+\setlength\headsep   {24\p@}
+\setlength\topskip   {10\p@}
+\setlength\footskip{30\p@}
+\setlength\maxdepth{.5\topskip}
+
+%%
+%% textwidth and textheight
+%%
+\ifx\epl@styleC\doublecol
+  \setlength\textwidth{180mm}
+  \setlength\textheight{56\baselineskip}
+\fi
+\ifx\epl@styleC\orcish
+  \setlength\textwidth{180mm}
+  \setlength\textheight{56\baselineskip}
+\fi
+\ifx\epl@styleC\tight
+  \setlength\textwidth{140mm}
+  \setlength\textheight{52\baselineskip}
+\fi
+\@settopoint\textwidth
+\addtolength\textheight{\topskip}
+
+%%
+%% calculating marginpars parameters (and sidemargins?)
+%%
+\if@twocolumn
+ \setlength\marginparsep {10\p@}
+\else
+  \setlength\marginparsep{11\p@}
+\fi
+\setlength\marginparpush{5\p@}
+%
+\setlength\@tempdima        {\paperwidth}
+\addtolength\@tempdima      {-\textwidth}
+\setlength\oddsidemargin    {.4\@tempdima}
+\addtolength\oddsidemargin  {-1in}
+\setlength\marginparwidth   {.6\@tempdima}
+\addtolength\marginparwidth {-\marginparsep}
+\addtolength\marginparwidth {-0.4in}
+\ifdim \marginparwidth >2in
+   \setlength\marginparwidth{2in}
+\fi
+\@settopoint\oddsidemargin
+\@settopoint\marginparwidth
+%
+\setlength\evensidemargin  {\paperwidth}
+\addtolength\evensidemargin{-2in}
+\addtolength\evensidemargin{-\textwidth}
+\addtolength\evensidemargin{-\oddsidemargin}
+\@settopoint\evensidemargin
+%
+\setlength\topmargin{\paperheight}
+\addtolength\topmargin{-2in}
+\addtolength\topmargin{-\headheight}
+\addtolength\topmargin{-\headsep}
+\addtolength\topmargin{-\textheight}
+\addtolength\topmargin{-\footskip}     % this might be wrong!
+\addtolength\topmargin{-.5\topmargin}
+\@settopoint\topmargin
+%
+\setlength\footnotesep{6.65\p@}
+\setlength{\skip\footins}{9\p@ \@plus 4\p@ \@minus 2\p@}
+\setlength\floatsep    {12\p@ \@plus 2\p@ \@minus 2\p@}
+\setlength\textfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
+\setlength\intextsep   {12\p@ \@plus 2\p@ \@minus 2\p@}
+\setlength\dblfloatsep    {12\p@ \@plus 2\p@ \@minus 2\p@}
+\setlength\dbltextfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
+\setlength\@fptop{0\p@ \@plus 1fil}
+\setlength\@fpsep{8\p@ \@plus 2fil}
+\setlength\@fpbot{0\p@ \@plus 1fil}
+\setlength\@dblfptop{0\p@ \@plus 1fil}
+\setlength\@dblfpsep{8\p@ \@plus 2fil}
+\setlength\@dblfpbot{0\p@ \@plus 1fil}
+\setlength\partopsep{2\p@ \@plus 1\p@ \@minus 1\p@}
+\def\@listi{\leftmargin\leftmargini
+            \parsep 4\p@ \@plus2\p@ \@minus\p@
+            \topsep 8\p@ \@plus2\p@ \@minus4\p@
+            \itemsep4\p@ \@plus2\p@ \@minus\p@}
+\let\@listI\@listi
+\@listi
+\def\@listii {\leftmargin\leftmarginii
+              \labelwidth\leftmarginii
+              \advance\labelwidth-\labelsep
+              \topsep    4\p@ \@plus2\p@ \@minus\p@
+              \parsep    2\p@ \@plus\p@  \@minus\p@
+              \itemsep   \parsep}
+\def\@listiii{\leftmargin\leftmarginiii
+              \labelwidth\leftmarginiii
+              \advance\labelwidth-\labelsep
+              \topsep    2\p@ \@plus\p@\@minus\p@
       \parsep \z@
-      }%
-   \renewcommand\newblock{\par}}%
-}
-\ExecuteOptions{letterpaper,10pt,oneside,onecolumn,final}
-\ProcessOptions
-\input{size1\@ptsize.clo}
+              \partopsep \p@ \@plus\z@ \@minus\p@
+              \itemsep   \topsep}
+\def\@listiv {\leftmargin\leftmarginiv
+              \labelwidth\leftmarginiv
+              \advance\labelwidth-\labelsep}
+\def\@listv  {\leftmargin\leftmarginv
+              \labelwidth\leftmarginv
+              \advance\labelwidth-\labelsep}
+\def\@listvi {\leftmargin\leftmarginvi
+              \labelwidth\leftmarginvi
+              \advance\labelwidth-\labelsep}
+%%/
+%%/ end of size10.clo
+%%/
+
+%%
+%% misc parameters
+%%
 \setlength\lineskip{1\p@}
 \setlength\normallineskip{1\p@}
 \renewcommand\baselinestretch{}
@@ -128,95 +354,345 @@
 \@lowpenalty   51
 \@medpenalty  151
 \@highpenalty 301
-\setcounter{topnumber}{2}
-\renewcommand\topfraction{.7}
+
+%%
+%% stretching
+%%
+\newlength{\epl@stretchminskip}\setlength{\epl@stretchminskip}{1.5pt}
+\newlength{\epl@stretchmedskip}\setlength{\epl@stretchmedskip}{3pt}
+\newlength{\epl@stretchmaxskip}\setlength{\epl@stretchmaxskip}{6pt}
+%
+\newlength{\epl@stretchpretitle}
+\newlength{\epl@stretchpreauthor}
+\newlength{\epl@stretchpreinst}
+\newlength{\epl@stretchpredates}
+\newlength{\epl@stretchprepacs}
+\newlength{\epl@stretchpreabst}
+\newlength{\epl@stretchprerule}
+\newlength{\epl@stretchpostrule}
+%
+\newcommand{\stretchpretitle}[1]{\epl@stretchpretitle=#1\epl@stretchmedskip}
+\newcommand{\stretchpreauthor}[1]{\epl@stretchpreauthor=#1\epl@stretchmedskip}
+\newcommand{\stretchpreinst}[1]{\epl@stretchpreinst=#1\epl@stretchmedskip}
+%% BUG: 'predates' is quite unlucky
+\newcommand{\stretchpredates}[1]{\epl@stretchpredates=#1\epl@stretchmedskip}
+\newcommand{\stretchprepacs}[1]{\epl@stretchprepacs=#1\epl@stretchmedskip}
+\newcommand{\stretchpreabst}[1]{\epl@stretchpreabst=#1\epl@stretchmedskip}
+\newcommand{\stretchprerule}[1]{\epl@stretchprerule=#1\epl@stretchminskip}
+\newcommand{\stretchpostrule}[1]{\epl@stretchpostrule=#1\epl@stretchmedskip}
+%
+\newcommand{\stretchfront}[1]{%
+  \stretchpretitle{#1}%
+  \stretchpreauthor{#1}%
+  \stretchpreinst{#1}%
+  \stretchpredates{#1}%
+  \stretchprepacs{#1}%
+  \stretchpreabst{#1}%
+  \stretchprerule{#1}%
+  \stretchpostrule{#1}%
+}
+%
+\newlength{\epl@prebiblio}\setlength{\epl@prebiblio}{18pt plus4pt minus2pt}
+\newlength{\epl@postbiblio}\setlength{\epl@postbiblio}{12pt plus2pt minus2pt}
+%
+\newcommand{\stretchprebib}[1]{%
+  \addtolength{\epl@prebiblio}{#1\epl@stretchmedskip}%
+}
+\newcommand{\stretchpostbib}[1]{%
+  \addtolength{\epl@postbiblio}{#1\epl@stretchmedskip}%
+}
+%
+\newcommand{\stretchtail}[1]{%
+  \stretchprebib{#1}%
+  \stretchpostbib{#1}%
+}
+%
+\newcommand{\stretchall}[1]{%
+  \stretchfront{#1}%
+  \stretchtail{#1}%
+}
+%%
+%% floats parameters
+%%
+\setcounter{topnumber}{1}
+\renewcommand\topfraction{.97}
+\ifx\epl@styleC\doublecol
+  \setcounter{bottomnumber}{0}
+\else
 \setcounter{bottomnumber}{1}
-\renewcommand\bottomfraction{.3}
+\fi
+\renewcommand\bottomfraction{.97}
 \setcounter{totalnumber}{3}
-\renewcommand\textfraction{.2}
-\renewcommand\floatpagefraction{.5}
+\renewcommand\textfraction{.03}
+\renewcommand\floatpagefraction{.88}
 \setcounter{dbltopnumber}{2}
 \renewcommand\dbltopfraction{.7}
 \renewcommand\dblfloatpagefraction{.5}
-\if@twoside
-  \def\ps@headings{%
-      \let\@oddfoot\@empty\let\@evenfoot\@empty
-      \def\@evenhead{\thepage\hfil\slshape\leftmark}%
-      \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
-      \let\@mkboth\markboth
-    \def\sectionmark##1{%
-      \markboth {\MakeUppercase{%
-        \ifnum \c@secnumdepth >\z@
-          \thesection\quad
-        \fi
-        ##1}}{}}%
-    \def\subsectionmark##1{%
-      \markright {%
-        \ifnum \c@secnumdepth >\@ne
-          \thesubsection\quad
+
+%%
+%% pagestyles
+%%
+\def\epl@headrule{%
+  \hbox to0pt{%
+    \vbox to0pt{%
+      \vskip6pt
+      \hbox to\textwidth{\hrulefill}%
+      \vss
+    }%
+    \hss
+  }%
+}
+\def\ps@epl{%
+  \def\@oddfoot{\hfil{\normalsize\thepage}\hfil}%
+  \def\@evenfoot{\hfil{\normalsize\thepage}\hfil}%
+  \ifx\epl@styleB\headleft
+%% [marco]
+    \def\@oddhead{\epl@headrule\hfil\epl@shorttitle}%
+  \fi
+  \ifx\epl@styleB\headcentre
+    \def\@oddhead{\epl@headrule\epl@shorttitle}%
+  \fi
+  \ifx\epl@styleB\headclassic
+    \def\@oddhead{\epl@headrule\epl@shortauthor\hfil\epl@shorttitle}%
+  \fi
+%% [marco]
+  \def\@evenhead{\epl@headrule\epl@shortauthor\hfil}
+  \ifepl@comment
+  \def\@evenhead{\epl@headrule Comment \hfil}%
         \fi
-        ##1}}}
-\else
-  \def\ps@headings{%
+  \ifepl@reply
+  \def\@evenhead{\epl@headrule Reply \hfil}%
+  \fi
+
+  \let\@mkboth\@gobbletwo
+  \let\sectionmark\@gobble
+  \let\subsectionmark\@gobble
+}
+\def\ps@eplfirst{%
+  \def\@oddfoot{%
+   \hfil{\normalsize\thepage}\hfil
+  }%
+  \def\@evenfoot{\hfil{\normalsize\thepage}\hfil}%
+  \def\@oddhead{%
+    \epl@stylemark
+    \epl@headrule
+    \hfil
+    \ifx\epl@styleA\pretty
+      {\sffamily\bfseries\large\epl@shortname}%
+    \fi
+  }
+  \let\@evenhead\@oddhead
+  \let\@mkboth\@gobbletwo
+  \let\sectionmark\@gobble
+  \let\subsectionmark\@gobble
+}
+\def\ps@eplplain{%
+  \def\@oddfoot{\hfil{\normalsize\thepage}\hfil}%
+  \def\@evenfoot{\hfil{\normalsize\thepage}\hfil}%
+  \let\@oddhead\@empty
+  \let\@evenhead\@empty
+  \let\@mkboth\@gobbletwo
+  \let\sectionmark\@gobble
+  \let\subsectionmark\@gobble
+}
+\def\ps@eplempty{%
     \let\@oddfoot\@empty
-    \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
-    \let\@mkboth\markboth
-    \def\sectionmark##1{%
-      \markright {\MakeUppercase{%
-        \ifnum \c@secnumdepth >\m@ne
-          \thesection\quad
-        \fi
-        ##1}}}}
-\fi
-\def\ps@myheadings{%
-    \let\@oddfoot\@empty\let\@evenfoot\@empty
-    \def\@evenhead{\thepage\hfil\slshape\leftmark}%
-    \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
+  \let\@evenfoot\@empty
+  \let\@oddhead\@empty
+  \let\@evenhead\@empty
     \let\@mkboth\@gobbletwo
     \let\sectionmark\@gobble
     \let\subsectionmark\@gobble
     }
-  \if@titlepage
-  \newcommand\maketitle{\begin{titlepage}%
-  \let\footnotesize\small
-  \let\footnoterule\relax
-  \let \footnote \thanks
-  \null\vfil
-  \vskip 60\p@
-  \begin{center}%
-    {\LARGE \@title \par}%
-    \vskip 3em%
-    {\large
-     \lineskip .75em%
-      \begin{tabular}[t]{c}%
-        \@author
-      \end{tabular}\par}%
-      \vskip 1.5em%
-    {\large \@date \par}%       % Set date in \large size.
-  \end{center}\par
-  \@thanks
-  \vfil\null
-  \end{titlepage}%
-  \setcounter{footnote}{0}%
-  \global\let\thanks\relax
-  \global\let\maketitle\relax
-  \global\let\@thanks\@empty
-  \global\let\@author\@empty
-  \global\let\@date\@empty
-  \global\let\@title\@empty
-  \global\let\title\relax
-  \global\let\author\relax
-  \global\let\date\relax
-  \global\let\and\relax
+
+%%
+%% banner
+%%
+\AtBeginDocument{\label{epl@firstpage}}
+\AtEndDocument{\label{epl@lastpage}}
+%%
+\newcommand{\vol}[1]{\gdef\epl@vol{#1}}
+\newcommand{\issue}[1]{\gdef\epl@issue{#1}}
+\renewcommand{\year}[1]{\gdef\epl@year{#1}}
+\newcommand{\firstpage}[1]{%
+  \ifx\epl@stylepage\pageclassic
+    \setcounter{page}{#1}%
+    \let\epl@firstlastpp\epl@firstlastpp@proper
+  \else
+    \setcounter{page}{1}%
+    \def\epl@firstlastpp{\epl@pgid}%
+  \fi
 }
+\newcommand{\doi}[1]{\gdef\epl@doi{#1}}
+\newcommand{\pgid}[1]{\gdef\epl@pgid{#1}}
+%%
+\newcommand{\received}[1]{\gdef\epl@receiveddate{#1}}
+\newcommand{\accepted}[1]{\gdef\epl@accepteddate{#1}}
+\newcommand{\acceptedinfinalform}[1]{\gdef\epl@accepteddate{in final form #1}}
+\newcommand{\paperpub}[1]{\gdef\epl@paperpubdate{#1}}
+\newcommand{\onlinepub}[1]{\gdef\epl@onlinepubdate{#1}}
+%%
+
+%
+% dedication [marco]
+%
+\newcommand{\dedication}[1]{%
+  \epl@dedicationtrue
+  \def\epl@dedication{\epl@dedication@makeup{#1}}
+}
+\def\epl@dedication@makeup#1{%
+  \begingroup
+  \raggedleft
+  \small
+  \itshape
+  #1
+  \par
+  \endgroup
+}
+
+
+\def\epl@vol{*** No volume ***}
+\def\epl@issue{*** No issue ***}
+\def\epl@year{*** No year ***}
+\def\epl@firstpage{\pageref{epl@firstpage}}
+\def\epl@lastpage{\pageref{epl@lastpage}}
+\def\epl@firstlastpp{*** No first page ***}
+\def\epl@firstlastpp@proper{%
+  \xdef\epl@tmpa{\epl@firstpage}%
+  \xdef\epl@tmpb{\epl@lastpage}%
+  \ifx\epl@tmpa\epl@tmpb
+    p.\ \epl@firstpage
 \else
+    pp.\ \epl@firstpage--\epl@lastpage
+  \fi
+}
+\def\epl@doi{*** No doi ***}
+\def\epl@pgid{*** No pgid ***}
+%%
+\def\epl@receiveddate{*** No date ***}
+\def\epl@accepteddate{*** No date ***}
+\def\epl@paperpubdate{*** No date ***}
+\def\epl@onlinepubdate{*** No date ***}
+%%
+\newcommand{\info}[5]{%
+  \vol{#1}%
+  \issue{#2}%
+  \year{#3}%
+  \firstpage{#4}%
+  \paperpubdate{#5}%
+}
+
+%% [marco]
+\def\epl@banner{%
+
+\vskip30pt
+
+    \ifepl@comment
+    \raisebox{-10pt}[0pt][0pt]{%
+    \large{\textit{Comment}}%
+    }
+    \fi
+    \ifepl@reply
+    \raisebox{-10pt}[0pt][0pt]{%
+    \large{\textit{Reply}}%
+    }
+    \fi
+
+}
+
+%%
+%% title, shorttitle, subtitle
+%%
+\def\title#1{\gdef\epl@title{#1}\gdef\epl@shorttitle{\let\\\relax #1}}
+\def\epl@title{*** Missing title ***}
+\def\shorttitle#1{\gdef\epl@shorttitle{#1}}
+\let\epl@shorttitle\epl@title
+\def\subtitle#1{\gdef\epl@subtitle{#1}}
+\let\epl@subtitle\@empty
+
+%%
+%% author, shortauthor
+%%
+\def\author#1{\gdef\epl@author{#1}\gdef\epl@shortauthor{#1}}
+\def\epl@author{*** Missing author ***}
+\def\shortauthor#1{\gdef\epl@shortauthor{#1}}
+\let\epl@shortauthor\epl@author
+\def\epl@author@intitle{%
+  \setcounter{epl@cnt@and}{0}
+  {\scshape\epl@author}\par
+  \epl@writeaux@cnt@and{\theepl@cnt@and}%
+}
+%%
+%% \etal
+%%
+\newcommand{\etal}{\unskip\ \emph{et al.}}
+
+%%
+%% \and
+%%
+\newcounter{epl@cnt@and}
+\setcounter{epl@cnt@and}{0}
+\newcounter{epl@cnt@and@aux}
+\setcounter{epl@cnt@and@aux}{0}
+\def\epl@and#1{\ifnum#1<\theepl@cnt@and@aux,\else{\normalfont\ and}\fi}
+\def\epl@writeaux@cnt@and#1{%
+  \protected@write\@auxout{}{%
+    \string\setcounter{epl@cnt@and@aux}{#1}%
+  }%
+}
+\renewcommand{\and}{%
+  \unskip
+  \stepcounter{epl@cnt@and}%
+  \epl@and{\theepl@cnt@and}%
+  \
+}
+
+%%
+%% institute
+%%
+\newcommand{\institute}[1]{\gdef\epl@institute{#1}}
+\def\epl@institute{*** Missing institute ***}
+\def\epl@institute@makeup#1{%
+  {\itshape #1}\par
+}
+
+%%
+%% pacs
+%%
+\newlength{\epl@pacsindent}
+\setlength{\epl@pacsindent}{7.4em}
+\newcommand{\pacs}[2]{%
+  \let\epl@pacsmissing\@empty
+  \protected@xdef\epl@pacsset{\epl@pacsset\epl@pacs{#1}{#2}}%
+}
+\def\epl@pacsmissing{\hbox to\epl@pacsindent{*** Missing PACS ***\hss}\par}
+\def\epl@pacsset{\epl@pacsmissing}
+\def\epl@pacs#1#2{%
+  \leavevmode\hbox to\epl@pacsindent{{\scriptsize PACS}\hskip0.6em\texttt{#1}\hfill\ --\ }#2\par
+}
+%%
+%% abstract
+%%
+\def\abstract#1{\gdef\epl@abstract{#1}}
+\def\epl@abstract{*** Missing author ***}
+
+%%
+%% \maketitle
+%%
 \newcommand\maketitle{\par
   \begingroup
-    \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
-    \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
+    \parskip0pt
+%% [marco]
+    \def\mth##1{\boldmath\ensuremath{\mathsf{##1}}}
+    \def\chem##1{\boldmath\ensuremath{\mathsf{##1}}}
+    \renewcommand\thefootnote{\@alph\c@footnote}%
+    \def\@makefnmark{\@textsuperscript{\normalfont(\@thefnmark)}}
     \long\def\@makefntext##1{\parindent 1em\noindent
             \hb@xt@1.8em{%
-                \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
+                \hss\@textsuperscript{\normalfont(\@thefnmark)}}##1}%
+    \let\footnote\thanks
+    \def\inst##1{\unskip${}^{##1}$\hspace{0.5em}\ignorespaces}%
+    \def\[##1]{\inst{##1}}%
     \if@twocolumn
       \ifnum \col@number=\@ne
         \@maketitle
@@ -228,107 +704,206 @@
       \global\@topnum\z@   % Prevents figures from going at top of page.
       \@maketitle
     \fi
-    \thispagestyle{plain}\@thanks
+    \thispagestyle{eplfirst}%
+    \@thanks
   \endgroup
   \setcounter{footnote}{0}%
-  \global\let\thanks\relax
   \global\let\maketitle\relax
   \global\let\@maketitle\relax
-  \global\let\@thanks\@empty
-  \global\let\@author\@empty
-  \global\let\@date\@empty
-  \global\let\@title\@empty
   \global\let\title\relax
+  \global\let\epl@title\@empty
   \global\let\author\relax
-  \global\let\date\relax
+  \global\let\epl@author\@empty
+  \global\let\thanks\relax
+  \global\let\@thanks\@empty
   \global\let\and\relax
-}
+  \global\let\institute\relax
+  \global\let\epl@institute\@empty
+  \global\let\inst\relax
+  \global\let\[\relax
+} %\maketitle
+
+%%
+%% \@maketitle
+%%
+\newlength{\epl@maketitle@smallskip}\setlength{\epl@maketitle@smallskip}{9pt}
+\newlength{\epl@maketitle@medskip}\setlength{\epl@maketitle@medskip}{13pt}
+\newlength{\epl@maketitle@bigskip}\setlength{\epl@maketitle@bigskip}{18pt}
+%% [marco]
+\newlength{\epl@dedication@skip}\setlength{\epl@dedication@skip}{1pc plus2pt minus1pt}
+
 \def\@maketitle{%
   \newpage
+%  \sloppy
+  \parindent\z@
   \null
-  \vskip 2em%
-  \begin{center}%
-  \let \footnote \thanks
-    {\LARGE \@title \par}%
-    \vskip 1.5em%
-    {\large
-      \lineskip .5em%
-      \begin{tabular}[t]{c}%
-        \@author
-      \end{tabular}\par}%
-    \vskip 1em%
-    {\large \@date}%
-  \end{center}%
+  %% BUG: next vskip a bit hacky...
+  \vskip-4ex
+  %% BUG: could not trace out the origin of an extra vspace
+  %% in 'orcish' and 'tight' mode.  had to counterbalance it here
+  \ifx\epl@styleC\doublecol\else
+    \vskip-2.4ex
+  \fi
+  {\small\epl@banner\par}%
+  \vskip\epl@maketitle@bigskip
+  \vskip\epl@stretchpretitle
+  {\sloppy\LARGE\sffamily\bfseries\epl@title\par}%
+  {\sloppy\vskip6pt\large\sffamily\bfseries\epl@subtitle\par}%
+  \vskip\epl@maketitle@bigskip
+  \vskip\epl@stretchpreauthor
+  {\scshape\epl@author@intitle\par}%
+  \vskip\epl@maketitle@smallskip
+  \vskip\epl@stretchpreinst
+  {\itshape\epl@institute\par}%
+  \vskip\epl@maketitle@smallskip
+  \bgroup
+    %% BUG: study \leftskip and \rightskip.
+    %% and \leftmargin and \rightmargin..
+    \ifx\epl@styleC\tight\else
+      \addtolength\leftskip{4em}%
+      \addtolength\hsize{-8em}%
+    \fi
+    \sloppy
+    \vskip\epl@stretchpredates
+    \bgroup
+
+%% [marco]
+%      received \epl@receiveddate; accepted \epl@accepteddate\par
+%      published online \epl@onlinepubdate
+     \quad
+     \quad
+
+      \ifx\epl@styleA\pretty; published \epl@paperpubdate\fi\par
+    \egroup
+    \vskip\epl@maketitle@smallskip
+    \vskip\epl@stretchprepacs
+    \bgroup
+      \setlength\parindent{-\epl@pacsindent}%
+      \addtolength\leftskip{\epl@pacsindent}%
+      \small
+      \epl@pacsset
+    \egroup
+    \ifepl@noabstr\else
+    \vskip\epl@maketitle@smallskip
+    \vskip\epl@stretchpreabst
+    \bgroup
+      \small
+      \textbf{\abstractname.}~-
+      \epl@abstract
   \par
-  \vskip 1.5em}
+    \egroup
 \fi
-\setcounter{secnumdepth}{3}
-\newcounter {part}
-\newcounter {section}
-\newcounter {subsection}[section]
-\newcounter {subsubsection}[subsection]
-\newcounter {paragraph}[subsubsection]
-\newcounter {subparagraph}[paragraph]
-\renewcommand \thepart {\@Roman\c@part}
-\renewcommand \thesection {\@arabic\c@section}
-\renewcommand\thesubsection   {\thesection.\@arabic\c@subsection}
-\renewcommand\thesubsubsection{\thesubsection .\@arabic\c@subsubsection}
-\renewcommand\theparagraph    {\thesubsubsection.\@arabic\c@paragraph}
-\renewcommand\thesubparagraph {\theparagraph.\@arabic\c@subparagraph}
-\newcommand\part{%
-   \if@noskipsec \leavevmode \fi
+
+%% [marco 1.0]
+   \ifepl@dedication
+        \vspace{\epl@dedication@skip}
+        \epl@dedication
+      \fi
+
+%% [marco]
+   \bgroup
+   \vskip10pt
+   \hskip0pt
+   \hbox to0pt{\quad \hss}
+   \egroup
+
+  \egroup
+  \vskip\epl@maketitle@medskip
+  \vskip\epl@stretchprerule
+  \hrule\@width\textwidth
+  \vskip\epl@maketitle@bigskip
+  \vskip\epl@stretchpostrule
+}
+
+%%
+%% dash and dot in captions, sections, etc.
+%%
+\def\epl@dash{--}
+\def\epl@dot{.}
+\newcommand{\nodash}{\gdef\epl@dash{}}
+\newcommand{\dash}{\gdef\epl@dash{--}}
+\newcommand{\nodot}{\gdef\epl@dot{}}
+\newcommand{\godot}{\gdef\epl@dot{.}}
+
+%%
+%% sectioning
+%%
+\newlength\epl@section@vskip
+\setlength\epl@section@vskip{6pt plus2pt minus0pt}
+\newlength\epl@section@hsep
+\setlength\epl@section@hsep{10pt plus1pt minus0pt}
+\newlength\epl@section@indent
+\setlength\epl@section@indent{\parindent}
+\newlength\epl@subsection@vskip
+\setlength\epl@subsection@vskip{3pt plus1pt minus0pt}
+\newlength\epl@subsection@hsep
+\setlength\epl@subsection@hsep{10pt plus1pt minus0pt}
+\newlength\epl@subsection@indent
+\setlength\epl@subsection@indent{\parindent}
+\setcounter{secnumdepth}{0}
+\newcommand{\section}[1]{\epl@section{\epl@section@makeup{#1}}}
+\def\epl@section{%
+   \@startsection{section}{1}{\epl@section@indent}%
+                 {\epl@section@vskip}%
+                 {-\epl@section@hsep}%
+                 {\normalfont\normalsize\bfseries}%
+}
+\def\epl@section@makeup#1{#1\epl@dot\godot\ \epl@dash\dash}
+\newcommand{\subsection}[1]{\epl@subsection{\epl@subsection@makeup{#1}}}
+\def\epl@subsection{%
+   \@startsection{subsection}{1}{\epl@subsection@indent}%
+                 {\epl@subsection@vskip}%
+                 {-\epl@subsection@hsep}%
+                 {\normalfont\normalsize\itshape}%
+}
+\def\epl@subsection@makeup#1{#1\epl@dot\godot\ }
+\newcommand{\part}{\ClassError{epl}{No `part' sectioning allowed}}
+\newcommand{\subsubsection}{\ClassError{epl}{No subsubsections allowed}}
+\newcommand{\paragraph}{\ClassError{epl}{No paragraphs allowed}}
+\newcommand{\subparagraph}{\ClassError{epl}{No subparagraphs allowed}}
+
+%%
+%% acknowledgments
+%%
+\newcommand{\acknowledgments}{%
+  \par
+  \vspace{\epl@acknowledgments@skip}%
+  \centerline{$\ast\ast\ast$}%
+  \nopagebreak
+  \vspace{\epl@acknowledgments@skip}%
    \par
-   \addvspace{4ex}%
-   \@afterindentfalse
-   \secdef\@part\@spart}
-
-\def\@part[#1]#2{%
-    \ifnum \c@secnumdepth >\m@ne
-      \refstepcounter{part}%
-      \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
-    \else
-      \addcontentsline{toc}{part}{#1}%
-    \fi
-    {\parindent \z@ \raggedright
-     \interlinepenalty \@M
-     \normalfont
-     \ifnum \c@secnumdepth >\m@ne
-       \Large\bfseries \partname\nobreakspace\thepart
-       \par\nobreak
+}
+\let\acknowledgements\acknowledgments
+\let\stars\acknowledgments
+%%
+%% acknowledgments shrinking/enlarging
+%%
+\newlength\epl@acknowledgments@skip
+\setlength{\epl@acknowledgments@skip}{1pc plus2pt minus 2pt}
+\newcommand{\shrinkacknowledgments}[1]{%
+  \ifcase#1
+    \or\addtolength{\epl@acknowledgments@skip}{-6pt}%
+    \or\addtolength{\epl@acknowledgments@skip}{-12pt}%
+    \else\ClassWarning{epl}{%
+           Argument to \protect\shrinkacknowledgments\space must be 1 or 2%
+         }%
      \fi
-     \huge \bfseries #2%
-     \markboth{}{}\par}%
-    \nobreak
-    \vskip 3ex
-    \@afterheading}
-\def\@spart#1{%
-    {\parindent \z@ \raggedright
-     \interlinepenalty \@M
-     \normalfont
-     \huge \bfseries #1\par}%
-     \nobreak
-     \vskip 3ex
-     \@afterheading}
-\newcommand\section{\@startsection {section}{1}{\z@}%
-                                   {-3.5ex \@plus -1ex \@minus -.2ex}%
-                                   {2.3ex \@plus.2ex}%
-                                   {\normalfont\Large\bfseries}}
-\newcommand\subsection{\@startsection{subsection}{2}{\z@}%
-                                     {-3.25ex\@plus -1ex \@minus -.2ex}%
-                                     {1.5ex \@plus .2ex}%
-                                     {\normalfont\large\bfseries}}
-\newcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
-                                     {-3.25ex\@plus -1ex \@minus -.2ex}%
-                                     {1.5ex \@plus .2ex}%
-                                     {\normalfont\normalsize\bfseries}}
-\newcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
-                                    {3.25ex \@plus1ex \@minus.2ex}%
-                                    {-1em}%
-                                    {\normalfont\normalsize\bfseries}}
-\newcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
-                                       {3.25ex \@plus1ex \@minus .2ex}%
-                                       {-1em}%
-                                      {\normalfont\normalsize\bfseries}}
+}
+\newcommand{\enlargeacknowledgments}[1]{%
+  \ifcase#1
+    \or\addtolength{\epl@acknowledgments@skip}{6pt}%
+    \or\addtolength{\epl@acknowledgments@skip}{12pt}%
+    \else\ClassWarning{epl}{%
+           Argument to \protect\enlargeacknowledgments\space must be 1 or 2%
+         }%
+  \fi
+}
+\let\shrinkacknowledgements\shrinkacknowledgments
+\let\enlargeacknowledgements\enlargeacknowledgments
+
+%%
+%% lists
+%%
 \if@twocolumn
   \setlength\leftmargini  {2em}
 \else
@@ -372,29 +947,10 @@
                {\endlist}
 \newcommand*\descriptionlabel[1]{\hspace\labelsep
                                 \normalfont\bfseries #1}
-\if@titlepage
-  \newenvironment{abstract}{%
-      \titlepage
-      \null\vfil
-      \@beginparpenalty\@lowpenalty
-      \begin{center}%
-        \bfseries \abstractname
-        \@endparpenalty\@M
-      \end{center}}%
-     {\par\vfil\null\endtitlepage}
-\else
-  \newenvironment{abstract}{%
-      \if@twocolumn
-        \section*{\abstractname}%
-      \else
-        \small
-        \begin{center}%
-          {\bfseries \abstractname\vspace{-.5em}\vspace{\z@}}%
-        \end{center}%
-        \quotation
-      \fi}
-      {\if@twocolumn\else\endquotation\fi}
-\fi
+
+%%
+%% verse, quotation, quote
+%%
 \newenvironment{verse}
                {\let\\\@centercr
                 \list{}{\itemsep      \z@
@@ -415,61 +971,119 @@
                {\list{}{\rightmargin\leftmargin}%
                 \item\relax}
                {\endlist}
-\if@compatibility
-\newenvironment{titlepage}
-    {%
-      \if@twocolumn
-        \@restonecoltrue\onecolumn
-      \else
-        \@restonecolfalse\newpage
-      \fi
-      \thispagestyle{empty}%
-      \setcounter{page}\z@
-    }%
-    {\if@restonecol\twocolumn \else \newpage \fi
-    }
-\else
-\newenvironment{titlepage}
-    {%
-      \if@twocolumn
-        \@restonecoltrue\onecolumn
-      \else
-        \@restonecolfalse\newpage
-      \fi
-      \thispagestyle{empty}%
-      \setcounter{page}\@ne
-    }%
-    {\if@restonecol\twocolumn \else \newpage \fi
-     \if@twoside\else
-        \setcounter{page}\@ne
-     \fi
-    }
-\fi
+
+%%
+%% appendix
+%%
 \newcommand\appendix{\par
   \setcounter{section}{0}%
   \setcounter{subsection}{0}%
   \gdef\thesection{\@Alph\c@section}}
+
+%%
+%% tabular and tabbing parameters
+%%
 \setlength\arraycolsep{5\p@}
 \setlength\tabcolsep{6\p@}
 \setlength\arrayrulewidth{.4\p@}
 \setlength\doublerulesep{2\p@}
 \setlength\tabbingsep{\labelsep}
+
+%%
+%% misc (?) parameters
+%%
 \skip\@mpfootins = \skip\footins
 \setlength\fboxsep{3\p@}
 \setlength\fboxrule{.4\p@}
+
+%%
+%% equation counter [mala: why here?]
+%%
 \renewcommand \theequation {\@arabic\c@equation}
+
+%%
+%% floating equations [marco]
+%%
+\newcounter{epl@eqnfloat}
+\newcommand\inapp[1]{\global\in@pptrue
+		     \def\in@pp@sect{#1}}
+\newenvironment{eqnumber}[1]{%
+  \setcounter{epl@eqnfloat}{\value{equation}}%
+  \setcounter{equation}{#1}%
+  \addtocounter{equation}{-1}%
+  \ifin@pp\renewcommand\theequation{\in@pp@sect.\arabic{equation}}\global\in@ppfalse\fi%
+}{%
+  \setcounter{equation}{\value{epl@eqnfloat}}\par
+}
+\newenvironment{floatequation}{%
+  \stepcounter{equation}%
+  $$
+}{
+  $$
+  \aftergroup\ignorespaces
+}
+
+\newenvironment{widetext}{%
+                \begin{figure*}}{
+                \rule{18cm}{0.4pt}
+                \end{figure*}}
+
+
+
+%%
+%% figures
+%%
 \newcounter{figure}
 \renewcommand \thefigure {\@arabic\c@figure}
+\newcounter{epl@figures}
+\setcounter{epl@figures}{0}
 \def\fps@figure{tbp}
 \def\ftype@figure{1}
 \def\ext@figure{lof}
 \def\fnum@figure{\figurename\nobreakspace\thefigure}
-\newenvironment{figure}
-               {\@float{figure}}
-               {\end@float}
-\newenvironment{figure*}
-               {\@dblfloat{figure}}
-               {\end@dblfloat}
+\newenvironment{figure}{%
+  \ifepl@figures
+    \setcounter{epl@figures}{\thefigure}%
+  \fi
+  \@float{figure}%
+}{%
+  \end@float
+}
+\newenvironment{figure*}{%
+  \ifepl@figures
+    \setcounter{epl@figures}{\thefigure}%
+  \fi
+  \@dblfloat{figure}%
+}{%
+  \end@dblfloat
+}
+
+%%
+%% figure files inclusion
+%%
+\newcommand{\onefigure}[2][]{%
+  \stepcounter{epl@figures}%
+  \hbox to\hsize{\hfill\includegraphics*[#1]{#2}\hfill}%
+}
+\newcommand{\twofigures}[3][]{%
+  \hbox to\hsize{%
+    \vbox{%
+       \hbox{\includegraphics*[#1]{#2}}%
+       \stepcounter{epl@figures}%
+       \hbox{\small\figurename\ \theepl@figures}%
+    }%
+    \hfill
+    \vbox{%
+       \hbox{\includegraphics*[#1]{#3}}%
+       \stepcounter{epl@figures}%
+       \hbox{\small\figurename\ \theepl@figures}}%
+    \hfill
+  }%
+}
+
+%%
+%% tables
+%%
 \newcounter{table}
 \renewcommand\thetable{\@arabic\c@table}
 \def\fps@table{tbp}
@@ -482,20 +1096,38 @@
 \newenvironment{table*}
                {\@dblfloat{table}}
                {\end@dblfloat}
+
+%%
+%% [marco]
+%%
+
+\newenvironment{largetable}{
+               \begin{table*}
+               \begin{center}}{
+               \end{center}
+               \end{table*}}
+
+%%
+%% captions
+%%
 \newlength\abovecaptionskip
 \newlength\belowcaptionskip
 \setlength\abovecaptionskip{10\p@}
 \setlength\belowcaptionskip{0\p@}
 \long\def\@makecaption#1#2{%
   \vskip\abovecaptionskip
-  \sbox\@tempboxa{#1: #2}%
+  \sbox\@tempboxa{\small #1: #2}%
   \ifdim \wd\@tempboxa >\hsize
-    #1: #2\par
+    \small #1: #2\par
   \else
     \global \@minipagefalse
     \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
   \fi
   \vskip\belowcaptionskip}
+
+%%
+%% font commands
+%%
 \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
 \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
 \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
@@ -505,6 +1137,10 @@
 \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
 \DeclareRobustCommand*\cal{\@fontswitch\relax\mathcal}
 \DeclareRobustCommand*\mit{\@fontswitch\relax\mathnormal}
+
+%%
+%% toc
+%%
 \newcommand\@pnumwidth{1.55em}
 \newcommand\@tocrmarg{2.55em}
 \newcommand\@dotsep{4.5}
@@ -515,6 +1151,10 @@
            \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}%
     \@starttoc{toc}%
     }
+
+%%
+%% ? sectioning low level ?
+%%
 \newcommand*\l@part[2]{%
   \ifnum \c@tocdepth >-2\relax
     \addpenalty\@secpenalty
@@ -550,6 +1190,10 @@
 \newcommand*\l@subsubsection{\@dottedtocline{3}{3.8em}{3.2em}}
 \newcommand*\l@paragraph{\@dottedtocline{4}{7.0em}{4.1em}}
 \newcommand*\l@subparagraph{\@dottedtocline{5}{10em}{5em}}
+
+%%
+%% list of figure, list of tables
+%%
 \newcommand\listoffigures{%
     \section*{\listfigurename}%
       \@mkboth{\MakeUppercase\listfigurename}%
@@ -565,11 +1209,17 @@
     \@starttoc{lot}%
     }
 \let\l@table\l@figure
+
+%%
+%% bibliography
+%%
 \newdimen\bibindent
 \setlength\bibindent{1.5em}
-\newenvironment{thebibliography}[1]
-     {\section*{\refname}%
-      \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
+\newif\ifepl@gotand\epl@gotandfalse
+\newenvironment{thebibliography}[1]{%
+  \@startsection{section}{1}{0pt}{\epl@prebiblio}{\epl@postbiblio}%
+  {\noindent\normalfont\small\refname}{}%
+      \def\and{\unskip\global\epl@gotandtrue{\normalfont\ and\ }\ignorespaces}%
       \list{\@biblabel{\@arabic\c@enumiv}}%
            {\settowidth\labelwidth{\@biblabel{#1}}%
             \leftmargin\labelwidth
@@ -577,7 +1227,11 @@
             \@openbib@code
             \usecounter{enumiv}%
             \let\p@enumiv\@empty
-            \renewcommand\theenumiv{\@arabic\c@enumiv}}%
+            \renewcommand\theenumiv{\@arabic\c@enumiv}%
+	    \parsep0pt
+            \itemsep0pt
+	    \small
+      }%
       \sloppy
       \clubpenalty4000
       \@clubpenalty \clubpenalty
@@ -588,25 +1242,34 @@
       \endlist}
 \newcommand\newblock{\hskip .11em\@plus.33em\@minus.07em}
 \let\@openbib@code\@empty
+
+%%
+%% index
+%%
+\newif\if@restonecol
 \newenvironment{theindex}
                {\if@twocolumn
                   \@restonecolfalse
                 \else
                   \@restonecoltrue
                 \fi
+                \columnseprule \z@
+                \columnsep 35\p@
                 \twocolumn[\section*{\indexname}]%
                 \@mkboth{\MakeUppercase\indexname}%
                         {\MakeUppercase\indexname}%
-                \thispagestyle{plain}\parindent\z@
+                \thispagestyle{eplplain}\parindent\z@
                 \parskip\z@ \@plus .3\p@\relax
-                \columnseprule \z@
-                \columnsep 35\p@
                 \let\item\@idxitem}
                {\if@restonecol\onecolumn\else\clearpage\fi}
 \newcommand\@idxitem{\par\hangindent 40\p@}
 \newcommand\subitem{\@idxitem \hspace*{20\p@}}
 \newcommand\subsubitem{\@idxitem \hspace*{30\p@}}
 \newcommand\indexspace{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
+
+%%
+%% footnotes
+%%
 \renewcommand\footnoterule{%
   \kern-3\p@
   \hrule\@width.4\columnwidth
@@ -615,149 +1278,87 @@
     \parindent 1em%
     \noindent
     \hb@xt@1.8em{\hss\@makefnmark}#1}
-\newcommand\contentsname{Contents}
-\newcommand\listfigurename{List of Figures}
-\newcommand\listtablename{List of Tables}
-\newcommand\refname{References}
-\newcommand\indexname{Index}
-\newcommand\figurename{Figure}
-\newcommand\tablename{Table}
-\newcommand\partname{Part}
-\newcommand\appendixname{Appendix}
-\newcommand\abstractname{Abstract}
-\def\today{\ifcase\month\or
-  January\or February\or March\or April\or May\or June\or
-  July\or August\or September\or October\or November\or December\fi
-  \space\number\day, \number\year}
-
-\newcommand\sun{\odot}%
-\newcommand\earth{\oplus}%
-
-\let\jnl@style=\rmfamily
-\def\ref@jnl#1{{\jnl@style#1}}%
-\newcommand\aj{\ref@jnl{Astron. J.}}%
-          % Astronomical Journal
-\newcommand\actaa{\ref@jnl{Acta Astron.}}%
-  % Acta Astronomica
-\newcommand\araa{\ref@jnl{ARA\&A}}%
-          % Annual Review of Astron and Astrophys
-\newcommand\apj{\ref@jnl{Astrophys. J.}}%
-          % Astrophysical Journal
-\newcommand\apjl{\ref@jnl{ApJ}}%
-          % Astrophysical Journal, Letters
-\newcommand\apjs{\ref@jnl{ApJS}}%
-          % Astrophysical Journal, Supplement
-\newcommand\ao{\ref@jnl{Appl.~Opt.}}%
-          % Applied Optics
-\newcommand\apss{\ref@jnl{Ap\&SS}}%
-          % Astrophysics and Space Science
-\newcommand\aap{\ref@jnl{Astron. \& Astrophys.}}%
-          % Astronomy and Astrophysics
-\newcommand\aapr{\ref@jnl{A\&A~Rev.}}%
-          % Astronomy and Astrophysics Reviews
-\newcommand\aaps{\ref@jnl{A\&AS}}%
-          % Astronomy and Astrophysics, Supplement
-\newcommand\azh{\ref@jnl{AZh}}%
-          % Astronomicheskii Zhurnal
-\newcommand\baas{\ref@jnl{BAAS}}%
-          % Bulletin of the AAS
-\newcommand\caa{\ref@jnl{Chinese Astron. Astrophys.}}%
-  % Chinese Astronomy and Astrophysics
-\newcommand\cjaa{\ref@jnl{Chinese J. Astron. Astrophys.}}%
-  % Chinese Journal of Astronomy and Astrophysics
-\newcommand\icarus{\ref@jnl{Icarus}}%
-  % Icarus
-\newcommand\jcap{\ref@jnl{J. Cosmology Astropart. Phys.}}%
-  % Journal of Cosmology and Astroparticle Physics
-\newcommand\jrasc{\ref@jnl{JRASC}}%
-          % Journal of the RAS of Canada
-\newcommand\memras{\ref@jnl{MmRAS}}%
-          % Memoirs of the RAS
-\newcommand\mnras{\ref@jnl{MNRAS}}%
-          % Monthly Notices of the RAS
-\newcommand\na{\ref@jnl{New A}}%
-  % New Astronomy
-\newcommand\nar{\ref@jnl{New A Rev.}}%
-  % New Astronomy Review
-\newcommand\pra{\ref@jnl{Phys.~Rev.~A}}%
-          % Physical Review A: General Physics
-\newcommand\prb{\ref@jnl{Phys.~Rev.~B}}%
-          % Physical Review B: Solid State
-\newcommand\prc{\ref@jnl{Phys.~Rev.~C}}%
-          % Physical Review C
-\newcommand\prd{\ref@jnl{Phys.~Rev.~D}}%
-          % Physical Review D
-\newcommand\pre{\ref@jnl{Phys.~Rev.~E}}%
-          % Physical Review E
-\newcommand\prl{\ref@jnl{Phys.~Rev.~Lett.}}%
-          % Physical Review Letters
-\newcommand\pasa{\ref@jnl{PASA}}%
-  % Publications of the Astron. Soc. of Australia
-\newcommand\pasp{\ref@jnl{PASP}}%
-          % Publications of the ASP
-\newcommand\pasj{\ref@jnl{PASJ}}%
-          % Publications of the ASJ
-\newcommand\qjras{\ref@jnl{QJRAS}}%
-          % Quarterly Journal of the RAS
-\newcommand\rmxaa{\ref@jnl{Rev. Mexicana Astron. Astrofis.}}%
-  % Revista Mexicana de Astronomia y Astrofisica
-\newcommand\skytel{\ref@jnl{S\&T}}%
-          % Sky and Telescope
-\newcommand\solphys{\ref@jnl{Sol.~Phys.}}%
-          % Solar Physics
-\newcommand\sovast{\ref@jnl{Soviet~Ast.}}%
-          % Soviet Astronomy
-\newcommand\ssr{\ref@jnl{Space~Sci.~Rev.}}%
-          % Space Science Reviews
-\newcommand\zap{\ref@jnl{ZAp}}%
-          % Zeitschrift fuer Astrophysik
-\newcommand\nat{\ref@jnl{Nature}}%
-          % Nature
-\newcommand\iaucirc{\ref@jnl{IAU~Circ.}}%
-          % IAU Cirulars
-\newcommand\aplett{\ref@jnl{Astrophys.~Lett.}}%
-          % Astrophysics Letters and Communications
-\newcommand\apspr{\ref@jnl{Astrophys.~Space~Phys.~Res.}}%
-          % Astrophysics Space Physics Research
-\newcommand\bain{\ref@jnl{Bull.~Astron.~Inst.~Netherlands}}%
-          % Bulletin Astronomical Institute of the Netherlands
-\newcommand\fcp{\ref@jnl{Fund.~Cosmic~Phys.}}%
-          % Fundamental Cosmic Physics
-\newcommand\gca{\ref@jnl{Geochim.~Cosmochim.~Acta}}%
-          % Geochimica Cosmochimica Acta
-\newcommand\grl{\ref@jnl{Geophys.~Res.~Lett.}}%
-          % Geophysics Research Letters
-\newcommand\jcp{\ref@jnl{J.~Chem.~Phys.}}%
-          % Journal of Chemical Physics
-\newcommand\jgr{\ref@jnl{J.~Geophys.~Res.}}%
-          % Journal of Geophysical Research
-\newcommand\jqsrt{\ref@jnl{J.~Quant.~Spec.~Radiat.~Transf.}}%
-          % Journal of Quantitiative Spectroscopy and Radiative Trasfer
-\newcommand\memsai{\ref@jnl{Mem.~Soc.~Astron.~Italiana}}%
-          % Mem. Societa Astronomica Italiana
-\newcommand\nphysa{\ref@jnl{Nucl.~Phys.~A}}%
-          % Nuclear Physics A
-\newcommand\physrep{\ref@jnl{Phys.~Rep.}}%
-          % Physics Reports
-\newcommand\physscr{\ref@jnl{Phys.~Scr}}%
-          % Physica Scripta
-\newcommand\planss{\ref@jnl{Planet.~Space~Sci.}}%
-          % Planetary Space Science
-\newcommand\procspie{\ref@jnl{Proc.~SPIE}}%
-          % Proceedings of the SPIE
-\let\astap=\aap
-\let\apjlett=\apjl
-\let\apjsupp=\apjs
-\let\applopt=\ao

+%%
+%% twocolumn parameters [mala: why here?]
+%%
 \setlength\columnsep{10\p@}
 \setlength\columnseprule{0\p@}
-\pagestyle{plain}
-\pagenumbering{arabic}
-\if@twoside
+
+%%
+%% titlepage macros (from various epl????.tex)
+%%
+\let\orgdivision\@iden
+\let\orgname\@iden
+\let\postcode\@iden
+\let\street\@iden
+\let\city\@iden
+\let\country\@iden
+
+%%
+%% general macros (from epl.cls)
+%%
+\newcommand{\email}[1]{\texttt{#1}}
+\newcommand{\upd}{\mathrm{d}}
+\let\drm\upd
+\newcommand{\ab}[1]{\mathrm{#1}}
+\newcommand{\tx}[1]{{\mbox{#1}}}
+\newcommand{\vect}[1]{\bm{#1}}
+\newcommand{\tens}[1]{\mathsf{#1}}
+\newcommand{\un}[1]{\ensuremath{\unskip\,\mathrm{#1}}}
+\newcommand{\chem}[1]{\ensuremath{\mathrm{#1}}}
+\newcommand{\mth}[1]{\ensuremath{#1}}
+\newcommand{\acro}[1]{\textmd{#1}}
+
+%%
+%% bibliography macros (from epl.cls)
+%%
+\newif\ifepl@book\epl@bookfalse
+\let\epl@org@bibitem\bibitem
+\def\bibitem{\epl@bookfalse\epl@org@bibitem}
+
+\newcommand{\Name}[1]{{\scshape #1},}
+\newcommand{\Review}[1]{\epl@bookfalse{\itshape #1},}
+\newcommand{\Vol}[1]{%
+  \ifepl@book\unskip, Vol.~{\bfseries #1}\else{\bfseries #1}\fi
+}
+\newcommand{\Year}[1]{\ifepl@book#1\else(#1)\fi}
+\newcommand{\Page}[1]{%
+  \ifepl@book\unskip,\ {\normalfont p.~#1}\else{\normalfont #1}\fi
+}
+\newcommand{\Pages}[2]{%
+  \ifepl@book\unskip,\ {\normalfont pp.~#1-#2}\else{\normalfont #1-#2}\fi
+}
+\newcommand{\Book}[1]{\epl@booktrue{\itshape #1}}
+\newcommand{\Publ}[1]{\ifepl@book\unskip\ \fi{\normalfont(#1)}}
+\newcommand{\Editor}[1]{%
+  \epl@gotandfalse
+  \ifepl@book\unskip,\ {\normalfont edited by}\ {\scshape #1}%
 \else
-  \raggedbottom
+    {\scshape #1}\ {\normalfont (Editor\ifepl@gotand s\fi)},%
 \fi
+}
+\newcommand{\Section}[1]{%
+  \ifepl@book\unskip,\ {\normalfont sect.~#1}\else{\normalfont sect.~#1}\fi
+}
+\let\And\and
+\newcommand{\REVIEW}[4]{\Review{#1} \Vol{#2} \Year{#3} \Page{#4}}
+\newcommand{\SAME}[3]{\Vol{#1} \Year{#2} \Page{#3}}
+
+%%
+%% lift-off
+%%
+\pagestyle{epl}
+%% page numbering
+%% [marco]
+\pagenumbering{arabic}
+\ifx\epl@stylepage\pageid
+  \let\epl@orgthepage\thepage
+
+%% [marco]
+  \def\thepage{p-\epl@orgthepage}
+\fi
+%% /page
 \if@twocolumn
   \twocolumn
   \sloppy
@@ -766,6 +1367,3 @@
   \onecolumn
 \fi
 \endinput
-
-%%
-%% End of file `article.cls'.

 

Close Window
 
  The service has been written by
Heinrich Stamerjohanns