Начало

This commit is contained in:
Andrei Astafev 2016-10-20 19:57:13 +03:00
commit 6b28eced44
30 changed files with 3790 additions and 0 deletions

58
espdafterpkg.sty Normal file
View File

@ -0,0 +1,58 @@
% Copyright 2006 Konstantin Korikov <lostclus@ua.fm>
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2003/12/01 or later.
%
% This work has the LPPL maintenance status "maintained".
%
% This Current Maintainer of this work is Konstantin Korikov.
%
% This work consists of all files listed in manifest.txt.
%
% The author of original code of this file is Alexander I. Rozhenko.
% The code is taken from afterpackage.sty from ncctools bundle.
%
%
% This is automaticaly generated file, do not edit it.
%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{espdafterpkg}[2010/01/14 v0.98 Apply Commands After Package]
\newcommand*\ESPD@after@package[1]{%
\expandafter\ifx\csname ver@#1.\@pkgextension\endcsname\relax
\@ifundefined{#1.\@pkgextension-@dd}{%
\expandafter\let\csname#1.\@pkgextension-@dd\endcsname\@empty
\expandafter\@onlypreamble\csname#1.\@pkgextension-@dd\endcsname
}{}%
\wlog{After Package Info: Collect commands for #1\on@line}%
\def\@tempa{%
\expandafter\g@addto@macro\csname#1.\@pkgextension-@dd\endcsname}%
\else
\ATP@apply@info{#1}%
\let\@tempa\@firstofone
\fi
\@tempa
}
\@onlypreamble\ESPD@after@package
\let\ESPD@ATP@popfilename\@popfilename
\@onlypreamble\ESPD@ATP@popfilename
\def\@popfilename{%
\@ifundefined{\@currname.\@currext-@dd}{}{%
\ESPD@ATP@apply@info{\@currname}%
\csname\@currname.\@currext-@dd\endcsname
\expandafter\let\csname\@currname.\@currext-@dd\endcsname\relax
}%
\ESPD@ATP@popfilename
}
\def\ESPD@ATP@apply@info#1{%
\wlog{After Package Info: Apply commands to #1\on@line}%
}
\@onlypreamble\ESPD@ATP@apply@info

73
espdappsheet.sty Normal file
View File

@ -0,0 +1,73 @@
% Copyright 2006 Konstantin Korikov <lostclus@ua.fm>
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2003/12/01 or later.
%
% This work has the LPPL maintenance status "maintained".
%
% This Current Maintainer of this work is Konstantin Korikov.
%
% This work consists of all files listed in manifest.txt.
%
%
% This is automaticaly generated file, do not edit it.
%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{espdappsheet}[2010/01/14 v0.98 Approving Sheet GOST 2.105]
\RequirePackage{espdlang}
\RequirePackage{espdtitle}
\newcount\ESPD@appsheet@doc@cnt
\ESPD@appsheet@doc@cnt = 0
\newcommand{\ESPDapprovingDoc}[1]{%
\advance \ESPD@appsheet@doc@cnt 1
\@namedef{ESPD@appsheet@doc@\number\ESPD@appsheet@doc@cnt}{#1}}
\renewcommand{\ESPDtheTitleFieldV}{%
\ESPDapprovingSheetName}
\renewcommand{\ESPDtheTitleFieldVI}{%
\MakeUppercase{\ESPDtheSignature}}
\renewcommand{\ESPDtheTitleFieldVII}{}
\def\ESPDtheTitleFieldVIIIlb{}
\renewcommand{\ESPDtheTitleFieldVIIIlb}{%
\ESPD@tmpcnta = 1
\ESPD@tmpcntb = \ESPD@appsheet@doc@cnt
\advance \ESPD@tmpcntb 1
\loop
\ifnum \ESPD@tmpcnta < \ESPD@tmpcntb
\@nameuse{ESPD@appsheet@doc@\number\ESPD@tmpcnta}\par
\advance \ESPD@tmpcnta 2
\repeat}
\def\ESPDtheTitleFieldVIIIrb{}
\renewcommand{\ESPDtheTitleFieldVIIIrb}{%
\ESPD@tmpcnta = 2
\ESPD@tmpcntb = \ESPD@appsheet@doc@cnt
\advance \ESPD@tmpcntb 1
\loop
\ifnum \ESPD@tmpcnta < \ESPD@tmpcntb
\@nameuse{ESPD@appsheet@doc@\number\ESPD@tmpcnta}\par
\advance \ESPD@tmpcnta 2
\repeat}
\renewcommand{\ESPDtheTitleFieldVIII}{%
\ESPD@title@split@field{\ESPDtheTitleFieldVIIIl}{\ESPDtheTitleFieldVIIIr}
\par
\ESPD@title@split@field{\ESPDtheTitleFieldVIIIlb}{\ESPDtheTitleFieldVIIIrb}}
\renewcommand{\ESPDtheTitleFieldX}{}
\renewcommand{\ESPDtitleFontX}{\ESPDfontIII}
\newcommand{\ESPDmakeApprovingSheet}{\maketitle}

45
espdbiblist.sty Normal file
View File

@ -0,0 +1,45 @@
% Copyright 2006 Konstantin Korikov <lostclus@ua.fm>
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2003/12/01 or later.
%
% This work has the LPPL maintenance status "maintained".
%
% This Current Maintainer of this work is Konstantin Korikov.
%
% This work consists of all files listed in manifest.txt.
%
%
% This is automaticaly generated file, do not edit it.
%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{espdbiblist}[2010/01/14 v0.98 Bibliography List]
\renewcommand{\@biblabel}[1]{#1.}
\def\thebibliography#1{%
\section*{\refname}\addcontentsline{toc}{section}{\refname}%
\list{\@biblabel{\@arabic\c@enumiv}}%
{\settowidth\labelwidth{\@biblabel{#1}}%
\leftmargin\labelwidth
\advance\leftmargin\labelsep
\@openbib@code
\usecounter{enumiv}%
\let\p@enumiv\@empty
\renewcommand\theenumiv{\@arabic\c@enumiv}}%
\sloppy
\clubpenalty4000
\@clubpenalty \clubpenalty
\widowpenalty4000%
\sfcode`\.\@m}
\def\endthebibliography{\def\@noitemerr
{\@latex@warning{Empty `thebibliography' environment}}%
\endlist}

36
espdcap.sty Normal file
View File

@ -0,0 +1,36 @@
% Copyright 2006 Konstantin Korikov <lostclus@ua.fm>
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2003/12/01 or later.
%
% This work has the LPPL maintenance status "maintained".
%
% This Current Maintainer of this work is Konstantin Korikov.
%
% This work consists of all files listed in manifest.txt.
%
%
% This is automaticaly generated file, do not edit it.
%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{espdcap}[2010/01/14 v0.98 Captions]
\RequirePackage{caption}
\DeclareCaptionLabelSeparator{dash}{ \textendash{} }
\captionsetup[table]{%
labelsep=dash,justification=raggedright,singlelinecheck=false,%
aboveskip=3mm,belowskip=0mm}
\captionsetup[longtable]{%
labelsep=dash,justification=raggedright,singlelinecheck=false,%
aboveskip=3mm,belowskip=0mm}
\captionsetup[figure]{%
labelsep=dash,justification=centering,singlelinecheck=false,%
aboveskip=0mm,belowskip=3mm}

115
espdchngsheet.sty Normal file
View File

@ -0,0 +1,115 @@
% Copyright 2006 Konstantin Korikov <lostclus@ua.fm>
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2003/12/01 or later.
%
% This work has the LPPL maintenance status "maintained".
%
% This Current Maintainer of this work is Konstantin Korikov.
%
% This work consists of all files listed in manifest.txt.
%
%
% This is automaticaly generated file, do not edit it.
%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{espdchngsheet}[2010/01/14 v0.98 Sheet of Changes GOST 2.503-90]
\RequirePackage{espdlang}
\RequirePackage{espdstamp}
\RequirePackage{array}
\RequirePackage{longtable}
\RequirePackage{forloop}
\newcommand{\ESPDchngColumnIwidth}{.08\textwidth}
\newcommand{\ESPDchngColumnIIwidth}{.08\textwidth}
\newcommand{\ESPDchngColumnIIIwidth}{.08\textwidth}
\newcommand{\ESPDchngColumnIVwidth}{.08\textwidth}
\newcommand{\ESPDchngColumnVwidth}{.08\textwidth}
\newcommand{\ESPDchngColumnVIwidth}{.15\textwidth}
\newcommand{\ESPDchngColumnVIIwidth}{.10\textwidth}
\newcommand{\ESPDchngColumnVIIIwidth}{.15\textwidth}
\newcommand{\ESPDchngColumnIXwidth}{.10\textwidth}
\newcommand{\ESPDchngColumnXwidth}{.10\textwidth}
\newenvironment{ESPDchangeSheet}{%
\ESPDclearDoublePage
\setlength{\tabcolsep}{0.5mm}
\newcolumntype{s}{>{\ESPDfontTabBody}c}
\newcolumntype{S}{>{\ESPDfontTabHead}c}
\noindent
\renewcommand*{\arraystretch}{0.78}% Высота строк
\begin{longtable}{|*{10}{s|}}
\hline
\multicolumn{10}{|S|}{\ESPDchangeSheetName}\\\hline
&\multicolumn{4}{S|}{\ESPDchngColumnsIIhName}&&&&&\\\cline{2-5}
\parbox[c]{\ESPDchngColumnIwidth-2\tabcolsep-1.5\arrayrulewidth}{%
\vspace{-\baselineskip}\centering\ESPDfontTabHead\ESPDcolumnXIVname}&
\parbox[c]{\ESPDchngColumnIIwidth-2\tabcolsep-\arrayrulewidth}{%
\centering\ESPDfontTabHead\ESPDchngColumnIIname}&
\parbox[c]{\ESPDchngColumnIIIwidth-2\tabcolsep-\arrayrulewidth}{%
\centering\ESPDfontTabHead\ESPDchngColumnIIIname}&
\parbox[c]{\ESPDchngColumnIVwidth-2\tabcolsep-\arrayrulewidth}{%
\centering\ESPDfontTabHead\ESPDchngColumnIVname}&
\parbox[c]{\ESPDchngColumnVwidth-2\tabcolsep-\arrayrulewidth}{%
\centering\ESPDfontTabHead\ESPDchngColumnVname}&
\parbox[c]{\ESPDchngColumnVIwidth-2\tabcolsep-\arrayrulewidth}{%
\vspace{-\baselineskip}\centering\ESPDfontTabHead\ESPDchngColumnVIname}&
\parbox[c]{\ESPDchngColumnVIIwidth-2\tabcolsep-\arrayrulewidth}{%
\vspace{-\baselineskip}\centering\ESPDfontTabHead\ESPDcolumnXVIname}&
\parbox[c]{\ESPDchngColumnVIIIwidth-2\tabcolsep-\arrayrulewidth}{%
\vspace{-\baselineskip}\centering\ESPDfontTabHead\ESPDchngColumnVIIIname\vspace{1mm}}&
\parbox[c]{\ESPDchngColumnIXwidth-2\tabcolsep-\arrayrulewidth}{%
\vspace{-\baselineskip}\centering\ESPDfontTabHead\ESPDcolumnXVIIname}&
\parbox[c]{\ESPDchngColumnXwidth-2\tabcolsep-1.5\arrayrulewidth}{%
\vspace{-\baselineskip}\centering\ESPDfontTabHead\ESPDcolumnXVIIIname}\\\hline
\endfirsthead
\hline
&\multicolumn{4}{S|}{\ESPDchngColumnsIIhName}&&&&&\\\cline{2-5}
\parbox[c]{\ESPDchngColumnIwidth-2\tabcolsep-1.5\arrayrulewidth}{%
\vspace{-\baselineskip}\centering\ESPDfontTabHead\ESPDcolumnXIVname}&
\parbox[c]{\ESPDchngColumnIIwidth-2\tabcolsep-\arrayrulewidth}{%
\centering\ESPDfontTabHead\ESPDchngColumnIIname}&
\parbox[c]{\ESPDchngColumnIIIwidth-2\tabcolsep-\arrayrulewidth}{%
\centering\ESPDfontTabHead\ESPDchngColumnIIIname}&
\parbox[c]{\ESPDchngColumnIVwidth-2\tabcolsep-\arrayrulewidth}{%
\centering\ESPDfontTabHead\ESPDchngColumnIVname}&
\parbox[c]{\ESPDchngColumnVwidth-2\tabcolsep-\arrayrulewidth}{%
\centering\ESPDfontTabHead\ESPDchngColumnVname}&
\parbox[c]{\ESPDchngColumnVIwidth-2\tabcolsep-\arrayrulewidth}{%
\vspace{-\baselineskip}\centering\ESPDfontTabHead\ESPDchngColumnVIname}&
\parbox[c]{\ESPDchngColumnVIIwidth-2\tabcolsep-\arrayrulewidth}{%
\vspace{-\baselineskip}\centering\ESPDfontTabHead\ESPDcolumnXVIname}&
\parbox[c]{\ESPDchngColumnVIIIwidth-2\tabcolsep-\arrayrulewidth}{%
\vspace{-\baselineskip}\centering\ESPDfontTabHead\ESPDchngColumnVIIIname\vspace{1mm}}&
\parbox[c]{\ESPDchngColumnIXwidth-2\tabcolsep-\arrayrulewidth}{%
\vspace{-\baselineskip}\centering\ESPDfontTabHead\ESPDcolumnXVIIname}&
\parbox[c]{\ESPDchngColumnXwidth-2\tabcolsep-1.5\arrayrulewidth}{%
\vspace{-\baselineskip}\centering\ESPDfontTabHead\ESPDcolumnXVIIIname}\\\hline
\endhead
\hline
\endfoot}{\end{longtable}}
\newcount\lincnt
\long\def\addto#1#2{%
\expandafter\def\expandafter#1\expandafter{#1#2}}
\def\tabledata{}\lincnt=30 % Количество строк
\loop
\addto\tabledata{& & & & & & & & & \\ \hline}
\advance\lincnt -1
\ifnum\lincnt>0
\repeat
\newcommand{\ESPDprintEmptyChangeSheet}{
\begin{ESPDchangeSheet}
\tabledata
\end{ESPDchangeSheet}}

49
espddstu.sty Normal file
View File

@ -0,0 +1,49 @@
% Copyright 2006 Konstantin Korikov <lostclus@ua.fm>
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2003/12/01 or later.
%
% This work has the LPPL maintenance status "maintained".
%
% This Current Maintainer of this work is Konstantin Korikov.
%
% This work consists of all files listed in manifest.txt.
%
%
% This is automaticaly generated file, do not edit it.
%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{espddstu}[2010/01/20 v0.98 Ukrainian DSTU implementation]
% Настройка пояснений к формулам согласно ДСТУ 3008, п. 7.10.3
% временная длина для передачи внутрь окружения {list}
% величины абзацного отступа
\setlength{\ESPDexplanIndent}{\parindent}
% определим нашу собственную команду для замены \makelabel
\newcommand{\ESPD@dstu@expl@label}[1]{%
\ifthenelse{\equal{}{#1}}
{}
{\hspace{\ESPDexplanIndent}#1}%
}
\renewenvironment{ESPDexplanation}[1][\ESPDexplanWidth]{%
\begin{list}{}{\setlength{\parsep}{0pt}%
\setlength{\topsep}{0pt}%
\setlength{\itemsep}{0pt}%
\setlength{\labelsep}{0pt}%
\setlength{\labelwidth}{0pt}%
\setlength{\leftmargin}{0pt}%
\let\makelabel\ESPD@dstu@expl@label}}{%
\end{list}}

41
espdexplan.sty Normal file
View File

@ -0,0 +1,41 @@
% Copyright 2006 Konstantin Korikov <lostclus@ua.fm>
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2003/12/01 or later.
%
% This work has the LPPL maintenance status "maintained".
%
% This Current Maintainer of this work is Konstantin Korikov.
%
% This work consists of all files listed in manifest.txt.
%
%
% This is automaticaly generated file, do not edit it.
%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{espdexplan}[2010/01/19 v0.98 ESPD Explanation]
\RequirePackage{espdlang}
\newlength{\ESPDexplanIndent}
% По умолчанию пояснения к формулам прижимаются левому к краю страницы
% и не имеют отступа, так как ГОСТ 2.105-95 четко не говорит нужно ли
% ставить отступ перед пояснениями или нет.
\setlength{\ESPDexplanIndent}{0pt}
\newenvironment{ESPDexplanation}[1][\ESPDexplanWidth]{%
\begin{list}{}{\setlength{\parsep}{0pt}%
\setlength{\topsep}{0pt}%
\setlength{\itemsep}{0pt}%
\setlength{\labelsep}{0pt}%
\setlength{\labelwidth}{#1}%
\setlength{\leftmargin}{\labelwidth+\ESPDexplanIndent}}}{%
\end{list}}

67
espdfont.sty Normal file
View File

@ -0,0 +1,67 @@
% Copyright 2006 Konstantin Korikov <lostclus@ua.fm>
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2003/12/01 or later.
%
% This work has the LPPL maintenance status "maintained".
%
% This Current Maintainer of this work is Konstantin Korikov.
%
% This work consists of all files listed in manifest.txt.
%
%
% This is automaticaly generated file, do not edit it.
%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{espdfont}[2010/01/14 v0.98 Font Definitions]
\RequirePackage{gostfont}
\newcommand{\ESPDfontBaseLineStretch}{1}
\newcommand{\ESPDfontSetBaseLineStretch}{%
\renewcommand{\baselinestretch}{\ESPDfontBaseLineStretch}}
\newcommand{\ESPDfontShape}{\rmfamily}
\newcommand{\ESPDfontIIsize}{\fontsize{8pt}{10pt}}
\newcommand{\ESPDfontIIIsize}{\fontsize{10pt}{13pt}}
\newcommand{\ESPDfontIVsize}{\fontsize{12pt}{16pt}}
\newcommand{\ESPDfontVsize}{\fontsize{14pt}{18pt}}
\newcommand{\ESPDfontVIIsize}{\fontsize{18pt}{24pt}}
\newcommand{\ESPDfontXsize}{\fontsize{32pt}{40pt}}
\newcommand{\ESPDfontII}{%
\ESPDfontSetBaseLineStretch
\ESPDfontIIsize\selectfont\ESPDfontShape}
\newcommand{\ESPDfontIII}{%
\ESPDfontSetBaseLineStretch
\ESPDfontIIIsize\selectfont\ESPDfontShape}
\newcommand{\ESPDfontIV}{%
\ESPDfontSetBaseLineStretch
\ESPDfontIVsize\selectfont\ESPDfontShape}
\newcommand{\ESPDfontV}{%
\ESPDfontSetBaseLineStretch
\ESPDfontVsize\selectfont\ESPDfontShape}
\newcommand{\ESPDfontVII}{%
\ESPDfontSetBaseLineStretch
\ESPDfontVIIsize\selectfont\ESPDfontShape}
\newcommand{\ESPDfontX}{%
\ESPDfontSetBaseLineStretch
\ESPDfontXsize\selectfont\ESPDfontShape}
\newcommand{\ESPDfontGostIII}{%
\ESPDfontSetBaseLineStretch
\ESPDfontIIIsize\selectfont\GostBFont}
\newcommand{\ESPDfontGostIV}{%
\ESPDfontSetBaseLineStretch
\ESPDfontIVsize\selectfont\GostBFont}
\newcommand{\ESPDfontTabHead}{\ESPDfontV}
\newcommand{\ESPDfontTabBody}{\ESPDfontV}

82
espdfootnote.sty Normal file
View File

@ -0,0 +1,82 @@
% Copyright 2006 Konstantin Korikov <lostclus@ua.fm>
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2003/12/01 or later.
%
% This work has the LPPL maintenance status "maintained".
%
% This Current Maintainer of this work is Konstantin Korikov.
%
% This work consists of all files listed in manifest.txt.
%
%
% This is automaticaly generated file, do not edit it.
%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{espdfootnote}[2010/01/14 v0.98 Footnote Settings]
% Нумероваться сноски должны в пределах одной страницы.
% Самое очевидное решение - переподчинить счетчик footnote счетчику page,
% но такой метод будет давать сбои, если сноска вставлена
% близко к концу страницы.
% Эту проблему решил Обердайк в своем пакете zref
% пакет amsmath должен быть загружен ПЕРЕД zref
% возможно стоит загружать его в классе espdtext
% а не здесь
\RequirePackage{amsmath}
\RequirePackage{zref-perpage}
% привязываем сброс счетчика сносок к границам страниц
\zmakeperpage{footnote}
\let\footnotesize\small
% Нижеследующая строка была взята из espddstu.sty.
% Согласно ГОСT 2.105-95 после метки сноски должна быть закрывающая скобка.
% Стандарт межгосударственный и данная строка будет более
% уместно смотреться здесь
\renewcommand{\thefootnote}{\arabic{footnote})}
% Помимо арабских цифр с закрывающей скобкой
% стандарт допускает использование звездочек.
% Более четырех использовать <<не рекомендуется>>.
% Сложно сказать, что это значит. Наверное,
% на усмотрение нормоконтроля.
% Для удобства определим команду \fnasterisk
% по аналогии с \fnsymbol
\def\fnasterisk#1{\expandafter\@fnasterisk\csname c@#1\endcsname}
\def\@fnasterisk#1{%
\ifcase#1%
% empty for zero value
\or*%
\or**%
\or***%
\or****%
\else\PackageError{espdfootnote}{Too many asterisks}%
{GOST 2.105-95 does not recommend to use\MessageBreak
more then 4 asterisks in footnotes.\MessageBreak
Use 'footnotearabic' option in documentclass instead}%
\fi%
}
% Принимаемые опции
\DeclareOption{footnotearabic}{\renewcommand{\thefootnote}{\arabic{footnote})}}
\DeclareOption{footnoteasterisk}{\renewcommand{\thefootnote}{\fnasterisk{footnote}}}
\ProcessOptions\relax
% Метка сноски должна находиться по срезу абзацного отступа.
% Для этого вставляем пустой бокс шириной в абзацный отступ,
% после него бокс с меткой сноски, а за ним, собственно, текст.
\renewcommand\@makefntext[1]{%
\parindent 15mm%
\noindent%
\hbox to \parindent{}\hbox{\hss\@makefnmark} #1}

80
espdframe.sty Normal file
View File

@ -0,0 +1,80 @@
% Copyright 2006 Konstantin Korikov <lostclus@ua.fm>
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2003/12/01 or later.
%
% This work has the LPPL maintenance status "maintained".
%
% This Current Maintainer of this work is Konstantin Korikov.
%
% This work consists of all files listed in manifest.txt.
%
%
% This is automaticaly generated file, do not edit it.
%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{espdframe}[2011/05/09 v0.98 Frame Page Style]
\RequirePackage{espdstamp}
\RequirePackage{setspace}
\RequirePackage{calc}
\def\ESPD@frame@vt{%
\setlength{\ESPD@tmpdimc}{%
\ESPDframeY+\ESPDframeH-\ESPD@padding@v}}
\def\ESPD@frame@vb{%
\setlength{\ESPD@tmpdimc}{%
\ESPDframeY+\ESPD@padding@v-15mm}}
\def\ESPD@frame@hl{%
\ifESPD@twoside
\ifodd\c@page\raggedright\else\raggedleft\fi
\else\raggedright\fi}
\def\ESPD@frame@hr{%
\ifESPD@twoside
\ifodd\c@page\raggedleft\else\raggedright\fi
\else\raggedleft\fi}
\def\ESPD@frame@hc{\centering}
\let\ESPD@frame@ha\ESPD@frame@hc
\let\ESPD@frame@va\ESPD@frame@vb
\DeclareOption{numbertop}{\let\ESPD@frame@va\ESPD@frame@vt}
\DeclareOption{numberbottom}{\let\ESPD@frame@va\ESPD@frame@vb}
\DeclareOption{numberleft}{\let\ESPD@frame@ha\ESPD@frame@hl}
\DeclareOption{numbercenter}{\let\ESPD@frame@ha\ESPD@frame@hc}
\DeclareOption{numberright}{\let\ESPD@frame@ha\ESPD@frame@hr}
\ProcessOptions\relax
% Колонтитул
\newcommand{\ESPDdrawFramePageNumber}{
\setlength{\ESPD@tmpdima}{\ESPDframeX+\ESPD@padding@h}
\setlength{\ESPD@tmpdimb}{\ESPDframeW-2\ESPD@padding@h}
\ESPD@frame@va
\put(\ESPDltu{\ESPD@tmpdima},\ESPDltu{\ESPD@tmpdimc}){%
\parbox[b][25mm][c]{\ESPD@tmpdimb}{%
\begin{singlespace}
\reset@font\normalsize
\ESPD@frame@ha\thepage \\ \MakeUppercase\ESPDtheSignature
\end{singlespace}
}}}
\ESPDnewStyle{frame}{0mm}
\ESPDputOnStyle{frame}{pagenumber}{\ESPDdrawFramePageNumber}
\renewcommand{\ESPDdrawFrame}{}
\ESPDdefaultTitleStyle{title}
\ESPDdefaultFirstStyle{frame}
\ESPDdefaultStyle{frame}

176
espdfreesize.sty Normal file
View File

@ -0,0 +1,176 @@
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2003/12/01 or later.
%
% This work has the LPPL maintenance status "maintained".
%
% This Current Maintainer of this work is Konstantin Korikov.
%
% This work consists of all files listed in manifest.txt.
%
% Пакет предоставляет возможность вставки листа
% почти любого размера (ограничения описаны в руководстве
% пользователя espdx):
%
% This is automaticaly generated file, do not edit it.
%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{espdfreesize}[2010/02/20 v0.98 Inserting Free Size Sheets]
\RequirePackage{espdstamp}
% переключение размера возможно только в pdflatex.
% Tем не менее, latex тоже сможет собрать такой документ,
% но все большие страницы
% обрежет по размерам формата, установленного в documentclass
\RequirePackage{ifpdf}
\ifpdf{}
\else{\PackageWarningNoLine{espdfreesize}
{It's better to compile this document with pdflatex.\MessageBreak
In DVI you will get only part of the inserted big sheet}}
\fi
% в espdstamp для ускорения отрисовки рамки применен \savebox
% в нашем случае это неудобно, будем рисовать персонально
% на каждой странице
\newcommand{\ESPDdrawFrameFree}{%
\put(\ESPDltu{\ESPDframeX},\ESPDltu{\ESPDframeY}){%
\setlength{\unitlength}{1mm}%
\begin{picture}(0,0)(0,0)
\linethickness{\ESPDlineThick}
\put(0,\ESPDltu{\ESPDframeH}){\line(1,0){\ESPDltu{\ESPDframeW}}}
\put(0,0){\line(1,0){\ESPDltu{\ESPDframeW}}}
\put(0,0){\line(0,1){\ESPDltu{\ESPDframeH}}}
\put(\ESPDltu{\ESPDframeW},0){\line(0,1){\ESPDltu{\ESPDframeH}}}
\end{picture}}}
% содержимое нестандартной графы 32 по умолчанию
\newcommand\ESPDtheColumnXXXIIfree{\@nameuse{ESPDemptyFormatName}}
% определим нашу собственную нестандартную графу 32
\newcommand{\ESPDdrawColumnXXXIIfree}{%
\setlength{\ESPD@tmpdima}{\ESPDframeX+\ESPDframeW-50mm}%
\setlength{\ESPD@tmpdimb}{\ESPDframeY-3.7mm}%
\put(\ESPDltu{\ESPD@tmpdima},\ESPDltu{\ESPD@tmpdimb}){%
\makebox[50mm][r]{\ESPDfontIII\ESPDtheColumnXXXIIfree}}}
% Определим новый стиль. Подробнее про определение своих стилей
% можно прочитать в руководстве пользователя espdx,
% или заглянуть в espdstamp.sty,
% кусок оттуда был использован как основа для стиля freesize
\ESPDnewStyle{freesize}{8mm}
\ESPDputOnStyle{freesize}{frame}{\ESPDdrawFrameFree}
\ESPDputOnStyle{freesize}{stamp}{\ESPDdrawStampIIa}
\ifESPD@enable@columns@xix
\ESPDputOnStyle{freesize}{columnsxix}{\ESPDdrawColumnsXIX}
\fi
\ifESPD@enable@column@xxvi
\ESPDputOnStyle{freesize}{columnxxvi}{\ESPDdrawColumnXXVI}
\fi
\ifESPD@enable@columns@xxvii
\ESPDputOnStyle{freesize}{columnsxxvii}{\ESPDdrawColumnsXXVIIi}
\fi
\ifESPD@enable@column@xxxi
\ESPDputOnStyle{freesize}{columnxxxi}{\ESPDdrawColumnXXXI}
\fi
\ifESPD@enable@column@xxxii
% наша новая графа 32
\ESPDputOnStyle{freesize}{columnxxxii}{\ESPDdrawColumnXXXIIfree}
\fi
\ifESPD@enable@column@xxxiii
\ESPDputOnStyle{freesize}{columnxxxiii}{\ESPDdrawColumnXXXIII}
\fi
\ifESPD@enable@column@xxxiv
\ESPDputOnStyle{freesize}{columnxxxiv}{\ESPDdrawColumnXXXIV}
\fi
\ifESPD@zonelabels%
\ESPDputOnStyle{freesize}{zonelabels}{\ESPDdrawZoneLabelsI}
\fi
% вспомогательные счетчики для записей в лог
\newcounter{ESPD@free@sizepagebegin}
\newcounter{ESPD@free@sizepageend}
% теперь самое сложное - сам переключатель
\newcommand{\ESPDfreeSize}[3]{%
\ESPDclearDoublePage%
\setcounter{ESPD@free@sizepagebegin}{\value{page}}% запомним текущую страницу
\pdfpagewidth=#1%
\pdfpageheight=#2%
\setlength{\ESPD@origin@y}{#2-1in}%
\setlength{\ESPDframeW}{\pdfpagewidth-\ESPD@margin@si-\ESPD@margin@so}%
\setlength{\ESPDframeH}{\pdfpageheight-\ESPD@margin@t-\ESPD@margin@b}%
\ESPDstyle{freesize}%
\expandafter{#3}%
% зафиксируем факт вставки листа в \jobname.log
\ESPDclearDoublePage%
\renewcommand\ESPDtheColumnXXXIIfree{\@nameuse{ESPDemptyFormatName}}% сброс графы 32
\setcounter{ESPD@free@sizepageend}{\value{page}}%
\addtocounter{ESPD@free@sizepageend}{-1}%
\ifthenelse{\value{ESPD@free@sizepagebegin}<\value{ESPD@free@sizepageend}}% латех начал новую страницу
{\immediate\write0{espdfreesize: sheet(s) with size (#1 x #2) inserted
at page(s) \noexpand[\arabic{ESPD@free@sizepagebegin}%
-\arabic{ESPD@free@sizepageend}\noexpand]}}
{\immediate\write0{espdfreesize: sheet(s) with size (#1 x #2) inserted
at page(s) \noexpand[\arabic{ESPD@free@sizepageend}\noexpand]}}
% теперь вернем всё как было до нас
\setlength{\ESPD@origin@y}{\paperheight-1in}%
\pdfpageheight=\paperheight%
\pdfpagewidth=\paperwidth%
\setlength{\ESPDframeW}{\paperwidth-\ESPD@margin@si-\ESPD@margin@so}%
\setlength{\ESPDframeH}{\paperheight-\ESPD@margin@t-\ESPD@margin@b}%
\ESPDstyle{\ESPD@default@style@other}%
\newpage%
}
% Определим несколько готовых к употреблению форматов
\newcommand{\ESPDlandscapeAIII}[1]{%
\renewcommand\ESPDtheColumnXXXIIfree{\@nameuse{ESPDa3FormatName}}%
\ESPDfreeSize{420mm}{297mm}{#1}}
\newcommand{\ESPDportraitAIII}[1]{%
\renewcommand\ESPDtheColumnXXXIIfree{\@nameuse{ESPDa3FormatName}}%
\ESPDfreeSize{297mm}{420mm}{#1}}
\newcommand{\ESPDlandscapeAII}[1]{%
\renewcommand\ESPDtheColumnXXXIIfree{\@nameuse{ESPDa2FormatName}}%
\ESPDfreeSize{594mm}{420mm}{#1}}
\newcommand{\ESPDportraitAII}[1]{%
\renewcommand\ESPDtheColumnXXXIIfree{\@nameuse{ESPDa2FormatName}}%
\ESPDfreeSize{420mm}{594mm}{#1}}
\newcommand{\ESPDlandscapeAI}[1]{%
\renewcommand\ESPDtheColumnXXXIIfree{\@nameuse{ESPDa1FormatName}}%
\ESPDfreeSize{841mm}{594mm}{#1}}
\newcommand{\ESPDportraitAI}[1]{%
\renewcommand\ESPDtheColumnXXXIIfree{\@nameuse{ESPDa1FormatName}}%
\ESPDfreeSize{594mm}{841mm}{#1}}
\newcommand{\ESPDlandscapeAZERO}[1]{%
\renewcommand\ESPDtheColumnXXXIIfree{\@nameuse{ESPDa0FormatName}}%
\ESPDfreeSize{1189mm}{841mm}{#1}}
\newcommand{\ESPDportraitAZERO}[1]{%
\renewcommand\ESPDtheColumnXXXIIfree{\@nameuse{ESPDa0FormatName}}%
\ESPDfreeSize{841mm}{1189mm}{#1}}
\newcommand{\ESPDlandscapeBanner}[1]{%
% Пятиметровое полотно для подшивки гармошкой в обычную папку А4.
% Просто для демонстрации
\ESPDfreeSize{5000mm}{297mm}{#1}}

52
espdgraph.cls Normal file
View File

@ -0,0 +1,52 @@
% Copyright 2006 Konstantin Korikov <lostclus@ua.fm>
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2003/12/01 or later.
%
% This work has the LPPL maintenance status "maintained".
%
% This Current Maintainer of this work is Konstantin Korikov.
%
% This work consists of all files listed in manifest.txt.
%
%
% This is automaticaly generated file, do not edit it.
%
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{espdgraph}[2010/01/14 v0.98 Graphical Documentation]
\DeclareOption{russian}{\PassOptionsToPackage{\CurrentOption}{espdlang}}
\DeclareOption{ukrainian}{\PassOptionsToPackage{\CurrentOption}{espdlang}}
\DeclareOption{koi8-r}{\PassOptionsToPackage{\CurrentOption}{espdlang}}
\DeclareOption{koi8-u}{\PassOptionsToPackage{\CurrentOption}{espdlang}}
\DeclareOption{cp1251}{\PassOptionsToPackage{\CurrentOption}{espdlang}}
\DeclareOption{iso8859-5}{\PassOptionsToPackage{\CurrentOption}{espdlang}}
\DeclareOption{cp866}{\PassOptionsToPackage{\CurrentOption}{espdlang}}
\DeclareOption{utf-8}{\PassOptionsToPackage{\CurrentOption}{espdlang}}
\DeclareOption{utf8}{\PassOptionsToPackage{\CurrentOption}{espdlang}}
\DeclareOption{draft}{\PassOptionsToClass{\CurrentOption}{article}}
\DeclareOption{twoside}{%
\ClassError{espdgraph}{Two side printing is not allowed for
graphical documentation}{}}
\DeclareOption{formII}{%
\ClassError{espdgraph}{formII style is for textual documentation}{}}
\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{espdstamp}}
\ProcessOptions\relax
\LoadClass{article}
\RequirePackage{espdlang}
\RequirePackage[formI,columnxxvi,ignorestamp]{espdstamp}
\RequirePackage{espdinfo}
\newenvironment{ESPDdrawing}{%
\clearpage\mbox{}\strut\par\vspace{-\baselineskip}\vfill%
\begin{center}}{\end{center}\vfill\clearpage}

60
espdhash.sty Normal file
View File

@ -0,0 +1,60 @@
% Copyright 2006 Konstantin Korikov <lostclus@ua.fm>
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2003/12/01 or later.
%
% This work has the LPPL maintenance status "maintained".
%
% This Current Maintainer of this work is Konstantin Korikov.
%
% This work consists of all files listed in manifest.txt.
%
%
% This is automaticaly generated file, do not edit it.
%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{espdhash}[2010/01/14 v0.98 Hash Routines]
\newcommand{\ESPD@hash@new}[1]{%
\global\expandafter\newcount\csname ESPD@hash@c@#1\endcsname
\global\csname ESPD@hash@c@#1\endcsname = 0
\global\expandafter\newcount\csname ESPD@hash@p@#1\endcsname
\global\csname ESPD@hash@p@#1\endcsname = 0\relax}
\newcommand{\ESPD@hash@set}[3]{%
\expandafter\ifx\csname ESPD@hash@v@#1@#2\endcsname\relax
\expandafter\gdef\csname ESPD@hash@k@#1@\expandafter\number\csname
ESPD@hash@c@#1\endcsname\endcsname{#2}
\expandafter\advance\csname ESPD@hash@c@#1\endcsname 1
\fi
\expandafter\gdef\csname ESPD@hash@v@#1@#2\endcsname{#3}}
\newcommand{\ESPD@hash@get}[2]{%
\csname ESPD@hash@v@#1@#2\endcsname}
\newcommand{\ESPD@hash@reset}[1]{%
\csname ESPD@hash@p@#1\endcsname = 0\relax}
\newcommand{\ESPD@hash@next@key}[1]{%
\csname ESPD@hash@k@#1@\expandafter\number\csname
ESPD@hash@p@#1\endcsname\endcsname
\expandafter\advance\csname ESPD@hash@p@#1\endcsname 1\relax}
\newcommand{\ESPD@hash@next@value}[1]{%
\csname ESPD@hash@v@#1@\csname ESPD@hash@k@#1@\expandafter\number\csname
ESPD@hash@p@#1\endcsname\endcsname\endcsname
\expandafter\advance\csname ESPD@hash@p@#1\endcsname 1\relax}
\newcommand{\ESPD@hash@count}[1]{%
\expandafter\number\csname ESPD@hash@c@#1\endcsname}
\newcommand{\ESPD@hash@pos}[1]{%
\expandafter\number\csname ESPD@hash@p@#1\endcsname}

27
espdindent.sty Normal file
View File

@ -0,0 +1,27 @@
% Copyright 2006 Konstantin Korikov <lostclus@ua.fm>
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2003/12/01 or later.
%
% This work has the LPPL maintenance status "maintained".
%
% This Current Maintainer of this work is Konstantin Korikov.
%
% This work consists of all files listed in manifest.txt.
%
%
% This is automaticaly generated file, do not edit it.
%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{espdindent}[2010/01/14 v0.98 Paragraph Indent]
\RequirePackage{indentfirst}
\setlength{\parindent}{12.5mm}

105
espdinfo.sty Normal file
View File

@ -0,0 +1,105 @@
% Copyright 2006 Konstantin Korikov <lostclus@ua.fm>
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2003/12/01 or later.
%
% This work has the LPPL maintenance status "maintained".
%
% This Current Maintainer of this work is Konstantin Korikov.
%
% This work consists of all files listed in manifest.txt.
%
%
% This is automaticaly generated file, do not edit it.
%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{espdinfo}[2010/01/14 v0.98 Document Information]
\newcommand{\ESPDtheDepartment}{}
\newcommand{\ESPDdepartment}[1]{\renewcommand{\ESPDtheDepartment}{#1}}
\newcommand{\ESPDtheCompany}{}
\newcommand{\ESPDcompany}[1]{\renewcommand{\ESPDtheCompany}{#1}}
\newcommand{\ESPDtheClassCode}{}
\newcommand{\ESPDclassCode}[1]{\renewcommand{\ESPDtheClassCode}{#1}}
\newcommand{\ESPDtheUnitName}{}
\newcommand{\ESPDunitName}[1]{%
\renewcommand{\ESPDtheUnitName}{#1}%
\renewcommand{\@title}{#1}}
\newcommand{\ESPDtheTitle}{\ESPDtheUnitName}
\newcommand{\ESPDtitle}[1]{\ESPDunitName{#1}}
\renewcommand{\title}[1]{\ESPDunitName{#1}}
\newcommand{\ESPDtheDocName}{}
\newcommand{\ESPDdocName}[1]{\renewcommand{\ESPDtheDocName}{#1}}
\newcommand{\ESPDtheSignature}{}
\newcommand{\ESPDsignature}[1]{\renewcommand{\ESPDtheSignature}{#1}}
\newcommand{\ESPDtheFileName}{}
\newcommand{\ESPDfileName}[1]{\renewcommand{\ESPDtheFileName}{#1}}
\newcommand{\ESPDtheLetterI}{}
\newcommand{\ESPDtheLetterII}{}
\newcommand{\ESPDtheLetterIII}{}
\newcommand{\ESPDletter}[3]{%
\renewcommand{\ESPDtheLetterI}{#1}%
\renewcommand{\ESPDtheLetterII}{#2}%
\renewcommand{\ESPDtheLetterIII}{#3}}
\newcommand{\ESPDtheMaterial}{}
\newcommand{\ESPDmaterial}[1]{%
\renewcommand{\ESPDtheMaterial}{#1}}
\newcommand{\ESPDtheMass}{}
\newcommand{\ESPDmass}[1]{%
\renewcommand{\ESPDtheMass}{#1}}
\newcommand{\ESPDtheScale}{}
\newcommand{\ESPDscale}[1]{%
\renewcommand{\ESPDtheScale}{#1}}
\newcommand{\ESPDtheGroup}{}
\newcommand{\ESPDgroup}[1]{\renewcommand{\ESPDtheGroup}{#1}}
\newcommand{\ESPDtheAuthor}{}
\newcommand{\ESPDauthor}[1]{%
\renewcommand{\ESPDtheAuthor}{#1}%
\renewcommand{\@author}{#1}}
\renewcommand{\author}[1]{\ESPDauthor{#1}}
\newcommand{\ESPDtheChecker}{}
\newcommand{\ESPDchecker}[1]{\renewcommand{\ESPDtheChecker}{#1}}
\newcommand{\ESPDtheNormContr}{}
\newcommand{\ESPDnormContr}[1]{\renewcommand{\ESPDtheNormContr}{#1}}
\newcommand{\ESPDtheApprovedBy}{}
\newcommand{\ESPDapprovedBy}[1]{\renewcommand{\ESPDtheApprovedBy}{#1}}
\newcommand{\ESPDtheYear}{\number\year}
\newcommand{\ESPDtheMonth}{\number\month}
\newcommand{\ESPDtheDay}{\number\day}
\def\ESPD@set@date#1/#2/#3 enddate{%
\renewcommand{\ESPDtheYear}{#1}%
\renewcommand{\ESPDtheMonth}{#2}%
\renewcommand{\ESPDtheDay}{#3}}
\newcommand{\ESPDdate}[1]{%
\ESPD@set@date #1 enddate%
\renewcommand{\@date}{#1}}
\renewcommand{\date}[1]{\ESPDdate{#1}}
\RequirePackage{espdafterpkg}
\ESPD@after@package{hyperref}{%
\hypersetup{breaklinks,pdftitle=\ESPDtheUnitName,%
pdfsubject=\ESPDtheDocName,pdfauthor=\ESPDtheAuthor}}

44
espdlang.sty Normal file
View File

@ -0,0 +1,44 @@
% Copyright 2006 Konstantin Korikov <lostclus@ua.fm>
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2003/12/01 or later.
%
% This work has the LPPL maintenance status "maintained".
%
% This Current Maintainer of this work is Konstantin Korikov.
%
% This work consists of all files listed in manifest.txt.
%
%
% This is automaticaly generated file, do not edit it.
%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{espdlang}[2010/01/14 v0.98 Language]
\newcommand{\ESPD@lang}{russian}
\newif\ifESPD@given@encoding
\ESPD@given@encodingfalse
\DeclareOption{russian}{\renewcommand{\ESPD@lang}{russian}}
\DeclareOption{ukrainian}{\renewcommand{\ESPD@lang}{ukrainian}}
\DeclareOption*{%
\PassOptionsToPackage{\CurrentOption}{inputenc}%
\ESPD@given@encodingtrue}
\ProcessOptions\relax
\ifESPD@given@encoding
\RequirePackage{inputenc}
\fi
\RequirePackage[\ESPD@lang]{babel}
\input{espd\ESPD@lang.def}

68
espdlist.sty Normal file
View File

@ -0,0 +1,68 @@
% Copyright 2006 Konstantin Korikov <lostclus@ua.fm>
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2003/12/01 or later.
%
% This work has the LPPL maintenance status "maintained".
%
% This Current Maintainer of this work is Konstantin Korikov.
%
% This work consists of all files listed in manifest.txt.
%
%
% This is automaticaly generated file, do not edit it.
%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{espdlist}[2010/01/14 v0.98 List]
\RequirePackage{calc}
\RequirePackage{enumitem}% убрать вертикальный отступ перед списками
\setlist[itemize]{%
topsep=0pt,
parsep=0pt,
leftmargin=0cm,
listparindent=\parindent{},
itemindent=\labelwidth{}
}
\setlist[enumerate]{%
topsep=0pt,
parsep=0pt,
leftmargin=0cm,
listparindent=\parindent{},
itemindent=\labelwidth{}
}
\AddEnumerateCounter{\asbuk}{\@asbuk}{\cyra}
\renewcommand{\theenumi}{\arabic{enumi}}
\renewcommand{\labelenumi}{\theenumi)}
\renewcommand{\theenumii}{\asbuk{enumi}}
\renewcommand{\labelenumii}{\theenumii)}
\renewcommand{\labelitemi}{\bfseries\textendash}
\renewcommand{\labelitemii}{\bfseries\textendash}
\renewcommand{\labelitemiii}{\bfseries\textendash}
\renewcommand{\labelitemiv}{\bfseries\textendash}
\renewcommand{\@listi}{%
\setlength{\itemsep}{0pt}}
\renewcommand{\@listii}{%
\setlength{\itemsep}{0pt}}
\renewcommand{\@listiii}{%
\setlength{\itemsep}{0pt}}
\renewcommand{\@listiv}{%
\setlength{\itemsep}{0pt}}
\let\@listI\@listi
\@listi
\setlength{\labelwidth}{\parindent+.7em+\labelsep}
\setlength{\itemindent}{0pt}
\setlength{\leftmargin}{\labelwidth}

51
espdpara.sty Normal file
View File

@ -0,0 +1,51 @@
% Copyright 2006 Konstantin Korikov <lostclus@ua.fm>
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2003/12/01 or later.
%
% This work has the LPPL maintenance status "maintained".
%
% This Current Maintainer of this work is Konstantin Korikov.
%
% This work consists of all files listed in manifest.txt.
%
%
% This is automaticaly generated file, do not edit it.
%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{espdpara}[2010/01/14 v0.98 Paragraphs]
\RequirePackage{espdsect}
\newcommand{\ESPDparagraphAlign}{\ESPDsectAlignLeft}
\newcommand{\ESPDsubparagraphAlign}{\ESPDsectAlignLeft}
\newcommand{\ESPDparagraphStyle}{\normalfont\normalsize\bfseries}
\newcommand{\ESPDsubparagraphStyle}{\normalfont\normalsize\bfseries}
\newlength{\ESPDparagraphSkipBefore}
\newlength{\ESPDparagraphSkipAfter}
\setlength{\ESPDparagraphSkipBefore}{-15mm \@plus -3mm \@minus -2mm}
\setlength{\ESPDparagraphSkipAfter}{15mm \@plus 1mm \@minus 2mm}
\newlength{\ESPDsubparagraphSkipBefore}
\newlength{\ESPDsubparagraphSkipAfter}
\setlength{\ESPDsubparagraphSkipBefore}{-15mm \@plus -3mm \@minus -2mm}
\setlength{\ESPDsubparagraphSkipAfter}{15mm \@plus 1mm \@minus 2mm}
\renewcommand\paragraph{\@startsection{paragraph}{4}{\parindent}%
{\ESPDparagraphSkipBefore}%
{\ESPDparagraphSkipAfter}%
{\ESPDparagraphAlign\ESPDparagraphStyle}}
\renewcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
{\ESPDsubparagraphSkipBefore}%
{\ESPDsubparagraphSkipAfter}%
{\ESPDsubparagraphAlign\ESPDsubparagraphStyle}}

78
espdplain.sty Normal file
View File

@ -0,0 +1,78 @@
% Copyright 2006 Konstantin Korikov <lostclus@ua.fm>
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2003/12/01 or later.
%
% This work has the LPPL maintenance status "maintained".
%
% This Current Maintainer of this work is Konstantin Korikov.
%
% This work consists of all files listed in manifest.txt.
%
%
% This is automaticaly generated file, do not edit it.
%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{espdplain}[2011/05/09 v0.98 Plain Page Style]
\RequirePackage{espdstamp}
\RequirePackage{setspace}
\RequirePackage{calc}
\def\ESPD@plain@vt{%
\setlength{\ESPD@tmpdimc}{%
\ESPDframeY+\ESPDframeH-\ESPD@padding@v}}
\def\ESPD@plain@vb{%
\setlength{\ESPD@tmpdimc}{%
\ESPDframeY+\ESPD@padding@v-15mm}}
\def\ESPD@plain@hl{%
\ifESPD@twoside
\ifodd\c@page\raggedright\else\raggedleft\fi
\else\raggedright\fi}
\def\ESPD@plain@hr{%
\ifESPD@twoside
\ifodd\c@page\raggedleft\else\raggedright\fi
\else\raggedleft\fi}
\def\ESPD@plain@hc{\centering}
\let\ESPD@plain@ha\ESPD@plain@hc
\let\ESPD@plain@va\ESPD@plain@vb
\DeclareOption{numbertop}{\let\ESPD@plain@va\ESPD@plain@vt}
\DeclareOption{numberbottom}{\let\ESPD@plain@va\ESPD@plain@vb}
\DeclareOption{numberleft}{\let\ESPD@plain@ha\ESPD@plain@hl}
\DeclareOption{numbercenter}{\let\ESPD@plain@ha\ESPD@plain@hc}
\DeclareOption{numberright}{\let\ESPD@plain@ha\ESPD@plain@hr}
\ProcessOptions\relax
\newcommand{\ESPDdrawPlainPageNumber}{
\setlength{\ESPD@tmpdima}{\ESPDframeX+\ESPD@padding@h}
\setlength{\ESPD@tmpdimb}{\ESPDframeW-2\ESPD@padding@h}
\ESPD@plain@va
\put(\ESPDltu{\ESPD@tmpdima},\ESPDltu{\ESPD@tmpdimc}){%
\parbox[b][15mm][c]{\ESPD@tmpdimb}{%
\begin{singlespace}
\reset@font\normalsize
\ESPD@plain@ha\thepage \\ \MakeUppercase\ESPDtheSignature
\end{singlespace}
}}}
\ESPDnewStyle{plain}{0mm}
\ESPDputOnStyle{plain}{pagenumber}{\ESPDdrawPlainPageNumber}
\ESPDdefaultTitleStyle{empty}
\ESPDdefaultFirstStyle{plain}
\ESPDdefaultStyle{plain}

178
espdrussian.def Normal file
View File

@ -0,0 +1,178 @@
% Copyright 2006 Konstantin Korikov <lostclus@ua.fm>
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2003/12/01 or later.
%
% This work has the LPPL maintenance status "maintained".
%
% This Current Maintainer of this work is Konstantin Korikov.
%
% This work consists of all files listed in manifest.txt.
%
%
% This is automaticaly generated file, do not edit it.
%
\ProvidesFile{espdrussian.def}[2010/01/17 v0.98 Language File]
\newcommand{\ESPDcolumnIVname}{%
\cyr\CYRL\cyri\cyrt.}
\newcommand{\ESPDcolumnVname}{%
\cyr\CYRM\cyra\cyrs\cyrs\cyra}
\newcommand{\ESPDcolumnVIname}{%
\cyr\CYRM\cyra\cyrs\cyrsh\cyrt\cyra\cyrb}
\newcommand{\ESPDcolumnVIIname}{%
\cyr\CYRL\cyri\cyrs\cyrt}
\newcommand{\ESPDcolumnVIItwosideName}{%
\cyr\CYRS\cyrt\cyrr.}
\newcommand{\ESPDcolumnVIIIname}{%
\cyr\CYRL\cyri\cyrs\cyrt\cyro\cyrv}
\newcommand{\ESPDcolumnVIIItwosideName}{%
\cyr\CYRS\cyrt\cyrr\cyra\cyrn\cyri\cyrc}
\newcommand{\ESPDcolumnXfIname}{%
\cyr\CYRR\cyra\cyrz\cyrr\cyra\cyrb.}
\newcommand{\ESPDcolumnXfIIname}{%
\cyr\CYRP\cyrr\cyro\cyrv.}
\newcommand{\ESPDcolumnXfIIIname}{%
\cyr\CYRT. \cyrk\cyro\cyrn\cyrt\cyrr.}
\newcommand{\ESPDcolumnXfIVname}{}
\newcommand{\ESPDcolumnXfVname}{%
\cyr\CYRN. \cyrk\cyro\cyrn\cyrt\cyrr.}
\newcommand{\ESPDcolumnXfVIname}{%
\cyr\CYRU\cyrt\cyrv.}
\newcommand{\ESPDcolumnXIVname}{%
\cyr\CYRI\cyrz\cyrm.}
\newcommand{\ESPDcolumnXVname}{%
\cyr\CYRL\cyri\cyrs\cyrt}
\newcommand{\ESPDcolumnXVIname}{%
\textnumero\ \cyr\cyrd\cyro\cyrk\cyru\cyrm.}
\newcommand{\ESPDcolumnXVIIname}{%
\cyr\CYRP\cyro\cyrd\cyrp.}
\newcommand{\ESPDcolumnXVIIIname}{%
\cyr\CYRD\cyra\cyrt\cyra}
\newcommand{\ESPDcolumnXIXname}{%
\cyr\CYRI\cyrn\cyrv. \textnumero\ \cyrp\cyro\cyrd\cyrl.}
\newcommand{\ESPDcolumnXXname}{%
\cyr\CYRP\cyro\cyrd\cyrp. \cyri\ \cyrd\cyra\cyrt\cyra}
\newcommand{\ESPDcolumnXXIname}{%
\cyr\CYRV\cyrz\cyra\cyrm. \cyri\cyrn\cyrv. \textnumero}
\newcommand{\ESPDcolumnXXIIname}{%
\cyr\CYRI\cyrn\cyrv. \textnumero\ \cyrd\cyru\cyrb\cyrl.}
\newcommand{\ESPDcolumnXXIIIname}{%
\cyr\CYRP\cyro\cyrd\cyrp. \cyri\ \cyrd\cyra\cyrt\cyra}
\newcommand{\ESPDcolumnXXIVname}{%
\cyr\CYRS\cyrp\cyrr\cyra\cyrv. \textnumero}
\newcommand{\ESPDcolumnXXVname}{%
\cyr\CYRP\cyre\cyrr\cyrv. \cyrp\cyrr\cyri\cyrm\cyre\cyrn.}
\newcommand{\ESPDcolumnXXXIname}{%
\cyr\CYRK\cyro\cyrp\cyri\cyrr\cyro\cyrv\cyra\cyrl}
\@namedef{ESPDa0FormatName}{%
\cyr\CYRF\cyro\cyrr\cyrm\cyra\cyrt\ \CYRA{}0}
\@namedef{ESPDa1FormatName}{%
\cyr\CYRF\cyro\cyrr\cyrm\cyra\cyrt\ \CYRA{}1}
\@namedef{ESPDa2FormatName}{%
\cyr\CYRF\cyro\cyrr\cyrm\cyra\cyrt\ \CYRA{}2}
\@namedef{ESPDa3FormatName}{%
\cyr\CYRF\cyro\cyrr\cyrm\cyra\cyrt\ \CYRA{}3}
\@namedef{ESPDa4FormatName}{%
\cyr\CYRF\cyro\cyrr\cyrm\cyra\cyrt\ \CYRA{}4}
\@namedef{ESPDemptyFormatName}{%
\cyr\CYRF\cyro\cyrr\cyrm\cyra\cyrt\ \ \ \ }
\newcommand{\ESPDcolumnXXXIIIname}{%
\cyr\CYRZ\cyro\cyrn\cyra}
\newcommand{\ESPDagreedName}{%
\cyr\CYRS\cyro\cyrg\cyrl\cyra\cyrs\cyro\cyrv\cyra\cyrn\cyro}
\newcommand{\ESPDapprovingName}{%
\cyr\CYRU\cyrt\cyrv\cyre\cyrr\cyrzh\cyrd\cyra\cyryu}
\newcommand{\ESPDapprovedName}{%
\cyr\CYRU\cyrt\cyrv\cyre\cyrr\cyrzh\cyrd\cyre\cyrn}
\newcommand{\ESPDapprovingSheetName}{%
\cyr\CYRL\cyri\cyrs\cyrt\ %
\cyru\cyrt\cyrv\cyre\cyrr\cyrzh\cyrd\cyre\cyrn\cyri\cyrya}
\newlength{\ESPDexplanWidth}
\setlength{\ESPDexplanWidth}{1.8em}
\addto\captionsrussian{%
\def\tablename{{\cyr\CYRT\cyra\cyrb\cyrl\cyri\cyrc\cyra}}%
\def\figurename{{\cyr\CYRR\cyri\cyrs\cyru\cyrn\cyro\cyrk}}%
}
\newcommand{\ESPDspecColumnIname}{%
\cyr\CYRF\cyro\cyrr\cyrm\cyra\cyrt}
\newcommand{\ESPDspecColumnIIname}{%
\cyr\CYRZ\cyro\cyrn\cyra}
\newcommand{\ESPDspecColumnIIIname}{%
\cyr\CYRP\cyro\cyrz.}
\newcommand{\ESPDspecColumnIVname}{%
\cyr\CYRO\cyrb\cyro\cyrz\cyrn\cyra\cyrch\cyre\cyrn\cyri\cyre}
\newcommand{\ESPDspecColumnVname}{%
\cyr\CYRN\cyra\cyri\cyrm\cyre\cyrn\cyro\cyrv\cyra\cyrn\cyri\cyre}
\newcommand{\ESPDspecColumnVIname}{%
\cyr\CYRK\cyro\cyrl.}
\newcommand{\ESPDspecColumnVIIname}{%
\cyr\CYRP\cyrr\cyri\cyrm\cyre\cyrch\cyra\cyrn\cyri\cyre}
\newcommand{\ESPDspecIIcolumnIname}{\ESPDspecColumnIname}
\newcommand{\ESPDspecIIcolumnIIname}{\ESPDspecColumnIIname}
\newcommand{\ESPDspecIIcolumnIIIname}{\ESPDspecColumnIIIname}
\newcommand{\ESPDspecIIcolumnIVname}{\ESPDspecColumnIVname}
\newcommand{\ESPDspecIIcolumnVname}{\ESPDspecColumnVname}
\newcommand{\ESPDspecIIcolumnVIname}{\ESPDspecColumnVIname}
\newcommand{\ESPDspecIIcolumnVIIname}{%
\cyr\CYRM\cyra\cyrs\cyrs\cyra}
\newcommand{\ESPDspecIIcolumnVIIIname}{%
\cyr\CYRM\cyra\cyrt\cyre\cyrr\cyri\cyra\cyrl}
\newcommand{\ESPDspecIIcolumnIXname}{\ESPDspecColumnVIIname}
\newcommand{\ESPDchangeSheetName}{%
\cyr\CYRL\cyri\cyrs\cyrt\ %
\cyrr\cyre\cyrg\cyri\cyrs\cyrt\cyrr\cyra\cyrc\cyri\cyri\ %
\cyri\cyrz\cyrm\cyre\cyrn\cyre\cyrn\cyri\cyrishrt}
\newcommand{\ESPDchngColumnsIIhName}{%
\cyr\CYRN\cyro\cyrm\cyre\cyrr\cyra\ \cyrl\cyri\cyrs\cyrt\cyro\cyrv\ %
(\cyrs\cyrt\cyrr\cyra\cyrn\cyri\cyrc)}
\newcommand{\ESPDchngColumnIIname}{%
\cyr\cyri\cyrz\-\cyrm\cyre\-\cyrn\cyre\cyrn\-\cyrn\cyrery\cyrh}
\newcommand{\ESPDchngColumnIIIname}{%
\cyr\cyrz\cyra\-\cyrm\cyre\-\cyrn\cyre\cyrn\-\cyrn\cyrery\cyrh}
\newcommand{\ESPDchngColumnIVname}{%
\cyr\cyrn\cyro\-\cyrv\cyrery\cyrh}
\newcommand{\ESPDchngColumnVname}{%
\cyr\cyra\cyrn\-\cyrn\cyru\-\cyrl\cyri\-\cyrr\cyro\-\cyrv\cyra\cyrn\-%
\cyrn\cyrery\cyrh}
\newcommand{\ESPDchngColumnVIname}{%
\cyr\CYRV\cyrs\cyre\cyrg\cyro\ \cyrl\cyri\cyrs\cyrt\cyro\cyrv\ %
(\cyrs\cyrt\cyrr\cyra\cyrn\cyri\cyrc) \cyrv\ \cyrd\cyro\cyrk\cyru\cyrm.}
\newcommand{\ESPDchngColumnVIIIname}{%
\cyr\CYRV\cyrh\cyro\cyrd\cyrya\cyrshch\cyri\cyrishrt\ \textnumero\ %
\cyrs\cyro\cyrp\cyrr\cyro\cyrv\cyro\cyrd\cyri\cyrt\cyre\cyrl\cyrsftsn
\cyrn\cyro\cyrg\cyro\ \cyrd\cyro\cyrk\cyru\cyrm. \cyri\ %
\cyrd\cyra\cyrt\cyra}
\def\@Asbuk#1{\ifcase#1\or
\CYRA\or\CYRB\or\CYRV\or\CYRG\or\CYRD\or\CYRE\or\CYRZH\or
\CYRI\or\CYRK\or\CYRL\or\CYRM\or\CYRN\or
\CYRP\or\CYRR\or\CYRS\or\CYRT\or\CYRU\or\CYRF\or\CYRH\or
\CYRC\or\CYRSH\or\CYRSHCH\or\CYREREV\or\CYRYU\or
\CYRYA\else{\@tempcnta \number #1\relax
\advance\@tempcnta -25\relax
\protect\number\@tempcnta}
\fi}
\def\@asbuk#1{\ifcase#1\or
\cyra\or\cyrb\or\cyrv\or\cyrg\or\cyrd\or\cyre\or\cyrzh\or
\cyri\or\cyrk\or\cyrl\or\cyrm\or\cyrn\or
\cyrp\or\cyrr\or\cyrs\or\cyrt\or\cyru\or\cyrf\or\cyrh\or
\cyrc\or\cyrsh\or\cyrshch\or\cyrerev\or\cyryu\or
\cyrya\else{\@tempcnta \number #1\relax
\advance\@tempcnta -25\relax
\protect\number\@tempcnta}
\fi}

248
espdsect.sty Normal file
View File

@ -0,0 +1,248 @@
% Copyright 2006 Konstantin Korikov <lostclus@ua.fm>
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2003/12/01 or later.
%
% This work has the LPPL maintenance status "maintained".
%
% This Current Maintainer of this work is Konstantin Korikov.
%
% This work consists of all files listed in manifest.txt.
%
%
% This is automaticaly generated file, do not edit it.
%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{espdsect}[2010/01/14 v0.98 Sectioning]
\RequirePackage{calc}
\newcommand{\ESPD@point@style}{single}
\DeclareOption{pointsingle}{\renewcommand{\ESPD@point@style}{single}}
\DeclareOption{pointsection}{\renewcommand{\ESPD@point@style}{section}}
\DeclareOption{pointsubsection}{\renewcommand{\ESPD@point@style}{subsection}}
\ProcessOptions\relax
\def\@startsection#1#2#3#4#5#6{%
\if@noskipsec \leavevmode \fi
\par
\@tempskipa #4\relax
\@afterindenttrue
\ifdim \@tempskipa <\z@
\@tempskipa -\@tempskipa \@afterindentfalse
\fi
\if@nobreak
\everypar{}%
\divide \@tempskipa by 2
\vskip -\@tempskipa
\vskip\z@skip
\else
\addpenalty\@secpenalty\addvspace\@tempskipa
\fi
\@ifstar
{\@ssect{#3}{#4}{#5}{#6}}%
{\@dblarg{\@sect{#1}{#2}{#3}{#4}{#5}{#6}}}}
\newcommand{\ESPDsectAlignLeft}{%
\let\\\@centercr\@rightskip\@flushglue \rightskip\@rightskip%
\leftskip\z@skip}
\newcommand{\ESPDsectAlignRight}{%
\let\\\@centercr\rightskip\z@skip\leftskip\@flushglue
\parindent\z@\parfillskip\z@skip}
\newcommand{\ESPDsectAlignCenter}{%
\let\\\@centercr
\rightskip\@flushglue\leftskip\@flushglue
\parindent\z@\parfillskip\z@skip}
\newcommand{\ESPDsectionAlign}{\ESPDsectAlignLeft}
\newcommand{\ESPDsubsectionAlign}{\ESPDsectAlignLeft}
\newcommand{\ESPDsubsubsectionAlign}{\ESPDsectAlignLeft}
\newcommand{\ESPDsectAlign}[2]{%
\expandafter\renewcommand\csname\string ESPD#1Align\endcsname{%
\@nameuse{ESPDsectAlign#2}}}
\newcommand{\ESPDsectionStyle}{\normalfont\normalsize\MakeUppercase}
\newcommand{\ESPDsubsectionStyle}{\normalfont\normalsize}
\newcommand{\ESPDsubsubsectionStyle}{\normalfont\normalsize}
\newcommand{\ESPDsectStyle}[2]{%
\expandafter\renewcommand\csname\string ESPD#1Style\endcsname{#2}}
\newlength{\ESPDsectionSkipBefore}
\newlength{\ESPDsectionSkipAfter}
\setlength{\ESPDsectionSkipBefore}{-5mm \@plus -3mm \@minus -2mm}
\setlength{\ESPDsectionSkipAfter}{5mm \@plus 1mm \@minus 2mm}
\newlength{\ESPDsubsectionSkipBefore}
\newlength{\ESPDsubsectionSkipAfter}
\setlength{\ESPDsubsectionSkipBefore}{-5mm \@plus -3mm \@minus -2mm}
\setlength{\ESPDsubsectionSkipAfter}{5mm \@plus 1mm \@minus 2mm}
\newlength{\ESPDsubsubsectionSkipBefore}
\newlength{\ESPDsubsubsectionSkipAfter}
\setlength{\ESPDsubsubsectionSkipBefore}{-5mm \@plus -3mm \@minus -2mm}
\setlength{\ESPDsubsubsectionSkipAfter}{5mm \@plus 1mm \@minus 2mm}
\providecommand{\plus}{\@plus}
\providecommand{\minus}{\@minus}
\newcommand{\ESPDsectSkip}[3]{%
\expandafter\setlength\csname\string ESPD#1SkipBefore\endcsname{#2}%
\expandafter\setlength\csname\string ESPD#1SkipAfter\endcsname{#3}}
\renewcommand\section{\@startsection {section}{1}{\parindent}%
{\ESPDsectionSkipBefore}%
{\ESPDsectionSkipAfter}%
{\ESPDsectionAlign\ESPDsectionStyle}}
\renewcommand\subsection{\@startsection{subsection}{2}{\parindent}%
{\ESPDsubsectionSkipBefore}%
{\ESPDsubsectionSkipAfter}%
{\ESPDsubsectionAlign\ESPDsubsectionStyle}}
\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\parindent}%
{\ESPDsubsubsectionSkipBefore}%
{\ESPDsubsubsectionSkipAfter}%
{\ESPDsubsubsectionAlign\ESPDsubsubsectionStyle}}
\let\oldsection\section
\renewcommand\section{\clearpage\oldsection}
\renewcommand{\thesection}{\arabic{section}.}
\renewcommand{\thesubsection}{\thesection\arabic{subsection}.}
\renewcommand{\thesubsubsection}{\thesubsection\arabic{subsubsection}.}
\newif\ifESPD@point@style@single
\ESPD@point@style@singlefalse
\newcommand{\ESPD@point@style@single}{
\newcounter{point}
\renewcommand{\thepoint}{\arabic{point}}
\newcommand{\theHpoint}{\arabic{point}}
\ESPD@point@style@singletrue}
\newcommand{\ESPD@point@style@section}{
\newcounter{point}[section]
\renewcommand{\thepoint}{\thesection.\arabic{point}}
\newcommand{\theHpoint}{\theHsection.\arabic{point}}}
\newcommand{\ESPD@point@style@subsection}{
\newcounter{point}[subsection]
\renewcommand{\thepoint}{\thesubsection.\arabic{point}}
\newcommand{\theHpoint}{\theHsubsection.\arabic{point}}}
\@nameuse{ESPD@point@style@\ESPD@point@style}
\newcounter{subpoint}[point]
\newcounter{subsubpoint}[subpoint]
\renewcommand{\thesubpoint}{\thepoint.\arabic{subpoint}}
\newcommand{\theHsubpoint}{\theHpoint.\arabic{subpoint}}
\renewcommand{\thesubsubpoint}{\thesubpoint.\arabic{subsubpoint}}
\newcommand{\theHsubsubpoint}{\theHsubpoint.\arabic{subsubpoint}}
\newcommand{\point}{%
\par\refstepcounter{point}\thepoint\quad}
\newcommand{\subpoint}{%
\par\refstepcounter{subpoint}\thesubpoint\quad}
\newcommand{\subsubpoint}{%
\par\refstepcounter{subsubpoint}\thesubsubpoint\quad}
\newcounter{pointII}[section]
\newcounter{pointIII}[subsection]
\newcounter{pointIV}[subsubsection]
\renewcommand{\thepointII}{\thesection\arabic{pointII}.}
\renewcommand{\thepointIII}{\thesubsection\arabic{pointIII}.}
\renewcommand{\thepointIV}{\thesubsubsection\arabic{pointIV}.}
\newcommand{\pointII}{%
\par\refstepcounter{pointII}\thepointII\quad}
\newcommand{\pointIII}{%
\par\refstepcounter{pointIII}\thepointIII\quad}
\newcommand{\pointIV}{%
\par\refstepcounter{pointIV}\thepointIV\quad}
\newcounter{subpointIII}[pointII]
\newcounter{subpointIV}[pointIII]
\renewcommand{\thesubpointIII}{\thepointII\arabic{subpointIII}.}
\renewcommand{\thesubpointIV}{\thepointIII\arabic{subpointIV}.}
\newcommand{\subpointIII}{%
\par\refstepcounter{subpointIII}\thesubpointIII\quad}
\newcommand{\subpointIV}{%
\par\refstepcounter{subpointIV}\thesubpointIV\quad}
\newcounter{appendix}
\renewcommand{\theappendix}{\Asbuk{appendix}}
\newlength{\ESPDappendixSkip}
\setlength{\ESPDappendixSkip}{15mm \@plus 3mm \@minus 10mm}
\newcommand{\ESPDappendix}[2]{%
\ESPDclearDoublePage%
\refstepcounter{appendix}%
\setcounter{point}{0}%
\ifESPD@point@style@single%
\renewcommand{\thepoint}{\theappendix.\arabic{point}}%
\fi
\setcounter{section}{0}%
\renewcommand{\thesection}{\theappendix.\arabic{section}}%
\setcounter{equation}{0}%
\renewcommand{\theequation}{\theappendix.\arabic{equation}}%
\setcounter{figure}{0}%
\renewcommand{\thefigure}{\theappendix.\arabic{figure}}%
\setcounter{table}{0}%
\renewcommand{\thetable}{\theappendix.\arabic{table}}%
\addcontentsline{toc}{section}{\appendixname\ \theappendix\ #2}%
\begin{list}{}{%
\setlength{\itemindent}{0mm}%
\setlength{\labelwidth}{0mm}%
\setlength{\labelsep}{0mm}%
\setlength{\leftmargin}{0mm}%
\setlength{\topsep}{0mm}%
\setlength{\parskip}{0mm}%
\setlength{\partopsep}{0mm}%
\setlength{\itemsep}{0mm}%
\setlength{\parsep}{0mm}}
\item\centering\appendixname\ \theappendix
\ifx#1\@empty\else\\(#1)\fi\\
\item\centering\bf #2
\end{list}%
\par\nobreak\addvspace{\ESPDappendixSkip}}
%\renewcommand\tableofcontents{%
% \begingroup
% \ESPDsectAlign{section}{Center}
% \section*{\contentsname
% \@mkboth{%
% \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}%
% \endgroup
% \@starttoc{toc}}
\RequirePackage[style]{abstract}
\renewcommand{\abstitlestyle}[1]{\center\normalsize\MakeUppercase #1}
\ESPDsectAlign{section}{Center}
\RequirePackage[titles]{tocloft}
\renewcommand{\cftsecfont}{\normalfont\normalsize}
\renewcommand{\cftsubsecfont}{\normalfont\normalsize}
\renewcommand{\cftsubsubsecfont}{\normalfont\normalsize}
\renewcommand{\cftsecpagefont}{\normalfont\normalsize}
\renewcommand{\cftsubsecpagefont}{\normalfont\normalsize}
\renewcommand{\cftsubsubsecpagefont}{\normalfont\normalsize}
\renewcommand\cftsecafterpnum{\vskip0pt}
\renewcommand\cftsubsecafterpnum{\vskip0pt}
\renewcommand\cftsubsubsecafterpnum{\vskip0pt}
\renewcommand\cftbeforesecskip{0pt}
\renewcommand\cftbeforesubsecskip{0pt}
\renewcommand\cftbeforesubsubsecskip{0pt}
\renewcommand{\cftdot}{}

93
espdspec.sty Normal file
View File

@ -0,0 +1,93 @@
% Copyright 2006 Konstantin Korikov <lostclus@ua.fm>
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2003/12/01 or later.
%
% This work has the LPPL maintenance status "maintained".
%
% This Current Maintainer of this work is Konstantin Korikov.
%
% This work consists of all files listed in manifest.txt.
%
%
% This is automaticaly generated file, do not edit it.
%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{espdspec}[2010/01/14 v0.98 Specification GOST 2.106.95]
\RequirePackage{espdlang}
\RequirePackage{espdstamp}
\RequirePackage{rotating}
\RequirePackage{array}
\RequirePackage{longtable}
\newcommand{\ESPDdrawSpecification}{
\put(\ESPDltu{\ESPDframeX},\ESPDltu{\ESPDframeY}){%
\begin{picture}(0,0)
\ESPD@tmpdimb=\ESPDframeH
\ESPD@tmpdima=\ESPD@style@sh@formII
\ESPD@tmpdimc=8mm
\advance\ESPD@tmpdimb -\ESPD@tmpdima
\advance\ESPD@tmpdimb -15mm
\divide\ESPD@tmpdimb by \ESPD@tmpdimc
\ESPD@tmpcnta=\ESPD@tmpdimb
\ESPD@tmpdimb=\ESPD@tmpdimc
\multiply\ESPD@tmpdimb by \ESPD@tmpcnta
\advance\ESPD@tmpdimb 15mm
\ESPD@tmpdima=\ESPDframeH
\advance\ESPD@tmpdima -\ESPD@tmpdimb
\linethickness{\ESPDlineThick}
\put(6,\ESPDltu{\ESPD@tmpdima}){\line(0,1){\ESPDltu{\ESPD@tmpdimb}}}
\put(12,\ESPDltu{\ESPD@tmpdima}){\line(0,1){\ESPDltu{\ESPD@tmpdimb}}}
\put(20,\ESPDltu{\ESPD@tmpdima}){\line(0,1){\ESPDltu{\ESPD@tmpdimb}}}
\put(90,\ESPDltu{\ESPD@tmpdima}){\line(0,1){\ESPDltu{\ESPD@tmpdimb}}}
\put(153,\ESPDltu{\ESPD@tmpdima}){\line(0,1){\ESPDltu{\ESPD@tmpdimb}}}
\put(163,\ESPDltu{\ESPD@tmpdima}){\line(0,1){\ESPDltu{\ESPD@tmpdimb}}}
\ESPD@tmpdimb=\ESPDframeH
\advance\ESPD@tmpdimb -15mm
\put(0,\ESPDltu{\ESPD@tmpdimb}){\line(1,0){\ESPDltu{\ESPDframeW}}}
\linethickness{\ESPDlineThin}
\multiput(0,\ESPDltu{\ESPD@tmpdima})(0, 8){\the\ESPD@tmpcnta}{%
\line(1,0){\ESPDltu{\ESPDframeW}}}
\end{picture}}}
\newenvironment{ESPDspecification}{%
\ESPDputOnStyle{formII}{specification}{\ESPDdrawSpecification}
\ESPDputOnStyle{formIIab}{specification}{\ESPDdrawSpecification}
\begin{ESPDzeroPadding}%
\setlength{\tabcolsep}{0.5mm}%
\setlength{\LTpre}{0mm}%
\setlength{\LTpost}{0mm}%
\setlength{\LTleft}{0mm}%
\setlength{\LTright}{\fill}%
\newcolumntype{s}{>{\ESPDfontTabBody}c}%
\newcolumntype{n}{>{\parbox[c][8mm][c]{1mm}{%
\rule{0mm}{0mm}}\ESPDfontTabBody}l}%
\noindent%
\begin{longtable}{ssssnss}
\parbox[c][15mm][c]{5mm}{\centering\begin{sideways}\ESPDfontTabHead%
\ESPDspecColumnIname\end{sideways}}&
\parbox[c][15mm][c]{5mm}{\centering\begin{sideways}\ESPDfontTabHead%
\ESPDspecColumnIIname\end{sideways}}&
\parbox[c][15mm][c]{7mm}{\centering\begin{sideways}\ESPDfontTabHead%
\ESPDspecColumnIIIname\end{sideways}}&
\parbox[c][15mm][c]{69mm}{\centering\ESPDfontTabHead%
\ESPDspecColumnIVname}&
\parbox[c][15mm][c]{61mm}{\centering\ESPDfontTabHead%
\ESPDspecColumnVname}&
\parbox[c][15mm][c]{9mm}{\centering\begin{sideways}\ESPDfontTabHead%
\ESPDspecColumnVIname\end{sideways}}&
\parbox[c][15mm][c]{21mm}{\centering\ESPDfontTabHead%
\ESPDspecColumnVIIname}\endhead}{%
\end{longtable}%
\end{ESPDzeroPadding}%
\ESPDremoveFromStyle{formII}{spec}%
\ESPDremoveFromStyle{formIIab}{spec}}

179
espdspecii.sty Normal file
View File

@ -0,0 +1,179 @@
% Copyright 2006 Konstantin Korikov <lostclus@ua.fm>
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2003/12/01 or later.
%
% This work has the LPPL maintenance status "maintained".
%
% This Current Maintainer of this work is Konstantin Korikov.
%
% This work consists of all files listed in manifest.txt.
%
%
% This is automaticaly generated file, do not edit it.
%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{espdspecii}[2010/01/14 v0.98 Specification GOST 2.106.95 Form 2]
\RequirePackage{espdlang}
\RequirePackage{espdstamp}
\RequirePackage{rotating}
\RequirePackage{chngpage}
\RequirePackage{lscape}
\RequirePackage{array}
\RequirePackage{longtable}
\newcommand{\ESPDdrawSpecificationII}{
\put(\ESPDltu{\ESPDframeX},\ESPDltu{\ESPDframeY}){%
\begin{picture}(0,0)
\ESPD@tmpdimb=\ESPDframeW
\ESPD@tmpdimc=8mm
\advance\ESPD@tmpdimb -70mm
\divide\ESPD@tmpdimb by \ESPD@tmpdimc
\ESPD@tmpcnta=\ESPD@tmpdimb
\ESPD@tmpdimb=\ESPD@tmpdimc
\multiply\ESPD@tmpdimb by \ESPD@tmpcnta
\advance\ESPD@tmpdimb 15mm
\linethickness{\ESPDlineThick}
\put(0,6){\line(1,0){\ESPDltu{\ESPD@tmpdimb}}}
\put(0,12){\line(1,0){\ESPDltu{\ESPD@tmpdimb}}}
\put(0,20){\line(1,0){\ESPDltu{\ESPD@tmpdimb}}}
\put(0,90){\line(1,0){\ESPDltu{\ESPD@tmpdimb}}}
\put(0,162){\line(1,0){\ESPDltu{\ESPD@tmpdimb}}}
\put(0,172){\line(1,0){\ESPDltu{\ESPD@tmpdimb}}}
\put(0,182){\line(1,0){\ESPDltu{\ESPD@tmpdimb}}}
\put(0,257){\line(1,0){\ESPDltu{\ESPD@tmpdimb}}}
\put(15,0){\line(0,1){\ESPDltu{\ESPDframeH}}}
\linethickness{\ESPDlineThin}
\multiput(23,0)(8, 0){\the\ESPD@tmpcnta}{%
\line(0,1){\ESPDltu{\ESPDframeH}}}
\end{picture}}}
\newcommand{\ESPDdrawSpecIIstampII}{%
\setlength{\ESPD@tmpdima}{\ESPDframeX+\ESPDframeW}
\setlength{\ESPD@tmpdimb}{\ESPDframeY+\ESPDframeH-185mm}
\put(\ESPDltu{\ESPD@tmpdima},\ESPDltu{\ESPD@tmpdimb}){%
\begin{sideways}\usebox{\ESPD@stamp@ii@box}\end{sideways}}
\put(\ESPDltu{\ESPD@tmpdima},\ESPDltu{\ESPD@tmpdimb}){%
\begin{sideways}\ESPD@stamp@ii@var\end{sideways}}}
\newcommand{\ESPDdrawSpecIIstampIIa}{%
\setlength{\ESPD@tmpdima}{\ESPDframeX+\ESPDframeW}
\setlength{\ESPD@tmpdimb}{\ESPDframeY+\ESPDframeH-185mm}
\put(\ESPDltu{\ESPD@tmpdima},\ESPDltu{\ESPD@tmpdimb}){%
\begin{sideways}\usebox{\ESPD@stamp@ii@a@box}\end{sideways}}
\put(\ESPDltu{\ESPD@tmpdima},\ESPDltu{\ESPD@tmpdimb}){%
\begin{sideways}\ESPD@stamp@ii@a@var\end{sideways}}}
\ifESPD@enable@columns@xxvii
\newcommand{\ESPDdrawSpecIIcolumnsXXVII}{%
\setlength{\ESPD@tmpdima}{\ESPDframeX+\ESPDframeW-48mm}
\setlength{\ESPD@tmpdimb}{\ESPDframeY+\ESPDframeH-120mm}
\put(\ESPDltu{\ESPD@tmpdima},\ESPDltu{\ESPD@tmpdimb}){%
\begin{sideways}\usebox{\ESPD@columns@xxvii@ii@box}\end{sideways}}%
\addtolength{\ESPD@tmpdima}{8mm}%
\put(\ESPDltu{\ESPD@tmpdima},\ESPDltu{\ESPD@tmpdimb}){%
\begin{sideways}\usebox{\ESPD@column@xxx@box}\end{sideways}}}
\fi
\ifESPD@enable@column@xxxi
\newcommand{\ESPDdrawSpecIIcolumnXXXI}{%
\setlength{\ESPD@tmpdima}{\ESPDframeX+\ESPDframeW+1.2mm}%
\setlength{\ESPD@tmpdimb}{\ESPDframeY+\ESPDframeH-120mm}%
\put(\ESPDltu{\ESPD@tmpdima},\ESPDltu{\ESPD@tmpdimb}){%
\begin{sideways}%
\makebox[70mm][r]{\ESPDfontIII\ESPDcolumnXXXIname\hspace{4em}}%
\end{sideways}}}
\fi
\ifESPD@enable@column@xxxii
\newcommand{\ESPDdrawSpecIIcolumnXXXII}{%
\setlength{\ESPD@tmpdima}{\ESPDframeX+\ESPDframeW+1.2mm}%
\setlength{\ESPD@tmpdimb}{\ESPDframeY+\ESPDframeH-50mm}%
\put(\ESPDltu{\ESPD@tmpdima},\ESPDltu{\ESPD@tmpdimb}){%
\begin{sideways}%
\makebox[50mm][r]{\ESPDfontIII\ESPDtheColumnXXXII}%
\end{sideways}}}
\fi
\ESPDnewStyle{specII}{0mm}
\ESPDputOnStyle{specII}{frame}{\ESPDdrawFrame}
\ESPDputOnStyle{specII}{stamp}{\ESPDdrawSpecIIstampII}
\ESPDputOnStyle{specII}{specification}{\ESPDdrawSpecificationII}
\ifESPD@enable@columns@xix
\ESPDputOnStyle{specII}{columnsxix}{\ESPDdrawColumnsXIX}
\fi
\ifESPD@enable@columns@xxiv
\ESPDputOnStyle{specII}{columnsxxiv}{\ESPDdrawColumnsXXIV}
\fi
\ifESPD@enable@columns@xxvii
\ESPDputOnStyle{specII}{columnsxxvii}{\ESPDdrawSpecIIcolumnsXXVII}
\fi
\ifESPD@enable@column@xxxi
\ESPDputOnStyle{specII}{columnxxxi}{\ESPDdrawSpecIIcolumnXXXI}
\fi
\ifESPD@enable@column@xxxii
\ESPDputOnStyle{specII}{columnxxxii}{\ESPDdrawSpecIIcolumnXXXII}
\fi
\ESPDnewStyle{specIIa}{0mm}
\ESPDputOnStyle{specIIa}{frame}{\ESPDdrawFrame}
\ESPDputOnStyle{specIIa}{stamp}{\ESPDdrawSpecIIstampIIa}
\ESPDputOnStyle{specIIa}{specification}{\ESPDdrawSpecificationII}
\ifESPD@enable@columns@xix
\ESPDputOnStyle{specIIa}{columnsxix}{\ESPDdrawColumnsXIX}
\fi
\ifESPD@enable@column@xxxi
\ESPDputOnStyle{specIIa}{columnxxxi}{\ESPDdrawSpecIIcolumnXXXI}
\fi
\ifESPD@enable@column@xxxii
\ESPDputOnStyle{specIIa}{columnxxxii}{\ESPDdrawSpecIIcolumnXXXII}
\fi
\ESPDdefaultFirstStyle{specII}
\ESPDdefaultStyle{specIIa}
\newenvironment{ESPDspecificationII}{%
\begin{ESPDzeroPadding}%
\changetext{}{-55mm}{}{}{}%
\begin{landscape}
\setlength{\tabcolsep}{0.5mm}%
\setlength{\LTpre}{0mm}%
\setlength{\LTpost}{0mm}%
\setlength{\LTleft}{0mm}%
\setlength{\LTright}{\fill}%
\newcolumntype{s}{>{\ESPDfontTabBody}c}%
\newcolumntype{n}{>{\parbox[c][8mm][c]{1mm}{%
\rule{0mm}{0mm}}\ESPDfontTabBody}l}%
\noindent%
\begin{longtable}{ssssnssss}
\parbox[c][15mm][c]{5mm}{\centering\begin{sideways}\ESPDfontTabHead%
\ESPDspecIIcolumnIname\end{sideways}}&
\parbox[c][15mm][c]{5mm}{\centering\begin{sideways}\ESPDfontTabHead%
\ESPDspecIIcolumnIIname\end{sideways}}&
\parbox[c][15mm][c]{7mm}{\centering\begin{sideways}\ESPDfontTabHead%
\ESPDspecIIcolumnIIIname\end{sideways}}&
\parbox[c][15mm][c]{69mm}{\centering\ESPDfontTabHead%
\ESPDspecIIcolumnIVname}&
\parbox[c][15mm][c]{71mm}{\centering\ESPDfontTabHead%
\ESPDspecIIcolumnVname}&
\parbox[c][15mm][c]{9mm}{\centering\begin{sideways}\ESPDfontTabHead%
\ESPDspecIIcolumnVIname\end{sideways}}&
\parbox[c][15mm][c]{9mm}{\centering\begin{sideways}\ESPDfontTabHead%
\ESPDspecIIcolumnVIIname\end{sideways}}&
\parbox[c][15mm][c]{74mm}{\centering\ESPDfontTabHead%
\ESPDspecIIcolumnVIIIname}&
\parbox[c][15mm][c]{29mm}{\centering\ESPDfontTabHead%
\ESPDspecIIcolumnIXname}\endhead}{%
\end{longtable}%
\end{landscape}%
\changetext{}{55mm}{}{}{}%
\end{ESPDzeroPadding}}

1140
espdstamp.sty Normal file

File diff suppressed because it is too large Load Diff

50
espdtab.cls Normal file
View File

@ -0,0 +1,50 @@
% Copyright 2006 Konstantin Korikov <lostclus@ua.fm>
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2003/12/01 or later.
%
% This work has the LPPL maintenance status "maintained".
%
% This Current Maintainer of this work is Konstantin Korikov.
%
% This work consists of all files listed in manifest.txt.
%
%
% This is automaticaly generated file, do not edit it.
%
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{espdtab}[2010/01/14 v0.98 Tabular Documentation]
\DeclareOption{russian}{\PassOptionsToPackage{\CurrentOption}{espdlang}}
\DeclareOption{ukrainian}{\PassOptionsToPackage{\CurrentOption}{espdlang}}
\DeclareOption{koi8-r}{\PassOptionsToPackage{\CurrentOption}{espdlang}}
\DeclareOption{koi8-u}{\PassOptionsToPackage{\CurrentOption}{espdlang}}
\DeclareOption{cp1251}{\PassOptionsToPackage{\CurrentOption}{espdlang}}
\DeclareOption{iso8859-5}{\PassOptionsToPackage{\CurrentOption}{espdlang}}
\DeclareOption{cp866}{\PassOptionsToPackage{\CurrentOption}{espdlang}}
\DeclareOption{utf-8}{\PassOptionsToPackage{\CurrentOption}{espdlang}}
\DeclareOption{utf8}{\PassOptionsToPackage{\CurrentOption}{espdlang}}
\DeclareOption{twoside}{%
\PassOptionsToClass{\CurrentOption}{article}%
\PassOptionsToPackage{\CurrentOption}{espdstamp}}
\DeclareOption{draft}{\PassOptionsToClass{\CurrentOption}{article}}
\DeclareOption{formI}{%
\ClassError{espdtext}{formI style is for graphical documentaion}{}}
\DeclareOption{zonelabels}{%
\ClassError{espdtext}{Zone labels is not allowed for tabular documentaion}{}}
\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{espdstamp}}
\ProcessOptions\relax
\LoadClass{article}
\RequirePackage{espdlang}
\RequirePackage[a4paper,formII]{espdstamp}
\RequirePackage{espdinfo}

112
espdtext.cls Normal file
View File

@ -0,0 +1,112 @@
% Copyright 2006 Konstantin Korikov <lostclus@ua.fm>
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2003/12/01 or later.
%
% This work has the LPPL maintenance status "maintained".
%
% This Current Maintainer of this work is Konstantin Korikov.
%
% This work consists of all files listed in manifest.txt.
%
%
% This is automaticaly generated file, do not edit it.
%
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{espdtext}[2010/01/14 v0.98 Textual Documentation]
\newcommand{\ESPD@docfont}{14pt}
\newcommand{\ESPD@float@style}{single}
\newcommand{\ESPD@equation@style}{single}
\DeclareOption{russian}{\PassOptionsToPackage{\CurrentOption}{espdlang}}
\DeclareOption{ukrainian}{\PassOptionsToPackage{\CurrentOption}{espdlang}}
\DeclareOption{koi8-r}{\PassOptionsToPackage{\CurrentOption}{espdlang}}
\DeclareOption{koi8-u}{\PassOptionsToPackage{\CurrentOption}{espdlang}}
\DeclareOption{cp1251}{\PassOptionsToPackage{\CurrentOption}{espdlang}}
\DeclareOption{iso8859-5}{\PassOptionsToPackage{\CurrentOption}{espdlang}}
\DeclareOption{cp866}{\PassOptionsToPackage{\CurrentOption}{espdlang}}
\DeclareOption{utf-8}{\PassOptionsToPackage{\CurrentOption}{espdlang}}
\DeclareOption{utf8}{\PassOptionsToPackage{\CurrentOption}{espdlang}}
\DeclareOption{12pt}{\renewcommand{\ESPD@docfont}{12pt}}
\DeclareOption{14pt}{\renewcommand{\ESPD@docfont}{14pt}}
\DeclareOption{pointsingle}{\PassOptionsToPackage{\CurrentOption}{espdsect}}
\DeclareOption{pointsection}{\PassOptionsToPackage{\CurrentOption}{espdsect}}
\DeclareOption{pointsubsection}{\PassOptionsToPackage{\CurrentOption}{espdsect}}
\DeclareOption{floatsingle}{\renewcommand{\ESPD@float@style}{single}}
\DeclareOption{floatsection}{\renewcommand{\ESPD@float@style}{section}}
\DeclareOption{floatsubsection}{\renewcommand{\ESPD@float@style}{subsection}}
\DeclareOption{equationsingle}{\renewcommand{\ESPD@equation@style}{single}}
\DeclareOption{equationsection}{\renewcommand{\ESPD@equation@style}{section}}
\DeclareOption{equationsubsection}{\renewcommand{\ESPD@equation@style}{subsection}}
\DeclareOption{footnotearabic}{\PassOptionsToPackage{\CurrentOption}{espdfootnote}}
\DeclareOption{footnoteasterisk}{\PassOptionsToPackage{\CurrentOption}{espdfootnote}}
\DeclareOption{twoside}{%
\PassOptionsToClass{\CurrentOption}{extarticle}%
\PassOptionsToPackage{\CurrentOption}{espdstamp}}
\DeclareOption{draft}{\PassOptionsToClass{\CurrentOption}{extarticle}}
\DeclareOption{formI}{%
\ClassError{espdtext}{formI style is for graphical documentaion}{}}
\DeclareOption{zonelabels}{%
\ClassError{espdtext}{Zone labels is not allowed for textual documentaion}{}}
\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{espdstamp}}
\ProcessOptions\relax
\LoadClass[\ESPD@docfont]{extarticle}
\RequirePackage{espdlang}
\RequirePackage[a4paper,espd]{espdstamp}
\RequirePackage{espdindent}
\RequirePackage{espdlist}
\RequirePackage{espdsect}
\RequirePackage{espdcap}
\RequirePackage{espdfootnote}
\RequirePackage{espdbiblist}
\RequirePackage{espdexplan}
\RequirePackage{espdinfo}
\RequirePackage{espdtitlebase}
\RequirePackage{espdtitle}
\linespread{1.5}
\newcommand{\ESPD@float@style@single}{}
\newcommand{\ESPD@float@style@section}{
\@addtoreset{figure}{section}
\@addtoreset{table}{section}
\renewcommand{\thefigure}{%
\ifnum \c@section>\z@ \thesection.\fi \arabic{figure}}
\renewcommand{\thetable}{%
\ifnum \c@section>\z@ \thesection.\fi \arabic{table}}}
\newcommand{\ESPD@float@style@subsection}{
\@addtoreset{figure}{subsection}
\@addtoreset{table}{subsection}
\renewcommand{\thefigure}{%
\ifnum \c@subsection>\z@ \thesubsection.\fi \arabic{figure}}
\renewcommand{\thetable}{%
\ifnum \c@subsection>\z@ \thesubsection.\fi \arabic{table}}}
\@nameuse{ESPD@float@style@\ESPD@float@style}
\newcommand{\ESPD@equation@style@single}{}
\newcommand{\ESPD@equation@style@section}{
\@addtoreset{equation}{section}
\renewcommand{\theequation}{%
\ifnum \c@section>\z@ \thesection.\fi \arabic{equation}}}
\newcommand{\ESPD@equation@style@subsection}{
\@addtoreset{equation}{subsection}
\renewcommand{\theequation}{%
\ifnum \c@subsection>\z@ \thesubsection.\fi \arabic{equation}}}
\@nameuse{ESPD@equation@style@\ESPD@equation@style}

152
espdtitle.sty Normal file
View File

@ -0,0 +1,152 @@
% Copyright 2006 Konstantin Korikov <lostclus@ua.fm>
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2003/12/01 or later.
%
% This work has the LPPL maintenance status "maintained".
%
% This Current Maintainer of this work is Konstantin Korikov.
%
% This work consists of all files listed in manifest.txt.
%
%
% This is automaticaly generated file, do not edit it.
%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{espdtitle}[2010/01/14 v0.98 Title GOST 2.105]
\RequirePackage{espdstamp}
\RequirePackage{espdlang}
\RequirePackage{espdinfo}
\RequirePackage{espdtotal}
\RequirePackage{espdtitlebase}
\RequirePackage{ifthen}
\newcommand{\ESPD@title@split@field}[2]{%
\parbox[t]{.4\hsize}{\raggedright#1}\hfill
\parbox[t]{.4\hsize}{\raggedright#2}}
\renewcommand{\ESPDtheTitleFieldI}{%
\ESPDtheDepartment\par\ESPDtheCompany}
\def\ESPDtheTitleFieldIIl{}
\renewcommand{\ESPDtheTitleFieldIIl}{%
\ESPDtheClassCode}
\def\ESPDtheTitleFieldIIr{}
\renewcommand{\ESPDtheTitleFieldIIr}{}
\renewcommand{\ESPDtheTitleFieldII}{%
\ESPD@title@split@field{\ESPDtheTitleFieldIIl}{\ESPDtheTitleFieldIIr}}
\def\ESPDtheTitleFieldIIIl{}
\renewcommand{\ESPDtheTitleFieldIIIl}{%
\ifx\ESPD@title@approving@sheet\@undefined
\expandafter\ifx\csname ESPD@title@agreed@name@1\endcsname\relax\else
\text{\MakeUppercase{\ESPDagreedName}}\\
\ESPD@title@make@stamp{agreed}{1}
\fi
\else
\textrm{\MakeUppercase{\ESPDapprovedName}}\\
\ESPD@title@approving@sheet
\fi}
\def\ESPDtheTitleFieldIIIr{}
\renewcommand{\ESPDtheTitleFieldIIIr}{%
\ifx\ESPD@title@approving@sheet\@undefined
\expandafter\ifx\csname ESPD@title@approved@name@1\endcsname\relax\else
\text{\MakeUppercase{\ESPDapprovingName}}\\
\ESPD@title@make@stamp{approved}{1}
\fi
\fi}
\renewcommand{\ESPDtheTitleFieldIII}{%
\ESPD@title@split@field{\ESPDtheTitleFieldIIIl}{\ESPDtheTitleFieldIIIr}}
\renewcommand{\ESPDtheTitleFieldIV}{%
\MakeUppercase{\ESPDtheTitle}\par\ESPDtheDocName}
\renewcommand{\ESPDtheTitleFieldV}{}
\renewcommand{\ESPDtheTitleFieldVI}{%
\MakeUppercase{\ESPDtheSignature}}
\renewcommand{\ESPDtheTitleFieldVIa}{%
{\ESPDtheFileName}}
%\renewcommand{\ESPDtheTitleFieldVII}{}
\renewcommand{\ESPDtheTitleFieldVII}{\normalfont\cyr\CYRL\cyri\cyrs\cyrt\cyro\cyrv\ \ESPDtotal{page}}
\def\ESPDtheTitleFieldVIIIl{}
\renewcommand{\ESPDtheTitleFieldVIIIl}{%
\ifx\ESPD@title@approving@sheet\@undefined
\ESPD@tmpcnta = 1
\loop
\ifnum \ESPD@tmpcnta < \ESPD@title@agreed@cnt
\advance \ESPD@tmpcnta 1
\ESPD@title@make@stamp{agreed}{\number\ESPD@tmpcnta}
\par\vspace{5mm}
\repeat
\fi}
\def\ESPDtheTitleFieldVIIIr{}
\renewcommand{\ESPDtheTitleFieldVIIIr}{%
\ifx\ESPD@title@approving@sheet\@undefined
\ESPD@tmpcnta = 0
\loop
\ifnum \ESPD@tmpcnta < \ESPD@title@designed@cnt
\advance \ESPD@tmpcnta 1
\ESPD@title@make@stamp{designed}{\number\ESPD@tmpcnta}
\par\vspace{5mm}
\repeat
\fi}
\renewcommand{\ESPDtheTitleFieldVIII}{%
\ESPD@title@split@field{\ESPDtheTitleFieldVIIIl}{\ESPDtheTitleFieldVIIIr}}
\renewcommand{\ESPDtheTitleFieldX}{\ESPDtheYear}
\renewcommand{\ESPDtheTitleFieldXI}{\cyr\CYRL\cyri\cyrt\cyre\cyrr\cyra}
\renewcommand{\ESPDtitleFontI}{\ESPDfontV}
\renewcommand{\ESPDtitleFontII}{\ESPDfontV}
\renewcommand{\ESPDtitleFontIII}{\ESPDfontV}
\renewcommand{\ESPDtitleFontIV}{\ESPDfontV}
\renewcommand{\ESPDtitleFontV}{\ESPDfontV}
\renewcommand{\ESPDtitleFontVI}{\ESPDfontV}
\renewcommand{\ESPDtitleFontVIa}{\ESPDfontV}
\renewcommand{\ESPDtitleFontVII}{\ESPDfontV}
\renewcommand{\ESPDtitleFontVIII}{\ESPDfontIII}
\renewcommand{\ESPDtitleFontX}{\ESPDfontV}
\renewcommand{\ESPDtitleFontXI}{\ESPDfontV}
\renewcommand{\maketitle}{%
\begin{ESPDtitlePage}
\setlength{\topsep}{0mm}
\noindent
\parbox[c][.28\vsize][t]{\hsize}{%
% \vspace{5mm \@plus 15mm \@minus 3mm}
% \begin{center}\ESPDtitleFontI\bfseries\ESPDtheTitleFieldI\end{center}
% \vspace{5mm \@plus 15mm \@minus 3mm}
% \begin{center}\ESPDtitleFontII\ESPDtheTitleFieldII\end{center}}
\vspace{5mm \@plus 15mm \@minus 3mm}
\begin{center}\ESPDtitleFontIII\ESPDtheTitleFieldIII\end{center}}
\par\vspace{10mm \@plus 2mm \@minus 4mm}\noindent
\parbox[c][.30\vsize][t]{\hsize}{%
\ifthenelse{\equal{\ESPDtheTitleFieldIV}{}}{}
{\begin{center}\ESPDtitleFontIV\ESPDtheTitleFieldIV\end{center}}
\ifthenelse{\equal{\ESPDtheTitleFieldV}{}}{}
{\begin{center}\ESPDtitleFontV\ESPDtheTitleFieldV\end{center}}
\ifthenelse{\equal{\ESPDtheTitleFieldVI}{}}{}
{\begin{center}\ESPDtitleFontVI\ESPDtheTitleFieldVI\end{center}}
\ifthenelse{\equal{\ESPDtheTitleFieldVIa}{}}{}
{\begin{center}\ESPDtitleFontVI\ESPDtheTitleFieldVIa\end{center}}
\ifthenelse{\equal{\ESPDtheTitleFieldVII}{}}{}
{\begin{center}\ESPDtitleFontVII\ESPDtheTitleFieldVII\end{center}}}
\par\vspace{4mm \@plus 2mm \@minus 2mm}\noindent
\begin{center}\ESPDtitleFontVIII\ESPDtheTitleFieldVIII\end{center}
\vfill
\begin{center}\ESPDtitleFontX\ESPDtheTitleFieldX\end{center}
\begin{flushright}\ESPDtitleFontXI\ESPDtheTitleFieldXI\hspace{20mm}\enspace\end{flushright}% Литера
\end{ESPDtitlePage}}

92
espdtitlebase.sty Normal file
View File

@ -0,0 +1,92 @@
% Copyright 2006 Konstantin Korikov <lostclus@ua.fm>
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2003/12/01 or later.
%
% This work has the LPPL maintenance status "maintained".
%
% This Current Maintainer of this work is Konstantin Korikov.
%
% This work consists of all files listed in manifest.txt.
%
%
% This is automaticaly generated file, do not edit it.
%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{espdtitlebase}[2010/01/14 v0.98 Base Title Commands]
\newcommand{\ESPDtitleApprovedBy}[2]{%
\@namedef{ESPD@title@approved@post@1}{#1}
\@namedef{ESPD@title@approved@name@1}{#2}}
\newcount\ESPD@title@agreed@cnt
\newcount\ESPD@title@designed@cnt
\ESPD@title@agreed@cnt = 0
\ESPD@title@designed@cnt = 0
\newcommand{\ESPDtitleAgreedBy}[2]{%
\advance \ESPD@title@agreed@cnt 1
\@namedef{ESPD@title@agreed@post@\number\ESPD@title@agreed@cnt}{#1}
\@namedef{ESPD@title@agreed@name@\number\ESPD@title@agreed@cnt}{#2}}
\newcommand{\ESPDtitleDesignedBy}[2]{%
\advance \ESPD@title@designed@cnt 1
\@namedef{ESPD@title@designed@post@\number\ESPD@title@designed@cnt}{#1}
\@namedef{ESPD@title@designed@name@\number\ESPD@title@designed@cnt}{#2}}
\let\ESPD@title@approving@sheet\@undefinded
\newcommand{\ESPDtitleApprovingSheet}[1]{%
\def\ESPD@title@approving@sheet{#1}}
\newcommand{\ESPDtitleMakeStamp}[2]{#1\\\rule{2cm}{.1mm}\ #2\\
``\rule{.8cm}{.1mm}'' \rule{2.3cm}{.1mm}\ \rule{1.5cm}{.1mm}}
\newcommand{\ESPD@title@make@stamp}[2]{%
\ESPDtitleMakeStamp{%
\@nameuse{ESPD@title@#1@post@#2}}{%
\@nameuse{ESPD@title@#1@name@#2}}}
\newcommand{\ESPDtheTitleFieldI}{}
\newcommand{\ESPDtheTitleFieldII}{}
\newcommand{\ESPDtheTitleFieldIII}{}
\newcommand{\ESPDtheTitleFieldIV}{}
\newcommand{\ESPDtheTitleFieldV}{}
\newcommand{\ESPDtheTitleFieldVI}{}
\newcommand{\ESPDtheTitleFieldVIa}{}
\newcommand{\ESPDtheTitleFieldVII}{}
\newcommand{\ESPDtheTitleFieldVIII}{}
\newcommand{\ESPDtheTitleFieldIX}{}
\newcommand{\ESPDtheTitleFieldX}{}
\newcommand{\ESPDtheTitleFieldXI}{}
\newcommand{\ESPDtitleFontI}{}
\newcommand{\ESPDtitleFontII}{}
\newcommand{\ESPDtitleFontIII}{}
\newcommand{\ESPDtitleFontIV}{}
\newcommand{\ESPDtitleFontV}{}
\newcommand{\ESPDtitleFontVI}{}
\newcommand{\ESPDtitleFontVIa}{}
\newcommand{\ESPDtitleFontVII}{}
\newcommand{\ESPDtitleFontVIII}{}
\newcommand{\ESPDtitleFontIX}{}
\newcommand{\ESPDtitleFontX}{}
\newcommand{\ESPDtitleFontXI}{}
\def\ESPD@title@after@page{%
\ESPDclearDoublePage
\ESPDstyle{\ESPD@default@style@other}
\ESPDthisStyle{\ESPD@default@style@first}}
% ### Выравнивание титульной страницы
\newenvironment{ESPDtitlePage}{%
\begin{ESPDpadding}{0mm}{5mm}
\ESPDstyle{\ESPD@default@style@title}}{%
\end{ESPDpadding}
\aftergroup\ESPD@title@after@page}

59
espdtotal.sty Normal file
View File

@ -0,0 +1,59 @@
% Copyright 2006 Konstantin Korikov <lostclus@ua.fm>
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2003/12/01 or later.
%
% This work has the LPPL maintenance status "maintained".
%
% This Current Maintainer of this work is Konstantin Korikov.
%
% This work consists of all files listed in manifest.txt.
%
%
% This is automaticaly generated file, do not edit it.
%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{espdtotal}[2010/01/14 v0.98 Total number of tables, figures, etc]
\RequirePackage{espdsect}
\let\ESPD@old@caption\@caption
\let\ESPD@old@bibitem\bibitem
\newcounter{ESPD@figure}
\newcounter{ESPD@table}
\newcounter{ESPD@bibitem}
\long\def\@caption#1[#2]#3{%
\stepcounter{ESPD@#1}%
\ESPD@old@caption{#1}[#2]{#3}}
\long\def\bibitem{%
\stepcounter{ESPD@bibitem}%
\ESPD@old@bibitem}
\def\ESPD@total@save#1#2{%
\immediate\write\@auxout{%
\string\gdef\string\ESPD@total@saved@\string#1{\arabic{#2}}}}
\AtEndDocument{%
\ESPD@total@save{figure}{ESPD@figure}
\ESPD@total@save{table}{ESPD@table}
\ESPD@total@save{bibitem}{ESPD@bibitem}
\ESPD@total@save{appendix}{appendix}
\clearpage
\addtocounter{page}{-1}
\ESPD@total@save{page}{page}
\addtocounter{page}{1}}
\newcommand{\ESPDtotal}[1]{%
\@ifundefined{ESPD@total@saved@#1}{?}{%
\@nameuse{ESPD@total@saved@#1}}}

180
espdukrainian.def Normal file
View File

@ -0,0 +1,180 @@
% Copyright 2006 Konstantin Korikov <lostclus@ua.fm>
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2003/12/01 or later.
%
% This work has the LPPL maintenance status "maintained".
%
% This Current Maintainer of this work is Konstantin Korikov.
%
% This work consists of all files listed in manifest.txt.
%
%
% This is automaticaly generated file, do not edit it.
%
\ProvidesFile{espdukrainian.def}[2010/01/17 v0.98 Language File]
\newcommand{\ESPDcolumnIVname}{%
\cyr\CYRL\cyri\cyrt.}
\newcommand{\ESPDcolumnVname}{%
\cyr\CYRM\cyra\cyrs\cyra}
\newcommand{\ESPDcolumnVIname}{%
\cyr\CYRM\cyra\cyrs\cyrsh\cyrt\cyra\cyrb}
\newcommand{\ESPDcolumnVIIname}{%
\cyr\CYRA\cyrr\cyrk\cyru\cyrsh}
\newcommand{\ESPDcolumnVIItwosideName}{%
\cyr\CYRS\cyrt\cyro\cyrr.}
\newcommand{\ESPDcolumnVIIIname}{%
\cyr\CYRA\cyrr\cyrk\cyru\cyrsh\cyrii\cyrv}
\newcommand{\ESPDcolumnVIIItwosideName}{%
\cyr\CYRS\cyrt\cyro\cyrr\cyrii\cyrn\cyro\cyrk}
\newcommand{\ESPDcolumnXfIname}{%
\cyr\CYRR\cyro\cyrz\cyrr\cyro\cyrb\cyri\cyrv}
\newcommand{\ESPDcolumnXfIIname}{%
\cyr\CYRP\cyre\cyrr\cyre\cyrv\cyrii\cyrr\cyri\cyrv}
\newcommand{\ESPDcolumnXfIIIname}{%
\cyr\CYRT. \cyrk\cyro\cyrn\cyrt\cyrr.}
\newcommand{\ESPDcolumnXfIVname}{}
\newcommand{\ESPDcolumnXfVname}{%
\cyr\CYRN. \cyrk\cyro\cyrn\cyrt\cyrr.}
\newcommand{\ESPDcolumnXfVIname}{%
\cyr\CYRZ\cyra\cyrt\cyrv\cyre\cyrr\cyrd\cyri\cyrv}
\newcommand{\ESPDcolumnXIVname}{%
\cyr\CYRZ\cyrm.}
\newcommand{\ESPDcolumnXVname}{%
\cyr\CYRL\cyri\cyrs\cyrt}
\newcommand{\ESPDcolumnXVIname}{%
\textnumero\ \cyr\cyrd\cyro\cyrk\cyru\cyrm.}
\newcommand{\ESPDcolumnXVIIname}{%
\cyr\CYRP\cyrii\cyrd\cyrp.}
\newcommand{\ESPDcolumnXVIIIname}{%
\cyr\CYRD\cyra\cyrt\cyra}
\newcommand{\ESPDcolumnXIXname}{%
\cyr\CYRII\cyrn\cyrv. \textnumero\ \cyro\cyrr\cyrii\cyrg.}
\newcommand{\ESPDcolumnXXname}{%
\cyr\CYRP\cyrii\cyrd\cyrp. \cyrii\ \cyrd\cyra\cyrt\cyra}
\newcommand{\ESPDcolumnXXIname}{%
\cyr\CYRV\cyrz\cyra\cyrm. \cyrii\cyrn\cyrv. \textnumero}
\newcommand{\ESPDcolumnXXIIname}{%
\cyr\CYRII\cyrn\cyrv. \textnumero\ \cyrd\cyru\cyrb\cyrl.}
\newcommand{\ESPDcolumnXXIIIname}{%
\cyr\CYRP\cyrii\cyrd\cyrp. \cyrii\ \cyrd\cyra\cyrt\cyra}
\newcommand{\ESPDcolumnXXIVname}{%
\cyr\CYRS\cyrp\cyrr\cyra\cyrv. \textnumero}
\newcommand{\ESPDcolumnXXVname}{%
\cyr\CYRP\cyre\cyrr\cyrsh. \cyrz\cyra\cyrs\cyrt.}
\newcommand{\ESPDcolumnXXXIname}{%
\cyr\CYRK\cyro\cyrp\cyrii\cyryu\cyrv\cyra\cyrv}
\@namedef{ESPDa0FormatName}{%
\cyr\CYRF\cyro\cyrr\cyrm\cyra\cyrt\ \CYRA{}0}
\@namedef{ESPDa1FormatName}{%
\cyr\CYRF\cyro\cyrr\cyrm\cyra\cyrt\ \CYRA{}1}
\@namedef{ESPDa2FormatName}{%
\cyr\CYRF\cyro\cyrr\cyrm\cyra\cyrt\ \CYRA{}2}
\@namedef{ESPDa3FormatName}{%
\cyr\CYRF\cyro\cyrr\cyrm\cyra\cyrt\ \CYRA{}3}
\@namedef{ESPDa4FormatName}{%
\cyr\CYRF\cyro\cyrr\cyrm\cyra\cyrt\ \CYRA{}4}
\@namedef{ESPDemptyFormatName}{%
\cyr\CYRF\cyro\cyrr\cyrm\cyra\cyrt\ \ \ \ }
\newcommand{\ESPDcolumnXXXIIIname}{%
\cyr\CYRZ\cyro\cyrn\cyra}
\newcommand{\ESPDagreedName}{%
\cyr\CYRP\cyro\cyrg\cyro\cyrd\cyrzh\cyre\cyrn\cyro}
\newcommand{\ESPDapprovingName}{%
\cyr\CYRZ\cyra\cyrt\cyrv\cyre\cyrr\cyrd\cyrzh\cyru\cyryu}
\newcommand{\ESPDapprovedName}{%
\cyr\CYRZ\cyra\cyrt\cyrv\cyre\cyrr\cyrd\cyrzh\cyre\cyrn\cyro}
\newcommand{\ESPDapprovingSheetName}{%
\cyr\CYRL\cyri\cyrs\cyrt\ %
\cyrz\cyra\cyrt\cyrv\cyre\cyrr\cyrd\cyrzh\cyre\cyrn\cyrn\cyrya}
\newlength{\ESPDexplanWidth}
\setlength{\ESPDexplanWidth}{1.5em}
\addto\captionsukrainian{%
\def\tablename{{\cyr\CYRT\cyra\cyrb\cyrl\cyri\cyrc\cyrya}}%
\def\figurename{{\cyr\CYRR\cyri\cyrs\cyru\cyrn\cyro\cyrk}}%
\def\refname{{\cyr\CYRP\cyre\cyrr\cyre\cyrl\cyrii\cyrk\
\cyrp\cyro\cyrs\cyri\cyrl\cyra\cyrn\cyrsftsn}}}
\newcommand{\ESPDspecColumnIname}{%
\cyr\CYRF\cyro\cyrr\cyrm\cyra\cyrt}
\newcommand{\ESPDspecColumnIIname}{%
\cyr\CYRZ\cyro\cyrn\cyra}
\newcommand{\ESPDspecColumnIIIname}{%
\cyr\CYRP\cyro\cyrz.}
\newcommand{\ESPDspecColumnIVname}{%
\cyr\CYRP\cyro\cyrz\cyrn\cyra\cyrch\cyre\cyrn\cyrn\cyrya}
\newcommand{\ESPDspecColumnVname}{%
\cyr\CYRN\cyra\cyrishrt\cyrm\cyre\cyrn\cyru\cyrv\cyra\cyrn\cyrn\cyrya}
\newcommand{\ESPDspecColumnVIname}{%
\cyr\CYRK\cyrii\cyrl\cyrsftsn\cyrk.}
\newcommand{\ESPDspecColumnVIIname}{%
\cyr\CYRP\cyrr\cyri\cyrm\cyrii\cyrt\cyrk\cyra}
\newcommand{\ESPDspecIIcolumnIname}{\ESPDspecColumnIname}
\newcommand{\ESPDspecIIcolumnIIname}{\ESPDspecColumnIIname}
\newcommand{\ESPDspecIIcolumnIIIname}{\ESPDspecColumnIIIname}
\newcommand{\ESPDspecIIcolumnIVname}{\ESPDspecColumnIVname}
\newcommand{\ESPDspecIIcolumnVname}{\ESPDspecColumnVname}
\newcommand{\ESPDspecIIcolumnVIname}{\ESPDspecColumnVIname}
\newcommand{\ESPDspecIIcolumnVIIname}{%
\cyr\CYRM\cyra\cyrs\cyra}
\newcommand{\ESPDspecIIcolumnVIIIname}{%
\cyr\CYRM\cyra\cyrt\cyre\cyrr\cyrii\cyra\cyrl}
\newcommand{\ESPDspecIIcolumnIXname}{\ESPDspecColumnVIIname}
\newcommand{\ESPDchangeSheetName}{%
\cyr\CYRL\cyri\cyrs\cyrt\ %
\cyrr\cyre\cyrie\cyrs\cyrt\cyrr\cyra\cyrc\cyri\cyryi\ %
\cyrz\cyrm\cyrii\cyrn}
\newcommand{\ESPDchngColumnsIIhName}{%
\cyr\CYRN\cyro\cyrm\cyre\cyrr\cyri\ \cyra\cyrr\cyrk\cyru\cyrsh\cyrii\cyrv\ %
(\cyrs\cyrt\cyro\cyrr\cyrii\cyrn\cyro\cyrk)}
\newcommand{\ESPDchngColumnIIname}{%
\cyr\cyrz\cyrm\cyrii\-\cyrn\cyre\-\cyrn\cyri\cyrh}
\newcommand{\ESPDchngColumnIIIname}{%
\cyr\cyrz\cyra\-\cyrm\cyrii\-\cyrn\cyre\-\cyrn\cyri\cyrh}
\newcommand{\ESPDchngColumnIVname}{%
\cyr\cyrn\cyro\-\cyrv\cyri\cyrh}
\newcommand{\ESPDchngColumnVname}{%
\cyr\cyra\cyrn\cyru\-\cyrl\cyrsftsn\cyro\cyrv\cyra\-\cyrn\cyri\cyrh}
\newcommand{\ESPDchngColumnVIname}{%
\cyr\CYRR\cyra\cyrz\cyro\cyrm\ \cyra\cyrr\cyrk\cyru\cyrsh\cyrii\cyrv\ %
(\cyrs\cyrt\cyro\cyrr\cyrii\cyrn\cyro\cyrk) \cyrv\ \cyrd\cyro\cyrk\cyru\cyrm.}
\newcommand{\ESPDchngColumnVIIIname}{%
\cyr\CYRV\cyrh\cyrii\cyrd\cyrn\cyri\cyrishrt\ \textnumero\ %
\cyrs\cyru\cyrp\cyrr\cyro\cyrv\cyrii\cyrd\cyrn\cyro\cyrg\cyro\ %
\cyrd\cyro\cyrk\cyru\cyrm. \cyrii\ %
\cyrd\cyra\cyrt\cyra}
\def\@Asbuk#1{\ifcase#1\or
\CYRA\or\CYRB\or\CYRV\or\CYRG\or\CYRD\or\CYRE\or
\CYRZH\or\CYRI\or
\CYRK\or\CYRL\or\CYRM\or\CYRN\or\CYRP\or\CYRR\or
\CYRS\or\CYRT\or\CYRU\or\CYRF\or\CYRH\or\CYRC\or
\CYRSH\or\CYRSHCH\or\CYRYU\or
\CYRYA\else{\@tempcnta \number #1\relax
\advance\@tempcnta -24\relax
\protect\number\@tempcnta}
\fi}
\def\@asbuk#1{\ifcase#1\or
\cyra\or\cyrb\or\cyrv\or\cyrg\or\cyrd\or\cyre\or
\cyrzh\or\cyri\or
\cyrk\or\cyrl\or\cyrm\or\cyrn\or\cyrp\or\cyrr\or
\cyrs\or\cyrt\or\cyru\or\cyrf\or\cyrh\or\cyrc\or
\cyrsh\or\cyrshch\or\cyryu\or
\cyrya\else{\@tempcnta \number #1\relax
\advance\@tempcnta -24\relax
\protect\number\@tempcnta}
\fi}