156 lines
6.2 KiB
TeX
156 lines
6.2 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{xespdbom}[2010/03/08 v1.00 Bill of materials GOST 2.106-96]
|
|
|
|
\RequirePackage{xespdlang}
|
|
\RequirePackage{xespdstamp}
|
|
\RequirePackage{array}
|
|
\RequirePackage{longtable}
|
|
|
|
|
|
% зададим размеры колонок таблицы.
|
|
\XESPDtabColumnsWidth{7mm 45mm 60mm 70mm 55mm 70mm 16mm 16mm 16mm 16mm 24mm}
|
|
% высота шапки таблицы
|
|
\setlength{\XESPDtabHeadH}{27mm}
|
|
|
|
|
|
% дополнительные горизонтальный промежуток
|
|
% для эстетичности
|
|
\newlength{\XESPDbomAddHspace}
|
|
\setlength{\XESPDbomAddHspace}{2mm}
|
|
|
|
% включим автоматическую нумерацию строк
|
|
\XESPD@tab@first@column@enumtrue
|
|
|
|
% переопределим команду отрисовки шапки
|
|
\renewcommand{\XESPDtabDrawHead}{
|
|
\put(\XESPDltu{\XESPDframeX},\XESPDltu{\XESPDframeY}){%
|
|
\begin{picture}(0,0)
|
|
\setlength{\XESPD@tmpdima}{\XESPDframeH - \XESPDtabHeadH}
|
|
|
|
\linethickness{\XESPDlineThick}
|
|
\put(0,\XESPDltu{\XESPD@tmpdima}){\line(1,0){\XESPDltu{\XESPDframeW}}}
|
|
|
|
\XESPD@tmpdimb=0mm
|
|
\setlength{\XESPD@tmpdimb}{\XESPD@tmpdimb + \argi}
|
|
\put(\XESPDltu{\XESPD@tmpdimb},\XESPDltu{\XESPD@tmpdima}){\line(0,1){\XESPDltu{\XESPDtabHeadH}}}
|
|
\setlength{\XESPD@tmpdimb}{\XESPD@tmpdimb + \argii}
|
|
\put(\XESPDltu{\XESPD@tmpdimb},\XESPDltu{\XESPD@tmpdima}){\line(0,1){\XESPDltu{\XESPDtabHeadH}}}
|
|
\setlength{\XESPD@tmpdimb}{\XESPD@tmpdimb + \argiii}
|
|
\put(\XESPDltu{\XESPD@tmpdimb},\XESPDltu{\XESPD@tmpdima}){\line(0,1){\XESPDltu{\XESPDtabHeadH}}}
|
|
\setlength{\XESPD@tmpdimb}{\XESPD@tmpdimb + \argiv}
|
|
\put(\XESPDltu{\XESPD@tmpdimb},\XESPDltu{\XESPD@tmpdima}){\line(0,1){\XESPDltu{\XESPDtabHeadH}}}
|
|
\setlength{\XESPD@tmpdimb}{\XESPD@tmpdimb + \argv}
|
|
\put(\XESPDltu{\XESPD@tmpdimb},\XESPDltu{\XESPD@tmpdima}){\line(0,1){\XESPDltu{\XESPDtabHeadH}}}
|
|
\setlength{\XESPD@tmpdimb}{\XESPD@tmpdimb + \argvi}
|
|
\put(\XESPDltu{\XESPD@tmpdimb},\XESPDltu{\XESPD@tmpdima}){\line(0,1){\XESPDltu{\XESPDtabHeadH}}}
|
|
|
|
\setlength{\XESPD@tmpdimb}{\XESPD@tmpdimb + \argvii}
|
|
\put(\XESPDltu{\XESPD@tmpdimb},\XESPDltu{\XESPD@tmpdima}){\line(0,1){\XESPDltu{18mm}}}
|
|
\setlength{\XESPD@tmpdimb}{\XESPD@tmpdimb + \argviii}
|
|
\put(\XESPDltu{\XESPD@tmpdimb},\XESPDltu{\XESPD@tmpdima}){\line(0,1){\XESPDltu{18mm}}}
|
|
\setlength{\XESPD@tmpdimb}{\XESPD@tmpdimb + \argix}
|
|
\put(\XESPDltu{\XESPD@tmpdimb},\XESPDltu{\XESPD@tmpdima}){\line(0,1){\XESPDltu{18mm}}}
|
|
|
|
\setlength{\XESPD@tmpdimb}{\XESPD@tmpdimb + \argx}
|
|
\put(\XESPDltu{\XESPD@tmpdimb},\XESPDltu{\XESPD@tmpdima}){\line(0,1){\XESPDltu{\XESPDtabHeadH}}}
|
|
|
|
\setlength{\XESPD@tmpdimb}{\argi + \argii + \argiii + \argvi + \argv + \argiv}
|
|
\setlength{\XESPD@tmpdima}{\XESPD@tmpdima+18mm}
|
|
\put(\XESPDltu{\XESPD@tmpdimb},\XESPDltu{\XESPD@tmpdima}){\line(1,0){\XESPDltu{64mm}}}
|
|
|
|
\end{picture}}}
|
|
|
|
|
|
% окружение
|
|
\newenvironment{XESPDbillOfMaterials}
|
|
{\XESPDtabLTPreamble{%
|
|
>{\XESPDfontTabBody\centering}
|
|
p{\argi -2\tabcolsep}
|
|
@{\hspace{\XESPDbomAddHspace}}
|
|
>{\XESPDfontTabBody\raggedright\XESPDtabStrut}
|
|
p{\argii -\XESPDbomAddHspace}
|
|
<{\XESPDtabStrut}
|
|
>{\XESPDfontTabBody\centering}
|
|
p{\argiii -2\tabcolsep}
|
|
<{\XESPDtabStrut}
|
|
>{\XESPDfontTabBody\centering}
|
|
p{\argiv -2\tabcolsep}
|
|
<{\XESPDtabStrut}
|
|
>{\XESPDfontTabBody\raggedright\XESPDtabStrut}
|
|
p{\argv -2\tabcolsep}
|
|
<{\XESPDtabStrut}
|
|
>{\XESPDfontTabBody\centering}
|
|
p{\argvi -2\tabcolsep}
|
|
<{\XESPDtabStrut}
|
|
>{\XESPDfontTabBody\centering}
|
|
p{\argvii -2\tabcolsep}
|
|
>{\XESPDfontTabBody\centering}
|
|
p{\argviii -2\tabcolsep}
|
|
>{\XESPDfontTabBody\centering}
|
|
p{\argix -2\tabcolsep}
|
|
>{\XESPDfontTabBody\centering}
|
|
p{\argx -2\tabcolsep}
|
|
>{\XESPDfontTabBody\raggedright\XESPDtabStrut}
|
|
p{\argxi -2\tabcolsep}
|
|
<{\XESPDtabStrut}}
|
|
%
|
|
{%
|
|
\parbox[c][\XESPDtabHeadH][c]{\argi -2\tabcolsep}{\centering\begin{sideways}\XESPDfontTabHead%
|
|
\XESPDbomColumnIname\end{sideways}}&
|
|
\parbox[c][\XESPDtabHeadH][c]{\argii -\XESPDbomAddHspace}{\centering\XESPDfontTabHead%
|
|
\hspace{-\XESPDbomAddHspace}%
|
|
\strut\XESPDbomColumnIIname}&
|
|
\parbox[c][\XESPDtabHeadH][c]{\argiii -2\tabcolsep}{\centering\XESPDfontTabHead%
|
|
\strut\XESPDbomColumnIIIname}&
|
|
\parbox[c][\XESPDtabHeadH][c]{\argiv -2\tabcolsep}{\centering\XESPDfontTabHead%
|
|
\strut\XESPDbomColumnIVname}&
|
|
\parbox[c][\XESPDtabHeadH][c]{\argv -2\tabcolsep}{\centering\XESPDfontTabHead%
|
|
\strut\XESPDbomColumnVname}&
|
|
\parbox[c][\XESPDtabHeadH][c]{\argvi -2\tabcolsep}{\centering\XESPDfontTabHead%
|
|
\strut\XESPDbomColumnVIname}&
|
|
\multicolumn{4}{c}{%
|
|
\parbox{64mm -2\tabcolsep}{%
|
|
\parbox[c][8mm][c]{64mm -2\tabcolsep}{\centering\XESPDfontTabHead%
|
|
\strut\XESPDbomColumnsVIIhname}
|
|
\parbox[c][17mm][c]{\argvii -2\tabcolsep}{\centering\XESPDfontTabHead%
|
|
\XESPDbomColumnVIIname\strut}\hspace{2\tabcolsep}%
|
|
\parbox[c][17mm][c]{\argviii -2\tabcolsep}{\centering\XESPDfontTabHead%
|
|
\XESPDbomColumnVIIIname\strut}\hspace{2\tabcolsep}%
|
|
\parbox[c][17mm][c]{\argix -2\tabcolsep}{\centering\XESPDfontTabHead%
|
|
\XESPDbomColumnIXname\strut}\hspace{2\tabcolsep}%
|
|
\parbox[c][17mm][c]{\argx -2\tabcolsep}{\centering\XESPDfontTabHead%
|
|
\XESPDbomColumnXname\strut}}}&
|
|
\parbox[c][\XESPDtabHeadH][c]{\argxi -2\tabcolsep}{\centering\XESPDfontTabHead%
|
|
\strut\XESPDbomColumnXIname}
|
|
\tabularnewline%
|
|
}
|
|
}
|
|
%
|
|
% прямо сюда вставится содержимое таблицы
|
|
%
|
|
{\XESPDtabLTAmble}
|
|
|
|
|
|
|