%% 
%% This is file `etatoim.cls',
%% generated with the docstrip utility.
%% 
%% The original source files were:
%% 
%% etatoim.dtx 
%% 
%% IMPORTANT NOTICE:
%% 
%% For the copyright see the source file.
%% 
%% You are *not* allowed to modify this file.
%% 
%% You are *not* allowed to distribute this file.
%% For distribution of the original source see
%% the terms for copying and modification in the file  etatoim.dtx.
%% 
%% ETATOIM  DOCUMENT CLASS -- Released November 28, 1995
%%    for LaTeX version 2e
%%    J\"uri Lippus, Eesti TA K\"uberneetika Instituut
%% Copyright (C) Eesti TA Kirjastus
%%
%% This is a class file for use instead of the article class to produce
%% camera-ready papers for the Proceedings of the Estonian Academy of
%% Sciences, Phys.-Math. series

\NeedsTeXFormat{LaTeX2e}
\newif\if@dblsp

\ProvidesClass{etatoim}[1995/11/28 Eesti TA Toimetised]
\DeclareOption{draft}{\PassOptionsToClass{draft}{article}}
\DeclareOption{times}{%
}
\DeclareOption{dblsp}{\@dblsptrue}
\ProcessOptions
\LoadClass[11pt,twoside,a4paper]{article}
\typeout{Cyrillic fonts.}
\input cyracc.def
\font\twlcyr=wncyr10 at 11pt
\font\twlcyb=wncyb10 at 11pt
\font\twlcyi=wncyi10 at 11pt
\font\nincyr=wncyr9
\font\nincyb=wncyb9
\font\nincyi=wncyi9

\renewcommand\normalsize{%
   \if@dblsp%
     \@setfontsize\normalsize\@xipt{22}%
   \else%
     \@setfontsize\normalsize\@xipt{13}%
   \fi%
   \abovedisplayskip 12\p@ \@plus3\p@ \@minus7\p@
   \abovedisplayshortskip \z@ \@plus3\p@
   \belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
   \belowdisplayskip \abovedisplayskip
   \def\cyr{\twlcyr\cyracc}%
   \def\cyb{\twlcyb\cyracc}%
   \def\cyi{\twlcyi\cyracc}%
   \let\@listi\@listI}
\normalsize
\renewcommand\small{%
   \if@dblsp%
     \@setfontsize\small{9.6}{18}%
   \else%
     \@setfontsize\small{9.6}{10.8}%
   \fi%
   \def\cyr{\nincyr\cyracc}%
   \def\cyb{\nincyb\cyracc}%
   \def\cyi{\nincyi\cyracc}%
   \abovedisplayskip 11\p@ \@plus3\p@ \@minus6\p@
   \abovedisplayshortskip \z@ \@plus3\p@
   \belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
   \def\@listi{\leftmargin\leftmargini
               \topsep 9\p@ \@plus3\p@ \@minus5\p@
               \parsep 4.5\p@ \@plus2\p@ \@minus\p@
               \itemsep \parsep}%
   \belowdisplayskip \abovedisplayskip
}
\renewcommand\footnotesize{%
   \if@dblsp%
     \@setfontsize\footnotesize{9.6}{18}%
   \else%
     \@setfontsize\footnotesize{9.6}{10.8}%
   \fi%
   \def\cyr{\nincyr\cyracc}%
   \def\cyb{\nincyb\cyracc}%
   \def\cyi{\nincyi\cyracc}%
   \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
   \abovedisplayshortskip \z@ \@plus3\p@
   \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
   \def\@listi{\leftmargin\leftmargini
               \topsep 6\p@ \@plus2\p@ \@minus2\p@
               \parsep 3\p@ \@plus2\p@ \@minus\p@
               \itemsep \parsep}%
   \belowdisplayskip \abovedisplayskip
}

\renewcommand\large{\@setfontsize\large{14}{16.8}}


\toksdef\toks@@=2
\def\@toiminfo{}
\def\@presented{}
\def\@abstract{}
\def\@address{}
\def\@curraddr{}
\def\@email{}
\def\@date{}
\def\@keywords{}
\def\@subjclass{}
\def\mult@{\relax}
\newlength\par@ind
\setlength{\par@ind}{\parindent}
\def\hang@{\hangindent\par@ind}
\def\par@item{\par\hang@\textindent}
\def\textindent#1{\indent \llap{#1\enspace}\ignorespaces}
\def\thanks#1{{\let\@thefnmark\relax
\@footnotetext{#1}}}
\def\toiminfo#1{\gdef\@toiminfo{#1}}
\def\multiauthor{\gdef\mult@{\par@item}}
\let\frills@\relax
\let\nofrillscheck\relax
\newcount\addresscount@
\addresscount@\z@
\def\address#1{\global\advance\addresscount@\@ne
  \expandafter\gdef\csname address\number\addresscount@\endcsname
  {\nobreak\noindent\small\rm\mult@#1\par}}
\def\curraddr{\let\savedef@\curraddr
  \def\curraddr##1{\let\curraddr\savedef@
  \toks@\expandafter\expandafter\expandafter{%
       \csname address\number\addresscount@\endcsname}%
  \toks@@{##1}%
  \expandafter\xdef\csname address\number\addresscount@\endcsname
  {\the\toks@\endgraf\noexpand\nobreak
    \noindent\mult@{}{\noexpand\rm
    \frills@{{\noexpand\rm Current address:}\space}%
    \def\noexpand\usualspace{\space}\the\toks@@\unskip}}}%
  \nofrillscheck\curraddr}
\def\email{\let\savedef@\email
  \def\email##1{\let\email\savedef@
  \toks@{\def\usualspace{{\rm\enspace}}\endgraf\noindent\mult@{}\small}%
  \toks@@{##1 \par}%
  \expandafter\xdef\csname email\number\addresscount@\endcsname
  {\the\toks@\frills@{{\noexpand\rm E-mail:}%
     \noexpand\enspace}\the\toks@@}}%
  \nofrillscheck\email}
\def\presented#1{\gdef\@presented{#1}}
\def\date#1{\gdef\@date{#1}}
\def\abstract#1{\gdef\@abstract{#1}}
\def\keywords#1{\gdef\@keywords{#1}}
\def\subjclass#1{\gdef\@subjclass{#1}}
\renewcommand\maketitle{\newpage
\begingroup
   \def\thefootnote{\alph{footnote}}%
{\small \noindent Proc. Estonian Acad. Sci. Phys. Math., \@toiminfo \par}
\vskip4truecmplus1truecmminus1truecm
{\center\large \bf \@title \par}%
\vskip 14pt
{\center\@author \par}%
  \vskip 12pt
\ifx\addresscount@\z@\else
\count@\z@\loop\ifnum\count@<\addresscount@\advance\count@\@ne
\csname address\number\count@\endcsname
\csname email\number\count@\endcsname
\repeat \fi
\ifx\@presented\empty\else \vskip 12pt
{\small \noindent Presented by \@presented \par}\fi
\ifx\@date\empty\else \vskip 12pt
{\small \noindent \@date \par}\fi
\ifx\@abstract\empty\else \vskip 12pt
{\small \noindent {\bf Abstract.} \@abstract \par}\fi
\ifx\@keywords\empty\else \vskip 6pt
{\small \noindent {\bf Key words:} \@keywords .\par}\fi
\ifx\@subjclass\empty\else \vskip 6pt
{\small \noindent {\bf 1991 Mathematics Subject Classification:}
   \@subjclass .\par}\fi
\endgroup
\setcounter{footnote}{0}%
 \let\maketitle\relax
}
\def\@begintheorem#1#2{\trivlist \item[\hskip \labelsep{\bf #1\ #2.}]\it}
\def\@opargbegintheorem#1#2#3{\trivlist
      \item[\hskip \labelsep{\bf #1\ #2\ (#3).}]\it}


\def\@cite#1#2{{\rm [\hbox{%
$\fontsize{\sf@size}{\f@baselineskip}\selectfont
\m@th^{\mbox{#1}}$\if@tempswa , $\m@th^{\mbox{#2}}$\fi}]}}
\def\lcite#1{{\rm [{\hbox{$\fontsize{\sf@size}{\f@baselineskip}%
\selectfont\m@th^{\mbox{#1}}$}}]}}

\renewcommand\section{\@startsection {section}{1}{\z@}%
                                   {24pt plus 12pt minus 12pt}%
                                   {12pt}%
                           {\centering\reset@font\normalsize\bf}}
\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
                                     {24pt plus 12pt minus 12pt}%
                                     {12pt}%
                            {\centering\reset@font\normalsize\bf}}
\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
                                     {24pt plus 12pt \inus 12pt}%
                                     {12pt}%
                             {\centering\reset@font\normalsize\rm}}

\renewcommand\thesection{\arabic{section}.}
\renewcommand\thesubsection{\thesection\arabic{subsection}.}
\renewcommand\thesubsubsection{\thesection\arabic{subsubsection}.}

\renewcommand\figurename{Fig.}
\setlength\abovecaptionskip{10\p@}
\setlength\belowcaptionskip{0\p@}
\long\def\@makecaption#1#2{%
  \vskip\abovecaptionskip
  \sbox\@tempboxa{\small #1. #2}%
  \ifdim \wd\@tempboxa >\hsize
    {\small #1. #2\par}
  \else
    \hbox to\hsize{\hfil\box\@tempboxa\hfil}%
  \fi
  \vskip\belowcaptionskip}
\long\def\topcaption[#1]#2{%
  \vskip\abovecaptionskip
  \hbox to \hsize{\small\it\hfil #1}
  \sbox\@tempboxa{\small\bf #2}%
  \ifdim \wd\@tempboxa >\hsize
    {\small\bf #2\par}
  \else
    \hbox to\hsize{\hfil\box\@tempboxa\hfil}%
  \fi
  \vskip\belowcaptionskip}
\renewcommand\footnoterule{%
  \kern-3\p@
  \hrule width 1in
  \kern 2.6\p@}
\long\def\@makefntext#1{%
      \@setpar{\@@par
       \@tempdima = \hsize
     %  \advance\@tempdima-24pt
       \parshape 2 0pt \@tempdima \par@ind \@tempdima}%
       \par
   \noindent
   \hbox to \par@ind{\hss\@makefnmark\hss}#1}

\renewcommand\refname{REFERENCES}
\renewcommand\@biblabel[1]{#1.}
\renewcommand\bibindent{\parindent}

\renewenvironment{thebibliography}[1]
     {\section*{\refname
        \@mkboth{\uppercase{\refname}}{\uppercase{\refname}}}%
      \small\list{\@biblabel{\arabic{enumiv}}}%
           {\settowidth\labelwidth{\@biblabel{#1}}%
            \leftmargin\labelwidth
            \advance\leftmargin\labelsep
              \advance\leftmargin\bibindent
              \itemindent -\bibindent
              \listparindent \itemindent
            \itemsep \z@
        \parsep \z@
            \usecounter{enumiv}%
            \let\p@enumiv\@empty
            \renewcommand\theenumiv{\arabic{enumiv}}}%
        \renewcommand\newblock{\par}
      \sloppy\clubpenalty4000\widowpenalty4000%
      \sfcode`\.=\@m}
     {\def\@noitemerr
       {\@latex@warning{Empty `thebibliography' environment}}%
      \endlist}
\setlength{\footskip}{1.3cm}
\renewcommand{\@oddfoot}{\small \hfill \thepage}
\renewcommand{\@evenfoot}{\small \thepage \hfill}
\setlength{\oddsidemargin}{2cm}
\setlength{\evensidemargin}{1.5cm}
\setlength{\topmargin}{0cm}
\setlength{\textwidth}{12.5cm}
\setlength{\textheight}{21.7cm}

\endinput
%% 
%% End of file `etatoim.cls'.
