arxmliv
arxmliv build tool
 
KWARC group
LaTeXML
About
   
 

Back to Homepage

--- /arXMLiv/repos/arXMLiv/trunk/sty/article_x.cls	2010-04-02 12:30:59.000000000 +0200
+++ /arXMLiv/repos/arXMLiv/trunk/sty/inprep.cls	2012-08-16 17:30:19.872019983 +0200
@@ -1,49 +1,15 @@
-% sts modified 2000/03/02
+%
+%  inprep.cls	 --   Created by Igor A. Kotelnikov 23/06/94
+%
+\NeedsTeXFormat{LaTeX2e}[1997/12/01]
+\ProvidesClass{inprep}[1998/02/14 v1.4 INP preprint class]

-%%
-%% 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 1998 1999
-%% The LaTeX3 Project and any individual authors listed elsewhere
-%% in this file.
-%%
-%% This file is part of the LaTeX2e system.
-%% ----------------------------------------
-%%
-%% It may be distributed under the terms of the LaTeX Project Public
-%% License, as described in lppl.txt in the base LaTeX distribution.
-%% Either version 1.0 or, at your option, any later version.
-%% \CharacterTable
-%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%%   Digits        \0\1\2\3\4\5\6\7\8\9
-%%   Exclamation   \!     Double quote  \"     Hash (number) \#
-%%   Dollar        \$     Percent       \%     Ampersand     \&
-%%   Acute accent  \'     Left paren    \(     Right paren   \)
-%%   Asterisk      \*     Plus          \+     Comma         \,
-%%   Minus         \-     Point         \.     Solidus       \/
-%%   Colon         \:     Semicolon     \;     Less than     \<
-%%   Equals        \=     Greater than  \>     Question mark \?
-%%   Commercial at \@     Left bracket  \[     Backslash     \\
-%%   Right bracket \]     Circumflex    \^     Underscore    \_
-%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
-%%   Right brace   \}     Tilde         \~}
-\NeedsTeXFormat{LaTeX2e}[1995/12/01]
-\ProvidesClass{article}
-              [1999/01/07 v1.4a
- Standard LaTeX document class]
-\newcommand\@ptsize{}
+\newcommand{\@ptsize}{}
 \newif\if@restonecol
 \newif\if@titlepage
 \@titlepagefalse
-\if@compatibility\else
+\newif\if@openbib
+\@openbibfalse
 \DeclareOption{a4paper}
    {\setlength\paperheight {297mm}%
     \setlength\paperwidth  {210mm}}
@@ -66,143 +32,368 @@
    {\setlength\@tempdima   {\paperheight}%
     \setlength\paperheight {\paperwidth}%
     \setlength\paperwidth  {\@tempdima}}
-\fi
-\if@compatibility
-  \renewcommand\@ptsize{0}
-\else
-\DeclareOption{10pt}{\renewcommand\@ptsize{0}}
-\fi
-\DeclareOption{11pt}{\renewcommand\@ptsize{1}}
-\DeclareOption{12pt}{\renewcommand\@ptsize{2}}
-\if@compatibility\else
+\DeclareOption{10pt}{\renewcommand{\@ptsize}{0}}
+\DeclareOption{11pt}{\AtBeginDocument{\ClassWarningNoLine{inprep}{Option `11pt' not supported}}}
+\DeclareOption{12pt}{\AtBeginDocument{\ClassWarningNoLine{inprep}{Option `12pt' not supported}}}
 \DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse}
-\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}}%
-}
-\ExecuteOptions{letterpaper,10pt,oneside,onecolumn,final}
+\DeclareOption{openbib}{\@openbibtrue}
+\ExecuteOptions{a5paper,10pt,titlepage,oneside,onecolumn,final}
 \ProcessOptions
-\input{size1\@ptsize.clo}
+% ===================================================================
+%\input{size1\@ptsize.clo}
+\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}}
+\if@twocolumn
+  \setlength\parindent{1em}
+\else
+  \setlength\parindent{15\p@}
+\fi
+%\setlength\headheight{12\p@}    <- I.K.
+%\setlength\headsep   {25\p@}    <- I.K.
+%\setlength\topskip   {10\p@}    <- I.K.
+\setlength\headheight{0\p@}   % <- I.K. (no place for headings)
+\setlength\headsep   {0\p@}    % <- I.K.
+\setlength\topskip   {10\p@}    % <- I.K.
+\setlength\footskip{30\p@}
+%%%\if@compatibility \setlength\maxdepth{4\p@} \else
+\setlength\maxdepth{.5\topskip}
+%%%\fi
+\setlength\@maxdepth\maxdepth
+%%%\if@compatibility
+%%%  \if@twocolumn
+%%%    \setlength\textwidth{410\p@}
+%%%  \else
+%%%    \setlength\textwidth{345\p@}
+%%%  \fi
+%%%\else
+  \setlength\@tempdima{\paperwidth}
+%  \addtolength\@tempdima{-2in}
+  \addtolength\@tempdima{-1.2in}
+  \setlength\@tempdimb{345\p@}
+  \if@twocolumn
+    \ifdim\@tempdima>2\@tempdimb\relax
+      \setlength\textwidth{2\@tempdimb}
+    \else
+      \setlength\textwidth{\@tempdima}
+    \fi
+  \else
+    \ifdim\@tempdima>\@tempdimb\relax
+      \setlength\textwidth{\@tempdimb}
+    \else
+      \setlength\textwidth{\@tempdima}
+    \fi
+  \fi
+%%%\fi
+%%%\if@compatibility\else
+  \@settopoint\textwidth
+%%%\fi
+%%%\if@compatibility
+%%%  \setlength\textheight{43\baselineskip}
+%%%\else
+  \setlength\@tempdima{\paperheight}
+%  \addtolength\@tempdima{-2in}         <----- I.K.
+%  \addtolength\@tempdima{-1.5in}       <----- I.K. 95/02/04
+  \addtolength\@tempdima{-1.2in}
+  \addtolength\@tempdima{-\headheight} %<----- I.K. 95/02/04
+  \addtolength\@tempdima{-\headsep}    %<----- I.K. 95/02/04
+  \addtolength\@tempdima{-\topskip}    %<----- I.K. 95/02/04
+  \addtolength\@tempdima{-\footskip}   %<----- I.K. 95/02/04
+  \divide\@tempdima\baselineskip
+  \@tempcnta=\@tempdima
+  \setlength\textheight{\@tempcnta\baselineskip}
+%%%\fi
+\addtolength\textheight{\topskip}
+%%%\if@compatibility
+%%%  \if@twoside
+%%%     \setlength\oddsidemargin   {44\p@}
+%%%     \setlength\evensidemargin  {82\p@}
+%%%     \setlength\marginparwidth {107\p@}
+%%%  \else
+%%%     \setlength\oddsidemargin   {63\p@}
+%%%     \setlength\evensidemargin  {63\p@}
+%%%     \setlength\marginparwidth  {90\p@}
+%%%  \fi
+%%%  \if@twocolumn
+%%%     \setlength\oddsidemargin  {30\p@}
+%%%     \setlength\evensidemargin {30\p@}
+%%%     \setlength\marginparwidth {48\p@}
+%%%  \fi
+%%%\else
+  \if@twoside
+    \setlength\@tempdima        {\paperwidth}
+    \addtolength\@tempdima      {-\textwidth}
+    \setlength\oddsidemargin    {.4\@tempdima}
+    \addtolength\oddsidemargin  {-1in}
+    \setlength\marginparwidth   {.6\@tempdima}
+    \addtolength\marginparwidth {-0.4in}
+  \else
+    \setlength\@tempdima        {\paperwidth}
+    \addtolength\@tempdima      {-\textwidth}
+    \setlength\oddsidemargin    {.5\@tempdima}
+    \addtolength\oddsidemargin  {-1in}
+    \setlength\marginparwidth   {.5\@tempdima}
+    \addtolength\marginparwidth {-.4in}
+  \fi
+  \ifdim \marginparwidth >2in
+     \setlength\marginparwidth{2in}
+  \fi
+  \@settopoint\oddsidemargin
+  \@settopoint\marginparwidth
+  \setlength\evensidemargin  {\paperwidth}
+%  \addtolength\evensidemargin{-2in}
+  \addtolength\evensidemargin{-1.2in}
+  \addtolength\evensidemargin{-\textwidth}
+  \addtolength\evensidemargin{-\oddsidemargin}
+  \@settopoint\evensidemargin
+%%%\fi
+\if@twocolumn
+ \setlength\marginparsep {10\p@}
+\else
+  \setlength\marginparsep{11\p@}
+\fi
+\setlength\marginparpush{5\p@}
+%%%\if@compatibility
+%%%  \setlength\topmargin{27pt}
+%%%\else
+  \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
+%%%\fi
+\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}
+% ===================================================================
 \setlength\lineskip{1\p@}
 \setlength\normallineskip{1\p@}
-\renewcommand\baselinestretch{}
+\renewcommand{\baselinestretch}{}
 \setlength\parskip{0\p@ \@plus \p@}
 \@lowpenalty   51
 \@medpenalty  151
 \@highpenalty 301
 \setcounter{topnumber}{2}
-\renewcommand\topfraction{.7}
+\renewcommand{\topfraction}{.7}
 \setcounter{bottomnumber}{1}
-\renewcommand\bottomfraction{.3}
+\renewcommand{\bottomfraction}{.3}
 \setcounter{totalnumber}{3}
-\renewcommand\textfraction{.2}
-\renewcommand\floatpagefraction{.5}
+\renewcommand{\textfraction}{.2}
+\renewcommand{\floatpagefraction}{.5}
 \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
-        \fi
-        ##1}}}
-\else
-  \def\ps@headings{%
-    \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\@mkboth\@gobbletwo
-    \let\sectionmark\@gobble
-    \let\subsectionmark\@gobble
-    }
+\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 {\uppercase{%
+%        \ifnum \c@secnumdepth >\z@
+%          \thesection.\hskip 1em\relax
+%        \fi
+%        ##1}}{}}%
+%    \def\subsectionmark##1{%
+%      \markright {%
+%        \ifnum \c@secnumdepth >\@ne
+%          \thesubsection\hskip 1em\relax
+%          \fi
+%          ##1}}}
+%\else
+%  \def\ps@headings{%
+%    \let\@oddfoot\@empty
+%    \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
+%    \let\@mkboth\markboth
+%    \def\sectionmark##1{%
+%      \markright {\uppercase{%
+%        \ifnum \c@secnumdepth >\m@ne
+%          \thesection\hskip 1em\relax
+%        \fi
+%        ##1}}}}
+%\fi
+  \def\ps@headings{} % <- I.K. (There is no place for headings)
+%\def\ps@myheadings{%
+%    \let\@oddfoot\@empty\let\@evenfoot\@empty
+%    \def\@evenhead{\thepage\hfil\slshape\leftmark}%
+%    \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
+%    \let\@mkboth\@gobbletwo
+%    \let\sectionmark\@gobble
+%    \let\subsectionmark\@gobble
+%    }
+  \def\ps@myheadings{} % <- I.K. (There is no place for headings)
+%
+% Modified from article.cls
+%
+\def\PreprintNumber#1{\def\@preprintnumber{#1}}
   \if@titlepage
-  \newcommand\maketitle{\begin{titlepage}%
+  \newcommand{\maketitle}{\begin{titlepage}%
   \let\footnotesize\small
   \let\footnoterule\relax
-  \let \footnote \thanks
   \null\vfil
-%sts
-%  \vskip 60\p@
-  \vskip 20\p@
+  \vskip 60\p@
   \begin{center}%
-    {\LARGE \@title \par}%
-    \vskip 3em%
+%>    {\LARGE \@title \par}%
+%>    \vskip 3em%
+%>    {\large
+%>     \lineskip .75em%
+%>      \begin{tabular}[t]{c}%
+%>        \@author
+%>      \end{tabular}\par}%
+%>      \vskip 1.5em%
+%>    {\large \@date \par}%       % Set date in \large size.
+    {\large
+     \ifnum\language=1
+        \ifx\undefined\l@cyrillic
+        \else
+	   \ClassError{inprep}{Wrong Code Page}
+		{I cannot identify Code Page in use.^^J
+                 Code Page 866 must be specified. ^^J
+		 Suspect wrong LaTeX2e format.^^J
+		 It is not localized for Russian language ^^J
+		 or localization is wrong.
+		 Proceed with fingers crossed.}%
+	\fi
+        Институт ядерной физики\\[2pt]
+	им.~Г.И.~Будкера СО~РАН%
+    \else
+	Budker Institute of Nuclear Physics \vskip\lineskip
+    \fi}
+    \par
+    \vskip 22mm%
     {\large
      \lineskip .75em%
       \begin{tabular}[t]{c}%
         \@author
       \end{tabular}\par}%
-      \vskip 1.5em%
-    {\large \@date \par}%       % Set date in \large size.
+    \vskip 12mm%
+    {\Large\scshape \@title \par}%
+    \vfill%
+    {\large
+     \ifnum\language=1
+	   ИЯФ
+     \else
+	   BudkerINP
+     \fi
+    \advance\year by -1900
+    \ifx\undefined\@preprintnumber\ClassWarning{inprep}{%
+         You should use \protect\PreprintNumber{}.^^J
+         Preprint number undefined}%
+         \number\year--??
+    \else
+         \number\year--\@preprintnumber
+    \fi
+    \advance\year by  1900\par}%
+    \vfill%
+    {\large
+     \ifnum\language=1
+            Новосибирск
+     \else
+	    Novosibirsk
+     \fi
+     \\[0.3em]
+     \number\year}%
   \end{center}\par
   \@thanks
   \vfil\null
   \end{titlepage}%
   \setcounter{footnote}{0}%
-  \global\let\thanks\relax
-  \global\let\maketitle\relax
-  \global\let\@thanks\@empty
-  \global\let\@author\@empty
-  \global\let\@date\@empty
-  \global\let\@title\@empty
-  \global\let\title\relax
-  \global\let\author\relax
-  \global\let\date\relax
-  \global\let\and\relax
+  \let\thanks\relax\let\maketitle\relax
+%>  \gdef\@thanks{}\gdef\@author{}\gdef\@title{}}
 }
 \else
-\newcommand\maketitle{\par
+\newcommand{\maketitle}{\par
   \begingroup
-    \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
-    \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
+    \renewcommand{\thefootnote}{\fnsymbol{footnote}}%
+    \def\@makefnmark{\hbox to\z@{$\m@th^{\@thefnmark}$\hss}}%
     \long\def\@makefntext##1{\parindent 1em\noindent
-            \hb@xt@1.8em{%
-                \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
+            \hbox to1.8em{\hss$\m@th^{\@thefnmark}$}##1}%
     \if@twocolumn
       \ifnum \col@number=\@ne
         \@maketitle
@@ -217,25 +408,14 @@
     \thispagestyle{plain}\@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\author\relax
-  \global\let\date\relax
-  \global\let\and\relax
-}
+  \let\thanks\relax
+  \let\maketitle\relax\let\@maketitle\relax
+  \gdef\@thanks{}\gdef\@author{}\gdef\@title{}}
 \def\@maketitle{%
   \newpage
-%sts
-%  \null
-%  \vskip 2em%
+  \null
+  \vskip 2em%
   \begin{center}%
-  \let \footnote \thanks
     {\LARGE \@title \par}%
     \vskip 1.5em%
     {\large
@@ -256,15 +436,13 @@
 \newcounter {subsubsection}[subsection]
 \newcounter {paragraph}[subsubsection]
 \newcounter {subparagraph}[paragraph]
-\renewcommand \thepart {\@Roman\c@part}
-\renewcommand \thesection {\@arabic\c@section}
-\renewcommand\thesubsection   {\thesection.\@arabic\c@subsection}
-\renewcommand\thesubsubsection{\thesubsection .\@arabic\c@subsubsection}
-\renewcommand\theparagraph    {\thesubsubsection.\@arabic\c@paragraph}
-\renewcommand\thesubparagraph {\theparagraph.\@arabic\c@subparagraph}
-\newcommand\part{%
-   \if@noskipsec \leavevmode \fi
-   \par
+\renewcommand{\thepart}         {\Roman{part}}
+\renewcommand{\thesection}      {\arabic{section}}
+\renewcommand{\thesubsection}   {\thesection.\arabic{subsection}}
+\renewcommand{\thesubsubsection}{\thesubsection .\arabic{subsubsection}}
+\renewcommand{\theparagraph}    {\thesubsubsection.\arabic{paragraph}}
+\renewcommand{\thesubparagraph} {\theparagraph.\arabic{subparagraph}}
+\newcommand{\part}{\par
    \addvspace{4ex}%
    \@afterindentfalse
    \secdef\@part\@spart}
@@ -278,7 +456,7 @@
     \fi
     {\parindent \z@ \raggedright
      \interlinepenalty \@M
-     \normalfont
+     \reset@font
      \ifnum \c@secnumdepth >\m@ne
        \Large\bfseries \partname~\thepart
        \par\nobreak
@@ -291,37 +469,50 @@
 \def\@spart#1{%
     {\parindent \z@ \raggedright
      \interlinepenalty \@M
-     \normalfont
+     \reset@font
      \huge \bfseries #1\par}%
      \nobreak
      \vskip 3ex
      \@afterheading}
-\newcommand\section{\@startsection {section}{1}{\z@}%
+\def\@endpart{\vfil\newpage
+              \if@twoside
+                \hbox{}%
+                \thispagestyle{empty}%
+                \newpage
+              \fi
+              \if@tempswa
+                \twocolumn
+              \fi}
+\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@}%
+%                                   {\reset@font\Large\bfseries}}
+                                   {\reset@font\Large\sffamily}}
+\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@}%
+%                                     {\reset@font\large\bfseries}}
+                                     {\reset@font\large\sffamily}}
+\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@}%
+%                                     {\reset@font\normalsize\bfseries}}
+                                     {\reset@font\normalsize\sffamily}}
+\newcommand{\paragraph}{\@startsection{paragraph}{4}{\z@}%
                                     {3.25ex \@plus1ex \@minus.2ex}%
                                     {-1em}%
-                                    {\normalfont\normalsize\bfseries}}
-\newcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
+%                                    {\reset@font\normalsize\bfseries}}
+                                     {\reset@font\normalsize\sffamily}}
+\newcommand{\subparagraph}{\@startsection{subparagraph}{5}{\parindent}%
                                        {3.25ex \@plus1ex \@minus .2ex}%
                                        {-1em}%
-                                      {\normalfont\normalsize\bfseries}}
+%                                      {\reset@font\normalsize\bfseries}}
+                                      {\reset@font\normalsize\sffamily}}
 \if@twocolumn
   \setlength\leftmargini  {2em}
 \else
   \setlength\leftmargini  {2.5em}
 \fi
-\leftmargin  \leftmargini
 \setlength\leftmarginii  {2.2em}
 \setlength\leftmarginiii {1.87em}
 \setlength\leftmarginiv  {1.7em}
@@ -332,43 +523,80 @@
   \setlength\leftmarginv  {1em}
   \setlength\leftmarginvi {1em}
 \fi
+\setlength\leftmargin    {\leftmargini}
 \setlength  \labelsep  {.5em}
 \setlength  \labelwidth{\leftmargini}
 \addtolength\labelwidth{-\labelsep}
 \@beginparpenalty -\@lowpenalty
 \@endparpenalty   -\@lowpenalty
 \@itempenalty     -\@lowpenalty
-\renewcommand\theenumi{\@arabic\c@enumi}
-\renewcommand\theenumii{\@alph\c@enumii}
-\renewcommand\theenumiii{\@roman\c@enumiii}
-\renewcommand\theenumiv{\@Alph\c@enumiv}
-\newcommand\labelenumi{\theenumi.}
-\newcommand\labelenumii{(\theenumii)}
-\newcommand\labelenumiii{\theenumiii.}
-\newcommand\labelenumiv{\theenumiv.}
-\renewcommand\p@enumii{\theenumi}
-\renewcommand\p@enumiii{\theenumi(\theenumii)}
-\renewcommand\p@enumiv{\p@enumiii\theenumiii}
-\newcommand\labelitemi{\textbullet}
-\newcommand\labelitemii{\normalfont\bfseries \textendash}
-\newcommand\labelitemiii{\textasteriskcentered}
-\newcommand\labelitemiv{\textperiodcentered}
+\renewcommand{\theenumi}{\arabic{enumi}}
+\renewcommand{\theenumii}{\alph{enumii}}
+\renewcommand{\theenumiii}{\roman{enumiii}}
+\renewcommand{\theenumiv}{\Alph{enumiv}}
+\newcommand{\labelenumi}{\theenumi.}
+\newcommand{\labelenumii}{(\theenumii)}
+\newcommand{\labelenumiii}{\theenumiii.}
+\newcommand{\labelenumiv}{\theenumiv.}
+\renewcommand{\p@enumii}{\theenumi}
+\renewcommand{\p@enumiii}{\theenumi(\theenumii)}
+\renewcommand{\p@enumiv}{\p@enumiii\theenumiii}
+\newcommand{\labelitemi}{$\m@th\bullet$}
+\newcommand{\labelitemii}{\normalfont\bfseries --}
+\newcommand{\labelitemiii}{$\m@th\ast$}
+\newcommand{\labelitemiv}{$\m@th\cdot$}
 \newenvironment{description}
                {\list{}{\labelwidth\z@ \itemindent-\leftmargin
                         \let\makelabel\descriptionlabel}}
                {\endlist}
-\newcommand*\descriptionlabel[1]{\hspace\labelsep
+\newcommand{\descriptionlabel}[1]{\hspace\labelsep
                                 \normalfont\bfseries #1}
+
 \if@titlepage
   \newenvironment{abstract}{%
-      \titlepage
-      \null\vfil
-      \@beginparpenalty\@lowpenalty
+        \setlength{\parindent}{0pt}
+% заголовок для второй аннотации
+	\def\maketitle{\@maketitle}
+% заголовок для первой и второй аннотации
+	\def\@maketitle{%
+	  \null
+	  \vskip 2em%
       \begin{center}%
-        \bfseries \abstractname
-        \@endparpenalty\@M
-      \end{center}}%
-     {\par\vfil\null\endtitlepage}
+	    {\Large\scshape \@title \par}%
+	    \vskip 1.5em%
+	    {\large\itshape
+             \begin{tabular}[t]{c} \@author \end{tabular} \par}%
+      	    \vskip 0.5em%
+            \ifnum\language=1
+   	      Институт ядерной физики им. Г.И.~Будкера\\
+	      630090, Новосибирск, Российская Федерация
+	    \else
+ 	      Budker Institute of Nuclear Physics\\
+	      630090, Novosibirsk, Russian Federation
+            \fi
+            \par
+	    \vskip 1.0em
+            \abstractname
+          \end{center}%
+          }
+      \clearpage                                  %<----- I.K.
+      \titlepage                                  %<----- I.K.
+      \@maketitle	                          %<----- I.K.
+      \setcounter{page}{2}\thispagestyle{empty}   %<----- I.K.
+     }{\par\vfill
+	\begin{flushright}
+        \copyright
+	\ifnum\language=1
+ 	  Институт ядерной физики им. Г.И. Будкера
+        \else
+	  Budker Institute of Nuclear Physics
+	\fi
+	\end{flushright}
+      \endtitlepage
+      \gdef\@thanks{}\gdef\@author{}\gdef\@title{}
+      \clearpage
+      \setcounter{page}{3}
+      \if@twocolumn\else\noindent\mbox{}\hrulefill\mbox{}\vspace{20ex \@plus 2ex \@minus 4ex}\fi}
 \else
   \newenvironment{abstract}{%
       \if@twocolumn
@@ -376,46 +604,32 @@
       \else
         \small
         \begin{center}%
-          {\bfseries \abstractname\vspace{-.5em}\vspace{\z@}}%
+          \textsf{\abstractname\vspace{-.5em}\vspace{\z@}}%
         \end{center}%
         \quotation
       \fi}
       {\if@twocolumn\else\endquotation\fi}
 \fi
 \newenvironment{verse}
-               {\let\\\@centercr
+               {\let\\=\@centercr
                 \list{}{\itemsep      \z@
                         \itemindent   -1.5em%
                         \listparindent\itemindent
                         \rightmargin  \leftmargin
                         \advance\leftmargin 1.5em}%
-                \item\relax}
+                \item[]}
                {\endlist}
 \newenvironment{quotation}
                {\list{}{\listparindent 1.5em%
                         \itemindent    \listparindent
                         \rightmargin   \leftmargin
                         \parsep        \z@ \@plus\p@}%
-                \item\relax}
+                \item[]}
                {\endlist}
 \newenvironment{quote}
                {\list{}{\rightmargin\leftmargin}%
-                \item\relax}
+                \item[]}
                {\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
@@ -424,18 +638,27 @@
         \@restonecolfalse\newpage
       \fi
       \thispagestyle{empty}%
-      \setcounter{page}\@ne
+%%%      \if@compatibility
+%%%        \setcounter{page}{0}
+%%%      \else
+        \setcounter{page}{1}%
+%%%      \fi
     }%
     {\if@restonecol\twocolumn \else \newpage \fi
-     \if@twoside\else
-        \setcounter{page}\@ne
-     \fi
+      \setcounter{page}{1}%
     }
-\fi
-\newcommand\appendix{\par
+
+\newcommand{\appendix}{\par
   \setcounter{section}{0}%
   \setcounter{subsection}{0}%
-  \gdef\thesection{\@Alph\c@section}}
+  \renewcommand{\thesection}{\Alph{section}}%
+  \renewcommand{\theequation}{\thesection\arabic{equation}}%
+  \renewcommand{\section}{\setcounter{equation}{0}%
+				  \@startsection {section}{1}{\z@}%
+                                   {-3.5ex \@plus -1ex \@minus -.2ex}%
+                                   {2.3ex \@plus.2ex}%
+                                   {\reset@font\Large\sffamily}}%
+}
 \setlength\arraycolsep{5\p@}
 \setlength\tabcolsep{6\p@}
 \setlength\arrayrulewidth{.4\p@}
@@ -444,9 +667,9 @@
 \skip\@mpfootins = \skip\footins
 \setlength\fboxsep{3\p@}
 \setlength\fboxrule{.4\p@}
-\renewcommand \theequation {\@arabic\c@equation}
+\renewcommand{\theequation}{\arabic{equation}}
 \newcounter{figure}
-\renewcommand \thefigure {\@arabic\c@figure}
+\renewcommand{\thefigure}{\@arabic\c@figure}
 \def\fps@figure{tbp}
 \def\ftype@figure{1}
 \def\ext@figure{lof}
@@ -458,7 +681,7 @@
                {\@dblfloat{figure}}
                {\end@dblfloat}
 \newcounter{table}
-\renewcommand\thetable{\@arabic\c@table}
+\renewcommand{\thetable}{\@arabic\c@table}
 \def\fps@table{tbp}
 \def\ftype@table{2}
 \def\ext@table{lot}
@@ -473,14 +696,27 @@
 \newlength\belowcaptionskip
 \setlength\abovecaptionskip{10\p@}
 \setlength\belowcaptionskip{0\p@}
+
+%%% Stollen from kernel
+\long\def\@caption#1[#2]#3{\par\addcontentsline{\csname
+  ext@#1\endcsname}{#1}{\protect\numberline{\csname
+  the#1\endcsname}{\ignorespaces #2}}\begingroup
+    \@parboxrestore
+        \footnotesize %%%% <----  \normalsize replaced
+    \@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par
+  \endgroup}
+
 \long\def\@makecaption#1#2{%
   \vskip\abovecaptionskip
-  \sbox\@tempboxa{#1: #2}%
+  \setbox\@tempboxa\hbox{#1: #2}%
   \ifdim \wd\@tempboxa >\hsize
+    \if@twocolumn                                     %<--------- I.K.
+      \begin{quote} #1: #2\par \end{quote}            %<--------- I.K.
+    \else                                             %<--------- I.K.
     #1: #2\par
+    \fi                                               %<--------- I.K.
   \else
-    \global \@minipagefalse
-    \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
+    \hbox to\hsize{\hfil\box\@tempboxa\hfil}%
   \fi
   \vskip\belowcaptionskip}
 \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
@@ -490,37 +726,37 @@
 \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
 \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
 \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
-\DeclareRobustCommand*\cal{\@fontswitch\relax\mathcal}
-\DeclareRobustCommand*\mit{\@fontswitch\relax\mathnormal}
-\newcommand\@pnumwidth{1.55em}
-\newcommand\@tocrmarg{2.55em}
-\newcommand\@dotsep{4.5}
+\DeclareRobustCommand*{\cal}{\@fontswitch{\relax}{\mathcal}}
+\DeclareRobustCommand*{\mit}{\@fontswitch{\relax}{\mathnormal}}
+\newcommand{\@pnumwidth}{1.55em}
+\newcommand{\@tocrmarg} {2.55em}
+\newcommand{\@dotsep}{4.5}
 \setcounter{tocdepth}{3}
-\newcommand\tableofcontents{%
+\newcommand{\tableofcontents}{%
     \section*{\contentsname
-        \@mkboth{%
-           \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}%
+        \@mkboth{\uppercase{\contentsname}}{\uppercase{\contentsname}}}%
     \@starttoc{toc}%
     }
-\newcommand*\l@part[2]{%
+\newcommand*{\l@part}[2]{%
   \ifnum \c@tocdepth >-2\relax
-    \addpenalty\@secpenalty
+    \addpenalty{\@secpenalty}%
     \addvspace{2.25em \@plus\p@}%
     \begingroup
+      \setlength\@tempdima{3em}%
       \parindent \z@ \rightskip \@pnumwidth
       \parfillskip -\@pnumwidth
       {\leavevmode
-       \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
+       \large \bfseries #1\hfil \hbox to\@pnumwidth{\hss #2}}\par
        \nobreak
-       \if@compatibility
-         \global\@nobreaktrue
-         \everypar{\global\@nobreakfalse\everypar{}}%
-      \fi
+%%%       \if@compatibility
+%%%         \global\@nobreaktrue
+%%%         \everypar{\global\@nobreakfalse\everypar{}}
+%%%      \fi
     \endgroup
   \fi}
-\newcommand*\l@section[2]{%
+\newcommand*{\l@section}[2]{%
   \ifnum \c@tocdepth >\z@
-    \addpenalty\@secpenalty
+    \addpenalty{\@secpenalty}%
     \addvspace{1.0em \@plus\p@}%
     \setlength\@tempdima{1.5em}%
     \begingroup
@@ -529,50 +765,55 @@
       \leavevmode \bfseries
       \advance\leftskip\@tempdima
       \hskip -\leftskip
-      #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
+      #1\nobreak\hfil \nobreak\hbox to\@pnumwidth{\hss #2}\par
     \endgroup
   \fi}
-\newcommand*\l@subsection{\@dottedtocline{2}{1.5em}{2.3em}}
-\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}}
-\newcommand\listoffigures{%
+\newcommand*{\l@subsection}   {\@dottedtocline{2}{1.5em}{2.3em}}
+\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}}
+\newcommand{\listoffigures}{%
     \section*{\listfigurename
-      \@mkboth{\MakeUppercase\listfigurename}%
-              {\MakeUppercase\listfigurename}}%
+      \@mkboth{\uppercase{\listfigurename}}%
+              {\uppercase{\listfigurename}}}%
     \@starttoc{lof}%
     }
-\newcommand*\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}
-\newcommand\listoftables{%
+\newcommand*{\l@figure}{\@dottedtocline{1}{1.5em}{2.3em}}
+\newcommand{\listoftables}{%
     \section*{\listtablename
-      \@mkboth{%
-          \MakeUppercase\listtablename}{\MakeUppercase\listtablename}}%
+      \@mkboth{\uppercase{\listtablename}}{\uppercase{\listtablename}}}%
     \@starttoc{lot}%
     }
 \let\l@table\l@figure
 \newdimen\bibindent
-\setlength\bibindent{1.5em}
+\bibindent=1.5em
 \newenvironment{thebibliography}[1]
      {\section*{\refname
-        \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}}%
-      \list{\@biblabel{\@arabic\c@enumiv}}%
+        \@mkboth{\uppercase{\refname}}{\uppercase{\refname}}}%
+      \list{\@biblabel{\arabic{enumiv}}}%
            {\settowidth\labelwidth{\@biblabel{#1}}%
             \leftmargin\labelwidth
             \advance\leftmargin\labelsep
-            \@openbib@code
+            \if@openbib
+              \advance\leftmargin\bibindent
+              \itemindent -\bibindent
+              \listparindent \itemindent
+              \parsep \z@
+            \fi
             \usecounter{enumiv}%
             \let\p@enumiv\@empty
-            \renewcommand\theenumiv{\@arabic\c@enumiv}}%
-      \sloppy
-      \clubpenalty4000
-      \@clubpenalty \clubpenalty
-      \widowpenalty4000%
-      \sfcode`\.\@m}
+            \renewcommand{\theenumiv}{\arabic{enumiv}}}%
+      \if@openbib
+        \renewcommand{\newblock}{\par}
+      \else
+        \renewcommand{\newblock}{\hskip .11em \@plus.33em \@minus.07em}%
+      \fi
+      \sloppy\clubpenalty4000\widowpenalty4000%
+      \sfcode`\.=\@m}
      {\def\@noitemerr
        {\@latex@warning{Empty `thebibliography' environment}}%
       \endlist}
-\newcommand\newblock{\hskip .11em\@plus.33em\@minus.07em}
-\let\@openbib@code\@empty
+\newcommand{\newblock}{}
 \newenvironment{theindex}
                {\if@twocolumn
                   \@restonecolfalse
@@ -582,42 +823,42 @@
                 \columnseprule \z@
                 \columnsep 35\p@
                 \twocolumn[\section*{\indexname}]%
-                \@mkboth{\MakeUppercase\indexname}%
-                        {\MakeUppercase\indexname}%
+                \@mkboth{\uppercase{\indexname}}%
+                        {\uppercase{\indexname}}%
                 \thispagestyle{plain}\parindent\z@
                 \parskip\z@ \@plus .3\p@\relax
                 \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}
-\renewcommand\footnoterule{%
+\newcommand{\@idxitem}  {\par\hangindent 40\p@}
+\newcommand{\subitem}   {\par\hangindent 40\p@ \hspace*{20\p@}}
+\newcommand{\subsubitem}{\par\hangindent 40\p@ \hspace*{30\p@}}
+\newcommand{\indexspace}{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
+\renewcommand{\footnoterule}{%
   \kern-3\p@
-  \hrule\@width.4\columnwidth
+  \hrule width .4\columnwidth
   \kern2.6\p@}
-\newcommand\@makefntext[1]{%
+\long\def\@makefntext#1{%
     \parindent 1em%
     \noindent
-    \hb@xt@1.8em{\hss\@makefnmark}#1}
-\newcommand\contentsname{Contents}
-\newcommand\listfigurename{List of Figures}
-\newcommand\listtablename{List of Tables}
-\newcommand\refname{References}
-\newcommand\indexname{Index}
-\newcommand\figurename{Figure}
-\newcommand\tablename{Table}
-\newcommand\partname{Part}
-\newcommand\appendixname{Appendix}
-\newcommand\abstractname{Abstract}
-\def\today{\ifcase\month\or
+    \hbox to 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}{\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}
 \setlength\columnsep{10\p@}
 \setlength\columnseprule{0\p@}
 \pagestyle{plain}
-\pagenumbering{arabic}
+\pagenumbering{arabic}      % Arabic page numbers
 \if@twoside
 \else
   \raggedbottom
@@ -629,6 +870,41 @@
 \else
   \onecolumn
 \fi
+
+%%>\setlength{\textwidth}{117mm}
+%%>\setlength{\textheight}{168mm}
+%%>\setlength{\footskip}{14mm}
+%%>\hoffset=- 2 cm
+%%>\voffset=- 22 mm
+%
+% \changes{inprep}{1995/01/29 v1.2}
+%         {Section numbering format replaced: point is added}
+%%%\def\@seccntformat#1{\csname the#1\endcsname\hskip 1em}
+\def\@seccntformat#1{\csname the#1\endcsname.\hskip 1em}
+%
+% \changes{inprep}{1995/03/16 v1.2d}
+% {Collapse citation numbers to ranges}
+%
+% Non-numeric and undefined labels are handled.
+% No sorting is done.  E.g., 1,3,2,3,4,5,foo,1,2,3,?,4,5
+% gives 1,3,2-5,foo,1-3,?,4,5
+\newcount\@tempcntc
+\def\@citex[#1]#2{\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi
+  \@tempcnta\z@\@tempcntb\m@ne\def\@citea{}\@cite{\@for\@citeb:=#2\do
+    {\@ifundefined
+       {b@\@citeb}{\@citeo\@tempcntb\m@ne\@citea\def\@citea{,}{\bf ?}\@warning
+       {Citation `\@citeb' on page \thepage \space undefined}}%
+    {\setbox\z@\hbox{\global\@tempcntc0\csname b@\@citeb\endcsname\relax}%
+     \ifnum\@tempcntc=\z@ \@citeo\@tempcntb\m@ne
+       \@citea\def\@citea{,}\hbox{\csname b@\@citeb\endcsname}%
+     \else
+      \advance\@tempcntb\@ne
+      \ifnum\@tempcntb=\@tempcntc
+      \else\advance\@tempcntb\m@ne\@citeo
+      \@tempcnta\@tempcntc\@tempcntb\@tempcntc\fi\fi}}\@citeo}{#1}}
+\def\@citeo{\ifnum\@tempcnta>\@tempcntb\else\@citea\def\@citea{,}%
+  \ifnum\@tempcnta=\@tempcntb\the\@tempcnta\else
+   {\advance\@tempcnta\@ne\ifnum\@tempcnta=\@tempcntb \else \def\@citea{--}\fi
+    \advance\@tempcnta\m@ne\the\@tempcnta\@citea\the\@tempcntb}\fi\fi}
+
 \endinput
-%%
-%% End of file `article.cls'.

 

Close Window
 
  The service has been written by
Heinrich Stamerjohanns