latex-style-esdpx/xespdspecii.sty
2020-03-21 09:54:28 +03:00

180 lines
6.6 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{rotating}
\RequirePackage{chngpage}
\RequirePackage{lscape}
\RequirePackage{array}
\RequirePackage{longtable}
\newcommand{\XESPDdrawSpecificationII}{
\put(\XESPDltu{\XESPDframeX},\XESPDltu{\XESPDframeY}){%
\begin{picture}(0,0)
\XESPD@tmpdimb=\XESPDframeW
\XESPD@tmpdimc=8mm
\advance\XESPD@tmpdimb -70mm
\divide\XESPD@tmpdimb by \XESPD@tmpdimc
\XESPD@tmpcnta=\XESPD@tmpdimb
\XESPD@tmpdimb=\XESPD@tmpdimc
\multiply\XESPD@tmpdimb by \XESPD@tmpcnta
\advance\XESPD@tmpdimb 15mm
\linethickness{\XESPDlineThick}
\put(0,6){\line(1,0){\XESPDltu{\XESPD@tmpdimb}}}
\put(0,12){\line(1,0){\XESPDltu{\XESPD@tmpdimb}}}
\put(0,20){\line(1,0){\XESPDltu{\XESPD@tmpdimb}}}
\put(0,90){\line(1,0){\XESPDltu{\XESPD@tmpdimb}}}
\put(0,162){\line(1,0){\XESPDltu{\XESPD@tmpdimb}}}
\put(0,172){\line(1,0){\XESPDltu{\XESPD@tmpdimb}}}
\put(0,182){\line(1,0){\XESPDltu{\XESPD@tmpdimb}}}
\put(0,257){\line(1,0){\XESPDltu{\XESPD@tmpdimb}}}
\put(15,0){\line(0,1){\XESPDltu{\XESPDframeH}}}
\linethickness{\XESPDlineThin}
\multiput(23,0)(8, 0){\the\XESPD@tmpcnta}{%
\line(0,1){\XESPDltu{\XESPDframeH}}}
\end{picture}}}
\newcommand{\XESPDdrawSpecIIstampII}{%
\setlength{\XESPD@tmpdima}{\XESPDframeX+\XESPDframeW}
\setlength{\XESPD@tmpdimb}{\XESPDframeY+\XESPDframeH-185mm}
\put(\XESPDltu{\XESPD@tmpdima},\XESPDltu{\XESPD@tmpdimb}){%
\begin{sideways}\usebox{\XESPD@stamp@ii@box}\end{sideways}}
\put(\XESPDltu{\XESPD@tmpdima},\XESPDltu{\XESPD@tmpdimb}){%
\begin{sideways}\XESPD@stamp@ii@var\end{sideways}}}
\newcommand{\XESPDdrawSpecIIstampIIa}{%
\setlength{\XESPD@tmpdima}{\XESPDframeX+\XESPDframeW}
\setlength{\XESPD@tmpdimb}{\XESPDframeY+\XESPDframeH-185mm}
\put(\XESPDltu{\XESPD@tmpdima},\XESPDltu{\XESPD@tmpdimb}){%
\begin{sideways}\usebox{\XESPD@stamp@ii@a@box}\end{sideways}}
\put(\XESPDltu{\XESPD@tmpdima},\XESPDltu{\XESPD@tmpdimb}){%
\begin{sideways}\XESPD@stamp@ii@a@var\end{sideways}}}
\ifXESPD@enable@columns@xxvii
\newcommand{\XESPDdrawSpecIIcolumnsXXVII}{%
\setlength{\XESPD@tmpdima}{\XESPDframeX+\XESPDframeW-48mm}
\setlength{\XESPD@tmpdimb}{\XESPDframeY+\XESPDframeH-120mm}
\put(\XESPDltu{\XESPD@tmpdima},\XESPDltu{\XESPD@tmpdimb}){%
\begin{sideways}\usebox{\XESPD@columns@xxvii@ii@box}\end{sideways}}%
\addtolength{\XESPD@tmpdima}{8mm}%
\put(\XESPDltu{\XESPD@tmpdima},\XESPDltu{\XESPD@tmpdimb}){%
\begin{sideways}\usebox{\XESPD@column@xxx@box}\end{sideways}}}
\fi
\ifXESPD@enable@column@xxxi
\newcommand{\XESPDdrawSpecIIcolumnXXXI}{%
\setlength{\XESPD@tmpdima}{\XESPDframeX+\XESPDframeW+1.2mm}%
\setlength{\XESPD@tmpdimb}{\XESPDframeY+\XESPDframeH-120mm}%
\put(\XESPDltu{\XESPD@tmpdima},\XESPDltu{\XESPD@tmpdimb}){%
\begin{sideways}%
\makebox[70mm][r]{\XESPDfontIII\XESPDcolumnXXXIname\hspace{4em}}%
\end{sideways}}}
\fi
\ifXESPD@enable@column@xxxii
\newcommand{\XESPDdrawSpecIIcolumnXXXII}{%
\setlength{\XESPD@tmpdima}{\XESPDframeX+\XESPDframeW+1.2mm}%
\setlength{\XESPD@tmpdimb}{\XESPDframeY+\XESPDframeH-50mm}%
\put(\XESPDltu{\XESPD@tmpdima},\XESPDltu{\XESPD@tmpdimb}){%
\begin{sideways}%
\makebox[50mm][r]{\XESPDfontIII\XESPDtheColumnXXXII}%
\end{sideways}}}
\fi
\XESPDnewStyle{specII}{0mm}
\XESPDputOnStyle{specII}{frame}{\XESPDdrawFrame}
\XESPDputOnStyle{specII}{stamp}{\XESPDdrawSpecIIstampII}
\XESPDputOnStyle{specII}{specification}{\XESPDdrawSpecificationII}
\ifXESPD@enable@columns@xix
\XESPDputOnStyle{specII}{columnsxix}{\XESPDdrawColumnsXIX}
\fi
\ifXESPD@enable@columns@xxiv
\XESPDputOnStyle{specII}{columnsxxiv}{\XESPDdrawColumnsXXIV}
\fi
\ifXESPD@enable@columns@xxvii
\XESPDputOnStyle{specII}{columnsxxvii}{\XESPDdrawSpecIIcolumnsXXVII}
\fi
\ifXESPD@enable@column@xxxi
\XESPDputOnStyle{specII}{columnxxxi}{\XESPDdrawSpecIIcolumnXXXI}
\fi
\ifXESPD@enable@column@xxxii
\XESPDputOnStyle{specII}{columnxxxii}{\XESPDdrawSpecIIcolumnXXXII}
\fi
\XESPDnewStyle{specIIa}{0mm}
\XESPDputOnStyle{specIIa}{frame}{\XESPDdrawFrame}
\XESPDputOnStyle{specIIa}{stamp}{\XESPDdrawSpecIIstampIIa}
\XESPDputOnStyle{specIIa}{specification}{\XESPDdrawSpecificationII}
\ifXESPD@enable@columns@xix
\XESPDputOnStyle{specIIa}{columnsxix}{\XESPDdrawColumnsXIX}
\fi
\ifXESPD@enable@column@xxxi
\XESPDputOnStyle{specIIa}{columnxxxi}{\XESPDdrawSpecIIcolumnXXXI}
\fi
\ifXESPD@enable@column@xxxii
\XESPDputOnStyle{specIIa}{columnxxxii}{\XESPDdrawSpecIIcolumnXXXII}
\fi
\XESPDdefaultFirstStyle{specII}
\XESPDdefaultStyle{specIIa}
\newenvironment{XESPDspecificationII}{%
\begin{XESPDzeroPadding}%
\changetext{}{-55mm}{}{}{}%
\begin{landscape}
\setlength{\tabcolsep}{0.5mm}%
\setlength{\LTpre}{0mm}%
\setlength{\LTpost}{0mm}%
\setlength{\LTleft}{0mm}%
\setlength{\LTright}{\fill}%
\newcolumntype{s}{>{\XESPDfontTabBody}c}%
\newcolumntype{n}{>{\parbox[c][8mm][c]{1mm}{%
\rule{0mm}{0mm}}\XESPDfontTabBody}l}%
\noindent%
\begin{longtable}{ssssnssss}
\parbox[c][15mm][c]{5mm}{\centering\begin{sideways}\XESPDfontTabHead%
\XESPDspecIIcolumnIname\end{sideways}}&
\parbox[c][15mm][c]{5mm}{\centering\begin{sideways}\XESPDfontTabHead%
\XESPDspecIIcolumnIIname\end{sideways}}&
\parbox[c][15mm][c]{7mm}{\centering\begin{sideways}\XESPDfontTabHead%
\XESPDspecIIcolumnIIIname\end{sideways}}&
\parbox[c][15mm][c]{69mm}{\centering\XESPDfontTabHead%
\XESPDspecIIcolumnIVname}&
\parbox[c][15mm][c]{71mm}{\centering\XESPDfontTabHead%
\XESPDspecIIcolumnVname}&
\parbox[c][15mm][c]{9mm}{\centering\begin{sideways}\XESPDfontTabHead%
\XESPDspecIIcolumnVIname\end{sideways}}&
\parbox[c][15mm][c]{9mm}{\centering\begin{sideways}\XESPDfontTabHead%
\XESPDspecIIcolumnVIIname\end{sideways}}&
\parbox[c][15mm][c]{74mm}{\centering\XESPDfontTabHead%
\XESPDspecIIcolumnVIIIname}&
\parbox[c][15mm][c]{29mm}{\centering\XESPDfontTabHead%
\XESPDspecIIcolumnIXname}\endhead}{%
\end{longtable}%
\end{landscape}%
\changetext{}{55mm}{}{}{}%
\end{XESPDzeroPadding}}