arxmliv
arxmliv build tool
 
KWARC group
LaTeXML
About
   
 

Back to Homepage

--- /arXMLiv/repos/arXMLiv/trunk/sty/ahp.cls	2010-04-03 12:27:46.000000000 +0200
+++ /arXMLiv/repos/arXMLiv/trunk/sty/epl2_edit.cls	2010-04-01 13:02:22.000000000 +0200
@@ -1,103 +1,130 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%         epl2.cls is a LaTeX document class for the EPLA journal         %%
+%%                                                                         %%
+%%                          %%  EPL  %%                                    %%
+%%                                                                         %%
+%%                usage: \documentclass[options]{epl2}                     %%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
 %%
-%% This is file `article.cls',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% classes.dtx  (with options: `article')
-%%
-%% This is a generated file.
-%%
-%% Copyright 1993 1994 1995 1996 1997
-%% The LaTeX3 Project and any individual authors listed elsewhere
-%% in this file.
-%%
-%% For further copyright information, and conditions for modification
-%% and distribution, see the file legal.txt, and any other copyright
-%% notices in this file.
-%%
-%% This file is part of the LaTeX2e system.
-%% ----------------------------------------
-%%   This system is distributed in the hope that it will be useful,
-%%   but WITHOUT ANY WARRANTY; without even the implied warranty of
-%%   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-%%
-%%   For error reports concerning UNCHANGED versions of this file no
-%%   more than one year old, see bugs.txt.
-%%
-%%   Please do not request updates from us directly.  Primary
-%%   distribution is through the CTAN archives.
-%%
-%%
-%% IMPORTANT COPYRIGHT NOTICE:
+%% marco 2006-10-25
 %%
-%% You are NOT ALLOWED to distribute this file alone.
+%% version: 1.0.a, 1.1
 %%
-%% You are allowed to distribute this file under the condition that it
-%% is distributed together with all the files listed in manifest.txt.
+%% modified and upgraded by Marco Bellacosa
+%% contact: marco@sif.it, europhys@sif.it, http://www.sif.it
 %%
-%% If you receive only some of these files from someone, complain!
+
+
+
+%% mala 2006-05-31
 %%
+%% version: 0.0.a
 %%
-%% Permission is granted to copy this file to another file with a
-%% clearly different name and to customize the declarations in that
-%% copy to serve the needs of your installation, provided that you
-%% comply with the conditions in the file legal.txt.
+%% 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/
 %%
-%% However, NO PERMISSION is granted to generate or to distribute a
-%% modified version of this file under its original name.
+
 %%
-%% You are NOT ALLOWED to change this file.
+%% identification
 %%
+\NeedsTeXFormat{LaTeX2e}[1995/12/01]
+\ProvidesClass{epl2_edit}[2006/05/31 v0.1 Europhysics Letters 2 class]
+
+
+% $Id: epl2-authors.cls,v 1.7 2007/04/18 10:54:32 marco Exp $
+
+
 %%
-%% MODIFICATION ADVICE:
+%% constants
 %%
-%% If you want to customize this file, it is best to make a copy of
-%% the source file(s) from which it was produced.  Use a different
-%% name for your copy(ies) and modify the copy(ies); this will ensure
-%% that your modifications do not get overwritten when you install a
-%% new release of the standard system.  You should also ensure that
-%% your modified source file does not generate any modified file with
-%% the same name as a standard file.
+\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}
+
 %%
-%% You can then easily distribute your modifications by distributing
-%% the modified and renamed copy of the source file, taking care to
-%% observe the conditions in legal.txt; this will ensure that other
-%% users can safely use your modifications.
+%% flags
 %%
-%% You will also need to produce your own, suitably named, .ins file to
-%% control the generation of files from your source file; this file
-%% should contain your own preambles for the files it generates, not
-%% those in the standard .ins files.
+\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
+
 %%
-%% The names of the source files used are shown above.
+%% 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}
+
+% geaendert!
+%%% [marco]
+\def\epl@stylemark{%
+ %\hbox to0pt{%
+    %\hskip0em
+    %\vbox to 0pt{%
+     %\vss
+      %\hbox{\sffamily\huge
+	%\textbf{epl draft} %
+      %}%
+       %\vskip6ex
+    %}%
+    %\hss
+   % }%
+}
 %%
+%% options
 %%
-%% \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{ahp}
-              [1999/11/29 v1.0
- Birkhaeuser LaTeX document class]
-\newcommand\@ptsize{}
-\newif\if@restonecol
-\newif\if@titlepage
-\@titlepagefalse
-\if@compatibility\else
+
+%% [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}}
@@ -116,49 +143,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{54\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{ahp1\@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{}
@@ -166,97 +355,362 @@
 \@lowpenalty   51
 \@medpenalty  151
 \@highpenalty 301
-\setcounter{topnumber}{2}
-\renewcommand\topfraction{.9}
+
+%%
+%% 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{.1}
+\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}%
-\noindent
-{\LARGE \@title \par}%
-    \vskip 3em%
-    {\large
-     \lineskip .75em%
-\noindent\begin{tabular}[t]{l}%
-        \@author
-      \end{tabular}\par}%
-      \vskip 1.5em%
-%%    {\large \@date \par}%       % Set date in \large size.
-%%  \end{center}
+
+%%
+%% 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
-  \@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
+  \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
+}
+
+%%
+%% notes (my thing)
+%%
+\newlength{\epl@notesindent}
+\setlength{\epl@notesindent}{7.4em}
+\newcommand{\notes}[2]{%
+  \let\epl@notesmissing\@empty
+  \protected@xdef\epl@notesset{\epl@notesset\epl@notes{#1}{#2}}%
+}
+%\def\epl@pacsmissing{\hbox to\epl@pacsindent{*** Missing PACS ***\hss}\par}
+%\def\epl@pacsmissing{\hbox to\epl@pacsindent{}}
+\def\epl@notesset{\epl@notesmissing}
+\def\epl@notes#1#2{%
+  \leavevmode\hbox to\epl@notesindent{#1 \hfill}#2\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@pacsmissing{\hbox to\epl@pacsindent{}}
+\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
@@ -268,109 +722,213 @@
       \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
-\noindent
-    {\LARGE\bfseries \@title \par}%
-    \vskip 1.5em%
-    {\large
-      \lineskip .5em%
-%%\begin{tabular}[t]{l}%
-%\begin{quote}
-\noindent\@author
-%%\end{tabular}\par}%
-%%\end{quote}
-\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}%
+  %%edit%%%\vskip\epl@maketitle@bigskip
+  \vskip\epl@maketitle@smallskip
+  \vskip\epl@stretchpretitle
+  \begin{center}
+  {\sloppy\LARGE\sffamily\bfseries\epl@title\par}%
+  {\sloppy\vskip6pt\large\sffamily\bfseries\epl@subtitle\par}%
+  %%edit%%%\vskip\epl@maketitle@bigskip
+  \vskip\epl@maketitle@medskip
+  \vskip\epl@stretchpreauthor
+  {\scshape\epl@author@intitle\par}%
+  \vskip\epl@maketitle@smallskip
+  \vskip\epl@stretchpreinst
+  {\itshape\epl@institute\par}%
+   \end{center}
+
+
+  %%edit%%%\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
+         \epl@notesset
+    \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 {\@arabic\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{\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~\thepart
-       \par\nobreak
+
+%% [marco 1.0]
+   \ifepl@dedication
+        \vspace{\epl@dedication@skip}
+        \epl@dedication
      \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}}
+
+%% [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
+}
+\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
+}
+\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
@@ -414,27 +972,10 @@
                {\endlist}
 \newcommand*\descriptionlabel[1]{\hspace\labelsep
                                 \normalfont\bfseries #1}
-\if@titlepage
-  \newenvironment{abstract}{%
-      \titlepage
-      \null\vfil
-      \@beginparpenalty\@lowpenalty
-      \begin{center}%
-      \noindent \bfseries \abstractname.
-%%        \@endparpenalty\@M
-      \end{center}}%
-     {\par\vfil\null\endtitlepage}
-\else
-  \newenvironment{abstract}{%
-      \if@twocolumn
-        \section*{\abstractname}%
-      \else
-        \small
-        \quotation
-         \noindent {\bfseries \abstractname.}%
-      \fi}
-      {\if@twocolumn\else\endquotation\fi}
-\fi
+
+%%
+%% verse, quotation, quote
+%%
 \newenvironment{verse}
                {\let\\\@centercr
                 \list{}{\itemsep      \z@
@@ -455,87 +996,163 @@
                {\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}%
-  \renewcommand\thesection{\@Alph\c@section}}
+  \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~\thefigure}
-\newenvironment{figure}
-               {\@float{figure}}
-               {\end@float}
-\newenvironment{figure*}
-               {\@dblfloat{figure}}
-               {\end@dblfloat}
+\def\fnum@figure{\figurename\nobreakspace\thefigure}
+\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}
 \def\ftype@table{2}
 \def\ext@table{lot}
-\def\fnum@table{\tablename~\thetable}
+\def\fnum@table{\tablename\nobreakspace\thetable}
 \newenvironment{table}
                {\@float{table}}
                {\end@float}
 \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}
@@ -545,6 +1162,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}
@@ -555,12 +1176,16 @@
            \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}%
     \@starttoc{toc}%
     }
+
+%%
+%% ? sectioning low level ?
+%%
 \newcommand*\l@part[2]{%
   \ifnum \c@tocdepth >-2\relax
     \addpenalty\@secpenalty
     \addvspace{2.25em \@plus\p@}%
-    \begingroup
       \setlength\@tempdima{3em}%
+    \begingroup
       \parindent \z@ \rightskip \@pnumwidth
       \parfillskip -\@pnumwidth
       {\leavevmode
@@ -590,25 +1215,36 @@
 \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
+    \section*{\listfigurename}%
       \@mkboth{\MakeUppercase\listfigurename}%
-              {\MakeUppercase\listfigurename}}%
+              {\MakeUppercase\listfigurename}%
     \@starttoc{lof}%
     }
 \newcommand*\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}
 \newcommand\listoftables{%
-    \section*{\listtablename
+    \section*{\listtablename}%
       \@mkboth{%
-          \MakeUppercase\listtablename}{\MakeUppercase\listtablename}}%
+          \MakeUppercase\listtablename}%
+         {\MakeUppercase\listtablename}%
     \@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
@@ -616,7 +1252,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
@@ -627,6 +1267,11 @@
       \endlist}
 \newcommand\newblock{\hskip .11em\@plus.33em\@minus.07em}
 \let\@openbib@code\@empty
+
+%%
+%% index
+%%
+\newif\if@restonecol
 \newenvironment{theindex}
                {\if@twocolumn
                   \@restonecolfalse
@@ -638,7 +1283,7 @@
                 \twocolumn[\section*{\indexname}]%
                 \@mkboth{\MakeUppercase\indexname}%
                         {\MakeUppercase\indexname}%
-                \thispagestyle{plain}\parindent\z@
+                \thispagestyle{eplplain}\parindent\z@
                 \parskip\z@ \@plus .3\p@\relax
                 \let\item\@idxitem}
                {\if@restonecol\onecolumn\else\clearpage\fi}
@@ -646,6 +1291,10 @@
 \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
@@ -654,29 +1303,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}
-\newcommand\today{}
-\edef\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}
+
+%%
+%% 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
@@ -684,48 +1391,4 @@
 \else
   \onecolumn
 \fi
-
-%%From here on are the additions to the style article for journal AHP
-
-\def\normalsize{\@setfontsize\normalsize\@xpt{12}}%
-
-%\def\sigle{AHP}
-%\def\@oddhead{{\small\sigle}\hfil{\small\titlerunning}\hfil{\small\thepage}}%
-%\def\@evenhead{{\small\thepage}\hfil{\small\authorrunning}\hfil{\small\sigle}}%
-
-\def\@oddfoot{}
-\def\@evenfoot{}
-
-%\newcounter{firstpage}
-%\setcounter{firstpage}{1}
-%\newcounter{difference}{1}
-%\setcounter{difference}{thepage-firstpage}
-
-%\def\@oddhead{\ifnum\thepage=57{}\else{\small\sigle}\hfil{\small\titlerunning}\hfil{\small\thepage}\fi}%
-%\def\@evenhead{\ifnum\thepage=57{}\else{\small\thepage}\hfil{\small\authorrunning}\hfil{\small\sigle}\fi}
-
-\textheight 184mm                 % Height of text part of page
-\textwidth 125mm                  % Width of text part of page, i.e ofline
-
-\def\small{\@setfontsize\small\@viiipt{9.5}}%
-\def\large{\@setfontsize\large\@xipt{12.8}}
-\def\Large{\@setfontsize\Large\@xiipt{13.5}}
-\def\LARGE{\@setfontsize\LARGE\@xivpt{17}}
-\def\huge{\@setfontsize\huge\@xviiipt{22}}
-\def\scriptsize{\@setfontsize\scriptsize\@viiipt{9.5}}
-\def\tiny{\@setfontsize\tiny\@vipt{7}}
-
-\if@twoside                 % Values for two-sided printing:
-   \oddsidemargin   55\p@    %   Left margin on odd-numbered pages.
-   \evensidemargin  55\p@    %   Left margin on even-numbered pages.
-   \marginparwidth  10\p@    %   \@Width of marginal notes.
-\else                       % Values for one-sided printing:
-   \oddsidemargin   55\p@    %   Left margin on odd-numbered pages.
-   \evensidemargin  55\p@    %   Left margin on even-numbered pages.
-   \marginparwidth   2pc
-\fi
-
 \endinput
-%%
-%% End of file `ahp.cls'.
-
\ No newline at end of file

 

Close Window
 
  The service has been written by
Heinrich Stamerjohanns