arxmliv
arxmliv build tool
 
KWARC group
LaTeXML
About
   
 

Back to Homepage

--- /arXMLiv/repos/arXMLiv/trunk/sty/kyber08.cls	2012-08-17 09:55:06.996086783 +0200
+++ /arXMLiv/repos/arXMLiv/trunk/sty/manuscript.cls	2010-04-01 19:49:53.000000000 +0200
@@ -1,24 +1,110 @@
-%% Class file kyber08.cls
-%% provide style for journal Kybernetika
-%% http://kybernetika.utia.cas.cz
-%%
-%% Kybernetika is published by
-%% Institute of Information Theory and Automation
-%% Academy of Sciences of the Czech Republic
-%% http://www.utia.cas.cz
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%         manuscript.cls is a LaTeX document class  %%
+%%                                                                        %%                                                                         %%
+%%                usage: \documentclass[options]{manuscript}                     %%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+%% based on epl2.cls 2008 version: 0.0.a
+%% 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]
 %%
-%% based on article.cls
+
 %%
-%% 2008/11/28 version 1.2
-%% Pavel Bocek (bocek@utia.cas.cz)
+%% identification
 %%
 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
-\ProvidesClass{kyber08}[2008/11/28 v1.2 LaTeX class for Kybernetika Journal]
-\newcommand\@ptsize{}
-\newif\if@restonecol
-\newif\if@titlepage
-\@titlepagefalse
-\if@compatibility\else
+\ProvidesClass{manuscript}[2006/05/31 v0.1 submitted manuscript 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
+	\textbf{submitted manuscript} %
+      }%
+       \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}}
@@ -37,63 +123,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}}
-\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
-      \parsep \z@
-      }%
-   \renewcommand\newblock{\par}}%
+
+%%%
+%%% 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
 }
-\ExecuteOptions{a4paper,10pt,oneside,onecolumn,final}
-\ProcessOptions
-\input{size1\@ptsize.clo}
-%% file and procedure for article info dump %% added by PB to article
-\newwrite\artdata
-\immediate\openout\artdata=kybdata.xml
-\immediate\write\artdata{
} -\newtoks\kybinfo -\def\@writekybinfo#1{ -\kybinfo {#1}% -\immediate\write\artdata{\the\kybinfo}}%% end of procedure@writekybinfo -%% finalize article info dump, hook to enddocument -\def\@kybendhook{ -\immediate\write\artdata{\thepage} -\@writekybinfo{
} +\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 } -\let\@enddocumenthook\@kybendhook +\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 +\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@ + \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{} @@ -101,93 +335,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} -%% Kybernetika header font definition % added by PB to article -\newfont{\mi}{cmti9} -\newfont{\mx}{cmr8} -\newfont{\mxs}{cmsl8} -\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 \MakeUppercase{\mx\leftmark}}% - \def\@oddhead{{\slshape\mxs\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@ - {\large\bf\noindent \MakeUppercase{\@title} \par}% - \vskip 8mm% - {\sc \@author \par}% - \vskip 1.5em% + +%% +%% 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{% + +\vskip10pt + + \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 @@ -199,100 +685,206 @@ \global\@topnum\z@ % Prevents figures from going at top of page. \@maketitle \fi - \thispagestyle{empty}\@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 -} -\def\@maketitle{%% article title and author section %added by PB to article + \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 - \@kybheader%% article title page header, definition below %added by PB to article - \let \footnote \thanks - {\large\bf\noindent \MakeUppercase{\@title} \par}% - \vskip 8mm% - {\sc \@author \par}% - \vskip 1em% + %% BUG: next vskip a bit hacky... + \vskip-12ex + %% 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 20mm} + \egroup + \fi + +%% [marco 1.0] + \ifepl@dedication + \vspace{\epl@dedication@skip} + \epl@dedication \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}%% dots after counters %added by PB to article -\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] + \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 - \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 + \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 - \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}{3mm}%% absolute indent 3mm %added by PB to article - {-3.25ex \@plus -1ex \@minus -.2ex}% - {1.5ex \@plus .2ex}% - {\uppercase}} -\newcommand\subsection{\@startsection{subsection}{2}{3mm}% - {-3.25ex\@plus -1ex \@minus -.2ex}% - {1.5ex \@plus .2ex}% - {\bf}} -\newcommand\subsubsection{\@startsection{subsubsection}{3}{3mm}% - {-3.25ex\@plus -1ex \@minus -.2ex}% - {1.5ex \@plus .2ex}% - {\normalfont\normalsize}} -\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 @@ -330,149 +922,16 @@ \newcommand\labelitemii{\normalfont\bfseries \textendash} \newcommand\labelitemiii{\textasteriskcentered} \newcommand\labelitemiv{\textperiodcentered} -%% header of reference section %added by PB to article -\newcommand\refname{R\,E\,F\,E\,R\,E\,N\,C\,E\,S\\ -\hspace*{-3mm} -\if@twocolumn -\rule[2mm]{\columnwidth}{0.2mm}\\ -\else -\rule[2mm]{\textwidth}{0.2mm}\\ -\fi -\vspace*{-6mm}} -%% new commands for keywords, AMS, contact and Proof sections -%% added by PB to article -%% titles of special environments -\newcommand\keywordname{Keywords: } -\newcommand\AMSclassname{AMS Subject Classification: } -\newcommand\Proofname{P\,r\,o\,o\,f\,.\ } -%% keywords -\newcommand\keyword[1]{\noindent{\small{\sl \keywordname} -\if@twocolumn -\par\noindent -#1 -\else -\begin{minipage}[t]{111mm}#1\end{minipage}} -\fi -\vskip 2mm -\@writekybinfo{#1}% dump keywords to kybdata.xml -} -%% AMS -\newcommand\AMSclass[1]{\noindent{\small {\sl \AMSclassname} -\if@twocolumn -\par\noindent -#1 -\else -\begin{minipage}[t]{87mm}#1\end{minipage}} -\fi -\vskip 2mm -\@writekybinfo{#1}% dump ams to kybdata.xml -} -%% redef of \title hack to latex.ltx -%% dump title to kybdata.xml -\def\title#1{\def\@title{#1}% -\@writekybinfo{#1}% -} -%% redef of \author hack to latex.ltx -%% dump authors to kybdata.xml -\def\author#1{\def\@author{#1}% -\@writekybinfo{#1}% -} -%% Proof -\newenvironment{Proof}{% -\bigskip\noindent\Proofname\enspace\ignorespaces}{\hfill$\square$} -%% authors contact -\newcommand\contact[4]{ -\normalsize -\if@twocolumn -\par\noindent -{\mi #1 #2,\, #3\\#4} -\else -\begin{flushright} -\begin{minipage}[ht]{120mm} -{\mi #1 #2,\, #3\\#4} -\end{minipage} -\end{flushright} -\vspace*{-5mm} -\fi -%% dump contact informations to kybdata.xml -\@writekybinfo{} -\@writekybinfo{#1} -\@writekybinfo{#2} -\@writekybinfo{
#3
} -\@writekybinfo{#4} -\@writekybinfo{
}% -} -%% some hacks to @startsection and @newtheorem defined in latex.ltx %added by PB to article -%% small skip after sections counter -\def\@seccntformat#1{\csname the#1\endcsname.\enskip} -\def\@xnthm#1#2[#3]{% - \expandafter\@ifdefinable\csname #1\endcsname - {\@definecounter{#1}\@newctr{#1}[#3]% - \expandafter\xdef\csname the#1\endcsname{% - \expandafter\noexpand\csname the#3\endcsname\@thmcountersep\@thmcounter{#1}}% - \global\@namedef{#1}{\@thm{#1}{#2}}% - \global\@namedef{end#1}{\@endtheorem}}} -\def\@ynthm#1#2{% - \expandafter\@ifdefinable\csname #1\endcsname - {\@definecounter{#1}% - \expandafter\xdef\csname the#1\endcsname\@thmcountersep{\@thmcounter{#1}}% - \global\@namedef{#1}{\@thm{#1}{#2}}% - \global\@namedef{end#1}{\@endtheorem}}} -\def\@xthm#1#2{% - \@begintheorem{#2}{\csname the#1\endcsname\@thmcountersep}\ignorespaces} -\def\@ythm#1#2[#3]{% - \@opargbegintheorem{#2}{\csname the#1\endcsname\@thmcountersep}{#3}\ignorespaces} -%% no italic in theorem environment -\def\@begintheorem#1#2{\trivlist - \item[\hskip \labelsep{\bfseries #1\ #2}]} -\def\@opargbegintheorem#1#2#3{\trivlist - \item[\hskip \labelsep{\bfseries #1\ #2\ (#3)}]} -%% article title page header called from maketile %added by PB to article -%% if exist file kybhead.tex in current directory use content of file as page header -%% example of kybhead.tex: -%% \setcounter{page}{22} -%% {\footnotesize K\,Y\,B\,E\,R\,N\,E\,T\,I\,K\,A\, --- \,V\,O\,L\,U\,M\,E\, {\it 4\,4}\, (\,2\,0\,0\,8\,)\,, -%% \,N\,U\,M\,B\,E\,R\, \,1\, \,P\,A\,G\,E\,S\, \,2\,2\,--\,2\,9} -\newread\testin -\let\next=\relax \openin\testin=kybhead -\ifeof\testin -\def\@mykybheader{ -{\footnotesize K\,Y\,B\,E\,R\,N\,E\,T\,I\,K\,A\, --- -\,M\,A\,N\,U\,S\,C\,R\,I\,P\,T} -} -\else \closein\testin -\def\@mykybheader{\input kybhead }% -\fi -\def\@kybheader{ -\null -\vspace*{-16mm} -\noindent\@mykybheader -\par\noindent -\rule[3mm]{\textwidth}{0.2mm} -\par -\vspace*{11mm} -}% \newenvironment{description} {\list{}{\labelwidth\z@ \itemindent-\leftmargin \let\makelabel\descriptionlabel}} {\endlist} \newcommand*\descriptionlabel[1]{\hspace\labelsep \normalfont\bfseries #1} -\if@titlepage - \newenvironment{abstract}{% - \titlepage - \null\vfil -}% - {\par\vfil\null\endtitlepage} -\else - \newenvironment{abstract}{% - \if@twocolumn - \small% no title %added by PB to article - \else - \small% no title %added by PB to article - \fi} - {\par\vspace*{3mm}}%added by PB to article -\fi + +%% +%% verse, quotation, quote +%% \newenvironment{verse} {\let\\\@centercr \list{}{\itemsep \z@ @@ -493,61 +952,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} @@ -560,20 +1077,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} @@ -583,6 +1118,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} @@ -593,6 +1132,10 @@ \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}% \@starttoc{toc}% } + +%% +%% ? sectioning low level ? +%% \newcommand*\l@part[2]{% \ifnum \c@tocdepth >-2\relax \addpenalty\@secpenalty @@ -628,6 +1171,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}% @@ -643,11 +1190,17 @@ \@starttoc{lot}% } \let\l@table\l@figure + +%% +%% bibliography +%% \newdimen\bibindent \setlength\bibindent{1.5em} -\newenvironment{thebibliography}[1] - {\small\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 @@ -655,7 +1208,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 @@ -666,25 +1223,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 @@ -693,27 +1259,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\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} + +%% +%% 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 @@ -721,15 +1347,4 @@ \else \onecolumn \fi -%% Kybernetika page definition %added by PB to article -\textwidth 128mm -\oddsidemargin -1mm -\evensidemargin -1mm -\textheight 193mm -\topmargin -10mm -\parindent 4.5mm -\baselineskip 5.6mm \endinput -%% -%% End of file 'kyber08.cls'. -

 

Close Window
 
  The service has been written by
Heinrich Stamerjohanns