175 lines
6.1 KiB
TeX
175 lines
6.1 KiB
TeX
% 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{xespdspecii}[2020/03/20 v1.00 Specification GOST 2.106.95 Form 2]
|
|
|
|
\RequirePackage{xespdlang}
|
|
\RequirePackage{xespdstamp}
|
|
\RequirePackage{array}
|
|
\RequirePackage{longtable}
|
|
|
|
|
|
\XESPDtabColumnsWidth{6mm 6mm 8mm 70mm 72mm 10mm 10mm 75mm 30mm}
|
|
\setlength{\XESPDtabHeadH}{15mm}
|
|
|
|
\newlength{\XESPDspecIIaddHspace}
|
|
\setlength{\XESPDspecIIaddHspace}{2mm}
|
|
|
|
|
|
% поскольку плазовая спецификация имеет нестандартное размещение граф
|
|
% (штам и графы 19-23 размещаются параллельно на длинных сторонах листа)
|
|
% придется изменить рамку и перенести некоторые графы
|
|
\newcommand{\XESPD@specii@sizes}{
|
|
\advance\XESPDframeW 15mm
|
|
\advance\XESPDframeH -10mm
|
|
\setlength{\XESPD@margin@si}{5mm}
|
|
\setlength{\XESPD@margin@so}{5mm}
|
|
\setlength{\XESPD@margin@t}{20mm}
|
|
\setlength{\XESPD@margin@b}{5mm}
|
|
% необходимо слегка поправить отступы
|
|
\changepage{}{}{}{-15mm}{}{10mm}{}{}{}}
|
|
|
|
% макрос для переключения обратно
|
|
\newcommand{\XESPD@no@specii@sizes}{
|
|
\changepage{}{}{}{15mm}{}{-10mm}{}{}{}
|
|
\setlength{\XESPD@margin@si}{20mm}
|
|
\setlength{\XESPD@margin@so}{5mm}
|
|
\setlength{\XESPD@margin@t}{5mm}
|
|
\setlength{\XESPD@margin@b}{5mm}
|
|
\advance\XESPDframeW -15mm
|
|
\advance\XESPDframeH 10mm}
|
|
|
|
% переключаемся
|
|
\XESPD@specii@sizes
|
|
|
|
|
|
\ifXESPD@enable@columns@xix
|
|
\newcommand{\XESPDdrawSpecIIcolumnsXIX}{%
|
|
\setlength{\XESPD@tmpdima}{\XESPDframeY+\XESPDframeH}
|
|
\put(\XESPDltu{\XESPDframeX},\XESPDltu{\XESPD@tmpdima}){%
|
|
\usebox{\XESPD@columns@xix@box}}}
|
|
\fi
|
|
|
|
\ifXESPD@enable@columns@xxiv
|
|
\newcommand{\XESPDdrawSpecIIcolumnsXXIV}{%
|
|
\setlength{\XESPD@tmpdima}{\XESPDframeX+\XESPDframeW-120mm}
|
|
\setlength{\XESPD@tmpdimb}{\XESPDframeY+\XESPDframeH}
|
|
\put(\XESPDltu{\XESPD@tmpdima},\XESPDltu{\XESPD@tmpdimb}){%
|
|
\usebox{\XESPD@columns@xxiv@box}}}
|
|
\fi
|
|
|
|
\XESPDnewStyle{specII}{\XESPD@style@sh@formII}
|
|
\XESPDputOnStyle{specII}{frame}{\XESPDdrawFrame}
|
|
\XESPDputOnStyle{specII}{stamp}{\XESPDdrawStampII}
|
|
\XESPDputOnStyle{specII}{specii}{\XESPDtabDrawBody\XESPDtabDrawHead}
|
|
\ifXESPD@enable@columns@xix
|
|
\XESPDputOnStyle{specII}{columnsxix}{\XESPDdrawSpecIIcolumnsXIX}
|
|
\fi
|
|
\ifXESPD@enable@columns@xxiv
|
|
\XESPDputOnStyle{specII}{columnsxxiv}{\XESPDdrawSpecIIcolumnsXXIV}
|
|
\fi
|
|
\ifXESPD@enable@columns@xxvii
|
|
\XESPDputOnStyle{specII}{columnsxxvii}{\XESPDdrawColumnsXXVIIii}
|
|
\fi
|
|
\ifXESPD@enable@column@xxxi
|
|
\XESPDputOnStyle{specII}{columnxxxi}{\XESPDdrawColumnXXXI}
|
|
\fi
|
|
\ifXESPD@enable@column@xxxii
|
|
\XESPDputOnStyle{specII}{columnxxxii}{\XESPDdrawColumnXXXII}
|
|
\fi
|
|
|
|
\XESPDnewStyle{specIIa}{\XESPD@style@sh@formIIb}
|
|
\XESPDputOnStyle{specIIa}{frame}{\XESPDdrawFrame}
|
|
\XESPDputOnStyle{specIIa}{stamp}{\XESPDdrawStampIIa}
|
|
\XESPDputOnStyle{specIIa}{specii}{\XESPDtabDrawBody[1]\XESPDtabDrawHead}
|
|
\ifXESPD@enable@columns@xix
|
|
\XESPDputOnStyle{specIIa}{columnsxix}{\XESPDdrawSpecIIcolumnsXIX}
|
|
\fi
|
|
\ifXESPD@enable@columns@xxiv
|
|
\XESPDputOnStyle{specIIa}{columnsxxiv}{\XESPDdrawSpecIIcolumnsXXIV}
|
|
\fi
|
|
\ifXESPD@enable@column@xxxi
|
|
\XESPDputOnStyle{specIIa}{columnxxxi}{\XESPDdrawColumnXXXI}
|
|
\fi
|
|
\ifXESPD@enable@column@xxxii
|
|
\XESPDputOnStyle{specIIa}{columnxxxii}{\XESPDdrawColumnXXXII}
|
|
\fi
|
|
|
|
\XESPDputOnStyle{specII}{comment}{\XESPDtabDrawComment}
|
|
|
|
\XESPDdefaultFirstStyle{specII}
|
|
\XESPDdefaultStyle{specIIa}
|
|
|
|
|
|
|
|
|
|
\newenvironment{XESPDspecificationII}
|
|
{\XESPDtabLTPreamble{%
|
|
>{\XESPDfontTabBody\centering}
|
|
p{\argi -2\tabcolsep}
|
|
>{\XESPDfontTabBody\centering}
|
|
p{\argii -2\tabcolsep}
|
|
>{\XESPDfontTabBody\centering}
|
|
p{\argiii -2\tabcolsep}
|
|
>{\XESPDfontTabBody\centering}
|
|
p{\argiv -2\tabcolsep}
|
|
@{\hspace{\XESPDspecIIaddHspace}}
|
|
>{\XESPDfontTabBody\raggedright\XESPDtabStrut}
|
|
p{\argv -\XESPDspecIIaddHspace}
|
|
<{\XESPDtabStrut}
|
|
>{\XESPDfontTabBody\centering}
|
|
p{\argvi -2\tabcolsep}
|
|
>{\XESPDfontTabBody\centering}
|
|
p{\argvii -2\tabcolsep}
|
|
@{\hspace{\XESPDspecIIaddHspace}}
|
|
>{\XESPDfontTabBody\raggedright\XESPDtabStrut}
|
|
p{\argviii -\XESPDspecIIaddHspace}
|
|
<{\XESPDtabStrut}
|
|
>{\XESPDfontTabBody\raggedright\XESPDtabStrut}
|
|
p{\argix -2\tabcolsep}
|
|
<{\XESPDtabStrut}
|
|
}
|
|
%
|
|
{%
|
|
\parbox[c][\XESPDtabHeadH][c]{\argi -2\tabcolsep}{\centering\begin{sideways}%
|
|
\XESPDsmartScaleBox{\XESPDtabHeadH}{\XESPDfontTabHead\XESPDspecIIcolumnIname}%
|
|
\end{sideways}}&
|
|
\parbox[c][\XESPDtabHeadH][c]{\argii -2\tabcolsep}{\centering\begin{sideways}\XESPDfontTabHead%
|
|
\XESPDspecIIcolumnIIname\end{sideways}}&
|
|
\parbox[c][\XESPDtabHeadH][c]{\argiii -2\tabcolsep}{\centering\begin{sideways}\XESPDfontTabHead%
|
|
\XESPDspecIIcolumnIIIname\end{sideways}}&
|
|
\parbox[c][\XESPDtabHeadH][c]{\argiv -2\tabcolsep}{\centering\XESPDfontTabHead%
|
|
\XESPDspecIIcolumnIVname}&
|
|
\parbox[c][\XESPDtabHeadH][c]{\argv -\XESPDspecIIaddHspace}{\centering\XESPDfontTabHead%
|
|
\XESPDspecIIcolumnVname}&
|
|
\parbox[c][\XESPDtabHeadH][c]{\argvi -2\tabcolsep}{\centering\begin{sideways}\XESPDfontTabHead%
|
|
\XESPDspecIIcolumnVIname\end{sideways}}&
|
|
\parbox[c][\XESPDtabHeadH][c]{\argvii -2\tabcolsep}{\centering\begin{sideways}\XESPDfontTabHead%
|
|
\XESPDspecIIcolumnVIIname\end{sideways}}&
|
|
\parbox[c][\XESPDtabHeadH][c]{\argviii -2\tabcolsep}{\centering\XESPDfontTabHead%
|
|
\XESPDspecIIcolumnVIIIname}&
|
|
\parbox[c][\XESPDtabHeadH][c]{\argix -2\tabcolsep}{\centering\XESPDfontTabHead%
|
|
\XESPDspecIIcolumnIXname}\tabularnewline%
|
|
}
|
|
}
|
|
{\XESPDtabLTAmble}
|