arxmliv
arxmliv build tool
 
KWARC group
LaTeXML
About
   
 

Back to Homepage

--- /arXMLiv/repos/arXMLiv/trunk/sty/ijamas.cls	2012-08-16 17:29:00.447760388 +0200
+++ /arXMLiv/repos/arXMLiv/trunk/sty/rcdbook.cls	2007-06-14 22:26:39.000000000 +0200
@@ -1,42 +1,78 @@
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %%
-%% This is file `article.cls' changed to
-%% IJAMAS.cls by Delfim F. M. Torres, IJAMAS Editor, January 2006
-%% Last change: 22/February/2006
-%%
-%% THIS FILE MUST NOT BE CHANGED
-%%
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%% This is file `rcdbook.cls',
 %% generated with the docstrip utility.
 %%
 %% The original source files were:
 %%
-%% classes.dtx  (with options: `article')
+%% classes.dtx  (with options: `rcdbook.cls')
 %%
 %% This is a generated file.
 %%
-%% Copyright 1993 1994 1995 1996 1997 1998 1999 2000 2001
+%% Copyright 1993 1994 1995 1996 1997
 %% The LaTeX3 Project and any individual authors listed elsewhere
 %% in this file.
 %%
-%% This file was generated from file(s) of the LaTeX base system.
-%% --------------------------------------------------------------
+%% 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:
+%%
+%% You are NOT ALLOWED to distribute this file alone.
+%%
+%% You are allowed to distribute this file under the condition that it
+%% is distributed together with all the files listed in manifest.txt.
+%%
+%% If you receive only some of these files from someone, complain!
+%%
+%%
+%% 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.
+%%
+%% 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.
+%%
+%%
+%% MODIFICATION ADVICE:
+%%
+%% 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.
+%%
+%% 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.
+%%
+%% 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.
+%%
+%% The names of the source files used are shown above.
+%%
 %%
-%% It may be distributed and/or modified under the
-%% conditions of the LaTeX Project Public License, either version 1.2
-%% of this license or (at your option) any later version.
-%% The latest version of this license is in
-%%    http://www.latex-project.org/lppl.txt
-%% and version 1.2 or later is part of all distributions of LaTeX
-%% version 1999/12/01 or later.
-%%
-%% This file may only be distributed together with a copy of the LaTeX
-%% base system. You may however distribute the LaTeX base system without
-%% such generated files.
-%%
-%% The list of all files belonging to the LaTeX base distribution is
-%% given in the file `manifest.txt'. See also `legal.txt' for additional
-%% information.
 %%
 %% \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
@@ -54,13 +90,15 @@
 %%   Grave accent  \`     Left brace    \{     Vertical bar  \|
 %%   Right brace   \}     Tilde         \~}
 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
-\ProvidesClass{ijamas}
-              [2001/04/21 v1.4e
+\ProvidesClass{rcdbook}
+              [2001/01/01 v2.0
  Standard LaTeX document class]
 \newcommand\@ptsize{}
 \newif\if@restonecol
-\newif\if@titlepage
-\@titlepagefalse
+\newif\if@rule
+\newif\if@titlepage \@titlepagefalse
+\newif\if@openright
+\newif\if@mainmatter \@mainmattertrue
 \if@compatibility\else
 \DeclareOption{a4paper}
    {\setlength\paperheight {297mm}%
@@ -90,6 +128,7 @@
 \else
 \DeclareOption{10pt}{\renewcommand\@ptsize{0}}
 \fi
+\DeclareOption{9pt}{\renewcommand\@ptsize{0}\mag=900}
 \DeclareOption{11pt}{\renewcommand\@ptsize{1}}
 \DeclareOption{12pt}{\renewcommand\@ptsize{2}}
 \if@compatibility\else
@@ -97,6 +136,7 @@
 \fi
 \DeclareOption{twoside}{\@twosidetrue  \@mparswitchtrue}
 \DeclareOption{draft}{\setlength\overfullrule{5pt}}
+\DeclareOption{rule}{\@ruletrue}
 \if@compatibility\else
 \DeclareOption{final}{\setlength\overfullrule{0pt}}
 \fi
@@ -104,6 +144,12 @@
 \if@compatibility\else
 \DeclareOption{notitlepage}{\@titlepagefalse}
 \fi
+\if@compatibility
+ \@openrighttrue
+\else
+ \DeclareOption{openright}{\@openrighttrue}
+ \DeclareOption{openany}{\@openrightfalse}
+\fi
 \if@compatibility\else
 \DeclareOption{onecolumn}{\@twocolumnfalse}
 \fi
@@ -116,16 +162,30 @@
       \advance\leftmargin\bibindent
       \itemindent -\bibindent
       \listparindent \itemindent
-      \parsep 0 em%  \z@
+      \parsep \z@
       }%
    \renewcommand\newblock{\par}}%
 }
-\ExecuteOptions{letterpaper,10pt,oneside,onecolumn,final}
+\ExecuteOptions{a5paper,10pt,twoside,onecolumn,final,openright}
 \ProcessOptions
-\input{size1\@ptsize.clo}
+\input{bk1\@ptsize.clo}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\newcommand\format[2]{% формат книг, например \format{145}{200}
+    \setlength\textwidth   {#1truemm}
+    \setlength\textheight  {#2truemm}
+    \advance\textwidth  by -31truemm     % 13mm + 18mm
+    \advance\textheight by -29truemm    % 15mm + 13mm
+    \advance\textheight by -\headheight
+    \advance\textheight by -\headsep
+    \setlength\topmargin{-12.4truemm} % =  25.4 - 15
+    \oddsidemargin=-7.4truemm           % Внешнее 13mm внутреннее 18mm
+    \evensidemargin=-7.4truemm}
+\format{145}{200}% формат по умолчанию
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\parindent=2em
 \setlength\lineskip{1\p@}
 \setlength\normallineskip{1\p@}
-\renewcommand\baselinestretch{}
+\renewcommand\baselinestretch{0.95}
 \setlength\parskip{0\p@ \@plus \p@}
 \@lowpenalty   51
 \@medpenalty  151
@@ -140,22 +200,45 @@
 \setcounter{dbltopnumber}{2}
 \renewcommand\dbltopfraction{.7}
 \renewcommand\dblfloatpagefraction{.5}
+\if@rule
+ \def\@hrulesingle{\hrule}%
+ \def\@hruledouble{\hrule height 1pt\vskip2pt\hrule}%
+\else
+ \def\@hrulesingle{}%
+ \def\@hruledouble{}%
+\fi
 \if@twoside
   \def\ps@headings{%
-      \let\@oddfoot\@empty\let\@evenfoot\@empty
-      \def\@evenhead{\thepage\hfil\slshape\leftmark}%
-      \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
+    \let\@oddfoot\@empty%
+    \let\@evenfoot\@empty
+    \def\@@evenhead{\hbox to \textwidth
+       {\small\rlap{\thepage}\hfil{\scshape\leftmark}\hfil\strut}}%
+    \def\@evenhead{\vtop to \headheight {\vss\@@evenhead\@hrulesingle}%
+         \vtop to 0pt{\vskip\headsep\vskip\textheight\vss}}%
+    \def\@@oddhead{\hbox to \textwidth
+            {\small\hfil{\scshape\rightmark}\hfil\llap{\thepage}\strut}}%
+    \def\@oddhead{\vtop to \headheight {\vss\@@oddhead\@hrulesingle}%
+         \vtop to 0pt{\vskip\headsep\vskip\textheight\vss}}%
       \let\@mkboth\markboth
+    \def\chaptermark##1{%
+      \markboth{%
+        \ifnum \c@secnumdepth >\m@ne
+          \if@mainmatter
+            \@chapapp\ \thechapter%
+          \else
+            ##1
+          \fi
+        \fi}{##1}}%
     \def\sectionmark##1{%
-      \markboth {\MakeUppercase{%
+      \markright{%
         \ifnum \c@secnumdepth >\z@
-          \thesection\quad
+          {\rm\presection\thesection}\postsection\hskip1em\relax%
         \fi
-        ##1}}{}}%
-    \def\subsectionmark##1{%
+        ##1}}
+    \def\csectionmark##1{%
       \markright {%
-        \ifnum \c@secnumdepth >\@ne
-          \thesubsection\quad
+        \ifnum \c@secnumdepth >\z@
+          {\rm\precsection\thecsection}\postcsection\hskip1em\relax%
         \fi
         ##1}}}
 \else
@@ -163,21 +246,27 @@
     \let\@oddfoot\@empty
     \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
     \let\@mkboth\markboth
-    \def\sectionmark##1{%
-      \markright {\MakeUppercase{%
+    \def\chaptermark##1{%
+      \markright {{%
         \ifnum \c@secnumdepth >\m@ne
-          \thesection\quad
+          \if@mainmatter
+            \@chapapp\ \thechapter. \ %
+          \fi
         \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\@oddfoot\@empty%
+    \let\@evenfoot\@empty
+    \def\@@evenhead{\hbox to \textwidth {\hfil\strut\hfil}}%
+    \def\@evenhead{\vtop to \headheight {\vss\@@evenhead\@hruledouble}%
+         \vtop to 0pt{\vskip\headsep\vskip\textheight\vss}}%
+    \def\@@oddhead{\hbox to \textwidth{\hfil\strut\hfil}}%
+    \def\@oddhead{\vtop to \headheight {\vss\@@oddhead\@hruledouble}%
+         \vtop to 0pt{\vskip\headsep\vskip\textheight\vss}}%
     \let\@mkboth\@gobbletwo
-    \let\sectionmark\@gobble
-    \let\subsectionmark\@gobble
-    }
+    \let\chaptermark\@gobble
+    \let\sectionmark\@gobble}
   \if@titlepage
   \newcommand\maketitle{\begin{titlepage}%
   \let\footnotesize\small
@@ -186,7 +275,7 @@
   \null\vfil
   \vskip 60\p@
   \begin{center}%
-    {\@title \par}%
+    {\LARGE \@title \par}%
     \vskip 3em%
     {\large
      \lineskip .75em%
@@ -230,7 +319,7 @@
       \global\@topnum\z@   % Prevents figures from going at top of page.
       \@maketitle
     \fi
-    \@thanks%\thispagestyle{plain}\@thanks
+    \thispagestyle{empty}\@thanks
   \endgroup
   \setcounter{footnote}{0}%
   \global\let\thanks\relax
@@ -251,92 +340,240 @@
   \vskip 2em%
   \begin{center}%
   \let \footnote \thanks
-    {\fontsize{16pt}{15pt}\selectfont \bf \@title \par}%
-    \vskip 1.5em%
-    {\large
-      \lineskip .5em%
-      \begin{tabular}[t]{c}%
-        \@author
-      \end{tabular}\par}%
-    \vskip 1em%
-    {\large \@date}%
+    {\LARGE\scshape \@author\par}%
+    \vskip 2.5em%
+    {\huge\bfseries \@title\par}%
+    \vfill%
+    {\large \number\year}%
   \end{center}%
   \par
   \vskip 1.5em}
 \fi
-\setcounter{secnumdepth}{3}
+\setcounter{secnumdepth}{4}
 \newcounter {part}
-\newcounter {section}
+\newcounter {chapter}
+\newcounter {section}[part]
+\newcounter {csection}[part]
 \newcounter {subsection}[section]
 \newcounter {subsubsection}[subsection]
-\newcounter {paragraph}[subsubsection]
-\newcounter {subparagraph}[paragraph]
+\newcounter {paragraph}[section]
+\newcounter {subparagraph}[section]
 \renewcommand \thepart {\@Roman\c@part}
-\renewcommand \thesection {\@arabic\c@section}
+\renewcommand \thechapter {\@arabic\c@chapter}
+\renewcommand \thesection {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@section}
+\renewcommand \thecsection {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@csection}
 \renewcommand\thesubsection   {\thesection.\@arabic\c@subsection}
 \renewcommand\thesubsubsection{\thesubsection .\@arabic\c@subsubsection}
-\renewcommand\theparagraph    {\thesubsubsection.\@arabic\c@paragraph}
+\renewcommand \theparagraph {\@arabic\c@paragraph}
 \renewcommand\thesubparagraph {\theparagraph.\@arabic\c@subparagraph}
+\def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else
+   {\null\ps@empty % добавил \ps@empty (и заодно заменил \hbox{} на \null )
+   \newpage}\if@twocolumn\hbox{}\newpage\fi\fi\fi}
+\newcommand\@chapapp{\chaptername}
+\newcommand\frontmatter{%
+  \if@openright
+    \cleardoublepage
+  \else
+    \clearpage
+  \fi
+  \@mainmatterfalse
+  \pagenumbering{roman}}
+\newcommand\mainmatter{%
+  \if@openright
+    \cleardoublepage
+  \else
+    \clearpage
+  \fi
+  \@mainmattertrue
+  \pagenumbering{arabic}}
+\newcommand\backmatter{%
+  \if@openright
+    \cleardoublepage
+  \else
+    \clearpage
+  \fi
+  \@mainmatterfalse}
 \newcommand\part{%
-   \if@noskipsec \leavevmode \fi
-   \par
-   \addvspace{4ex}%
-   \@afterindentfalse
+  \if@openright
+    \cleardoublepage
+  \else
+    \clearpage
+  \fi
+ \thispagestyle{empty}%
+   \if@twocolumn
+     \onecolumn
+     \@tempswatrue
+   \else
+     \@tempswafalse
+   \fi
+  \null\vfil
    \secdef\@part\@spart}

 \def\@part[#1]#2{%
-    \ifnum \c@secnumdepth >\m@ne
+    \ifnum \c@secnumdepth >-2\relax
       \refstepcounter{part}%
-      \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
+      \addcontentsline{toc}{part}{%
+        \MakeUppercase{{\bf\partname\ \thepart}.\hspace{1em}#1}}%
     \else
       \addcontentsline{toc}{part}{#1}%
     \fi
-    {\parindent \z@
-    \raggedright
+    \markboth{}{}%
+    {\centering
      \interlinepenalty \@M
      \normalfont
-     \ifnum \c@secnumdepth >\m@ne
-       \Large\bfseries \partname\nobreakspace\thepart
-       \par\nobreak
+     \ifnum \c@secnumdepth >-2\relax
+       \LARGE\bfseries \partname~\thepart
+       \par
+       \vskip 20\p@
      \fi
-     \huge \bfseries #2%
-     \markboth{}{}\par}%
-    \nobreak
-    \vskip 3ex
-    \@afterheading}
+     \huge \bfseries #2\par}%
+    \@endpart}
 \def\@spart#1{%
-    {\parindent \z@
-    \raggedright
+    {\centering
      \interlinepenalty \@M
      \normalfont
-     \huge \bfseries #1\par}%
+     \Huge \bfseries #1\par}%
+    \@endpart}
+\def\@endpart{\vfil\newpage
+              \if@twoside
+                \null
+                \thispagestyle{empty}%
+                \newpage
+              \fi
+              \if@tempswa
+                \twocolumn
+              \fi}
+
+\def\chapter{%
+   \clearpage
+   \thispagestyle{myheadings}%
+   \global\@topnum\z@
+   \@afterindenttrue % Здесь изменение (было \@afterindentfalse)
+   \def\leftmark{\expandafter\@leftmark\botmark{}{}}
+   \def\rightmark{\expandafter\@rightmark\firstmark{}{}}
+   \secdef\@chapter\@schapter}
+
+\def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
+        \refstepcounter{chapter}%
+        \typeout{Начинается\space\@chapapp\space\thechapter...}%
+        \addcontentsline{toc}{chapter}
+                {{\sc\@chapapp\space\thechapter\postchapter\hspace{0.8em}}%
+    \protect\ignorespaces #1}\else % Добавил два token'а перед #1
+      \addcontentsline{toc}{chapter}{\protect\ignorespaces #1}\fi
+   \chaptermark{\protect\ignorespaces #1}%
+   \addtocontents{lof}%
+       {\protect\addvspace{10\p@}} % Adds between-chapter space
+   \addtocontents{lot}%
+       {\protect\addvspace{10\p@}} % to lists of figs & tables.
+   \if@twocolumn                   % Tests for two-column mode.
+           \@topnewpage[\@makechapterhead{#2}]%
+     \else
+           \@makechapterhead{#2}%
+           \@afterheading          % Routine called after chapter and
+     \fi}                          % section heading.
+
+\def\@makechapterhead#1{%
+  \vspace*{5\p@}%
+  {\parindent \z@%\raggedright
+   \begin{center}
+    \ifnum \c@secnumdepth >\m@ne
+     \Large\sc \@chapapp{} \thechapter
+     \vskip 5\p@
+    \fi
+    {\LARGE\bf\boldmath \ignorespaces #1\par}
+   \end{center}
      \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}}
+    \vskip 30\p@
+  }}
+
+\def\@makeschapterhead#1{%
+  \vspace*{5\p@}%
+  {\parindent \z@ \raggedright
+   \begin{center}
+    {\LARGE\bf\boldmath \ignorespaces #1\par}
+   \end{center}
+    \nobreak
+    \vskip 30\p@
+  }}
+
+\def\@schapter#1{\if@twocolumn
+                   \@topnewpage[\@makeschapterhead{#1}]%
+                 \else
+                   \@makeschapterhead{#1}%
+                   \@afterheading
+                 \fi}
+
+\def\section{\@startsection{section}{1}{\z@}{3.5ex plus 1ex minus .2ex}
+        {2.3ex plus.2ex}{\reset@font\large\bf\raggedright\boldmath}}
+\def\csection{\@startsection{csection}{1}{\z@}{3.5ex plus 1ex minus .2ex}
+        {2.3ex plus.2ex}{\reset@font\large\bf\centering\boldmath}}
+\def\subsection{\@startsection{subsection}{2}{\z@}{2.75ex plus 1ex minus .2ex}
+        {1.5ex plus.2ex}{\reset@font\normalsize\bf\raggedright\boldmath}}
+\def\subsubsection{\@startsection{subsubsection}{3}{\z@}{2.25ex plus 1ex
+        minus.2ex}{1.5ex plus.2ex}{\reset@font\normalsize\bf\raggedright\boldmath}}
+\def\paragraph{\@startsection{paragraph}{4}{\parindent}{1.25ex plus 0.5ex
+        minus.2ex}{-1em plus -.1em}{\normalfont\bfseries\boldmath}}
+\def\subparagraph{\@startsection{subparagraph}{5}{\parindent}{0.75ex plus 0.5ex
+        minus.2ex}{-0.75em plus -.1em}{\normalfont\normalsize\bfseries\boldmath}}
+
+\let\csectionmark\@gobble
+\def\@aftersepkern{\kern-.5em}
+\def\postchapter{.}
+\def\postsection{.\@aftersepkern}
+\def\postcsection{.\@aftersepkern}
+\def\postsubsection{.\@aftersepkern}
+\def\postsubsubsection{.\@aftersepkern}
+\def\postparagraph{.\@aftersepkern}
+\def\postsubparagraph{.\@aftersepkern}
+\def\precsection{}
+\def\presection{}
+\def\presubsection{}
+\def\presubsubsection{}
+\def\preparagraph{}
+\def\presubparagraph{}
+
+\def\@sect#1#2#3#4#5#6[#7]#8{%
+ \ifnum #2>\c@secnumdepth
+    \let\@svsec\@empty
+ \else
+   \refstepcounter{#1}\edef\@svseca{%
+   \csname the#1\endcsname\csname post#1\endcsname\@ifempty{#8}{\ }{\hskip1em}%
+                     }%
+   \def\@svsec{\csname pre#1\endcsname\@svseca}%
+ \fi
+   \@tempskipa #5\relax\ifdim \@tempskipa>\z@
+     \begingroup
+         #6\relax\@hangfrom{\hskip#3\relax\@svsec}%
+                 {\interlinepenalty \@M \ignorespaces#8\par}%
+     \endgroup
+   \csname #1mark\endcsname{\protect\ignorespaces #7}%
+   \addcontentsline{toc}{#1}{\ifnum #2>\c@secnumdepth \else
+        \protect\numberline{\csname pre#1\endcsname%
+               \csname the#1\endcsname\csname post#1\endcsname}\fi
+               \protect\ignorespaces #7}%
+ \else
+    \def\@svsechd{#6\hskip #3\relax\@svsec #8%
+    \csname #1mark\endcsname{\protect\ignorespaces #7}%
+    \addcontentsline{toc}{#1}{%
+           \ifnum #2>\c@secnumdepth
+           \else
+               {\csname pre#1\endcsname%
+                    \csname the#1\endcsname\csname post#1\endcsname
+     \hspace{1em}}\fi\protect\ignorespaces #7}}%
+ \fi\@xsect{#5}}
+
+\def\@ssect#1#2#3#4#5{\@tempskipa #3\relax
+   \ifdim \@tempskipa>\z@
+     \begingroup
+       #4\@hangfrom{\hskip #1}{\interlinepenalty \@M\ignorespaces #5\par}
+     \endgroup
+   \else
+     \def\@svsechd{#4\hskip #1\relax\ignorespaces #5}\fi\@xsect{#3}}
+
 \if@twocolumn
   \setlength\leftmargini  {2em}
 \else
-  \setlength\leftmargini  {2.5em}
+  \setlength\leftmargini  {\parindent}
 \fi
 \leftmargin  \leftmargini
 \setlength\leftmarginii  {2.2em}
@@ -371,42 +608,18 @@
 \newcommand\labelitemiii{\textasteriskcentered}
 \newcommand\labelitemiv{\textperiodcentered}
 \newenvironment{description}
-               {\list{}{\labelwidth \z@
-               \itemindent -\leftmargin
+               {\list{}{\labelwidth\z@ \itemindent-\leftmargin
                         \let\makelabel\descriptionlabel}}
                {\endlist}
 \newcommand*\descriptionlabel[1]{\hspace\labelsep
                                 \normalfont\bfseries #1}
-\if@titlepage
-  \newenvironment{abstract}{%
-      \titlepage
-      \null\vfil
-      \@beginparpenalty\@lowpenalty
-      \begin{center}%
-        \bfseries \abstractname
-        \@endparpenalty\@M
-      \end{center}}%
-     {\par\vfil\null\endtitlepage}
-\else
-  \newenvironment{abstract}{%
-      \if@twocolumn
-        \section*{\abstractname}%
-      \else
-        \small
-        \begin{center}%
-          {\bfseries \abstractname\vspace{-.5em}\vspace{\z@}}%
-        \end{center}%
-        \quotation
-      \fi}
-      {\if@twocolumn\else\endquotation\fi}
-\fi
 \newenvironment{verse}
                {\let\\\@centercr
                 \list{}{\itemsep   \z@
-                        \itemindent   1.5em%
+                        \itemindent   -1.5em%
                         \listparindent \itemindent
                         \rightmargin  \leftmargin
-                        \noindent \leftmargin 1.5em}%
+                        \advance\leftmargin 1.5em}%
                 \item\relax}
                {\endlist}
 \newenvironment{quotation}
@@ -423,6 +636,7 @@
 \if@compatibility
 \newenvironment{titlepage}
     {%
+      \cleardoublepage
       \if@twocolumn
         \@restonecoltrue\onecolumn
       \else
@@ -436,6 +650,7 @@
 \else
 \newenvironment{titlepage}
     {%
+      \cleardoublepage
       \if@twocolumn
         \@restonecoltrue\onecolumn
       \else
@@ -451,25 +666,28 @@
     }
 \fi
 \newcommand\appendix{\par
+  \stepcounter{chapter}%
+  \setcounter{chapter}{0}%
   \setcounter{section}{0}%
-  \setcounter{subsection}{0}%
-  \gdef\thesection{\@Alph\c@section}}
-\setlength\arraycolsep{5\p@}
-\setlength\tabcolsep{6\p@}
+  \renewcommand\@chapapp{\appendixname}%
+  \renewcommand\thechapter{\@Ealph\c@chapter}}
+\setlength\arraycolsep{4\p@}
+\setlength\tabcolsep{5\p@}
 \setlength\arrayrulewidth{.4\p@}
 \setlength\doublerulesep{2\p@}
 \setlength\tabbingsep{\labelsep}
 \skip\@mpfootins = \skip\footins
 \setlength\fboxsep{3\p@}
 \setlength\fboxrule{.4\p@}
-\@addtoreset {equation}{section}
-\renewcommand \theequation {\@arabic\c@equation}
+\@addtoreset{equation}{chapter}
+\renewcommand\theequation
+  {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@equation}
 \newcounter{figure}
 \renewcommand \thefigure {\@arabic\c@figure}
 \def\fps@figure{tbp}
 \def\ftype@figure{1}
 \def\ext@figure{lof}
-\def\fnum@figure{\figurename\nobreakspace\thefigure}
+\def\fnum@figure{\figurename~\thefigure}
 \newenvironment{figure}
                {\@float{figure}}
                {\end@float}
@@ -477,11 +695,12 @@
                {\@dblfloat{figure}}
                {\end@dblfloat}
 \newcounter{table}
-\renewcommand\thetable{\@arabic\c@table}
+\renewcommand \thetable
+     {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@table}
 \def\fps@table{tbp}
 \def\ftype@table{2}
 \def\ext@table{lot}
-\def\fnum@table{\tablename\nobreakspace\thetable}
+\def\fnum@table{\tablename~\thetable}
 \newenvironment{table}
                {\@float{table}}
                {\end@float}
@@ -490,18 +709,8 @@
                {\end@dblfloat}
 \newlength\abovecaptionskip
 \newlength\belowcaptionskip
-\setlength\abovecaptionskip{10\p@}
+\setlength\abovecaptionskip{3\p@}
 \setlength\belowcaptionskip{0\p@}
-\long\def\@makecaption#1#2{%
-  \vskip\abovecaptionskip
-  \sbox\@tempboxa{#1: #2}%
-  \ifdim \wd\@tempboxa >\hsize
-    #1: #2\par
-  \else
-    \global \@minipagefalse
-    \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
-  \fi
-  \vskip\belowcaptionskip}
 \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
 \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
 \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
@@ -516,68 +725,109 @@
 \newcommand\@dotsep{4.5}
 \setcounter{tocdepth}{3}
 \newcommand\tableofcontents{%
-    \section*{\contentsname
-        \@mkboth{%
-           \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}%
+    \if@twocolumn
+      \@restonecoltrue\onecolumn
+    \else
+      \@restonecolfalse
+    \fi
+    \chapter*{\contentsname
+        \@mkboth{\contentsname}{\contentsname}}%
     \@starttoc{toc}%
+    \if@restonecol\twocolumn\fi
     }
-\newcommand*\l@part[2]{%
+\newcommand*\l@part[2]{\par\normalsize%
   \ifnum \c@tocdepth >-2\relax
-    \addpenalty\@secpenalty
+    \addpenalty{-\@highpenalty}%
     \addvspace{2.25em \@plus\p@}%
-    \setlength\@tempdima{3em}%
     \begingroup
-      \parindent 1 em %\z@
-       \rightskip \@pnumwidth
+      \parindent \z@ \rightskip \@pnumwidth
       \parfillskip -\@pnumwidth
       {\leavevmode
-       \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
+       \large \bfseries #1\nobreak\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
        \nobreak
-       \if@compatibility
          \global\@nobreaktrue
          \everypar{\global\@nobreakfalse\everypar{}}%
-      \fi
     \endgroup
   \fi}
-\newcommand*\l@section[2]{%
-  \ifnum \c@tocdepth >\z@
-    \addpenalty\@secpenalty
-    \addvspace{1.0em \@plus\p@}%
+\newcommand*\l@chapter[2]{\par\normalsize%
+  \ifnum \c@tocdepth >\m@ne
+    \addpenalty{-\@highpenalty}%
+    \vskip 1.0em \@plus\p@
     \setlength\@tempdima{1.5em}%
     \begingroup
-      \parindent 0 em %\z@
-      \rightskip \@pnumwidth
+      \parindent \z@ \rightskip \@pnumwidth
       \parfillskip -\@pnumwidth
       \leavevmode \bfseries
       \advance\leftskip\@tempdima
       \hskip -\leftskip
-      #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
+      #1\nobreak\mdseries\leaders\hb@xt@0.8em{\hss.\hss}\hfil
+      \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
+      \penalty\@highpenalty
     \endgroup
+    \setlength{\@tempdima}{\textwidth}
+    \advance\@tempdima -\@pnumwidth
+    \advance\@tempdima -3.8em
+    \ifnum \c@tocdepth > 3
+       \par\parshape=1 3.8em\@tempdima\noindent\small\ignorespaces\fi
   \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}}
+\def\@dottedtocline#1#2#3#4#5{\par%
+  \ifnum #1>\c@tocdepth \else
+    \vskip \z@ \@plus.2\p@
+    {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
+     \parindent #2\relax\@afterindenttrue
+     \interlinepenalty\@M
+     \leavevmode
+     \@tempdima #3\relax
+     \advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip
+     {#4}\nobreak
+     \leaders\hbox{$\m@th
+        \mkern \@dotsep mu\hbox{.}\mkern \@dotsep
+        mu$}\hfill
+     \nobreak
+     \hb@xt@\@pnumwidth{\hss\normalfont \normalcolor #5}\par}%
+    \setlength{\@tempdima}{\textwidth}
+    \advance\@tempdima -\@pnumwidth
+    \advance\@tempdima -3.8em
+    \ifnum \c@tocdepth > 3
+       \par\parshape=1 3.8em \@tempdima\noindent\small\ignorespaces\fi
+  \fi}
+\newcommand*\l@section{\@dottedtocline{1}{1.4em}{2.4em}}
+\newcommand*\l@csection{\@dottedtocline{1}{1.4em}{2.4em}}
+\newcommand*\l@subsection{\@dottedtocline{2}{3.8em}{3em}}
+\newcommand*\l@subsubsection{\@dottedtocline{3}{6.8em}{4em}}
+\newcommand*\l@paragraph[2]{\ifnum 4>\c@tocdepth \else #1~(#2).\fi}
+\newcommand*\l@subparagraph[2]{\ifnum 5>\c@tocdepth \else #1~(#2).\fi}
+
 \newcommand\listoffigures{%
-    \section*{\listfigurename}%
-      \@mkboth{\MakeUppercase\listfigurename}%
-              {\MakeUppercase\listfigurename}%
+    \if@twocolumn
+      \@restonecoltrue\onecolumn
+    \else
+      \@restonecolfalse
+    \fi
+    \chapter*{\listfigurename
+      \@mkboth{\listfigurename}{\listfigurename}}%
     \@starttoc{lof}%
+    \if@restonecol\twocolumn\fi
     }
 \newcommand*\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}
 \newcommand\listoftables{%
-    \section*{\listtablename}%
-      \@mkboth{%
-          \MakeUppercase\listtablename}%
-         {\MakeUppercase\listtablename}%
+    \if@twocolumn
+      \@restonecoltrue\onecolumn
+    \else
+      \@restonecolfalse
+    \fi
+    \chapter*{\listtablename
+      \@mkboth{\listtablename}{\listtablename}}%
     \@starttoc{lot}%
+    \if@restonecol\twocolumn\fi
     }
 \let\l@table\l@figure
 \newdimen\bibindent
 \setlength\bibindent{1.5 em}
 \newenvironment{thebibliography}[1]
-     {\section*{\refname}%
-      \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
+     {\chapter*{\bibname}
+        \@mkboth{\bibname}{\bibname}%
+        \addcontentsline{toc}{extra}{\bibname}%
       \list{\@biblabel{\@arabic\c@enumiv}}%
            {\settowidth\labelwidth{\@biblabel{#1}}%
             \leftmargin\labelwidth
@@ -592,33 +842,83 @@
       \widowpenalty4000%
       \sfcode`\.\@m}
      {\def\@noitemerr
-       {\@latex@warning{Empty `thebibliography' environment}}%
+         {\@latex@warning{Окружение `thebibliography' пусто}}%
       \endlist}
 \newcommand\newblock{\hskip .11em\@plus.33em\@minus.07em}
+
+\newenvironment{thereference}[1]
+     {\vspace{1.5em plus 0.2em minus 0.2em}
+       \goodbreak\centerline{\large\bfseries\bibname}\nopagebreak
+        \addcontentsline{toc}{section}{\bibname}%
+        \markright{\bibname}%
+      \list{\@biblabel{\@arabic\c@enumiv}}%
+           {\settowidth\labelwidth{\@biblabel{#1}}%
+            \leftmargin\labelwidth
+            \advance\leftmargin\labelsep
+            \@openbib@code
+            \usecounter{enumiv}%
+            \let\p@enumiv\@empty
+            \renewcommand\theenumiv{\@arabic\c@enumiv}}%
+      \sloppy
+      \clubpenalty4000
+      \@clubpenalty \clubpenalty
+      \widowpenalty4000%
+      \sfcode`\.\@m}
+     {\def\@noitemerr
+       {\@latex@warning{Окружение `thereference' пусто}}%
+      \endlist}
+\newenvironment{thereference*}[1]
+     {\vspace{2em plus 0.1em minus 0.1em}
+       \goodbreak\centerline{\large\bfseries\bibname}\nopagebreak
+      \list{\@biblabel{\@arabic\c@enumiv}}%
+           {\settowidth\labelwidth{\@biblabel{#1}}%
+            \leftmargin\labelwidth
+            \advance\leftmargin\labelsep
+            \@openbib@code
+            \usecounter{enumiv}%
+            \let\p@enumiv\@empty
+            \renewcommand\theenumiv{\@arabic\c@enumiv}}%
+      \sloppy
+      \clubpenalty4000
+      \@clubpenalty \clubpenalty
+      \widowpenalty4000%
+      \sfcode`\.\@m}
+     {\def\@noitemerr
+       {\@latex@warning{Окружение `thereference' пусто}}%
+      \endlist}
 \let\@openbib@code\@empty
-\newenvironment{theindex}
-               {\if@twocolumn
-                  \@restonecolfalse
-                \else
-                  \@restonecoltrue
-                \fi
-                \columnseprule 0 em %\z@
-                \columnsep 35\p@
-                \twocolumn[\section*{\indexname}]%
-                \@mkboth{\MakeUppercase\indexname}%
-                        {\MakeUppercase\indexname}%
-                \thispagestyle{plain}\parindent\z@
-                \parskip\z@ \@plus .3\p@\relax
+
+\newenvironment{theindex}{%
+  \chapter*{\indexname}
+  \addcontentsline{toc}{extra}{\indexname}
+  \@mkboth{\indexname}{\indexname}%
+  \vspace{-1.5em}
+  \begin{multicols}{2}
+    \newcommand\@idxitem{\par\noindent\hangindent 13\p@}
+    \newcommand\subitem{\@idxitem---\hspace*{4\p@}}
+    \newcommand\subsubitem{\@idxitem---\hspace*{2\p@}---\hspace*{4\p@}}
+    \newcommand\indexspace{\par \vskip 10\p@ \@plus5\p@ \@minus3\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@}}
+  {\end{multicols}}
+
+\newenvironment{theglossary}{%
+  \chapter*{\glossaryname}
+  \addcontentsline{toc}{extra}{\glossaryname}
+  \@mkboth{\glossaryname}{\glossaryname}%
+  \vspace{-1.5em}
+  \begin{multicols}{2}
+    \newcommand\@idxitem{\par\noindent\hangindent 13\p@}
+    \newcommand\subitem{\@idxitem---\hspace*{4\p@}}
+    \newcommand\subsubitem{\@idxitem---\hspace*{2\p@}---\hspace*{4\p@}}
 \newcommand\indexspace{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
+    \let\item\@idxitem}
+  {\end{multicols}}
+
 \renewcommand\footnoterule{%
   \kern-3\p@
   \hrule\@width.4\columnwidth
   \kern2.6\p@}
+\@addtoreset{footnote}{chapter}
 \newcommand\@makefntext[1]{%
     \parindent 1em%
     \noindent
@@ -626,20 +926,22 @@
 \newcommand\contentsname{Contents}
 \newcommand\listfigurename{List of Figures}
 \newcommand\listtablename{List of Tables}
-\newcommand\refname{References}
+\newcommand\bibname{Bibliography}
 \newcommand\indexname{Index}
 \newcommand\figurename{Figure}
 \newcommand\tablename{Table}
 \newcommand\partname{Part}
+\newcommand\chaptername{Chapter}
 \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}
 \setlength\columnsep{10\p@}
-\setlength\columnseprule{0\p@}
-\pagestyle{plain}
+\setlength\columnseprule{\z@}
+\setlength\headsep{6mm}
+\setlength\headheight{2mm}
+\pagestyle{headings}
 \pagenumbering{arabic}
 \if@twoside
 \else
@@ -652,54 +954,173 @@
 \else
   \onecolumn
 \fi
+\raggedbottom
+\widowpenalty10000
+\tolerance1500

-\usepackage[dcucite]{harvard}
-\renewcommand{\harvardyearleft}{}
-\renewcommand{\harvardyearright}{}
-
-\renewcommand{\familydefault}{\sfdefault}
-
-\usepackage{amsmath}
-\usepackage{amsthm}
-\usepackage{amscd}
-\usepackage{amsbsy}
-\usepackage{amssymb}
-\usepackage{amsmath}
-\usepackage{amsfonts}
-\usepackage{amsopn}
-
-\usepackage{times}
-
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-\textwidth 15.92 cm
-\textheight 24.62 cm
-\oddsidemargin - 0.06 cm
-\topmargin - 1.46cm
-
-\theoremstyle{plain}
-\newtheorem{theorem}{Theorem}[section]
-\newtheorem{corollary}[theorem]{Corollary}
-\newtheorem{lemma}[theorem]{Lemma}
-\newtheorem{proposition}[theorem]{Proposition}
 %
-\theoremstyle{definition}
-\newtheorem{definition}{Definition}[section]
+%   Дополнительные разделы
+%     extra - аналог chapter
 %
-\theoremstyle{remark}
-\newtheorem{remark}{Remark}[section]

-\renewcommand{\theequation}{\thesection.\arabic{equation}}
-\setlength{\parindent}{0pt} \pagestyle{empty}
+\def\@exbk@arg#1{\@ifnextchar[{#1}{\@exxbk@arg{#1}}}
+\def\@exxbk@arg#1#2{#1[#2]{#2}}

-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\def\@make@extraheadings[#1]#2{%
+    \par
+    \@tempskipa 15\p@
+    \addpenalty\@secpenalty\addvspace\@tempskipa
+     {\Large\bf\centering
+          \interlinepenalty \@M \ignorespaces #2%
+          \addcontentsline{toc}{extras}{\protect\ignorespaces #1}
+          \markboth{#1}{#1}
+      \par}
+    \nobreak
+    \vskip 10\p@\nobreak}

-\newenvironment{keywords}{{\bf Keywords:}}
+\def\@make@extraheading[#1]#2{%
+        \chapter*{#2}
+        \addcontentsline{toc}{extra}{\protect\ignorespaces #1}%
+        \markboth{#1}{#1}}

-\newenvironment{msc}{{\bf 2000 Mathematics Subject Classification:}\medskip}
+\def\extra{\stepcounter{section}\setcounter{section}{0}%
+    \@ifstar{\@extras}{\@extra}}
+\def\@extra{\@exbk@arg{\@make@extraheading}}
+\def\@extras{\@exbk@arg{\@make@extraheadings}}

-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\def\l@extra#1#2{\par\normalsize%
+  \ifnum \c@tocdepth >\m@ne
+    \addpenalty{-\@highpenalty}%
+    \vskip 0.5em \@plus\p@
+    \setlength\@tempdima{1.5em}%
+    \begingroup
+      \parindent \z@ \rightskip \@pnumwidth
+      \parfillskip -\@pnumwidth
+      \leavevmode \bfseries
+      \advance\leftskip\@tempdima
+      \hskip -\leftskip
+      #1\nobreak\mdseries\leaders\hb@xt@0.8em{\hss.\hss}\hfil
+        \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
+      \penalty\@highpenalty
+    \endgroup
+    \setlength{\@tempdima}{\textwidth}
+    \advance\@tempdima -\@pnumwidth
+    \advance\@tempdima -3.8em
+    \ifnum \c@tocdepth > 3
+       \par\parshape=1 3.8em\@tempdima\noindent\small\ignorespaces\fi
+  \fi}

-\endinput
+\def\l@extras#1#2{\par\normalsize%
+  \ifnum \c@tocdepth >\m@ne
+    \addpenalty{-\@highpenalty}%
+    \vskip 0.5em \@plus\p@
+    \setlength\@tempdima{1.5em}%
+    \begingroup
+      \parindent \z@ \rightskip \@pnumwidth
+      \parfillskip -\@pnumwidth
+      \leavevmode \bfseries
+      \advance\leftskip\@tempdima
+      \hskip -\leftskip
+      #1\nobreak\mdseries\leaders\hb@xt@0.8em{\hss.\hss}\hfil
+        \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
+      \penalty\@highpenalty
+    \endgroup
+    \setlength{\@tempdima}{\textwidth}
+    \advance\@tempdima -\@pnumwidth
+    \advance\@tempdima -3.8em
+    \ifnum \c@tocdepth > 3
+       \par\parshape=1 3.8em\@tempdima\noindent\small\ignorespaces\fi
+  \fi}
+
+\usepackage{amsmath,amssymb}
+\usepackage{multicol}
+\usepackage[graph]{rcdgraph}
+\usepackage{rcdthm,rcdcom}
+\usepackage{cropmark}
+\usepackage[OT1,T2A]{fontenc}
+\usepackage[cp1251]{inputenc}
+\usepackage[english,russian]{babel}
+
+
+\AtBeginDocument{%
+        \gdef\glossaryname{Именной указатель}
+        \gdef\proofname{Доказательство}
+        \gdef\indexname{Предметный указатель}
+        \gdef\bibname{Литература}
+}
+
+\gdef\f{\kern1.5\p@\protect\nobreakdash--\kern1.5\p@\hspace{\z@}}
+\let\d=\partial
+
+%%
+%% Определим команды \ralph и \Ralph, аналогичные \alph и \Alph,
+%% но с русскими буквами. Естественно, \"е, й, ъ, ы, ь пропускаются.
+%%
+\def\prefix#1#2{\@ifundefined{c@#1}{\@nocnterr}%
+  {\expandafter\def\csname p@#1\endcsname{#2}}}
+\def\ralph#1{\@ralph{\@nameuse {c@#1}}}
+\def\@ralph#1{\ifcase #1\or а\or б\or в\or г\or д\or е\or ж\or з\or
+      и\else\@iralph{#1}\fi
+ }
+\def\@iralph#1{\ifcase #1\or\or\or\or\or\or\or\or\or\or
+     к\or л\or м\or н\or о\or п\or р\or с\or т\or у\or
+     ф\or х\or ц\or ч\or ш\or щ\or э\or ю \or я\else\@ctrerr
+     \fi}
+\def\Ralph#1{\@Ralph{\@nameuse {c@#1}}}
+\def\@Ralph#1{\ifcase #1%
+     \or А\or Б\or В\or Г\or Д\or Е\or Ж\or З\or
+     И\else\@iRalph{#1}\fi}
+\def\@iRalph#1{\ifcase #1%
+     \or\or\or\or\or\or\or\or\or\or К\or Л\or М\or
+     Н\or О\or П\or Р\or С\or Т\or У\or Ф\or Х\or Ц\or
+     Ч\or Ш\or Щ\or Э\or Ю \or Я\else\@ctrerr\fi}
+
+\def\ealph#1{\expandafter\@ealph\csname c@#1\endcsname}
+\def\Ealph#1{\expandafter\@Ealph\csname c@#1\endcsname}
+\def\@ealph#1{%
+  \ifcase#1\or a\or b\or c\or d\or e\or f\or g\or h\or i\or j\or
+   k\or l\or m\or n\or o\or p\or q\or r\or s\or t\or u\or v\or w\or x\or
+    y\or z\else\@ctrerr\fi}
+\def\@Ealph#1{%
+  \ifcase#1\or A\or B\or C\or D\or E\or F\or G\or H\or I\or J\or
+   K\or L\or M\or N\or O\or P\or Q\or R\or S\or T\or U\or V\or W\or X\or
+    Y\or Z\else\@ctrerr\fi}
+% Звездочки для сносок (не более 5)
+\def\footast#1{\@footast{\@nameuse {c@#1}}}
+\def\@footast#1{\ifcase #1\or *\or **\or ***\or ****\or *****\else\@ctrerr
+     \fi}
+%
+% Теперь "русифицируем" окружение enumerate:
+%
+\def\labelenumi{$\theenumi)$}      % чтобы после номера шла скобка;\endinput
+\def\theenumii{\ralph{enumii}}   % чтобы на втором уровне шли русские,%%
+\def\labelenumii{\theenumii\/{\rm)}}    % а не латинские буквы
+\def\p@enumii{\theenumi}         % а это для \ref
+\def\labelenumiii{{\bf--}}       % а на третьем уровне пусть будут лишь тире,
+\let\theenumiii\relax            % и отдельных ссылок на него не будет
+\def\p@enumiii{\theenumi\theenumii}
+%
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %%
-%% End of file `ijamas.cls'.
+%% Окружения типа теорема
+%%
+
+\def\prooffont{\sc}
+\rcdthmsep=\medskipamount
+
+\newrcdthm{teo}{Теорема}
+\newrcdthm{lem}{Лемма}
+\newrcdthm{cor}{Следствие}
+\newrcdthm{pro}{Предложение}
+\newrcdthm[definition]{fed}{Определение}
+\newrcdthm[remark]{rem}{Замечание}
+\newrcdthm[definition]{com}{Комментарий}
+\newrcdthm[example]{exl}{Пример}
+
+
+
+\endinput
+%
+% End of file `rcdbook.cls'
+%

 

Close Window
 
  The service has been written by
Heinrich Stamerjohanns