cps-14-load-balance

Методы распределения нагрузки на многопроцессорную систему
git clone https://git.igankevich.com/cps-14-load-balance.git
Log | Files | Refs

pmstyle14.sty (8494B)


      1 %%%%%%%%%%%%%%%%%%%%%%%
      2 %%%     %%%
      3 %%%%%%%%%%%%%%%%%%%%%%%
      4 
      5 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
      6 %%%   : 25.01.2014
      7 %%%
      8 %%%   2. ,       
      9 %%%          . .
     10 %%%
     11 %%%   3.       
     12 %%%
     13 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
     14 
     15 %%%    %%%
     16 \usepackage{ifthen}
     17 \usepackage[cp1251]{inputenc}
     18 \usepackage[russian]{babel}
     19 \usepackage{amsmath,amsfonts,amssymb}
     20 
     21 \usepackage{floatrow}
     22 \usepackage[dvips]{graphicx}
     23 \usepackage{verbatim}
     24 \usepackage{wrapfig}
     25 \usepackage{url}
     26 
     27 %%%  %%%
     28 \def\maketitle{
     29 
     30 {\raggedright \@udk \par \smallskip {\bf\@author} \par}
     31 
     32 \bigskip
     33 {\centering\large\bf\@title\par} \par
     34 \bigskip
     35 }
     36 
     37 \def\udk#1{\gdef\@udk{#1}}
     38 \def\@udk{}
     39 
     40 %%%  %%%
     41 \def\recprof#1{\noindent\textit{    #1}\bigskip\vskip-0.3cm}
     42 
     43 \def\recdotz#1{\noindent\textit{    #1}\bigskip\vskip-0.3cm}
     44 
     45 \def\recsp#1{\noindent\textit{    \newline{}#1}\bigskip\vskip-0.3cm}
     46 
     47 \def\norec{\bigskip\vskip-0.3cm\vskip-0.3cm}
     48 
     49 %%%  %%%
     50 %% /   3- 
     51 \newcounter{c_sec}
     52 \newcounter{c_sec2}
     53 \newcounter{c_sec3}
     54 \setcounter{c_sec}{0}
     55 \newcommand{\secn}{\arabic{c_sec}.}
     56 \newcommand{\subsecn}{\secn\arabic{c_sec2}.}
     57 \newcommand{\subsubsecn}{\subsecn\arabic{c_sec3}.}
     58 \newcommand{\razdel}[2][numbered]{\par\ifthenelse{\equal{#1}{numbered}}
     59 {\addtocounter{c_sec}{+1}\setcounter{c_sec2}{0}\vspace{0.2cm}\textbf{\secn\,\,#2.}}%
     60 {\vspace{0.2cm}\textbf{#2.}}}%
     61 \newcommand{\podrazdel}[1]{\par\addtocounter{c_sec2}{+1}\setcounter{c_sec3}{0}\hspace{0.3cm}\textbf{\subsecn\,\,#1.}}%
     62 \newcommand{\podpodrazdel}[1]{\par\addtocounter{c_sec3}{+1}\hspace{0.3cm}\textbf{\subsubsec\,\,#1.}}%
     63 
     64 %%%  %%%
     65 %       .           .
     66 
     67 %%%  %%%
     68 \newcounter{c_teo}
     69 \setcounter{c_teo}{0}
     70 \newcounter{c_lem}
     71 \setcounter{c_lem}{0}
     72 \newcounter{c_gip}
     73 \setcounter{c_gip}{0}
     74 \newcounter{c_utv}
     75 \setcounter{c_utv}{0}
     76 \newcounter{c_opr}
     77 \setcounter{c_opr}{0}
     78 \newcounter{c_zam}
     79 \setcounter{c_zam}{0}
     80 \newcounter{c_pri}
     81 \setcounter{c_pri}{0}
     82 \newcounter{c_sle}
     83 \setcounter{c_sle}{0}
     84 
     85 \newcommand{\theorn}{\arabic{c_teo}}
     86 \newcommand{\Theorem}[2][numbered]{\par\setcounter{c_sle}{0}\ifthenelse{\equal{#1}{numbered}}%
     87 {\addtocounter{c_teo}{+1}\par\textbf{\,\,\theorn.}\textit{ #2}}%
     88 {\par\textbf{.}\textit{ #2}}}%
     89 \newcommand{\TheoremCite}[3][numbered]{\par\setcounter{c_sle}{0}\ifthenelse{\equal{#1}{numbered}}%
     90 {\addtocounter{c_teo}{+1}\par\textbf{\,\,\theorn}\,\,\cite{#2}.\textit{ #3}}%
     91 {\par\textbf{}\,\,\cite{#2}.\textit{ #3}}}%
     92 
     93 \newcommand{\lemman}{\arabic{c_lem}}
     94 \newcommand{\Lemma}[2][numbered]{\par\ifthenelse{\equal{#1}{numbered}}%
     95 {\addtocounter{c_lem}{+1}\par\textbf{\,\,\lemman.}\textit{ #2}}%
     96 {\par\textbf{.}\textit{ #2}}}%
     97 \newcommand{\LemmaCite}[3][numbered]{\par\ifthenelse{\equal{#1}{numbered}}%
     98 {\addtocounter{c_lem}{+1}\par\textbf{\,\,\lemman}\,\,\cite{#2}.\textit{ #3}}%
     99 {\par\textbf{}\,\,\cite{#2}.\textit{ #3}}}%
    100 
    101 \newcommand{\hypotn}{\arabic{c_gip}}
    102 \newcommand{\Hypothesis}[2][numbered]{\par\ifthenelse{\equal{#1}{numbered}}%
    103 {\addtocounter{c_gip}{+1}\par\textbf{\,\,\hypotn.}\textit{ #2}}%
    104 {\par\textbf{.}\textit{ #2}}}%
    105 \newcommand{\HypothesisCite}[3][numbered]{\par\ifthenelse{\equal{#1}{numbered}}%
    106 {\addtocounter{c_gip}{+1}\par\textbf{\,\,\hypotn}\,\,\cite{#2}.\textit{ #3}}%
    107 {\par\textbf{}\,\,\cite{#2}.\textit{ #3}}}%
    108 
    109 \newcommand{\staten}{\arabic{c_utv}}
    110 \newcommand{\Statement}[2][numbered]{\par\ifthenelse{\equal{#1}{numbered}}%
    111 {\addtocounter{c_utv}{+1}\par\textbf{\,\,\staten.}\textit{ #2}}%
    112 {\par\textbf{.}\textit{ #2}}}%
    113 \newcommand{\StatementCite}[3][numbered]{\par\ifthenelse{\equal{#1}{numbered}}%
    114 {\addtocounter{c_utv}{+1}\par\textbf{\,\,\staten}\,\,\cite{#2}.\textit{ #3}}%
    115 {\par\textbf{}\,\,\cite{#2}.\textit{ #3}}}%
    116 
    117 \newcommand{\definn}{\arabic{c_opr}}
    118 \newcommand{\Definition}[1][numbered]{\par\ifthenelse{\equal{#1}{numbered}}%
    119 {\addtocounter{c_opr}{+1}\par\textbf{\,\,\definn.\,}}%
    120 {\par\textbf{.}}}%
    121 \newcommand{\DefinitionCite}[2][numbered]{\par\ifthenelse{\equal{#1}{numbered}}%
    122 {\addtocounter{c_opr}{+1}\par\textbf{\,\,\definn}\,\,\cite{#2}.}%
    123 {\par\textbf{}\,\,\cite{#2}.}}%
    124 
    125 \newcommand{\Proof}{\par\textbf{.} }
    126 
    127 \newcommand{\exampn}{\arabic{c_pri}}
    128 \newcommand{\Example}[1][numbered]{\par\ifthenelse{\equal{#1}{numbered}}%
    129 {\addtocounter{c_pri}{+1}\par\textbf{\,\,\exampn.}}%
    130 {\par\textbf{.}}}%
    131 \newcommand{\ExampleCite}[2][numbered]{\par\ifthenelse{\equal{#1}{numbered}}%
    132 {\addtocounter{c_pri}{+1}\par\textbf{\,\,\exampn}\,\,\cite{#2}.}%
    133 {\par\textbf{}\,\,\cite{#2}.}}%
    134 
    135 \newcommand{\remrkn}{\arabic{c_zam}}
    136 \newcommand{\Remark}[1][numbered]{\par\ifthenelse{\equal{#1}{numbered}}%
    137 {\addtocounter{c_zam}{+1}\par\textbf{\,\,\remrkn.}}%
    138 {\par\textbf{.}}}%
    139 \newcommand{\RemarkCite}[2][numbered]{\par\ifthenelse{\equal{#1}{numbered}}%
    140 {\addtocounter{c_zam}{+1}\par\textbf{\,\,\remrkn}\,\,\cite{#2}.}%
    141 {\par\textbf{}\,\,\cite{#2}.}}%
    142 
    143 \newcommand{\coroln}{\arabic{c_sle}}
    144 \newcommand{\Corollary}[2][numbered]{\par\ifthenelse{\equal{#1}{numbered}}%
    145 {\addtocounter{c_sle}{+1}\par\textbf{\,\,\coroln.}\textit{ #2}}%
    146 {\par\textbf{.}\textit{ #2}}}%
    147 \newcommand{\CorollaryCite}[3][numbered]{\par\ifthenelse{\equal{#1}{numbered}}%
    148 {\addtocounter{c_sle}{+1}\par\textbf{,\,\coroln}\,\,\cite{#2}.\textit{ #3}}%
    149 {\par\textbf{}\,\,\cite{#2}.\textit{ #3}}}%
    150 
    151 %%%  %%%
    152 \newcounter{c_tab}
    153 \setcounter{c_tab}{0}
    154 \newcommand{\tabn}{\arabic{c_tab}}
    155 \newcommand{\nextline}{\tabularnewline\hline}
    156 \newcommand{\Table}[5][numbered]{\par\vspace{-0.3cm}\begin{flushright}\ifthenelse{\equal{#1}{numbered}}%
    157 {\addtocounter{c_tab}{+1}{\footnotesize\textbf{\,\,\tabn.} #2}}%
    158 {{\footnotesize\textbf{.} #2}}%
    159 \end{flushright}\vspace{-0.5cm}\par{\footnotesize\begin{center}\begin{tabular}{#3}\hline#4\end{tabular}\end{center}}}%
    160 
    161 %%%  %%%
    162 \renewcommand{\@makecaption}[2]{%
    163 \abovecaptionskip=-5pt
    164 \belowcaptionskip=-27pt
    165 \vspace{\abovecaptionskip}%
    166 \sbox{\@tempboxa}{{\footnotesize {\textbf{#1.}} #2}}
    167 \ifdim \wd\@tempboxa > \hsize
    168     \begin{center} {\footnotesize {\textbf{#1.}} #2} \par \end{center}
    169 \else
    170     \global\@minipagefalse
    171     \hbox to \hsize {\footnotesize \hfil{\textbf{#1.}} #2\hfil}%
    172 \fi
    173 \vspace{\belowcaptionskip}}
    174 
    175 \newcommand{\Figure}[3]{\begin{figure}[h]\begin{center}\includegraphics[width=#1]{#2}\caption{#3\vspace{ 1cm}}\end{center}\end{figure}}
    176 
    177 \newcommand{\WrapFigure}[5]{\begin{wrapfigure}[#1]{l}{#2}
    178 \includegraphics[width=#3]{#4}\caption{#5}
    179 \end{wrapfigure}\vspace{0.3cm}}
    180 
    181 \newcommand{\WrapFigureR}[5]{\begin{wrapfigure}[#1]{r}{#2}
    182 \includegraphics[width=#3]{#4}\caption{#5}
    183 \end{wrapfigure}\vspace{0.3cm}}
    184 
    185 %%%  %%%
    186 \newcommand{\ITEM}{\vspace{-0.2cm}\item}
    187 \newcommand{\MList}[1]{\par\begin{itemize}#1\end{itemize}}
    188 \newcommand{\NList}[1]{\par\begin{enumerate}#1\end{enumerate}}
    189 
    190 
    191 \pagestyle{empty}
    192 \textwidth 110mm
    193 \textheight 165mm
    194 \oddsidemargin 24mm
    195 \topmargin 2.7cm
    196 \renewcommand\@biblabel[1]{#1.}
    197 %\AtBeginDocument{\def\refname{}}
    198 \renewenvironment{thebibliography}[1]
    199      {\vskip12pt plus3pt minus6pt
    200       {\centering\large\bf \par}%
    201       \medskip
    202       \list{\@biblabel{\@arabic\c@enumiv}}%
    203            {\settowidth\labelwidth{\@biblabel{#1}}%
    204             \leftmargin\labelwidth
    205             \advance\leftmargin\labelsep
    206             \@openbib@code
    207             \usecounter{enumiv}%
    208             \let\p@enumiv\@empty
    209             \renewcommand\theenumiv{\@arabic\c@enumiv}}%
    210       \sloppy
    211       \clubpenalty4000
    212       \@clubpenalty \clubpenalty
    213       \widowpenalty4000%
    214       \sfcode`\.\@m}
    215      {\def\@noitemerr
    216        {\@latex@warning{Empty `thebibliography' environment}}%
    217       \endlist}
    218 
    219 \tolerance=1000