latex-style-esdpx/xespdspec.sty
2020-03-14 15:04:02 +03:00

145 lines
4.9 KiB
TeX
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

% 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{xespdspec}[2020/03/20 v1.00 Specification GOST 2.106.95]
\RequirePackage{xespdlang}
\RequirePackage{xespdstamp}
\RequirePackage{rotating}
\RequirePackage{array}
\RequirePackage{longtable}
\XESPDtabColumnsWidth{6mm 6mm 8mm 70mm 63mm 10mm 22mm}
\setlength{\XESPDtabHeadH}{15mm}
\newlength{\XESPDspecAddHspace}
\setlength{\XESPDspecAddHspace}{2mm}
\newenvironment{XESPDspecification}
{\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{\XESPDspecAddHspace}}
>{\XESPDfontTabBody\raggedright\XESPDtabStrut}
p{\argv -\XESPDspecAddHspace}
<{\XESPDtabStrut}
>{\XESPDfontTabBody\centering}
p{\argvi -2\tabcolsep}
>{\XESPDfontTabBody\raggedright\XESPDtabStrut}
p{\argvii -\XESPDspecAddHspace}
<{\XESPDtabStrut}
}
%
{%
\parbox[c][\XESPDtabHeadH][c]{\argi -2\tabcolsep}{\centering\begin{sideways}%
\XESPDsmartScaleBox{\XESPDtabHeadH}{\XESPDfontTabHead\XESPDspecColumnIname}%
\end{sideways}}&
\parbox[c][\XESPDtabHeadH][c]{\argii -2\tabcolsep}{\centering\begin{sideways}\XESPDfontTabHead%
\XESPDspecColumnIIname\end{sideways}}&
\parbox[c][\XESPDtabHeadH][c]{\argiii -2\tabcolsep}{\centering\begin{sideways}\XESPDfontTabHead%
\XESPDspecColumnIIIname\end{sideways}}&
\parbox[c][\XESPDtabHeadH][c]{\argiv -2\tabcolsep}
{\centering\XESPDfontTabHead%
\XESPDspecColumnIVname}&
\parbox[c][\XESPDtabHeadH][c]{\argv -\XESPDspecAddHspace}{\centering\XESPDfontTabHead%
\XESPDspecColumnVname}&
\parbox[c][\XESPDtabHeadH][c]{\argvi -2\tabcolsep}{\centering\begin{sideways}\XESPDfontTabHead%
\XESPDspecColumnVIname\end{sideways}}&
\parbox[c][\XESPDtabHeadH][c]{\argvii -2\tabcolsep}{\centering%
\XESPDsmartScaleBox{\argvii -2\tabcolsep}{\XESPDfontTabHead\XESPDspecColumnVIIname}}%
\tabularnewline%
}
}
%
{\XESPDtabLTAmble}
% % создадим окружение "спецификация"
% \newenvironment{XESPDspecification}{%
% \XESPDputOnStyle{formII}{specification}{\XESPDdrawSpecification{}}
% \XESPDputOnStyle{formIIab}{specification}{\XESPDdrawSpecification{1}}
% \begin{XESPDzeroPadding}%
% \setlength{\tabcolsep}{0.5mm}%
% \setlength{\LTpre}{0mm}%
% \setlength{\LTpost}{0mm}%
% \setlength{\LTleft}{0mm}%
% \setlength{\LTright}{\fill}%
% \newcolumntype{s}{>{\XESPDfontTabBody}c}%
% \newcolumntype{n}{% вставим с двух сторон подпорки по 8мм
% >{\XESPDfontTabBody\raggedright\parbox[c][8mm][c]{0mm}{\rule{0mm}{0mm}}}%
% p{60mm}%
% <{\parbox[c][8mm][c]{0mm}{\rule{0mm}{0mm}}}}%
% \newcolumntype{a}{>{\XESPDfontTabBody}p{21mm}}%
% \noindent%
%
% % с помощью @-выражения зададим небольшой отступ для содержимого графы "наименование"
% \begin{longtable}{ssss@{\hspace{2mm}}n@{\hspace{2mm}}sa}
%
% % изменим некоторые константы longtable для того, чтобы
% % таблица занимала всё свободное место
% \XESPD@tmpdimc=8mm
% \advance\XESPD@tmpdima 6\XESPD@tmpdimc
% \global\@colht\XESPD@tmpdima
% \global\@colroom\XESPD@tmpdima
%
% % заполним шапку таблицы
% \parbox[c][15mm][c]{5mm}{\centering\begin{sideways}\XESPDfontTabHead%
% \XESPDspecColumnIname\end{sideways}}&
% \parbox[c][15mm][c]{5mm}{\centering\begin{sideways}\XESPDfontTabHead%
% \XESPDspecColumnIIname\end{sideways}}&
% \parbox[c][15mm][c]{7mm}{\centering\begin{sideways}\XESPDfontTabHead%
% \XESPDspecColumnIIIname\end{sideways}}&
% \parbox[c][15mm][c]{69mm}{\centering\XESPDfontTabHead%
% \XESPDspecColumnIVname}&
% \parbox[c][15mm][c]{61mm}{\centering\XESPDfontTabHead%
% \XESPDspecColumnVname}&
% \parbox[c][15mm][c]{9mm}{\centering\begin{sideways}\XESPDfontTabHead%
% \XESPDspecColumnVIname\end{sideways}}&
% \parbox[c][15mm][c]{21mm}{\centering\XESPDfontTabHead%
% \XESPDspecColumnVIIname}\\
% % первые и последние строки листов сделаем пустыми
% % для эстетичности
% &&&&&&%
% \endhead
% &&&&&&%
% \endfoot}{%
% \end{longtable}%
% \end{XESPDzeroPadding}%
% \XESPDremoveFromStyle{formII}{spec}%
% \XESPDremoveFromStyle{formIIab}{spec}}