%%%%%% RECOMMENDED BOOK TEMPLATE%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[12pt]{book}                                          %%
\usepackage{pifont}                                                 %%
\usepackage{indentfirst}%%                                          %%
\usepackage{multirow}   %%                                          %%
\usepackage{demopack}                                               %%
\usepackage{threeparttable}                                         %%
%\usepackage{a4wide} % analog of fullpage.sty                       %%
%\usepackage{a4}     % standard page margins                        %%
%%+++%+++%+++%+++%+++%+++%+++%+++%+++%+++%+++%+++%+++%+++%+++%+++%+%%%
\usepackage{hangcaption}                                           %%%
\usepackage{longtable}                                             %%%
%%+++%+++%+++%+++%+++%+++%+++%+++%+++%+++%+++%+++%+++%+++%+++%+++%+%%%
\newcounter{work}                                                   %%
\newcommand{\W}{\addtocounter{work}{1} \arabic{work}}               %%
\newcommand{\tabline}[4]{\centerline{\W}%перенос к-ды на след строку%%
& {\rule{0pt}{14pt}#1} & #2 &{#3} & #4 \\ }                         %%
%%+++%+++%+++%+++%+++%+++%+++%+++%+++%+++%+++%+++%+++%+++%+++%+++%+%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% задаем вид колонтитулов с помощью пакета fancyheadings.sty       %%
\usepackage{fancyheadings}                                          %%
\pagestyle{fancyplain}                                              %%
%запоминает название главы:                                         %%
\renewcommand{\sectionmark}[1]{\markright{\thechapter.#1}}          %%
%запоминает номер раздела и его название:                           %%
\lhead{} \rhead{} \lfoot{} \rfoot{}                                 %%
\chead[\fancyplain{}{\sl\leftmark}]{\fancyplain{}{\sl\leftmark}}    %%
\cfoot{\large\thepage}                                              %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{makeidx}     % allows index generation                  %%
\usepackage{graphicx}    % standard LaTeX graphics tool             %%
\usepackage{multicol}    % used for the two-column index            %%
\usepackage{epsfig}                                                 %%
\usepackage{amssymb}                                                %%
\usepackage{amsmath}                                                %%
\usepackage{mathrsfs}                                               %%
\usepackage{texdraw}                                                %%
\usepackage{rotating}                                               %%
\usepackage{amsfonts}                                               %%
%%%%%%%%%%%%%%%%%packages added for semushin2.tex%%%%%%%%%%%%%%%%%%%%%
\usepackage[mathscr]{eucal}                                         %%
\usepackage{latexsym}                                               %%
%%%%%%%%%%%%%%%%%packages added for semushin3.tex%%%%%%%%%%%%%%%%%%%%%
\usepackage{subfigure} % was: subfignarms.sty                       %%
\usepackage{psfig}                                                  %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[T2A]{fontenc}         %%%%%Cyrillic fonts               %%
\usepackage[cp1251]{inputenc}     %%%%%for MS Windows coding        %%
\usepackage[russian]{babel}       %%%%%Russain grammar rules        %%
%%%%%%%%%%%%%%%%%%%%%NEW COMMANDS%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Local command definitions added by Semoushin%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\indexentry}[2]{\item #1 #2}%%%для генерации предметного%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%указателя книги%%
\newcommand{\Rset}{{\mathbb{R}}}                                    %%
\newcommand{\Zset}{{\mathbb{Z}}}                                    %%
\newcommand{\Nset}{{\mathbb{N}}}                                    %%
\newcommand{\Eset}{{\mathbb{E}}}                                    %%
\newcommand{\Qset}{{\mathbb{Q}}}                                    %%
\newcommand{\half}{\frac{\scriptstyle 1}{\scriptstyle 2}}           %%
\newcommand{\Hyp}{{\mathbb{\bf H}}}                                 %%
\newcommand{\keyw}[1]{{\bf #1}}%keywords to write program codes     %%
\newcommand{\wb}{\widebar}                                          %%
\newcommand{\wt}{\widetilde}                                        %%
\newcommand{\wh}{\widehat}                                          %%
\newcommand{\ds}{\displaystyle}                                     %%
\newcommand{\E}[1]{\mathop{{\rm \bf E}\left\{#1\right\}}\nolimits}  %%
\newcommand{\rank}{\mathop{\rm rank}\nolimits}                      %%
\newcommand{\tr}[1]{\mathop{{\rm tr}\{#1\}}\nolimits}               %%
\newcommand{\ud}{\mathrm{d}}                                        %%
\newcommand{\Nu}{{\rm N}}                                           %%
\newcommand{\Eta}{{\rm H}}                                          %%
\newcommand{\grad}{\mathop{\rm grad}\nolimits}                      %%
\newcommand{\diag}{\mathop{\rm diag \ }\nolimits}                   %%
%\newcommand{\diag}[2]{\mathop{\rm diag}[#1, \; #2]}                %%
\newcommand{\triang}{\mathop{\rm triang \ }\nolimits}               %%
\renewcommand{\mod}[1]{\mbox{ (mod #1)}}                            %%
\renewcommand{\arg}{\mathop{\rm arg \ }}                            %%
\newcommand{\col}[1]{\mathop{\rm col}[#1]}                          %%
\newcommand{\sgn}[1]{\mathop{\rm sgn \ }[#1]}                          %%
%\DeclareMathOperator{\col}{col}                                    %%
\newcommand{\hm}[1]{#1\nobreak\discretionary{}{\hbox{\ensuremath{#1}%%
}}{}}%%продолжение команды дублирования знаков при переносе формулы%%%
%%%%%%%%%%%%%%%%%% My  COMMANDS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% \dfn %% ОПРЕДЕЛЕНИЕ                                              %%
%% \rem %% ЗАМЕЧАНИЕ                                                %%
%% \dok %% ДОКАЗАТЕЛЬСТВО                                           %%
%% \sol %% РЕШЕНИЕ                                                  %%
%% \z   %% ЗАДАЧА                                                   %%
%% \ex  %% ПРИМЕР                                                   %%
%% \prp %% УТВЕРЖДЕНИЕ                                              %%
%% \te  %% ТЕОРЕМА                                                  %%
%% \crl %% СЛЕДСТВИЕ                                                %%
%% \lm  %% ЛЕММА                                                    %%
%%%%%%%%%%%%%%%%%% Gothic fonts %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Local definitions added by Semoushin                              %%
%12pt                                                               %%
\font\got=eufm10  % Text                                            %%
\font\gots=eufm7  % Script                                          %%
\font\gotss=eufm5 % Subscript                                       %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%% Gothic letters %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Local definitions added by Semoushin%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\g}[1]{\mbox{\got #1}}     % Text                       %%
\newcommand{\gs}[1]{\mbox{\gots #1}}   % Script                     %%
\newcommand{\gss}[1]{\mbox{\gotss #1}} % Subscript                  %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%новая команда типа \subparagraph. Пишите, e.g., так: \pr{Proof}    %%
\newcommand{\pr}[1]{\subparagraph{\it #1}}                          %%
%новая команда quod erat demonstrandum (что и требовалось доказать) %%
%\newcommand{\qed}{\par\hbox to \textwidth{\hfil $\Box$}}            %%
\newcommand{\QED}[1]{\hbox to #1\textwidth{\hfill$\Box$}}           %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%новая команда для прижатия влево любого текста. Пишите так: \h{Текст} %%
\newcommand{\fl}[1]{\vspace{2pt}\begin{flushleft} \bf %%%%%%%%%%%%%%%%%%%
#1\end{flushleft}}\vspace{2pt}                                         %%
%новая команда для центрирования любого текста. Пишите так: \h{Текст}%%%%
\newcommand{\h}[1]{\vspace{2pt}\begin{center}\Large \bf #1\end{center}}%%
\newcommand{\hs}[1]{\vspace{2pt}\begin{center}\large \bf #1%%%%%%%%%%%%%%
\end{center}}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%новая команда вместо \paragraph. Пишите так: \p{Текст}             %%
\newcommand{\p}[1]{\paragraph{\bf #1}}                              %%
%новая команда вместо \subparagraph. Пишите так: \s{Текст}          %%
\newcommand{\s}[1]{\subparagraph{\bf #1}}                           %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\ulsu}{{\huge \bf У}\nolinebreak\hspace{-1.1em}         %%
\raisebox{-1ex}{{\huge \bf л}}\nolinebreak\hspace{-0.66em}          %%
\raisebox{1ex}{{\huge \bf Г}}\nolinebreak\hspace{-0.9em}            %%
{\huge \bf У}}%эмблема "УлГУ"                                       %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%Ввели счетчик ОПРЕДЕЛЕНИЙ, чтобы ставился номер ОПРЕДЕЛЕНИЯ:     %%
\newcounter{defi}[chapter]                                         %%
\newcommand{\dfn}{\par\addtocounter{defi}{1}%                       %%
%\par{\vspace{6pt}\bf Определение\, %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
{\vspace{6pt}\textsc{Определение}\, %%%%%%%%%%%%%%%%%%%%%%%%%
\arabic{chapter}.\arabic{defi}.\quad}}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%завели новый счетчик для ЗАМЕЧАНИЙ и установили формат их записи   %%
\newcounter{remc}[chapter]                                          %%
\newcommand{\rem}% продолжение команды                              %%
{\par\medskip\refstepcounter{remc}{\bf\textsc{Замечание} %%%%
% продолжение команды:%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\, \thechapter.\arabic{remc}.}\; \ }                                %%
\renewcommand{\theremc}{\thechapter.\arabic{remc}}                  %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%%Это работает (для ЗАМЕЧАНИЙ). Так надо сделать везде ниже-->
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%завели новый счетчик для ПРИМЕРОВ и установили формат записи ПРИМЕРОВ %%
\newcounter{exc}[chapter]                                              %%
\newcommand{\ex}% продолжение команды                                  %%
{\par\medskip\refstepcounter{exc}{\bf\textsc{Пример}   %%%%%%%%%
% продолжение команды:%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\, \thechapter.\arabic{exc}.}\; \ }                                    %%
\renewcommand{\theexc}{\thechapter.\arabic{exc}}                       %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%завели новый счетчик для УТВЕРЖДЕНИЙ и установили их формат записи    %%
\newcounter{proc}[chapter]                                             %%
\newcommand{\prp}% продолжение команды                                 %%
{\par\medskip\noindent\refstepcounter{proc}{\bf\textsc{Утверждение}%%%%%%
% продолжение команды:%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\, \thechapter.\arabic{proc}.}\; \ }                                   %%
\renewcommand{\theproc}{\thechapter.\arabic{proc}}                     %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%завели новый счетчик для ТЕОРЕМ и установили формат записи для ТЕОРЕМ %%
\newcounter{tec}[chapter]                                              %%
\newcommand{\te}% продолжение команды                                  %%
{\par\medskip\refstepcounter{tec}{\bf\textsc{Теорема}%%%%%%%%%%%
% продолжение команды:%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\, \thechapter.\arabic{tec}.}\; \ }                         %%
\renewcommand{\thetec}{\thechapter.\arabic{tec}}                       %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%установили формат записи для ТЕОРЕМ (в комментарием) %%
%\newcounter{tec}[chapter]                                              %%
\newcommand{\tecom}[1]% продолжение команды                            %%
{\par\medskip\refstepcounter{tec}{{\bf\textsc{Теорема}%%%%%%%%%%%
% продолжение команды:%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\, \thechapter.\arabic{tec}} {\it #1}.}\; \ }                          %%
%\renewcommand{\thetec}{\thechapter.\arabic{tec}}                       %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%установили формат записи для СЛЕДСТВИЕ (в комментарием)               %%
\newcounter{coroc}[chapter]                                            %%
\newcommand{\corocom}[1]% продолжение команды                          %%
{\par\medskip\refstepcounter{coroc}{{\bf\textsc{Следствие}%%%%%%%%%%%%%%%
% продолжение команды:%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\, \thechapter.\arabic{coroc}} {\it #1}.}\; \ }                        %%
\renewcommand{\thecoroc}{\thechapter.\arabic{coroc}}                   %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%ввели новый счетчик для СЛЕДСТВИЙ и установили формат записи СЛЕДСТВИЙ%%
\newcounter{corc}[chapter]                                             %%
\newcommand{\crl}% продолжение команды                               %%
{\par\medskip\noindent\refstepcounter{corc}{\bf\textsc{Следствие}%%%%%%%%
% продолжение команды:%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\, \thechapter.\arabic{corc}.}\; \ }                                   %%
\renewcommand{\thecorc}{\thechapter.\arabic{corc}}                     %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%завели новый счетчик для ЛЕММ и установили формат записи для ЛЕММ     %%
\newcounter{lemc}[chapter]                                             %%
\newcommand{\lm}% продолжение команды                                  %%
{\par\medskip\refstepcounter{lemc}{\bf\textsc{Лемма}%%%%%%%%%%%%
% продолжение команды:%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\, \thechapter.\arabic{lemc}.}\; \ }                                   %%
\renewcommand{\thelemc}{\thechapter.\arabic{lemc}}                     %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%завели новый счетчик для ЗАДАЧ и установили формат записи для ЗАДАЧ:  %%
\newcounter{zadacha}[section]%                                         %%
\newcommand{\zadacha}% продолжение команды                             %%
{\refstepcounter{zadacha}{\bf Задача \thechapter.\arabic{zadacha}.}\ } %%
\renewcommand{\thezadacha}% продолжение команды                        %%
{\thechapter.\arabic{zadacha}}                                         %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%завели новый счетчик для УПРАЖНЕНИЙ и установили формат записи        %%
\newcounter{upraz}[section]%                                           %%
\newcommand{\upraz}%% продолжение команды                              %%
{\refstepcounter{upraz}{\textsl{Упражнение} %продолжение к-ды:%%%%%%%%%%%
\thechapter.\arabic{upraz}.}\ } %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand{\theupraz}{\thechapter.\arabic{upraz}}%                  %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%







%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%Ввели счетчик ЗАДАЧ, чтобы ставился номер ЗАДАЧИ:                %%
\newcounter{zad}%[chapter]                                          %%
\newcommand{\z}{\par\addtocounter{zad}{1}%                          %%
%\par{\vspace{6pt}\bf Задача\, %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
{\vspace{6pt}\noindent\textsc{Задача}\, %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\arabic{chapter}.\arabic{zad}.\quad}}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\newcommand{\z}{\par\addtocounter{zad}{1}%           перенос команды  %%
%\par{\vspace{6pt}\bf\textit{Задача} \arabic{chapter}.\arabic{zad}.  }}%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%новое окружение для заключения текста в рамку (без вычерчивания границ)%
%шириной, задаваемой в аргументе                                    %%
%пишите так: \begin{noborderframe}{6cm} Текст... \end{noborderframe}%%
\newenvironment{noborderframe}[1]{\begin{tabular}{@{\;\;}p{#1}@{\;}}}%%%
{\\\end{tabular}}                                             %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%Ввели команду ДОКАЗАТЕЛЬСТВО, без номера ДОКАЗАТЕЛЬСТВА          %%
\newcommand{\dok}{\par%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
{\vspace{6pt}\noindent\textsc{Доказательство.}\quad}}%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%Ввели команду РЕШЕНИЕ, без номера РЕШЕНИЯ                        %%
\newcommand{\sol}{\par%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
{\vspace{6pt}\noindent\textsc{Решение.}\quad}}%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Чтобы главы могли %начинаться не только на нечетной странице:         %%
\renewcommand{\cleardoublepage}{\clearpage} %лучше это не использовать %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%% Local ENVIRONMENTS added by Semoushin%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%новое окружение для заключения текста в рамку шириной, задаваемой в%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%аргументе   %%
%пишите так: \begin{myframe}{6cm} Текст Текст Текст \end{myframe}   %%
\newenvironment{myframe}[1]{\begin{tabular}{|p{#1}|}\hline}%%%%%%%%%%%
{\\\hline\end{tabular}}                                             %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%новое окружение для заключения текста без рамки шириной, задаваемой%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%в аргументе %%
%пишите так: \begin{mynoframe}{6cm} Текст Текст Текст \end{myframe} %%
\newenvironment{mynoframe}[1]{\begin{tabular}{@{}p{#1}@{}}}%%%%%%%%%%%%%%%%%
{\\\end{tabular}}                                                   %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%RUSSIAN ENVIRONMENTS%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                                                   %%
\newtheorem{rusremarka}{Замечание}[chapter]                         %%
\newtheorem{rustheo}{Теорема}[chapter]                              %%
\newtheorem{ruscoro}{Следствие}[chapter]                            %%
\newtheorem{rusalg}{Алгоритм}[chapter]                              %%
\newtheorem{rusdefn}{Определение}[chapter]                          %%
\newtheorem{ruslem}{Лемма}[chapter]                                 %%
%                                                                   %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% ENGLISH ENVIRONMENTS added by Semoushin%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                                                   %%
\newtheorem{remarka}{Remark}%[section]                              %%
\newtheorem{theo}{Theorem}%[section]                                %%
\newtheorem{coro}{Corollary}%[section]                              %%
\newtheorem{alg}{Algorithm}%[section]                               %%
\newtheorem{defn}{Definition}%[section]                             %%
\newtheorem{lem}{Lemma}%[section]                                   %%
%                                                                   %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%hyphenations%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\hyphenation{mechan-isms Sect-ion const-ant correspond-ingly        %%
monitor-ing heuri-stically imple-menting}                           %%
%%добавляйте выше через пробел СЛОВА с рекомендуемыми переносами    %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\makeindex             % used for the subject index                 %%
                       % please use the style svind.ist with        %%
                       % your makeindex program                     %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%added by semoushin%%%%%%%%%%%%%%%%%%%%%%%%%ДОБАВИЛ СЕМУШИН%%%
\multlinegap=2cm  %отступ от полей первой и последней формулы       %%
%%                для многострочных формул в окружении multline     %%
%!%\mathsurround=2pt %  дополнительный пробел вокруг формул в тексте   %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\cleardoublepage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\ie}{т.\!~е.}                                          %%
\newcommand{\td}{т.\!~д.}                                          %%
\newcommand{\tp}{т.\!~п.}                                          %%
\newcommand{\smr}{см.~рис.~}                                        %%
\newcommand{\ris}{рис.~}                                            %%
\newcommand{\tab}{табл.~}                                           %%
\newcommand{\smt}{см.~табл.~}                                       %%
%%%%%%%%%%%%%%%%%%%%%%%hyphenations%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%                        !!! S T A R T !!!                         %%
\begin{document}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\large
\renewcommand{\bibname}{Список использованной литературы}
\frontmatter%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%если вставите сюда \include{titlepage} и др., то здесь будет идти  %%
%отдельная нумерация страниц римскими цифрами                       %%
%\include{cover}%это команда вставить обложку cover.tex              %%
\mainmatter%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\include{titlepage}%команда вставить титульный лист titlepage.tex)%%%%
\setcounter{page}{2}%установить начальное значение счетчика страниц %%
\tableofcontents %вставить оглавление (файл создается автоматически)%%
\include{chapter0} %вставить Введение                               %%
\include{chapter1} %вставить главу 1                                %%
\include{chapter2} %вставить главу 2                                %%
\include{chapter3} %вставить главу 3                                %%
\include{chapter4} %вставить главу 4                                %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\include{chapter5} %вставить Заключение  (имя файла chapter5.tex)   %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Включаем команду "Начать с новой страницы":                         %%
\clearpage
% Включаем лист(ы) Список иллюстраций: (формируется автоматически)  %%
\listoffigures
% Включаем команду "Добавить строку в Оглавление":                    %%
\addcontentsline{toc}{chapter}{Список иллюстраций}

% Включаем команду "Начать с новой страницы":                         %%
\clearpage
% Включаем лист(ы) Список таблиц: (формируется автоматически)         %%
\listoftables
% Включаем команду "Добавить строку в Оглавление":                    %%
\addcontentsline{toc}{chapter}{Список таблиц}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\include{referenc}%вставить список литературы к работе referenc.tex %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\appendix%это команда о том, что дальше пойдут приложения к работе  %%
\input appendix1.txt %вставить приложение 1                         %%
\input appendix2.txt %вставить приложение 2                         %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\backmatter%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\printindex%это команда вставить предметный указатель к работе     %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\begin{theindex} %%три команды, чтобы печатался предметный указатель%
%\input{book-index.tex} %%они сейчас (временно) закрыты             %%
%\end{theindex}                                                     %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\include{outdata}%вставить выходные данные о работе outdata.tex     %%
\end{document}                                                      %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%