% Преамбулу данного шаблона не  менять 
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{msukzconf}[2021/02/07 Thesis LaTeX class]
\LoadClass[12pt]{article}
%\LoadClass[a4paper, 12pt]{extbook}
\usepackage[english, russian]{babel}
\usepackage{color}
\usepackage{graphicx}
\usepackage{float}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{authblk}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{xcolor}
\usepackage[cp1251]{inputenc}
\usepackage[T2A]{fontenc}
\usepackage[left=3cm,right=2.5cm,top=2.5cm,bottom=2.5cm,bindingoffset=0cm]{geometry}



\makeatletter
%\def\@@concatenate#1#2{#1\expandafter\expandafter\expandafter{\expandafter
%\the\expandafter #1\the #2}}
\def\@@concatenate#1#2{#1\expandafter\expandafter\expandafter{\expandafter
\the\expandafter #1\the#2}}

\def\@@add@to#1#2{#1\expandafter\expandafter\expandafter{\expandafter
\the\expandafter #1#2}}

\newtoks\@temp@authtoks
\@temp@authtoks={}

\newtoks\@temp@if@toks
\newtoks\@temp@fi@toks
\@temp@if@toks={\bf}
\@temp@fi@toks={\\ \rm}


\newtoks\@@AuthorToks
\@@AuthorToks={}

\newtoks\@ind@toks
\@ind@toks={}

\def\author[#1]#2{\@ind@toks = {\,\raisebox{1ex}{\small #1}}%
\@temp@authtoks={#2}%
\edef\@@ttemp{\the\@@AuthorToks}%
\ifx\empty\@@ttemp
  \@@AuthorToks=\expandafter{\the\@temp@authtoks}%\@@AuthorToks=\expandafter{\the\@ind@toks}%
  \@@concatenate\@@AuthorToks\@ind@toks%\@@concatenate\@@AuthorToks\@temp@authtoks%
\else
  \@@add@to\@@AuthorToks{,\quad}%
  \@@concatenate\@@AuthorToks\@temp@authtoks
  \@@concatenate\@@AuthorToks\@ind@toks
\fi
}
\newtoks\@title@toks
\@title@toks={}

\def\title#1{
\@title@toks = {\Large \bf #1}
}

\newtoks\@indd@toks
\@indd@toks = {}
\newtoks\@Univ@toks
\@Univ@toks = {}
\newtoks\@City@toks
\@City@toks = {}
\newtoks\@email@toks
\@email@toks = {}
\newtoks\@Addr@toks
\@Addr@toks = {}

\newtoks\@temp@addrtoks
\@temp@addrtoks = {}
\newtoks\@tmp@toks
\@tmp@toks = {{\color{white}{1}}}

\def\afill[#1]#2#3#4{\@indd@toks = {\raisebox{1ex}{\scriptsize #1}}%
\@Univ@toks = {\small \textit{#2}}
\@City@toks  = {\small\textit{#3}}
\@email@toks = {\small \texttt{#4}}
\def\@ttemp{\the\@Addr@toks}
\ifx\empty\@ttemp
 \@Addr@toks=\expandafter{\hspace{1cm}\the\@indd@toks}
 \@@concatenate\@Addr@toks\@Univ@toks
 \@@add@to\@Addr@toks{\newline}
 \@@add@to\@Addr@toks{\the\@tmp@toks}
 \@@add@to\@Addr@toks{\hspace{3cm} \the\@City@toks}
 \@@add@to\@Addr@toks{\the\@City@toks}
  \@@add@to\@Addr@toks{\newline}
 \@@concatenate\@Addr@toks\@email@toks
\else
 \@@add@to\@Addr@toks{\vskip 0.5cm}
 \@@add@to\@Addr@toks{\hspace{1.5cm}}
 \@@concatenate\@Addr@toks\@indd@toks 
 \@@concatenate\@Addr@toks\@Univ@toks
 \@@add@to\@Addr@toks{\\}
 \@@add@to\@Addr@toks{\the\@tmp@toks}
 \@@add@to\@Addr@toks{\hspace{3cm}} 
 \@@concatenate\@Addr@toks\@City@toks
 \@@add@to\@Addr@toks{\\}
 \@@concatenate\@Addr@toks\@email@toks
\fi
}
\newcommand{\No}{\symbol{157}\;}
\newtheorem{theorem}{Теорема}
\newtheorem{lemma}{Лемма}
\newtheorem{proposition}{Утверждение}
\newtheorem{corollary}{Следствие}
\theoremstyle{definition}
\newtheorem{definition}{Определение}
\newtheorem{remark}{Замечание}

\def\maketitle{\begin{center}
{\the\@title@toks} 
\vskip 0.4cm
{\Large \the\@@AuthorToks}
\\%\vskip 0.1cm
\the\@Addr@toks
\end{center}
\setcounter{theorem}{0}
\setcounter{lemma}{0}
\setcounter{proposition}{0}
\setcounter{corollary}{0}
\setcounter{definition}{0}
\setcounter{remark}{0}
}
\makeatother

\newenvironment{acknowledgements}{\vskip 0.5cm \noindent \it }

\addto\captionsrussian{\def\refname{Библиографический список}}
