%%%   Стилевой файл для подготовки статьи

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% my insert 


%\NeedsTeXFormat{LaTeX2e}
\usepackage[cp1251]{inputenc}
\usepackage[T2A]{fontenc}
%\usepackage{ulem}

%\usepackage{indentfirst}
%\usepackage{epic}
%\usepackage{eepic}
%\usepackage{epstopdf}
%\usepackage[dvipdfm]{hyperref}
%\usepackage[colorlinks,urlcolor=blue]{hyperref}

\usepackage[english,russian,ukrainian]{babel}
%\usepackage[unicode]{hyperref}
\usepackage{graphicx,graphics}
\usepackage{float,subfigure}
\usepackage{amsmath,mathtext,amssymb,amsfonts,amsxtra,latexsym}
\usepackage{ifthen}
\usepackage{fancyhdr}
\usepackage{xy}
\usepackage{array,longtable}
\usepackage{multicol}
\usepackage[centerlast,normalsize,bf]{caption2}

\usepackage{cmap}
%\usepackage{cite}
\usepackage{srcltx}
\usepackage{wrapfig}

%\usepackage{soul}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\usepackage[]{color}
%\usepackage{color}
%\definecolor{darkgreen}{rgb}{0,.5,0}
%\usepackage[colorlinks,filecolor=blue,citecolor=darkgreen]{hyperref}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%\looseness=3
\unitlength=2ex

\righthyphenmin=4
\lefthyphenmin=3
%\righthyphenmin=2
%\lefthyphenmin=2
\binoppenalty=10000
\relpenalty=10000
\tolerance2000
\mathsurround2pt% дополнительный пробел до и после формулы

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Параметри сторінки
\setlength{\topmargin}{0mm}      %высота верхнего поля, расстояние от верхней строки верхнего колонтитула до \voffset
\setlength{\headheight}{12pt}    %размер места, отводимого на колонтитул
\setlength{\headsep}{10pt}%18pt   %отступ между колонтитулом и основным текстом
\setlength{\textwidth}{17cm}     %ширина текста
\setlength{\textheight}{24.2cm}%23.2%высота текста
\setlength{\oddsidemargin}{20mm} %левое для нечетных
\setlength{\evensidemargin}{20mm}%при двустороннем наборе задает размеры левого поля для четных страниц
\setlength{\marginparwidth}{0mm}
\parindent0.8cm
\parskip0cm
\voffset-7mm %расстояние от верхнего края страницы до \topmargin
\hoffset-1in %расстояние от левого latex-овского края листа бумаги до \oddsidemargin
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%\topmargin=-15mm
%\oddsidemargin=0mm
%\evensidemargin=0mm
%\headsep=0mm
%\headheight=0pt
%\headsep=6mm
%\headheight=12pt
%\textheight=682pt
%\textwidth=165mm


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcounter{chapter}
\setcounter{chapter}{0}
\newcounter{artpage}[chapter] %лічильник номера поточної сторінки -1
\newcounter{sec}
\newcounter{apx}
\newcounter{N}

\newcommand{\clear}{%
   \setcounter{sec}{1}%
   \setcounter{apx}{0}%
   \setcounter{equation}{0}%
   \setcounter{figure}{0}%
   \setcounter{table}{0}%
   \setcounter{footnote}{1}
   \renewcommand{\theequation}{\arabic{equation}}
   \renewcommand{\thesec}{\arabic{sec}}}

\renewcommand{\thepage}{{\normalsize \arabic{page}}}

\renewenvironment{abstract}{\noindent\normalsize\hskip-0mm}{\vskip3mm}


\newcommand{\Year}{\normalsize 2016} % Рік виходу статті (заповнює заідувач редакції)
\newcommand{\Number}{103}  % Номер журналу, в якому вийде стаття (заповнює редакція)
\newcommand{\Nazva}{Збірник наукових праць Донецького національного університету}   % Назва журналу
\newcommand{\theauthor}{}
\newcommand{\theaboutauthor}{}
\newcommand{\AutorInTitlepage}{}
\newcommand{\AboutAutorInTitlepage}{}
\newcommand{\thetitle}{}
\newcommand{\TitleInTitlepage}{}

\renewcommand{\@evenfoot}{\thepage \hfill \sl \Nazva}
\renewcommand{\@oddfoot}{{\sl Випуск №\Number, \Year} \hfill \thepage}
\renewcommand{\@evenhead}{\partname\hfill}%{\TitleInTitlepage}
\renewcommand{\@oddhead}{\TitleInTitlepage}


\newcommand{\udk}{}
\newcommand{\theudk}{}
\newcommand{\aboutauthor}{}
\newcommand{\TheaboutauthorF}{}
\newcommand{\TheaboutauthorS}{}
\newcommand{\TheaboutauthorT}{}
\newcommand{\thethanks}{}
\newcommand{\thedate}{}
\newcommand{\theemail}{}

\renewcommand{\author}[1]{\renewcommand{\theauthor}{{\noindent\normalsize #1}}\renewcommand{\AutorInTitlepage}{\noindent\hfill{\bf #1}}}

\renewcommand{\aboutauthor}[1]{\renewcommand{\theaboutauthor}{\noindent{\footnotesize #1}}\renewcommand{\AboutAutorInTitlepage}{{\noindent\small\sl #1}}}

\renewcommand{\title}[2]{\renewcommand{\thetitle}{{\normalsize\sl #2}}\renewcommand{\TitleInTitlepage}{\noindent {\bf #1}}}

\renewcommand{\udk}[1]{%
   \renewcommand{\theudk}{\noindent УДК #1}}

\newcommand{\email}[1]{%
   \renewcommand{\theemail}{\noindent {\textmd \hfill e-mail: #1}}}

\newcommand{\address}[1]{%
   \renewcommand{\theaddress}{\noindent {\normalsize {\slshape #1}}}}

\renewcommand{\thanks}[1]{%
   \renewcommand{\thethanks}{\footnotetext{#1}}}

\renewcommand{\thefootnote}{}

\newcommand{\logo}{\footnotetext[0]{\hfill \copyright\, \theauthor, \Year}}
\renewcommand{\footnoterule}{\vspace*{-2pt}\hrule width 0.25\textwidth \vspace*{2pt}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\renewcommand{\maketitle}{%
\large \normalfont
  \fancyhead{}
  \fancyfoot{}
  \fancyhead[CO]{\theauthor\hfill\thetitle}
  \fancyhead[CE]{\partname\hfill}
  \fancyfoot[LE]{\thepage \hfill \sl \Nazva}
  \fancyfoot[RO]{{\sl Випуск №\Number, \Year} \hfill \thepage}
  \pagestyle{fancy}
  \thispagestyle{plain}
   \clear
   \theudk
   %\thethanks
   \logo
   \vskip3mm
   \AutorInTitlepage
   \vskip3mm
   \AboutAutorInTitlepage
   \vskip3mm
   \theemail
   \vskip3mm
   \begin{center}
   \TitleInTitlepage
   \end{center}
   \vskip4mm

}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%\renewcommand{\@biblabel}[1]{#1.}


% Параметри сторінки

\newcommand{\noi}{\noindent}
\newcommand{\vs}{\vspace{.1in}}
\newcommand{\vsk}{\vspace{.2in}}

\newcounter{lang}
\setcounter{lang}{0}             %%%%%%%%%%%%  мова English 
\English \renewcommand{\refname}{References}


\renewcommand{\section}{\@startsection{section}{1}{0pt}{1.25ex}{0.5ex}{\noindent\Large\bf}}
\renewcommand{\thesection}{\arabic{section}.}

\renewcommand{\subsection}{\@startsection{section}{1}{0pt}{1ex}{0.125ex}{\noindent\large\bf}}
\renewcommand{\thesubsection}{\arabic{subsection}.}

%Оточення


\newtheorem{theorem}{\ifthenelse{\value{lang}=0}{Theorem}%
{\ifthenelse{\value{lang}=3}{Th\'eor\`me}{Теорема}}}


\newtheorem{proposition}{\ifthenelse{\value{lang}=0}{Proposition}%
{\ifthenelse{\value{lang}=1}{Твердження}
{\ifthenelse{\value{lang}=2}{Предложение%\hspace{-8pt}
}{Proposition}}}}

\newtheorem{remark}{\ifthenelse{\value{lang}=0}{Remark}%
{\ifthenelse{\value{lang}=1}{Зауваження}%
{\ifthenelse{\value{lang}=2}{Замечание%\hspace{-8pt}
}{Remark}%
}}}


\newtheorem{lemma}{\ifthenelse{\value{lang}=0}{Lemma}%
{\ifthenelse{\value{lang}=1}{Лема}%
{\ifthenelse{\value{lang}=2}{Лемма}{Lemme}%
}}}

\newtheorem{problem}{\ifthenelse{\value{lang}=0}{Problem}%
{\ifthenelse{\value{lang}=1}{Проблема}%
{\ifthenelse{\value{lang}=2}{Проблемма}%
}}}


\newtheorem{corollary}{\ifthenelse{\value{lang}=0}{Corollary}%
{\ifthenelse{\value{lang}=1}{Наслідок}%
{\ifthenelse{\value{lang}=2}{Следствие}%
}}}

\newtheorem{definition}{\ifthenelse{\value{lang}=0}{Definition}%
{\ifthenelse{\value{lang}=1}{Означення}%
{\ifthenelse{\value{lang}=2}{Определение}{D\'efinition}%
}}}


\newtheorem{example}{\ifthenelse{\value{lang}=0}{Example}%
{\ifthenelse{\value{lang}=1}{Приклад}%
{\ifthenelse{\value{lang}=2}{Пример}{?}%
}}}


\newtheorem{task}{\ifthenelse{\value{lang}=0}{Task}%
{\ifthenelse{\value{lang}=1}{Задача}%
{\ifthenelse{\value{lang}=2}{Задача}{?}%
}}}

%\newtheorem{proposition}[theorem]{Proposition}
%\newtheorem{definition}{Definition}[section]
%\newtheorem{remark}{Remark}[section]
%\newtheorem{corollary}{Corollary}[section]
%\renewcommand{\theequation}{\arabic{equation}}
%\renewcommand{\thetheorem}{\arabic{theorem}}

%Оформлення літератури
\renewcommand{\refname}{\refnam}

\def\refnam
{\begin{center} \normalsize
  \ifthenelse{\value{lang}=0}{REFERENCES}
    {\ifthenelse{\value{lang}=1}{ЛІТЕРАТУРА}
         {\ifthenelse{\value{lang}=2}{ЛИТЕРАТУРА}{}
         }
    }
 \end{center}
\vspace{3pt}\vs
}

\def\bibname {\begin{center}  \normalsize \rm
  \ifthenelse{\value{lang}=0}{REFERENCES}
    {\ifthenelse{\value{lang}=1}{ЛІТЕРАТУРА}
         {\ifthenelse{\value{lang}=2}{ЛИТЕРАТУРА}{}
         }
    }
 \end{center}
\vspace{3pt}\vs
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%          Настройка отображения листингов         %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 \RequirePackage{listings}

\renewcommand*\thelstnumber{\oldstylenums{\the\value{lstnumber}}}

\lstset{caption=,
        label=,
        language=Pascal,
        morekeywords={assign, close, inc, dec, ord, shr, shl},    %% дополняем список keywords
        xleftmargin=15pt,               %% отступ слева
        basicstyle=\large,
        commentstyle=\it\footnotesize,  %% стиль коментариев
        numbers=left,                   %% позиционирование нумерации
        numberstyle=\small,             %% размер шрифта для нумерации
        stepnumber=1,                   %% шаг нумерации строк
        numbersep=5pt,
        backgroundcolor=\color{white},
        showspaces=false,
        showstringspaces=true,          %% отображение пробелов в строковых переменных
        showtabs=false,
        frame=none,
        tabsize=5,
        keywordstyle=\bf,               %% стиль написания ключевых слов
        extendedchars=true              %% поддержка кирилицы в листинге
    }

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% my imsert 

\hyphenation{фі-зи-ко-ма-те-ма-тич-но-го фі-зи-ко-ма-те-ма-тич-них}

\renewcommand{\thedefinition}{\arabic{definition}.}
\renewcommand{\thetheorem}{\arabic{theorem}.}
\renewcommand{\thelemma}{\arabic{lemma}.}
\renewcommand{\theproposition}{\arabic{proposition}.}
\renewcommand{\thecorollary}{\arabic{corollary}.}
\renewcommand{\theremark}{\arabic{remark}.}
\renewcommand{\theexample}{\arabic{example}.}
\renewcommand{\thetask}{\arabic{task}.}

%\renewcommand{\theenumi}{\Asbuk{enumi}}
%\renewcommand{\thesection}{\arabic{section}.}
%\usepackage{itemsep}
%\usepackage[unicode]{hyperref}
%\usepackage[screen]{pdfscreen}

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


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
