%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%This is My own package. <by Innokenti Semoushin>%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ProvidesPackage{demopack}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%���������, ���������� ���%%%%%%%%%%%%%%%%%%%%%%%
%%%\unitlength=1mm                                                   %%%
%%%\emergencystretch=5pt                                             %%%
%%%                                                                  %%%
%%%\textheight=24cm                                                  %%%
%%%\textwidth=16cm                                                   %%%
%%%\renewcommand{\baselinestretch}{1.3} % ���������� ��������        %%%
%%%                                                                  %%%
%%%\oddsidemargin=0.3cm % 1cm                                        %%%
%%%\topmargin=-2cm                                                   %%%
%%%\parindent=1.25cm                                                 %%%
%%%                                                                  %%%
%%%\righthyphenmin=2                                                 %%%
%%%\lefthyphenmin=2                                                  %%%
%%%                                                                  %%%
%%%\newlength{\taskskip}                                             %%%
%%%\setlength{\taskskip}{0.5cm}                                      %%%
%%%\sloppy                                                           %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%    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     %%%
}%%%                                                                 %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%