%My own package. <I. Semoushin>
\ProvidesPackage{demopack}
%%%%%%%%%%%%%%%%%%%%%%%%%%%Параметры РИО УлГТУ%%%%%%%%%%%%%%%%%%%%%%%%%%
%\unitlength=1mm  %единица длины для псевдографики и графики         %%%
%\emergencystretch=5pt  %регулятор степени разреженности строк абзаца%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Все ниже размеры при печати будут правильные, если из Adobe Reader 6.0%
%Все размеры при печати будут уменьшены, если из Adobe 6.0 Professional%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%размеры по вертикали: поле сверху=20мм от кромки листа до текста  %%%
%%%поле снизу=30мм от кромки листа до текста. 13 мм от кромки до №стр%%%
\voffset=2.6cm                                                      %%%
\topmargin=-20pt                                                     %%%
\headheight=0pt                                                      %%%
\headsep=0pt                                                         %%%
\textheight=700pt                                                    %%%
\footskip=48pt                                                       %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%размеры по горизонтали: поле слева=20мм от кромки листа до текста %%%
%%поле справа=20мм от кромки листа до текста для чет/нечет стр.одинак.%%
\hoffset=0pt                                                         %%%
\oddsidemargin=-14pt                                                 %%%
\evensidemargin=-14pt                                                %%%
\textwidth=482.8pt                                                   %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%\renewcommand{\baselinestretch}{1.3} % полуторный интервал        %%%
%%%                                                                  %%%
%%%\parindent=1.25cm                                                 %%%
%%%                                                                  %%%
%%%\righthyphenmin=2                                                 %%%
%%%\lefthyphenmin=2                                                  %%%
%%%                                                                  %%%
%%%\newlength{\taskskip}                                             %%%
%%%\setlength{\taskskip}{0.5cm}                                      %%%
%%%\sloppy                                                           %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%    Changing standard Bibliography heading added by Semoushin:    %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\renewcommand{\refname}{Рекомендуемая литература}%%%% - 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} %%%Номера в списке литературы%%%
%%%                                                без [] и с точкой.%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\renewcommand{\thefigure}{\thechapter}%%%                           %%%
%%%***С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.\enspace%%%%%
#2}\end{tabular}\par\end{center}}%<--If Caption is more than one line%%%
%%%{ #1. \enspace #2\par }%<--Caption is more than one line(a simpler version)%%%
{\begin{center}#1.\enspace #2 \end{center}}%<-If Caption equals one line
}%%%                                                                 %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
