%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%This is My own package. <by Innokenti Semoushin>%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ProvidesPackage{demopack}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%begin *Ïàðàìåòðû, çàäàâàåìûå ÐÈÎ ÓëÃÒÓ%%%%%%%%%%%%%%%%%
%%%Vertical unit lenghts: ñâåðõó=21ìì, ñíèçó=25.4ìì                  %%%
\voffset=0pt          %OK!!=0mm.                                     %%%
\topmargin=-22pt      %OK!!=-22pt=-7.76ìì.                           %%%
\headheight=17pt      %OK!!=17pt=6mm.                                %%%
\headsep=20pt         %OK!!=20pt=7mm.                                %%%
\textheight=648pt     %OK!!=648pt=228ìì.                             %%%
\footskip=28pt        %OK!!=28pt=9.88mm=~10mm.                       %%%
%%%Horizontal unit lenghts: øèðèíà òåêñòà=164ìì.                     %%%
\textwidth=465pt      %OK!!=465pt=164ìì.                             %%%
%%%Odd numbered (right-hand) pages:                                  %%%
%%%ñëåâàÍå÷¹=25ìì, ñïðàâàÍå÷¹=21ìì.                                  %%%
\oddsidemargin=0pt %OK!!=0mm.                                        %%%
%%%Even numbered (left-hand) pages:                                  %%%
%%%ñëåâà×åò¹=21ìì, ñïðàâà×åò¹=25ìì.                                  %%%
\evensidemargin=-10pt  %OK!!=-10pt=-28.3ìì.                          %%%
%%%%%%%%%%%%%%%%%%%end *Ïàðàìåòðû, çàäàâàåìûå ÐÈÎ%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%set by Julia Tsyganova:%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{amsthm}           % òåîðåìû AMS                          %%%
% îñíîâíûå îêðóæåíèÿ òèïà òåîðåìà                                    %%%
\theoremstyle{plain}                                                 %%%
\newtheorem{proposition}{Ïðåäëîæåíèå}[section]                       %%%
\newtheorem{lemma}{Ëåììà}[section]                                   %%%
\theoremstyle{definition}                                            %%%
\newtheorem{definition}{Îïðåäåëåíèå}[section]                        %%%
\newtheorem{theorem}{Òåîðåìà}[section]                               %%%
\theoremstyle{remark}                                                %%%
\newtheorem{remark}{Çàìå÷àíèå}[section]                              %%%
\newtheorem{example}{Ïðèìåð}[section]                                %%%
%!%\renewcommand{\contentsname}{Ñîäåðæàíèå}                          %%%
\newcommand{\res}{\mathop{\mathrm{res}}\limits}                      %%%
\unitlength=1mm                                                      %%%
\emergencystretch=5pt                                                %%%
%\renewcommand{\baselinestretch}{1.3} % ïîëóòîðíûé èíòåðâàë           %%%
\parindent=1.25cm                                                 %%%
\righthyphenmin=2                                                    %%%
\lefthyphenmin=2                                                     %%%
\sloppy                                                              %%%
%\newcommand{\displaystyle}{\ds}                                     %%%
\newcommand{\vp}{\vphantom{{\dfrac{\mathstrut}{\mathstrut}}^2}}      %%%
\newlength{\taskskip}                                                %%%
\setlength{\taskskip}{0.5cm}                                         %%%
\newcommand{\vtskip}{\vspace{\taskskip}}                             %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%    Changing standard Bibliography heading added by Semoushin:    %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%***ÂÍÈÌÀÍÈÅ***%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%\renewcommand{\bibname}{Áèáëèîãðàôè÷åñêèé ñïèñîê} - This command%%%
%%%                                          must be put in ANY PLACE%%%
%%%AFTER the \begin{document} command.!!!In your own .sty package, it%%%
%%%                                                    does not work!%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand{\@biblabel}[1]{#1.\hfill} %%%Íîìåðà â ñïèñêå ëèòåðàòóðû%%%
%%%                                                áåç [] è ñ òî÷êîé.%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%   Ñaption redefininition for "figure" and "table" environments   %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newsavebox{\tempbox}                                                %%%
\renewcommand{\@makecaption}[2]{\vspace{10pt}%%%                     %%%
\sbox{\tempbox}{#1. #2}%%%                                           %%%
\ifthenelse{\lengthtest{\wd\tempbox > \linewidth}}%%%                %%%
{\begin{center}\begin{tabular}{@{}p{0.95\linewidth}@{}}{#1.   %%%%%%%%%%
#2}\end{tabular}\par\end{center}}%<--If Caption is more than one line%%%
%%%{ #1. #2\par }%<--Caption is more than one line(a simpler version)%%%
{\begin{center}#1. #2\end{center}}%<--If Caption equals one line     %%%
}%%%                                                                 %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
