
\RequirePackage{amssymb,amsmath,amsfonts,multicol,amscd,amsthm}
\RequirePackage{mathtext} \RequirePackage{epsfig}
%\RequirePackage[pdftex]{graphicx}
 \RequirePackage[T2A]{fontenc}
\RequirePackage[mathscr]{eucal} \RequirePackage[cp1251]{inputenc}
\RequirePackage[english,russian]{babel} \RequirePackage{geometry}



\voffset=-20mm \topmargin=8mm \headheight=12pt \headsep=5mm
\footskip=30pt \marginparwidth=0mm \textwidth=169mm
\textheight=245mm

\oddsidemargin=0mm \evensidemargin=0mm

%\oddsidemargin=0mm \evensidemargin=-10mm

\paperwidth=210mm \paperheight=297mm

\clubpenalty=10000

%\newcommand{\auththesref}[3]{\noindent{ #1}\dotfill\pageref{#2}\\\protect\nopagebreak\begin{small}{#3}\end{small}}
\newcommand{\auththesref}[3]{\begin{flushleft}\noindent{#3}, {#1}~\dotfill~\pageref{#2}\end{flushleft}}
\newcommand{\auththesrefX}[2]{\begin{flushleft}\noindent{#1}~\dotfill~\pageref{#2}\end{flushleft}}
%\newcommand{\auththesref}[2]{{\bf #1}\dotfill\pageref{#2}}

\renewcommand{\@oddfoot}{\hfil\thepage\hfil}
\renewcommand{\@oddhead}{\vbox{\hbox to\textwidth{\hfil\footnotesize{\rightmark}}\hrule}}

\renewcommand{\@evenfoot}{\hfil\thepage\hfil}
\renewcommand{\@evenhead}{\vbox{\hbox
to\textwidth{\footnotesize{\leftmark}\hfil}\hrule}}



\newcommand{\UpdateAllCounters}{
    \setcounter{section}{0}\setcounter{footnote}{0}\setcounter{equation}{0}
    \setcounter{theorem1}{0}\setcounter{lemma1}{0}\setcounter{statement1}{0}\setcounter{corollary1}{0}\setcounter{prop1}{0}
    \setcounter{defin1}{0}\setcounter{example1}{0}\setcounter{assumption1}{0}\setcounter{remark1}{0}\setcounter{theoremlet}{0}
}
\renewcommand{\thesubsection}{\thesection.\arabic{subsection}}


%full numbering
\theoremstyle{plain}
\newtheorem{theorem1}{Теорема}
\newtheorem{lemma1}{Лемма}
\newtheorem{statement1}{Утверждение}
\newtheorem{corollary1}{Следствие}
\newtheorem{prop1}{Предложение}

%section numbering
\newtheorem{lemma}{Лемма}[section]
\newtheorem{theorem}{Теорема}[section]

%no numbering
\newtheorem*{theorem*}{Теорема}
\newtheorem*{cor*}{Следствие}

%alphabetic numbering
\newtheorem{theoremlet}{Теорема}
\renewcommand{\thetheoremlet}{\Alph{theoremlet}}

%full numbering
\theoremstyle{definition}
\newtheorem{defin1}{Определение}
\newtheorem{example1}{Пример}
\newtheorem{assumption1}{Условие}
\newtheorem{remark1}{Замечание}
%no numbering
\newtheorem*{remark*}{Замечание}
\newtheorem*{defin*}{Определение}
