%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% This is file `Collection.cls', modified from AMLBook.cls
%%
%% Supposed to be used for Erlagol collection of papers.
%%
%% "AML" stands for "Department of Algebra and Mathematical Logic, NSTU"
%% "NSTU" stands for "Novosibirsk State Technical University"
%% "Erlagol" stands for Erlagol camping center, traditional place for
%% The Summer School "Intermediate Problems of Model Theory and of
%% Universal Algebra"
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% The following section concernes differences between book.cls and AMLBook.cls
%% (asterisk sign marks inherrited features)
%%
%% Changes made
%%  A. New options
%%     1. footnotespecial|footnotenormal
%%      Special allows three types of footnote: footnote, footserious,
%%          footsmile
%%     2. nobibnameincontents
%%      Doesn't allow to put \bibname in contents
%%                (default is put - no option needed)
%%     3. chapterunderlined
%%      Underlines chapter heads (in mainmatter only)
%%     4. Several options disabled (concerning never-to-be-used paper sizes)
%%  A'. New option defaults
%%    a4paper,10pt,twoside,onecolumn,final,openany,footnotespecial
%%  B. New commands
%%     1. \footnoteserious - puts footnote in serious style
%%     2. \footnotesmile   - puts footnote in funny style
%%  C. New symbols
%%     1. Mathsymbols: \I, \N, \Z, \Q, \P, \R, \C, \ZM
%%     2. Special: \sml, \qed
%%  D. New parameters
%%     1*. Underline colontituls:
%%           length \URskip - distance beetween text and line,
%%           length \URthickness - line thickness (set to 0pt for none)
%%  E. Modifications
%%     1. theindex produces contents line (use only in backmatter)
%%     2. thebibliography does the same
%%     3. Chapter head skips less from the begining of the page.
%%        (10pt instead of 50pt before and 20pt instead of 40pt after)
%%     4*. First paragraph of any section MAKES indent
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% This section describes changes to be made to create Collection.cls
%%
%% 1. maketitlepage:
%%  NSTU\\Algebra&Model Theory #N\\edited by <Pinus+Ponomaryov>\\year
%%
%% 2. makebacktitlepage
%%
%% 3. preface: create environment for talkes' schedule. (*)
%%
%% 4. Articles:
%%  @title (*)
%%  @author (*) \twoauthors (*)
%%  @address (*) \twoaddresses (*)
%%  @email (*) \twoemails (*)
%%  @thanks (*)
%%  \maketitle (*)
%%  \abstract  (*)
%%  \printabstractes (*)
%%      disable \bibname in contents (*)
%%  define page layout in order to fit RIO requirements
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Instructions for authors: demands on articles' form.
%%
%% 1. \documentclass[options]{article}
%% 2. Every non-standard .sty file should be included (list of standard
%%    packages: ...)
%% 3. Try to avoid using amsfonts. If you still need to use them, please
%%    fit the following instructions.
%%    1. Every symbol or group of symbols with amsfonts should be described
%%       in preamble with \newcommand or \def
%%    2. Please include printed text
%%    3. Most likely we'll replace that symbols with smth possibly similar
%%
%% 4. Define variables \title, \author, [\thanks]
%% 5. Make commented lines with definitions
%%    [\email], \address (may be written in several lines)
%% 6. Type abstract using \begin{abstract}...\end{abstract} environment
%% 7. Use sectioning with \section, \subsection and lower
%% 8. Use \label - \ref mechanism to address formulas and theorem-like
%%    environments
%% 9. Don't redefine standard procedures like \theequation and logos like
%%    \refname. Any definitions and possible redefinitions should appear
%%    only in preamble.
%% 10. Use thebibliography environment for references.
%% 11. Don't redefine page layout parameteres (\textwidth, \textheight and
%%     so on)
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Changes already made:
%%
%% 6.04.2000
%% \bibname in contents disabled
%% chapterheadunderline disabled
%% 7.04.2000
%% Defined command \abstract to write abstract in file. Defined commands
%% \makeabstracts and \printabstracts.
%% 8.04.2000
%% \maketitle redefined. Defined commands \twoauthors, \twoaddresses,
%% \twoemails. Command \thanks redefined for to be used twice in a row
%% if necessary. Example of usage in case of one author:
%%
%% \title{...}
%% \author{...}
%% \address{...}
%% \email{...} (optional)
%% \thanks{...} (optional)
%% \maketitle
%% \abstract{...} (optional)
%%
%% In case of two authors:
%%
%% \title{...}
%% \twoauthors{...}{...}
%% \twoaddresses{...}{...}
%% \email{...} (for first author) or \twoemails{...}{...} for both (optional)
%% \thanks{...} --- for first author (optional)
%% \thanks{...} --- for second author (optional)
%% \maketitle
%% \abstract{...} (optional)
%%
%% Options added uptitle|nouptitle - instructions how to print title (upcase or
%%                                                                       as is)
%% Environment <talks> created. Usage:
%% \talkstyle{<\datastyle>}{<\timestyle>}{<authorstyle>}
%% \begin{talks}
%% \tdate{<date>}
%% \talk{<start>}{<finish>}{<author>} Title
%% ...
%% \end{talks}
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{amlcoll}
              [2000/04/04 v1.0
 Special LaTeX document class for AML]
\usepackage[breakall]{truncate}
\newcommand{\@ptsize}{}
\newif\if@restonecol
\newif\if@openbib
\newif\if@titleinupcase
\newif\if@english
\@openbibfalse
\DeclareOption{a4paper}
   {\setlength\paperheight {297mm}%
    \setlength\paperwidth  {210mm}}
\DeclareOption{a5paper}
   {\setlength\paperheight {210mm}%
    \setlength\paperwidth  {148mm}}
\DeclareOption{letterpaper}
   {\setlength\paperheight {11in}%
    \setlength\paperwidth  {8.5in}}
\DeclareOption{landscape}
   {\setlength\@tempdima   {\paperheight}%
    \setlength\paperheight {\paperwidth}%
    \setlength\paperwidth  {\@tempdima}}
\DeclareOption{10pt}{\renewcommand{\@ptsize}{0}}
\DeclareOption{11pt}{\renewcommand{\@ptsize}{1}}
\DeclareOption{12pt}{\renewcommand{\@ptsize}{2}}
\DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse}
\DeclareOption{twoside}{\@twosidetrue  \@mparswitchtrue}
\DeclareOption{draft}{\setlength\overfullrule{5pt}}
\DeclareOption{final}{\setlength\overfullrule{0pt}}
\DeclareOption{onecolumn}{\@twocolumnfalse}
\DeclareOption{twocolumn}{\@twocolumntrue}
\DeclareOption{leqno}{\input{leqno.clo}}
\DeclareOption{fleqn}{\input{fleqn.clo}}
\DeclareOption{openbib}{\@openbibtrue}
\DeclareOption{uptitle}{\@titleinupcasetrue}
\DeclareOption{nouptitle}{\@titleinupcasefalse}
\ExecuteOptions{a4paper,10pt,twoside,onecolumn,final,uptitle}
\ProcessOptions
\input{size1\@ptsize.clo}
\setlength\lineskip{1\p@}
\setlength\normallineskip{1\p@}
\renewcommand{\baselinestretch}{}
\setlength\parskip{0\p@ \@plus \p@}
\@lowpenalty   51
\@medpenalty  151
\@highpenalty 301
\setcounter{topnumber}{2}
\renewcommand{\topfraction}{.7}
\setcounter{bottomnumber}{1}
\renewcommand{\bottomfraction}{.3}
\setcounter{totalnumber}{3}
\renewcommand{\textfraction}{.2}
\renewcommand{\floatpagefraction}{.5}
\setcounter{dbltopnumber}{2}
\renewcommand{\dbltopfraction}{.7}
\renewcommand{\dblfloatpagefraction}{.5}

\newlength{\URthickness} %%% AML
\newlength{\URskip}      %%% AML
\setlength{\URthickness}{0.4pt} %%% AML
\setlength{\URskip}{3pt}        %%% AML
\newcommand{\underrule}%        %%% AML
{\makebox[0pt][l]{\rule[-\URskip]{\textwidth}{\URthickness}}} %%% AML

\newcommand{\setrussian}{\makeatletter\@englishfalse\makeatother}
\newcommand{\setenglish}{\makeatletter\@englishtrue\makeatother}

\if@twoside
  \def\ps@headings{%
      \let\@oddfoot\@empty\let\@evenfoot\@empty
      \def\@evenhead{\underrule\thepage\hfil\slshape\leftmark}%
      \def\@oddhead{\underrule{\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{\underrule{\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@myheadings{%
    \let\@oddfoot\@empty\let\@evenfoot\@empty
    \def\@evenhead{\underrule\thepage\hfil\slshape\leftmark}%
    \def\@oddhead{\underrule{\slshape\rightmark}\hfil\thepage}%
    \let\@mkboth\@gobbletwo
    \let\sectionmark\@gobble
    \let\subsectionmark\@gobble
    }

\newlength{\tcw}
\setlength{\tcw}{5cm}
\newlength{\tcskip}
\setlength{\tcskip}{7mm}
\let\iftwoauthors\iffalse
\let\iftwoaddresses\iffalse
\let\iftwoemails\iffalse
\newcommand{\twocol}[2]{%
\parbox{\tcw}{\centering\bfseries #1}\hspace{\tcskip}%
\parbox{\tcw}{\centering\bfseries #2}}
\def\title#1{\gdef\@title{#1}
\gdef\@uptitle{\uppercase{#1}}}
\def\shorttitle#1{\gdef\@shorttitle{\uppercase{#1}}}
\def\etitle#1{\gdef\@etitle{#1}}
\def\author#1{\gdef\@author{#1}
\let\iftwoauthors\iffalse}
\def\address#1{\gdef\@address{#1}
\let\iftwoadresses\iffalse}
\def\email#1{\ifx{#1}\empty\gdef\@email{}\else
\gdef\@email{e-mail: #1}\fi
\let\iftwoemails\iffalse}
\newcommand{\twoauthors}[2]{\gdef\@author{#1, #2}
\gdef\@firstauthor{#1}
\gdef\@secondauthor{#2}
\let\iftwoauthors\iftrue}
\def\eauthor#1{\gdef\@eauthor{#1}}
\newcommand{\twoaddresses}[2]{\gdef\@address{#1}
\gdef\@addresstwo{#2}
\let\iftwoaddresses\iftrue}
\newcommand{\insts}[2]{\gdef\@inst{#1} 
\gdef\@insttwo{#2}}
\newcommand{\twoemails}[2]{\ifx{#1}\empty\gdef\@email{}\else
\gdef\@email{e-mail: #1}\fi
\ifx{#2}\empty\gdef\@emailtwo{}\else\gdef\@emailtwo{e-mail: #2}\fi
\let\iftwoemails\iftrue}
\def\thanks#1{\ifx\@thanks\empty\gdef\@thanks{#1}\else
\gdef\@thankstwo{#1}\fi}
\def\@title{}
\def\@etitle{}
\def\@uptitle{}
\def\@shorttitle{}
\def\@author{}
\def\@eauthor{}
\def\@address{}
\def\@email{}
\def\@thanks{}
\def\@uthor{}
\def\@itle{}
\def\@thankstwo{}

\newcommand{\maketitle}{
  \newpage
  \renewcommand{\thefootnote}{\fnsymbol{footnote}}
  \setcounter{footnote}{0}
  \thispagestyle{plain}
%  \null
  \vskip 10pt%
  \begin{center}%
    {\LARGE\bfseries\if@titleinupcase\@uptitle\else\@title\fi \par}%
    \vskip 1.5em%
    {\large
      \lineskip .5em%
  \iftwoauthors
  \twocol{\@firstauthor\ifx\@inst\empty\else$\,^{\@inst}$\fi\ifx\@thanks\empty\else\footnotemark\fi}%
  {\@secondauthor\ifx\@insttwo\empty\else$\,^{\@insttwo}$\fi\ifx\@thankstwo\empty\else\footnotemark\fi}
  \else
      \begin{tabular}[t]{c}%
    \bfseries\@author\ifx\@thanks\empty\else\footnotemark\fi
      \end{tabular}\par%
   \fi }
   \vskip 1em%
    {\normalsize
    \iftwoaddresses
    \twocol{\small\rmfamily\mdseries\@address}{\small\rmfamily\mdseries\@addresstwo}\\[1mm]
    \else
    \rm\@address\\[1mm]\par
    \fi
    \iftwoemails
    \twocol{\small\sffamily\mdseries\@email}{\small\sffamily\mdseries\@emailtwo}
    \else
    {\sf\@email}
    \fi}
    \end{center}%
  \par
  \ifx\@thanks\empty\else\footnotetext[1]{\@thanks}\fi
  \ifx\@thankstwo\empty\else\footnotetext[2]{\@thankstwo}\fi
  \ifx\@etitle\empty\let\@etitle\@title\fi
  \ifx\@eauthor\empty\let\@eauthor\@author\fi
  \ifx\@shorttitle\empty\let\@shorttitle\@uptitle\fi
  \let\@itle\@etitle
  \let\@uthor\@eauthor
  \addcontentsline{toc}{chapter}{\@eauthor, {\it\@etitle}}
  \markboth{\@author}{\truncate{0.99\textwidth}{\footnotesize\@shorttitle}}
  \let\iftwoauthors\iffalse
  \gdef\@title{}\gdef\@author{}\gdef\@address{}\gdef\@email{}
  \gdef\@firstauthor{}\gdef\@secondauthor{}
  \gdef\@emailtwo{}\gdef\@addresstwo{}
  \gdef\@thanks{}\gdef\@thankstwo{}\gdef\@uptitle{}
  \gdef\@eauthor{}\gdef\@etitle{}\gdef\@shorttitle{}
  \renewcommand{\thefootnote}{\arabic{footnote}}
  \setcounter{equation}{0}
  \setcounter{section}{0}
  \setcounter{footnote}{0}
  \vskip 1.5em}

\setcounter{secnumdepth}{3}
\newcounter {part}
\newcounter {section}
\newcounter {subsection}[section]
\newcounter {subsubsection}[subsection]
\newcounter {paragraph}[subsubsection]
\newcounter {subparagraph}[paragraph]
\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}

\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
     \reset@font
     \ifnum \c@secnumdepth >\m@ne
       \Large\bfseries \partname~\thepart
       \par\nobreak
     \fi
     \huge \bfseries #2%
     \markboth{}{}\par}%
    \nobreak
    \vskip 3ex
    \@afterheading}
\def\@spart#1{%
    {\parindent \z@ \raggedright
     \interlinepenalty \@M
     \reset@font
     \huge \bfseries #1\par}%
     \nobreak
     \vskip 3ex
     \@afterheading}
\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}%
                                   {\reset@font\Large\bfseries}}
\newcommand{\subsection}{\@startsection{subsection}{2}{\z@}%
                                     {3.25ex\@plus 1ex \@minus .2ex}%
                                     {1.5ex \@plus .2ex}%
                                     {\reset@font\large\bfseries}}
\newcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@}%
                                     {3.25ex\@plus 1ex \@minus .2ex}%
                                     {1.5ex \@plus .2ex}%
                                     {\reset@font\normalsize\bfseries}}
\newcommand{\paragraph}{\@startsection{paragraph}{4}{\z@}%
                                    {3.25ex \@plus1ex \@minus.2ex}%
                                    {-1em}%
                                    {\reset@font\normalsize\bfseries}}
\newcommand{\subparagraph}{\@startsection{subparagraph}{5}{\parindent}%
                                       {3.25ex \@plus1ex \@minus .2ex}%
                                       {-1em}%
                                      {\reset@font\normalsize\bfseries}}

\def\abstractsname{Abstracts}
\newcommand{\makeabstracts}{%
\newwrite\abs
\immediate\openout\abs=\jobname.abs}
\@onlypreamble{\makeabstracts}
\newcommand{\abstract}[1]{%
\immediate\write\abs{
\string\bf{}\@uthor.\ %
\string\it{}\@itle.\par %
\string\rm\ \string#1\string\\\par}
\gdef\@uthor{}\gdef\@itle{}}
\newcommand{\writetoabstracts}[1]{\immediate\write\abs{#1}}
\newcommand{\printabstracts}{\immediate\closeout\abs
\clearpage\thispagestyle{plain}\markboth{\abstractsname}{\abstractsname}
{\LARGE\bfseries\abstractsname}\\[1em]
\addcontentsline{toc}{chapter}{\abstractsname}

\input{\jobname.abs}}

\if@twocolumn
  \setlength\leftmargini  {2em}
\else
  \setlength\leftmargini  {2.5em}
\fi
\setlength\leftmarginii  {2.2em}
\setlength\leftmarginiii {1.87em}
\setlength\leftmarginiv  {1.7em}
\if@twocolumn
  \setlength\leftmarginv  {.5em}
  \setlength\leftmarginvi {.5em}
\else
  \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{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
                                \normalfont\bfseries #1}

\newenvironment{talks}{\begin{description}
\settowidth{\labelwidth}{99.99--99.99}
\setlength{\labelsep}{1ex}
\setlength{\itemindent}{5pt}
\setlength{\leftmargin}{\labelwidth}
\addtolength{\leftmargin}{1ex}}
{\end{description}}

\gdef\@tdate{\bfseries}
\gdef\@ttime{\rm}
\gdef\@tauth{}
\newcommand{\talkstyle}[3]{\gdef\@tdate{#1}\gdef\@ttime{#2}\gdef\@tauth{#3}}
\newcommand{\talk}[3]{\item[\@ttime{}#1--#2]{\@tauth{}#3.}}
\newcommand{\Talk}[2]{\item{{\@tauth{}#1}\ ({\@ttime{}#2}).}}
\newcommand{\Ttalk}[4]{\item{{\@tauth{}#1}\ ({\@ttime{}#2}),\\{\@tauth{}#3}\ ({\@ttime{}#4}).}}
\newcommand{\tdate}[1]{\item\begin{center}\@tdate{}#1\end{center}}



\newenvironment{verse}
               {\let\\=\@centercr
                \list{}{\itemsep      \z@
                        \itemindent   -1.5em%
                        \listparindent\itemindent
                        \rightmargin  \leftmargin
                        \advance\leftmargin 1.5em}%
                \item[]}
               {\endlist}
\newenvironment{quotation}
               {\list{}{\listparindent 1.5em%
                        \itemindent    \listparindent
                        \rightmargin   \leftmargin
                        \parsep        \z@ \@plus\p@}%
                \item[]}
               {\endlist}
\newenvironment{quote}
               {\list{}{\rightmargin\leftmargin}%
                \item[]}
               {\endlist}
\newenvironment{titlepage}
    {%
      \if@twocolumn
        \@restonecoltrue\onecolumn
      \else
        \@restonecolfalse\newpage
      \fi
      \thispagestyle{empty}%
      \if@compatibility
        \setcounter{page}{0}
      \else
        \setcounter{page}{1}%
      \fi}%
    {\if@restonecol\twocolumn \else \newpage \fi
      \setcounter{page}{1}%
    }
\newcommand{\appendix}{\par
  \setcounter{section}{0}%
  \setcounter{subsection}{0}%
  \renewcommand{\thesection}{\Alph{section}}}
\setlength\arraycolsep{5\p@}
\setlength\tabcolsep{6\p@}
\setlength\arrayrulewidth{.4\p@}
\setlength\doublerulesep{2\p@}
\setlength\tabbingsep{\labelsep}
\skip\@mpfootins = \skip\footins
\setlength\fboxsep{3\p@}
\setlength\fboxrule{.4\p@}
\renewcommand{\theequation}{\arabic{equation}}
\newcounter{figure}
\renewcommand{\thefigure}{\@arabic\c@figure}
\def\fps@figure{tbp}
\def\ftype@figure{1}
\def\ext@figure{lof}
\def\fnum@figure{\figurename~\thefigure}
\newenvironment{figure}
               {\@float{figure}}
               {\end@float}
\newenvironment{figure*}
               {\@dblfloat{figure}}
               {\end@dblfloat}
\newcounter{table}
\renewcommand{\thetable}{\@arabic\c@table}
\def\fps@table{tbp}
\def\ftype@table{2}
\def\ext@table{lot}
\def\fnum@table{\tablename~\thetable}
\newenvironment{table}
               {\@float{table}}
               {\end@float}
\newenvironment{table*}
               {\@dblfloat{table}}
               {\end@dblfloat}
\newlength\abovecaptionskip
\newlength\belowcaptionskip
\setlength\abovecaptionskip{10\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
    \hbox to\hsize{\hfil\box\@tempboxa\hfil}%
  \fi
  \vskip\belowcaptionskip}
\DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
\DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
\DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
\DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
\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}
\setcounter{tocdepth}{0}
\newcommand{\tableofcontents}{%
        \clearpage
    \section*{\contentsname
        \markboth{\uppercase{\contentsname}}{\uppercase{\contentsname}}}%
    \@starttoc{toc}%
    }
\newcommand*{\l@part}[2]{%
  \ifnum \c@tocdepth >-2\relax
    \addpenalty{\@secpenalty}%
    \addvspace{2.25em \@plus\p@}%
    \begingroup
      \setlength\@tempdima{3em}%
      \parindent \z@ \rightskip \@pnumwidth
      \parfillskip -\@pnumwidth
      {\leavevmode
       \large \bfseries #1\hfil \hbox to\@pnumwidth{\hss #2}}\par
       \nobreak
       \if@compatibility
         \global\@nobreaktrue
         \everypar{\global\@nobreakfalse\everypar{}}
      \fi
    \endgroup
  \fi}
\newcommand*{\l@chapter}[2]{%
    \addpenalty{\@secpenalty}%
%    \addvspace{1.0em \@plus\p@}%
    \setlength\@tempdima{1.5em}%
    \begingroup
      \parindent \z@ \rightskip \@pnumwidth
      \parfillskip -\@pnumwidth
      \leavevmode \bfseries
      \advance\leftskip\@tempdima
      \hskip -\leftskip
      #1\nobreak\dotfill \nobreak\hbox to\@pnumwidth{\hss #2}\par
    \endgroup }
\newcommand*{\l@section}[2]{%
  \ifnum \c@tocdepth >\z@
    \addpenalty{\@secpenalty}%
    \addvspace{1.0em \@plus\p@}%
    \setlength\@tempdima{1.5em}%
    \begingroup
      \parindent \z@ \rightskip \@pnumwidth
      \parfillskip -\@pnumwidth
      \leavevmode \bfseries
      \advance\leftskip\@tempdima
      \hskip -\leftskip
      #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}{%
    \section*{\listfigurename
      \@mkboth{\uppercase{\listfigurename}}%
              {\uppercase{\listfigurename}}}%
    \@starttoc{lof}%
    }
\newcommand*{\l@figure}{\@dottedtocline{1}{1.5em}{2.3em}}
\newcommand{\listoftables}{%
    \section*{\listtablename
      \@mkboth{\uppercase{\listtablename}}{\uppercase{\listtablename}}}%
    \@starttoc{lot}%
    }
\let\l@table\l@figure
\newdimen\bibindent
\bibindent=1.5em
\newenvironment{thebibliography}[1]
	{\if@english \renewcommand{\refname}{References} \else \renewcommand{\refname}{Список литературы} \fi
	\section*{\refname
        \@mkboth{\uppercase{\refname}}{\uppercase{\refname}}}%
      \list{\@biblabel{\arabic{enumiv}}}%
           {\settowidth\labelwidth{\@biblabel{#1}}%
            \leftmargin\labelwidth
            \advance\leftmargin\labelsep
            \if@openbib
              \advance\leftmargin\bibindent
              \itemindent -\bibindent
              \listparindent \itemindent
              \parsep \z@
            \fi
            \usecounter{enumiv}%
            \let\p@enumiv\@empty
            \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}{}
\newenvironment{theindex}
               {\if@twocolumn
                  \@restonecolfalse
                \else
                  \@restonecoltrue
                \fi
                \columnseprule \z@
                \columnsep 35\p@
                \twocolumn[\section*{\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}   {\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
  \kern 2.6\p@}
\long\def\@makefntext#1{%
    \parindent 1em%
    \noindent
    \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}      % Arabic page numbers
\if@twoside
\else
  \raggedbottom
\fi
\if@twocolumn
  \twocolumn
  \sloppy
  \flushbottom
\else
  \onecolumn
\fi
\endinput
%%
%% End of file `amlcoll.cls'.