%% The class is for journal “Multiphase Systems”
%% Author: Constantin Mikhaylenko
%% License GPL
%% All questions and ideas please send to mailto:const@uimech.org
%%
%% Class' parareters:
%%  koi8-r, cp1251, utf8 — a codepage of the text. Default is utf8
%%  nodoi, noudc — if article doesn't have DOI and/or UDC indexes
%%  pdfonly — if article only has link to pdf-file
%%  draft — mit means just one-column text without pictures, page headers and so on
%%
%% The class is based on the article class and set the next article's parameters
%%  a4paper, twocolumn
%%
%% The class uses a list of packages by default:
%% fontenc     - set font codepage as T2A
%% inputenc    - for setting text codepage (by defafult is utf8)
%% babel       - languages [english,russian]
%% paratype    - fonts for text
%% mathpazo    - fonts for maths
%% cmap        - corrects codepage for cyrillic in pdf
%% hyperref    - organize hyperlinks
%% lastpage    - returns the last page nnumber for hyperlinks
%% indentfirst - print the first paragraph with indention
%% amsmath     \
%% amssymb     - math improving
%% amsfonts    /
%% mathtext    - allows cyrillic in math
%% cuted       - makes a single-column section in a two-column page
%% cite        - “smart” cites
%% graphicx    - let include graphics
%% tikz        - for painting, it partially makes the first-page header
%% qrcode      - QR-code generator
%% caption     - configures captionf of figures and tables
%% dblfloatfix - improves floating objects positioning
%% balance     - balances columns in the last page
%% microtype   - small typography improves
%% doclicense  - CC-BY licence sign
%%
%%
%% The class provides the next commands end enviromnments
%% \Year{}       - sets year
%% \Volume{}     - sets volume
%% \Number{}     - sets issue number
%% \Numbers{}    - additional command which sets double issue number for printing
%% \Article{}    - an article number
%% \Startpage{}  - the articles's first page number
%% \Incomedate{} - sets incoming date
%% \Outputdate{} - sets publish date
%% \Copyright{}  - forms copyright footnote
%%
%% \title{}      \
%%  \thanks{}    - there are standard command
%% \author{}     /
%% \superscript{}= makes indexes for affiliation description
%% \institute{}  - this command makes affiliation
%% \abstract{}   - command parameter has to content an abstract, command is instead environment
%% \UDC{}        - sets UDC index
%%
%% \cover        - makes the journal's titlepage
%% \maketitle    - standard command
%%
%% \doi{}        - prints an cited article's DOI index
%% \edn{}        - ... EDN index
%% \elib{}       - ... eLibrary index (deprecated by \edn{} command)
%% \mathnet{}    - ... MathNet index
%%
%% onecolumneq   - an environment prints wide equations in one-column regime

\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesClass{mfs}[2024/02/28 v4.1 Non Standard LaTeX document class]

%% Default codepage is 1251
\newcommand\mfs@encoding{cp1251}
\DeclareOption{koi8-r}{\renewcommand\mfs@encoding{koi8-r}}
\DeclareOption{utf8}{\renewcommand\mfs@encoding{utf8}}
\DeclareOption{cp1251}{\renewcommand\mfs@encoding{cp1251}}

\newcommand\pdf@nly{0}
\DeclareOption{pdfonly}{\renewcommand\pdf@nly{1}}
\newcommand\n@doi{0}
\DeclareOption{nodoi}{\renewcommand\n@doi{1}}
\newcommand\n@udc{0}
\DeclareOption{noudc}{\renewcommand\n@udc{1}}

%% draft mode parameters
\newcommand\mfs@draft{twocolumn}
\newcommand\mfs@draftFlag{0}
\DeclareOption{draft}{
 \renewcommand\mfs@draft{draft}
 \tolerance=1
 \emergencystretch=\maxdimen
 \hyphenpenalty=10000
 \hbadness=10000
 \renewcommand\mfs@draftFlag{1}
}

\ProcessOptions
\LoadClass[9pt,a4paper,\mfs@draft]{article}

\RequirePackage[T2A,T1]{fontenc}
\RequirePackage{mathpazo}
\RequirePackage{paratype}
\RequirePackage[colorlinks=true,citecolor=blue,urlcolor=blue,linkcolor=blue,pdftex,unicode]{hyperref}
\RequirePackage{cmap}
\RequirePackage{cuted}
\RequirePackage{mathtext}
\RequirePackage[\mfs@encoding]{inputenc}
\RequirePackage[english,russian]{babel}
\RequirePackage{indentfirst}
\RequirePackage[pdftex]{graphicx}
\RequirePackage{tikz}
\RequirePackage{amsfonts}
\RequirePackage{amsmath}
\RequirePackage{amssymb}
\RequirePackage{caption}
\RequirePackage{balance}
\RequirePackage{cite}
\RequirePackage{lastpage}
\RequirePackage{microtype}
\RequirePackage{qrcode}
\RequirePackage{dblfloatfix}
\RequirePackage[type={CC},modifier={by},version={4.0}]{doclicense}

\urlstyle{sf}

%% Pages sizes
\setlength\paperheight{297mm}
\setlength\paperwidth{210mm}
\setlength\voffset{-11mm}
\setlength\hoffset{-7mm}
\setlength\textheight{245mm}
\setlength\textwidth{185mm}
\setlength\topmargin{1.6mm}
\setlength\headheight{5mm}
\setlength\headsep{8mm}
\setlength\footskip{0mm}
\setlength\oddsidemargin{-5.4mm}
\setlength\evensidemargin{-5.4mm}
\setlength\columnsep{5mm}
\setlength\columnseprule{0mm}
\@twosidetrue

%% sets URL hypenation point at "/"
\g@addto@macro{\UrlBreaks}{\UrlOrds}

%% it configures format of captions
\captionsetup{labelsep=period,textformat=simple,format=hang,font={sf,small},margin=2mm}

%% Sets internal variables
\newcommand{\mfs@Journal@Name}{\iflanguage{russian}{%
 \CYRM\cyrn\cyro\cyrg\cyro\cyrf\cyra\cyrz\cyrn\cyrery\cyre\ %
 \cyrs\cyri\cyrs\cyrt\cyre\cyrm\cyrery}%
 {Multiphase Systems}}
\newcommand{\mfs@Journal@Name@en}{Multiphase Systems}

\newcommand{\mfs@volume}{19}
\newcommand{\Volume}[1]{\renewcommand{\mfs@volume}{#1}}

\newcommand{\mfs@year}{2024}
\newcommand{\Year}[1]{\renewcommand{\mfs@year}{#1}}

\newcommand{\mfs@number}{1}
\newcommand{\Number}[1]{\renewcommand{\mfs@number}{#1}}
\newcommand{\mfs@numbers}{\mfs@number}
\newcommand{\Numbers}[1]{\renewcommand{\mfs@numbers}{#1}}

\newcommand{\mfs@article}{000}
\newcommand{\Article}[1]{\renewcommand{\mfs@article}{#1}}

\newcommand{\mfs@startPage}{1}
\newcommand{\Startpage}[1]{\renewcommand{\mfs@startPage}{#1}\setcounter{page}{#1}}

\newcommand{\mfs@endPage}{\pageref{LastPage}}
\newcommand{\Endpage}[1]{\renewcommand{\mfs@endPage}{#1}}

\newcommand{\mfs@income}{\today}
\newcommand{\Incomedate}[1]{\renewcommand{\mfs@income}{#1}}

\newcommand{\mfs@output}{\today}
\newcommand{\Outputdate}[1]{\renewcommand{\mfs@output}{#1}}

\newcommand{\mfs@copyRight}{\hbox{}\\\copyright\ \CYRI\cyrn\cyrs\cyrt\cyri\cyrt\cyru\cyrt\ %
 \cyrm\cyre\cyrh\cyra\cyrn\cyri\cyrk\cyri\ \cyri\cyrm.\ \CYRR.\CYRR.\ %
 \CYRM\cyra\cyrv\cyrl\cyryu\cyrt\cyro\cyrv\cyra\ \CYRU\CYRF\CYRI\CYRC\ \CYRR\CYRA\CYRN}
\newcommand{\mfs@copyright}{\mfs@copyRight}
\newcommand{\Copyright}[1]{\renewcommand{\mfs@copyright}{\mfs@copyRight\\#1}}

\newcommand{\mfs@UDC}{00.00}
\newcommand{\UDC}[1]{\renewcommand{\mfs@UDC}{#1}}

\newcommand{\mfs@keyWords}{}
\newcommand{\keywords}[1]{\renewcommand{\mfs@keyWords}{#1}}
\newcommand{\text@keywords}{\textbf{\iflanguage{russian}{\CYRK\cyrl\cyryu\cyrch\cyre\cyrv\cyrery\cyre\ %
                                    \cyrs\cyrl\cyro\cyrv\cyra}{Keywords}:}\ \mfs@keyWords}
\newcommand{\put@keywords}{\parbox{170mm}{\hspace*{5.5mm}\small\ignorespaces{\par\noindent\text@keywords}}}

\let\institute\date

\newcommand{\mfs@logo}[2]{
	\path[draw=black,line width=.5pt] (.5*#1,15*#1)arc(0:135:-14.5*#1);
	\path[draw=black,line width=.5pt] (.5*#1,15*#1)arc(0:-125:-14.5*#1);
	\path[draw=black,line width=1pt] (3.5*#1,15*#1)arc(0:135:-11.5*#1);
	\path[draw=black,line width=1pt] (3.5*#1,15*#1)arc(0:-125:-11.5*#1);
	\path[cm={{0.9,0.0,0.0,0.9,(1.6*#1,1.6*#1)}},draw=black,line width=1.5pt] (5.5*#1,15*#1)arc(0:135:-9.5*#1);
	\path[cm={{0.9,0.0,0.0,0.9,(1.6*#1,1.6*#1)}},draw=black,line width=1.5pt] (5.5*#1,15*#1)arc(0:-135:-9.5*#1);
	\path[cm={{0.8,0.0,0.0,0.8,(3.2*#1,3.2*#1)}},draw=black,line width=2pt] (8*#1,15*#1)arc(0:135:-7*#1);
	\path[cm={{0.8,0.0,0.0,0.8,(3.2*#1,3.2*#1)}},draw=black,line width=2pt] (8*#1,15*#1)arc(0:-135:-7*#1);
	\path[cm={{0.56,0.0,0.0,0.56,(6.7*#1,6.7*#1)}},draw=black,line width=2.5pt] (10.5*#1,15*#1)arc(0:135:-4.5*#1);
	\path[cm={{0.56,0.0,0.0,0.56,(6.7*#1,6.7*#1)}},draw=black,line width=2.5pt] (10.5*#1,15*#1)arc(0:-135:-4.5*#1);
	\path[draw=black,line join=round,line cap=round,miter limit=4,line width=.7pt] (80.0*#1*#2,3*#1) .. controls (65.9*#1,3*#1) and 
		(32.4*#1,3*#1) .. (30*#1,3*#1) .. controls (24.5*#1,3*#1) and (25.5*#1,25*#1) .. (24*#1,25*#1) .. controls (22.5*#1,25*#1) and 
		(23.5*#1,11*#1) .. (21.5*#1,11*#1) .. controls (20*#1,11*#1) and (20.5*#1,17.5*#1) .. (19.5*#1,17.5*#1) .. controls (18.5*#1,17.5*#1) and 
		(18.5*#1,14*#1) .. (17.5*#1,14*#1) .. controls (16.5*#1,14*#1) and (17*#1,15*#1) .. (16*#1,15*#1) .. controls (14*#1,15*#1) and (16.5*#1,15*#1) .. (15*#1,15*#1);}

\newcommand{\put@logo}{
	\begin{tikzpicture}
		\mfs@logo{.065}{3.14}
		\path[fill=black] (92mm,4mm) node[above] {\usefont{T2A}{PTSerifCaption-TLF}{m}{ui} \Huge\scalebox{1.2}{\hbox{\mfs@Journal@Name}}};
	\end{tikzpicture}
}
\newcommand{\put@logo@imech}{
		\mfs@logo{.08}{1}
		\path(2.38,.9) node[above right] {\Huge\scalebox{1.35}{\CYRI\CYRM\cyre\cyrh}};
		\path(2.42,.4) node[above right] {\scalebox{.95}{\cyri\cyrm.\ \CYRR.\CYRR.\,\CYRM\cyra\cyrv\cyrl\cyryu\cyrt\cyro\cyrv\cyra}};
}

%% Point 0: the cover.
\newcommand{\text@issue}{\iflanguage{russian}{\CYRN\cyro\cyrm\cyre\cyrr}{Issue}}
\newcommand{\text@Multiphase}{\iflanguage{russian}{\CYRM\CYRN\CYRO\CYRG\CYRO\CYRF\CYRA\CYRZ\CYRN\CYRERY\CYRE}{MULTIPHASE}}
\newcommand{\text@Systems}{\iflanguage{russian}{\CYRS\CYRI\CYRS\CYRT\CYRE\CYRM\CYRERY}{SYSTEMS}}
\newcommand{\cover}{
	\thispagestyle{empty}\addtocounter{page}{-1}
	\vspace*{-20mm}
	\noindent\hspace*{-109.5mm}
	\definecolor{b1}{HTML}{2F2483}
	\definecolor{b2}{HTML}{A199CB}
	\begin{tikzpicture}
	\usefont{T2A}{PTSerif-TLF}{b}{n}
	\draw[color=white](0,0)--(21,29.7);
	\draw (5,26.5) node [above,left] {\qrcode[nolink,height=25mm]{http://mfs.uimech.org/mfs\mfs@year.\mfs@number}};
	\draw (19.8,27) node [above,left] {\large\scalebox{1.4}{ISSN: 2658--5782}};
	\draw (5.5,25.5) node [above,right] {\Large\scalebox{1.5}{\text@issue\ \mfs@numbers}};
	\draw (19.8,25.5) node [above,left] {\Large\scalebox{1.5}{\mfs@year}};
	\draw[color=b1,fill=b1,line width=1pt] (0,14.5)--(5,14.5)--(5,24.5)--(0,24.5)--cycle;
	\draw[color=b1,fill=b1,line width=1pt] (5.5,14.5)--(21,14.5)--(21,24.5)--(5.5,24.5)--cycle;
	\path[text=white] (6,22) node[above right] {\Huge\scalebox{1.9}{\text@Multiphase}};
	\path[text=white] (6,20) node[above right] {\Huge\scalebox{1.9}{\text@Systems}};
	\draw[color=b1,fill=b2] (12.5,13.5)--(18.5,13.5)--(18.5,15.5)--(12.5,15.5)--cycle;
	\draw[color=b1] (12.7,13.7)--(18.3,13.7)--(18.3,15.3)--(12.7,15.3)--cycle;
	\draw[color=b1] (12.5,13.5)--(12.7,13.7);
	\draw[color=b1] (12.5,15.5)--(12.7,15.3);
	\draw[color=b1] (18.5,13.5)--(18.3,13.7);
	\draw[color=b1] (18.5,15.5)--(18.3,15.3);
	\draw (15.5,14.5) node[text=b1] {\Large\scalebox{1.2}{mfs.uimech.org}};
	\put(160,100){\put@logo@imech};
	\end{tikzpicture}
}

\if@twocolumn
\else
  \renewcommand{\cover}{}
\fi

%% Point 1: a common page
\newcommand{\text@oddHead}{\iflanguage{russian}{\mfs@year.\ \CYRT.\ \mfs@volume.\ {\cyr\textnumero}\,\mfs@numbers}{\mfs@volume (\mfs@year)\ \textbf{\mfs@numbers}}\hfill\thepage}
\renewcommand{\@oddhead}%
 {\vbox{\hbox to\textwidth{\textsf{\small\text@oddHead \strut}}{\hrule}}}%
\renewcommand{\@evenhead}%
 {\vbox{\hbox to\textwidth{\textsf{\small\thepage\hfill\mfs@Journal@Name}}{\hrule}}}%
\renewcommand{\@oddfoot}{}
\renewcommand{\@evenfoot}{}

%% draft parameters for a common page
\ifnum\mfs@draftFlag=1
 \renewcommand{\@oddhead}{}
 \renewcommand{\@evenhead}{}
 \renewcommand\includegraphics[1][]{}
 \renewcommand\mfs@copyRight{}
 \renewcommand\Copyright[1]{}
\fi

%%
\renewcommand{\figurename}{\CYRR\cyri\cyrs\cyru\cyrn\cyro\cyrk\ }
\renewcommand\thesection{\@arabic\c@section.}
\renewcommand\thesubsection{\thesection\@arabic\c@subsection.}
\renewcommand\section{\@startsection{section}{1}{\z@}%
                                   {1.5ex \@plus .3ex \@minus .1ex}%
                                   {.8ex \@plus.2ex}%
                                   {\normalfont\large\usefont{T2A}{PTSansCaption-TLF}{b}{n}}}
\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
                                   {-1.5ex \@plus -1ex \@minus -.2ex}%
                                   {.8ex \@plus.2ex}%
                                   {\normalfont\usefont{T2A}{PTSansCaption-TLF}{b}{n}}}

%%
\renewenvironment{thebibliography}[1]
     {\balance\section*{\refname}%
      \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
      \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}}%
            \small \scriptsize\usefont{T2A}{PTSansCaption-TLF}{m}{n}
      \sloppy
      \clubpenalty4000
      \@clubpenalty \clubpenalty
      \widowpenalty4000%
      \sfcode`\.\@m}
     {\def\@noitemerr
       {\@latex@warning{Empty `thebibliography' environment}}%
      \endlist}


% Point 2: the title
\newcommand{\mfs@url}{http://mfs.uimech.org/mfs\mfs@year.\mfs@number.\mfs@article}
\newcommand{\put@mfs@url}{\url{\mfs@url}\\[-1.2mm]}
\ifnum\pdf@nly=1
  \renewcommand{\mfs@url}{http://mfs.uimech.org/\mfs@year/pdf/mfs\mfs@year.\mfs@number.\mfs@article.pdf}
  \renewcommand{\put@mfs@url}{}
\fi

\newcommand{\mfs@DOI}{10.21662/mfs\mfs@year.\mfs@number.\mfs@article}
\newcommand{\text@DOI}{\href{https://doi.org/\mfs@DOI}{DOI:\ \mfs@DOI}}
\newcommand{\put@DOI}{\text@DOI\\[-1.2mm]}
\ifnum\n@doi=1
 \renewcommand{\text@DOI}{}
 \renewcommand{\put@DOI}{}
\fi

\newcommand{\text@UDC}{\iflanguage{russian}{\CYRU\CYRD\CYRK}{UDC}\ \mfs@UDC}
\ifnum\n@udc=1
 \renewcommand{\text@UDC}{}
\fi

\newcommand{\text@ISSN}{ISSN 2658--5782}
\newcommand{\text@artInfo}{\iflanguage{russian}{\CYRT\cyro\cyrm\ \mfs@volume\ (\mfs@year),\ {\cyr\textnumero},\ %
  \mfs@numbers, \cyrs.\ \mfs@startPage--\mfs@endPage}{\mfs@volume\ (\mfs@year),\ \textbf{\mfs@numbers}, \mfs@startPage--\mfs@endPage}}

\newcommand{\text@income}{\iflanguage{russian}{\CYRP\cyro\cyrl\cyru\cyrch\cyre\cyrn\cyra}{Received}:\ \mfs@income}
\newcommand{\text@output}{\iflanguage{russian}{\CYRP\cyrr\cyri\cyrn\cyrya\cyrt\cyra}{Accepted}:\ \mfs@output}

\newcommand{\mfs@abstract}{}
\renewcommand{\abstract}[1]{\renewcommand{\mfs@abstract}{#1}}
\newcommand{\put@abstract}{\parbox{170mm}{\hspace*{5.5mm}\small\ignorespaces{\par\noindent\mfs@abstract}}}

%% 
\def\@maketitle{\nobalance%
  \vbox{\vspace*{-10mm}\thispagestyle{empty}
  \ifnum\mfs@draftFlag=0
   \textsf{\scriptsize\text@ISSN\hfill\text@artInfo}\\[-.5mm] \rule[2mm]{\textwidth}{.2mm} \\[-1mm] 
   \hbox{\put@logo}\hspace*{0mm}\raisebox{9mm}{\qrcode{\mfs@url}}\\ %\rule[2.7mm]{\textwidth}{.2mm}\\[-3.5mm]
   \parbox[t]{.736\textwidth}{\textsf{\scriptsize\put@mfs@url\put@DOI\text@UDC}}%
   \parbox[t]{.15\textwidth}{\raggedleft\textsf{\scriptsize\text@income\\[-1.2mm]\text@output}}%
   \parbox[t]{20mm}{\raisebox{-4mm}{\href{\doclicenseURL}{\doclicenseImage[imagewidth=20mm]}}}%
  \fi
  \ifnum\mfs@draftFlag=1
   \iflanguage{russian}{\renewcommand\thanks{\\[5mm]\small\mdseries\@thanks}}{}
   \textsf{\text@artInfo}\\
   \textsf{\text@income}\\
   \textsf{\text@output}\\
   \textsf{\mfs@url}\\
   \textsf{\text@DOI}\\
   \textsf{\text@UDC}
  \fi
   \begin{center}
     \vspace*{7mm}\par
    {\LARGE\sffamily\bfseries\upshape\usefont{T2A}{PTSansCaption-TLF}{b}{n}\@title\par\vspace*{1mm}}%
     \vskip12pt plus.1fil minus6pt%
    {\sffamily\bfseries\@author\par\vspace*{-3mm}}%
     \vskip9pt plus.1fil minus3pt%
    {\sffamily\@date\par}
     \vskip2em plus.1fil minus1ex%
    {\sffamily\put@abstract}%
    \vskip.5em plus.5em minus1ex%
    {\sffamily\put@keywords}
    \vskip2em plus1em minus1ex%
    \par%
  \end{center}%
  }%
}

\newcommand{\put@copyright}{
  \renewcommand{\@makefnmark}{}
  \footnote{\mfs@copyright}
  \renewcommand{\@makefnmark}{\mbox{$^{\@thefnmark}$}}
  \addtocounter{footnote}{-1}
}

\renewcommand\maketitle{\par
  \setcounter{footnote}{0}%
  \begingroup
    \if@twocolumn
      \twocolumn[\@maketitle]%
    \else
      \global\@topnum\z@
      \@maketitle%\@thanks
    \fi
    \ifnum\mfs@draftFlag=0
    \iflanguage{russian}{\@thanks \put@copyright}{}
    \fi
  \endgroup
  \vspace*{-2.3em}
  \setcounter{equation}{0}
  \setcounter{section}{0}
  \setcounter{figure}{0}
  \setcounter{table}{0}
}


%% \No for cyrillic number if command is not exist
\ifx\No\undefined
 \newcommand{\No}{\cyr\textnumero}
\fi


\newcommand{\text@oddHead@en}{\mfs@volume (\mfs@year)\ \textbf{\mfs@numbers}\hfill\thepage}
\newcommand{\toEnglish}{\newpage\selectlanguage{english}
\renewcommand{\@oddhead}%
 {\vbox{\hbox to\textwidth{\textsf{\small\text@oddHead@en \strut}}{\hrule}}}%
\renewcommand{\@evenhead}%
 {\vbox{\hbox to\textwidth{\textsf{\small\thepage\hfill\mfs@Journal@Name@en}}{\hrule}}}%
}

\newcommand{\doi}[1]{\href{https://doi.org/#1}{DOI: #1}}
\newcommand{\mathnet}[1]{\href{http://mi.mathnet.ru/#1}{MathNet: #1}}
\newcommand{\elib}[1]{\href{https://elibrary.ru/item.asp?id=#1}{eLIBRARY ID: #1}}
\newcommand{\edn}[1]{\href{https://elibrary.ru/#1}{EDN: #1}}

\setlength{\parindent}{2em}

\newcommand\superscript[1]{${}^{#1}$}

% v1.04 Прямые греческие буквы (ГОСТ)
\DeclareSymbolFont{lettersA}{U}{txmia}{m}{it} 
\SetSymbolFont{lettersA}{bold}{U}{txmia}{bx}{it} 
\DeclareFontSubstitution{U}{txmia}{m}{it} 
\DeclareSymbolFontAlphabet{\mathfrak}{lettersA}

\DeclareMathSymbol{\alphaup}{\mathord}{lettersA}{11}
\DeclareMathSymbol{\betaup}{\mathord}{lettersA}{12}
\DeclareMathSymbol{\gammaup}{\mathord}{lettersA}{13}
\DeclareMathSymbol{\deltaup}{\mathord}{lettersA}{14}
\DeclareMathSymbol{\epsilonup}{\mathord}{lettersA}{15}
\DeclareMathSymbol{\zetaup}{\mathord}{lettersA}{16}
\DeclareMathSymbol{\etaup}{\mathord}{lettersA}{17}
\DeclareMathSymbol{\thetaup}{\mathord}{lettersA}{18}
\DeclareMathSymbol{\iotaup}{\mathord}{lettersA}{19}
\DeclareMathSymbol{\kappaup}{\mathord}{lettersA}{20}
\DeclareMathSymbol{\lambdaup}{\mathord}{lettersA}{21}
\DeclareMathSymbol{\muup}{\mathord}{lettersA}{22}
\DeclareMathSymbol{\nuup}{\mathord}{lettersA}{23}
\DeclareMathSymbol{\xiup}{\mathord}{lettersA}{24}
\DeclareMathSymbol{\piup}{\mathord}{lettersA}{25}
\DeclareMathSymbol{\rhoup}{\mathord}{lettersA}{26}
\DeclareMathSymbol{\sigmaup}{\mathord}{lettersA}{27}
\DeclareMathSymbol{\tauup}{\mathord}{lettersA}{28}
\DeclareMathSymbol{\upsilonup}{\mathord}{lettersA}{29}
\DeclareMathSymbol{\phiup}{\mathord}{lettersA}{30}
\DeclareMathSymbol{\chiup}{\mathord}{lettersA}{31}
\DeclareMathSymbol{\psiup}{\mathord}{lettersA}{32}
\DeclareMathSymbol{\omegaup}{\mathord}{lettersA}{33}
\DeclareMathSymbol{\varepsilonup}{\mathord}{lettersA}{34}
\DeclareMathSymbol{\varthetaup}{\mathord}{lettersA}{35}
\DeclareMathSymbol{\varpiup}{\mathord}{lettersA}{36}
\DeclareMathSymbol{\varrhoup}{\mathord}{lettersA}{37}
\DeclareMathSymbol{\varsigmaup}{\mathord}{lettersA}{38}
\DeclareMathSymbol{\varphiup}{\mathord}{lettersA}{39}

\renewcommand{\alpha}{\alphaup}
\renewcommand{\beta}{\betaup}
\renewcommand{\gamma}{\gammaup}
\renewcommand{\delta}{\deltaup}
\renewcommand{\epsilon}{\epsilonup}
\renewcommand{\zeta}{\zetaup}
\renewcommand{\eta}{\etaup}
\renewcommand{\theta}{\thetaup}
\renewcommand{\iota}{\iotaup}
\renewcommand{\kappa}{\kappaup}
\renewcommand{\lambda}{\lambdaup}
\renewcommand{\mu}{\muup}
\renewcommand{\nu}{\nuup}
\renewcommand{\xi}{\xiup}
\renewcommand{\pi}{\piup}
\renewcommand{\rho}{\rhoup}
\renewcommand{\sigma}{\sigmaup}
\renewcommand{\tau}{\tauup}
\renewcommand{\upsilon}{\upsilonup}
\renewcommand{\phi}{\phiup}
\renewcommand{\chi}{\chiup}
\renewcommand{\psi}{\psiup}
\renewcommand{\omega}{\omegaup}
\renewcommand{\vartheta}{\varthetaup}
\renewcommand{\varpi}{\varpiup}
\renewcommand{\varrho}{\varrhoup}
\renewcommand{\varsigma}{\varsigmaup}
\renewcommand{\varepsilon}{\varepsilonup}
\renewcommand{\varphi}{\varphiup}

\renewcommand{\le}{\ensuremath{\leqslant}}
\renewcommand{\leq}{\ensuremath{\leqslant}}
\renewcommand{\ge}{\ensuremath{\geqslant}}
\renewcommand{\geq}{\ensuremath{\geqslant}}

%%\newcommand{\contents}{\newpage\onecolumn\thispagestyle{empty}\vspace*{1cm}\centerline{\huge \textsf{\textbf{\contentsname}}}\vspace{10mm}}
%%\newcommand{\contentsitem}[3]{\par\noindent\textbf{#1}\\\indent #2\dotfill #3\vspace{5mm}}

\newenvironment{onecolumneq}{\begin{strip}\vspace*{-5mm}\rule[5mm]{.5\textwidth}{.1pt}\rule[5mm]{.1pt}{1mm}}%
                            {\ \hfill\rule[1mm]{.1pt}{1mm}\rule[2mm]{.5\textwidth}{.1pt}\vspace*{-5mm}\end{strip}}

\endinput
%
