Manual updated.
[eskdx.git] / source / eskdchngsheet.sty.in
blob3a86d1936f83c8dc075c732b9d21eb7557a9dc6f
1 % Copyright 2006 Konstantin Korikov <lostclus@ua.fm>
3 % This work may be distributed and/or modified under the
4 % conditions of the LaTeX Project Public License, either version 1.3
5 % of this license or (at your option) any later version.
6 % The latest version of this license is in
7 % http://www.latex-project.org/lppl.txt
8 % and version 1.3 or later is part of all distributions of LaTeX
9 % version 2003/12/01 or later.
11 % This work has the LPPL maintenance status "maintained".
13 % This Current Maintainer of this work is Konstantin Korikov.
15 % This work consists of all files listed in manifest.txt.
17 m4_ESKDX_INIT
18 m4_FILE_INIT
19 \NeedsTeXFormat{LaTeX2e}
20 \ProvidesPackage{eskdchngsheet}[m4_dnl
21 m4_FILE_ID([[$Date:: $]]) Sheet of Changes GOST 2.503-90]
23 \RequirePackage{eskdlang}
24 \RequirePackage{eskdstamp}
25 \RequirePackage{array}
26 \RequirePackage{longtable}
28 \newcommand{\ESKDchngColumnIwidth}{.08\textwidth}
29 \newcommand{\ESKDchngColumnIIwidth}{.08\textwidth}
30 \newcommand{\ESKDchngColumnIIIwidth}{.08\textwidth}
31 \newcommand{\ESKDchngColumnIVwidth}{.08\textwidth}
32 \newcommand{\ESKDchngColumnVwidth}{.08\textwidth}
33 \newcommand{\ESKDchngColumnVIwidth}{.15\textwidth}
34 \newcommand{\ESKDchngColumnVIIwidth}{.10\textwidth}
35 \newcommand{\ESKDchngColumnVIIIwidth}{.15\textwidth}
36 \newcommand{\ESKDchngColumnIXwidth}{.10\textwidth}
37 \newcommand{\ESKDchngColumnXwidth}{.10\textwidth}
39 \newenvironment{ESKDchangeSheet}{%
40 \ESKDclearDoublePage
41 \setlength{\tabcolsep}{0.5mm}
42 \newcolumntype{s}{>{\ESKDfontTabBody}c}
43 \newcolumntype{S}{>{\ESKDfontTabHead}c}
44 \noindent
45 \begin{longtable}{|*{10}{s|}}
46 \hline
47 \multicolumn{10}{|S|}{\ESKDchangeSheetName}\\\hline
48 &\multicolumn{4}{S|}{\ESKDchngColumnsIIhName}&&&&&\\\cline{2-5}
49 \parbox[c]{\ESKDchngColumnIwidth-2\tabcolsep-1.5\arrayrulewidth}{%
50 \vspace{-\baselineskip}\centering\ESKDfontTabHead\ESKDcolumnXIVname}&
51 \parbox[c]{\ESKDchngColumnIIwidth-2\tabcolsep-\arrayrulewidth}{%
52 \centering\ESKDfontTabHead\ESKDchngColumnIIname}&
53 \parbox[c]{\ESKDchngColumnIIIwidth-2\tabcolsep-\arrayrulewidth}{%
54 \centering\ESKDfontTabHead\ESKDchngColumnIIIname}&
55 \parbox[c]{\ESKDchngColumnIVwidth-2\tabcolsep-\arrayrulewidth}{%
56 \centering\ESKDfontTabHead\ESKDchngColumnIVname}&
57 \parbox[c]{\ESKDchngColumnVwidth-2\tabcolsep-\arrayrulewidth}{%
58 \centering\ESKDfontTabHead\ESKDchngColumnVname}&
59 \parbox[c]{\ESKDchngColumnVIwidth-2\tabcolsep-\arrayrulewidth}{%
60 \vspace{-\baselineskip}\centering\ESKDfontTabHead\ESKDchngColumnVIname}&
61 \parbox[c]{\ESKDchngColumnVIIwidth-2\tabcolsep-\arrayrulewidth}{%
62 \vspace{-\baselineskip}\centering\ESKDfontTabHead\ESKDcolumnXVIname}&
63 \parbox[c]{\ESKDchngColumnVIIIwidth-2\tabcolsep-\arrayrulewidth}{%
64 \vspace{-\baselineskip}\centering\ESKDfontTabHead\ESKDchngColumnVIIIname\vspace{1mm}}&
65 \parbox[c]{\ESKDchngColumnIXwidth-2\tabcolsep-\arrayrulewidth}{%
66 \vspace{-\baselineskip}\centering\ESKDfontTabHead\ESKDcolumnXVIIname}&
67 \parbox[c]{\ESKDchngColumnXwidth-2\tabcolsep-1.5\arrayrulewidth}{%
68 \vspace{-\baselineskip}\centering\ESKDfontTabHead\ESKDcolumnXVIIIname}\\\hline
69 \endfirsthead
70 \hline
71 &\multicolumn{4}{S|}{\ESKDchngColumnsIIhName}&&&&&\\\cline{2-5}
72 \parbox[c]{\ESKDchngColumnIwidth-2\tabcolsep-1.5\arrayrulewidth}{%
73 \vspace{-\baselineskip}\centering\ESKDfontTabHead\ESKDcolumnXIVname}&
74 \parbox[c]{\ESKDchngColumnIIwidth-2\tabcolsep-\arrayrulewidth}{%
75 \centering\ESKDfontTabHead\ESKDchngColumnIIname}&
76 \parbox[c]{\ESKDchngColumnIIIwidth-2\tabcolsep-\arrayrulewidth}{%
77 \centering\ESKDfontTabHead\ESKDchngColumnIIIname}&
78 \parbox[c]{\ESKDchngColumnIVwidth-2\tabcolsep-\arrayrulewidth}{%
79 \centering\ESKDfontTabHead\ESKDchngColumnIVname}&
80 \parbox[c]{\ESKDchngColumnVwidth-2\tabcolsep-\arrayrulewidth}{%
81 \centering\ESKDfontTabHead\ESKDchngColumnVname}&
82 \parbox[c]{\ESKDchngColumnVIwidth-2\tabcolsep-\arrayrulewidth}{%
83 \vspace{-\baselineskip}\centering\ESKDfontTabHead\ESKDchngColumnVIname}&
84 \parbox[c]{\ESKDchngColumnVIIwidth-2\tabcolsep-\arrayrulewidth}{%
85 \vspace{-\baselineskip}\centering\ESKDfontTabHead\ESKDcolumnXVIname}&
86 \parbox[c]{\ESKDchngColumnVIIIwidth-2\tabcolsep-\arrayrulewidth}{%
87 \vspace{-\baselineskip}\centering\ESKDfontTabHead\ESKDchngColumnVIIIname\vspace{1mm}}&
88 \parbox[c]{\ESKDchngColumnIXwidth-2\tabcolsep-\arrayrulewidth}{%
89 \vspace{-\baselineskip}\centering\ESKDfontTabHead\ESKDcolumnXVIIname}&
90 \parbox[c]{\ESKDchngColumnXwidth-2\tabcolsep-1.5\arrayrulewidth}{%
91 \vspace{-\baselineskip}\centering\ESKDfontTabHead\ESKDcolumnXVIIIname}\\\hline
92 \endhead
93 \hline
94 \endfoot}{\end{longtable}}
96 m4_dnl vim:ft=tex:sw=2:ai