latex-style-esdpx/espdspec.sty
2016-10-20 19:57:13 +03:00

94 lines
3.4 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{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}}