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

1141 lines
39 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{espdstamp}[2011/05/06 v0.98 Stamp GOST 2.104-68]
\RequirePackage{calc}
\newcommand{\ESPD@paper}{a4}
\newif\ifESPD@landscape
\ESPD@landscapefalse
\newif\ifESPD@given@landscape
\ESPD@given@landscapefalse
\newcommand{\ESPD@default@style@title}{title}
\newcommand{\ESPD@default@style@first}{formII}
\newcommand{\ESPD@default@style@other}{formIIab}
\newlength{\ESPD@margin@si}
\newlength{\ESPD@margin@so}
\newlength{\ESPD@margin@t}
\newlength{\ESPD@margin@b}
\setlength{\ESPD@margin@si}{20mm}
\setlength{\ESPD@margin@so}{5mm}
\setlength{\ESPD@margin@t}{5mm}
\setlength{\ESPD@margin@b}{5mm}
\newlength{\ESPDlineThick}
\newlength{\ESPDlineThin}
\setlength{\ESPDlineThick}{.4mm}
\setlength{\ESPDlineThin}{.2mm}
\newlength{\ESPD@padding@h}
\newlength{\ESPD@padding@v}
\setlength{\ESPD@padding@h}{0mm}
\setlength{\ESPD@padding@v}{5mm}
\newif\ifESPD@ignstamp
\ESPD@ignstampfalse
\newif\ifESPD@enable@column@vii
\ESPD@enable@column@viitrue
\newif\ifESPD@given@column@vii
\ESPD@given@column@viifalse
\newif\ifESPD@enable@column@viii
\ESPD@enable@column@viiitrue
\newif\ifESPD@enable@columns@xix
\ESPD@enable@columns@xixtrue
\newif\ifESPD@enable@columns@xxiv
\ESPD@enable@columns@xxivfalse
\newif\ifESPD@enable@column@xxvi
\ESPD@enable@column@xxvifalse
\newif\ifESPD@enable@columns@xxvii
\ESPD@enable@columns@xxviifalse
\newif\ifESPD@enable@column@xxxi
\ESPD@enable@column@xxxitrue
\newif\ifESPD@enable@column@xxxii
\ESPD@enable@column@xxxiitrue
\newif\ifESPD@enable@column@xxxiii
\ESPD@enable@column@xxxiiifalse
\newif\ifESPD@enable@column@xxxiv
\ESPD@enable@column@xxxivfalse
\newif\ifESPD@twoside
\ESPD@twosidefalse
\newif\ifESPD@zonelabels
\ESPD@zonelabelsfalse
\RequirePackage{keyval}
\DeclareOption{a0paper}{\renewcommand{\ESPD@paper}{a0}}
\DeclareOption{a1paper}{\renewcommand{\ESPD@paper}{a1}}
\DeclareOption{a2paper}{\renewcommand{\ESPD@paper}{a2}}
\DeclareOption{a3paper}{\renewcommand{\ESPD@paper}{a3}}
\DeclareOption{a4paper}{\renewcommand{\ESPD@paper}{a4}}
\DeclareOption{landscape}{%
\ESPD@landscapetrue%
\ESPD@given@landscapetrue}
\DeclareOption{portrait}{%
\ESPD@landscapefalse%
\ESPD@given@landscapetrue}
\define@key{espd}{reduceheight}{\addtolength{\ESPD@margin@b}{#1}}
\DeclareOption{formI}{%
\renewcommand{\ESPD@default@style@first}{formI}
\renewcommand{\ESPD@default@style@other}{formIIab}
\renewcommand{\ESPD@default@style@title}{title}}
\DeclareOption{formII}{%
\renewcommand{\ESPD@default@style@first}{formII}
\renewcommand{\ESPD@default@style@other}{formIIab}
\renewcommand{\ESPD@default@style@title}{title}}
\DeclareOption{emptystyle}{%
\renewcommand{\ESPD@default@style@first}{empty}
\renewcommand{\ESPD@default@style@other}{empty}
\renewcommand{\ESPD@default@style@title}{empty}}
\DeclareOption{espd}{%
\setlength{\ESPD@margin@t}{20mm}%
\setlength{\ESPD@margin@b}{10mm}%
\setlength{\ESPD@margin@si}{20mm}
\setlength{\ESPD@margin@so}{10mm}
\renewcommand{\ESPD@default@style@first}{empty}
\renewcommand{\ESPD@default@style@other}{empty}
\renewcommand{\ESPD@default@style@title}{espdtitle}}
\DeclareOption{stitching}{\setlength{\ESPD@margin@si}{20mm}}
\DeclareOption{nostitching}{%
\setlength{\ESPD@margin@si}{5mm}%
\ESPD@enable@columns@xixfalse%
\ESPD@enable@columns@xxivfalse}
\DeclareOption{ignorestamp}{\ESPD@ignstamptrue}
\DeclareOption{noignorestamp}{\ESPD@ignstampfalse}
\DeclareOption{columnvii}{%
\ESPD@enable@column@viitrue%
\ESPD@given@column@viitrue}
\DeclareOption{nocolumnvii}{
\ESPD@enable@column@viifalse%
\ESPD@given@column@viitrue}
\DeclareOption{columnviii}{\ESPD@enable@column@viiitrue}
\DeclareOption{nocolumnviii}{\ESPD@enable@column@viiifalse}
\DeclareOption{columnsxix}{\ESPD@enable@columns@xixtrue}
\DeclareOption{nocolumnsxix}{\ESPD@enable@columns@xixfalse}
\DeclareOption{columnsxxiv}{\ESPD@enable@columns@xxivtrue}
\DeclareOption{nocolumnsxxiv}{\ESPD@enable@columns@xxivfalse}
\DeclareOption{columnxxvi}{\ESPD@enable@column@xxvitrue}
\DeclareOption{nocolumnxxvi}{\ESPD@enable@column@xxvifalse}
\DeclareOption{columnsxxvii}{\ESPD@enable@columns@xxviitrue}
\DeclareOption{nocolumnsxxvii}{\ESPD@enable@columns@xxviifalse}
\DeclareOption{columnxxxi}{\ESPD@enable@column@xxxitrue}
\DeclareOption{nocolumnxxxi}{\ESPD@enable@column@xxxifalse}
\DeclareOption{columnxxxii}{\ESPD@enable@column@xxxiitrue}
\DeclareOption{nocolumnxxxii}{\ESPD@enable@column@xxxiifalse}
\DeclareOption{columnxxxiii}{\ESPD@enable@column@xxxiiitrue}
\DeclareOption{nocolumnxxxiii}{\ESPD@enable@column@xxxiiifalse}
\DeclareOption{columnxxxiv}{\ESPD@enable@column@xxxivtrue}
\DeclareOption{nocolumnxxxiv}{\ESPD@enable@column@xxxivfalse}
\DeclareOption{simple}{%
\ESPD@enable@columns@xixfalse%
\ESPD@enable@column@xxxifalse%
\ESPD@enable@column@xxxiifalse}
\DeclareOption{twoside}{\ESPD@twosidetrue}
\DeclareOption{oneside}{\ESPD@twosidefalse}
\DeclareOption{zonelabels}{\ESPD@zonelabelstrue}
\DeclareOption{nozonelabels}{\ESPD@zonelabelsfalse}
\define@key{espd}{linethick}{\setlength{\ESPDlineThick}{#1}}
\define@key{espd}{linethin}{\setlength{\ESPDlineThin}{#1}}
\define@key{espd}{vpadding}{\setlength{\ESPD@padding@v}{#1}}
\define@key{espd}{hpadding}{\setlength{\ESPD@padding@h}{#1}}
\DeclareOption*{\edef\@tempa{\noexpand\setkeys{espd}{\CurrentOption}}\@tempa}
\ProcessOptions\relax
\newcommand{\ESPD@cmp@empty}{}
\newcommand{\ESPD@cmp@aIVpaper}{a4}
\newcommand{\ESPD@cmp@landscape}{landscape}
\ifESPD@given@landscape\else
\ifx\ESPD@paper\ESPD@cmp@aIVpaper%
\ESPD@landscapefalse
\else
\ESPD@landscapetrue
\fi
\fi
\RequirePackage[\ESPD@paper paper,%
\ifESPD@landscape landscape\else portrait\fi,%
tmargin=\ESPD@margin@t+\ESPD@padding@v,%
bmargin=\ESPD@margin@b+\ESPD@padding@v,%
inner=\ESPD@margin@si+\ESPD@padding@h,%
outer=\ESPD@margin@so+\ESPD@padding@h,%
marginparsep=0mm,marginparwidth=0mm,%
headheight=0mm,headsep=0mm,footskip=0mm]{geometry}
%\RequirePackage[a4paper,portrait,
%tmargin=25mm,%
%bmargin=0mm,%
%inner=20mm,%
%outer=10mm,%
%headheight=0mm,%
%headsep=0mm,%
%textheight=267mm,
%marginparsep=0mm,%
%marginparwidth=0mm,%
%footskip=0mm]{geometry}
\RequirePackage{lastpage}
\def\ESPD@secondof#1#2#3endof{#2}
\def\ESPD@p@genum#1{%
\ifx#1\relax 0\else
\expandafter\ESPD@secondof#1endof
\fi}
\def\ESPD@pagenum#1{\expandafter\ESPD@p@genum\csname r@#1\endcsname}
\ifESPD@given@column@vii\else
\AtBeginDocument{%
\ifnum \ESPD@pagenum{LastPage} = 1
\ESPD@enable@column@viifalse%
\fi}
\fi
\newif\ifESPD@column@xxvi@portrait
\ESPD@column@xxvi@portraittrue
\ifESPD@landscape\ESPD@column@xxvi@portraitfalse\fi
\ifx\ESPD@paper\ESPD@cmp@aIVpaper\ESPD@column@xxvi@portraitfalse\fi
\newlength{\ESPD@tmpdima}
\newlength{\ESPD@tmpdimb}
\newlength{\ESPD@tmpdimc}
\newcount\ESPD@tmpcnta
\newcount\ESPD@tmpcntb
\newcount\ESPD@zonelabel@hc
\newcount\ESPD@zonelabel@vc
\newlength{\ESPD@zonelabel@hs}
\newlength{\ESPD@zonelabel@vs}
\newcount\ESPD@zonelabel@cnt
\ifESPD@zonelabels
\@namedef{ESPD@zonelabel@init@a4}{%
\ESPD@zonelabel@hc = 1 \ESPD@zonelabel@vc = 1\relax}
\@namedef{ESPD@zonelabel@init@a3}{%
\ESPD@zonelabel@hc = 1 \ESPD@zonelabel@vc = 2\relax}
\@namedef{ESPD@zonelabel@init@a2}{%
\ESPD@zonelabel@hc = 2 \ESPD@zonelabel@vc = 2\relax}
\@namedef{ESPD@zonelabel@init@a1}{%
\ESPD@zonelabel@hc = 2 \ESPD@zonelabel@vc = 4\relax}
\@namedef{ESPD@zonelabel@init@a0}{%
\ESPD@zonelabel@hc = 4 \ESPD@zonelabel@vc = 4\relax}
\@nameuse{ESPD@zonelabel@init@\ESPD@paper}
\ifESPD@landscape
\ESPD@tmpcnta = \ESPD@zonelabel@hc
\ESPD@zonelabel@hc = \ESPD@zonelabel@vc
\ESPD@zonelabel@vc = \ESPD@tmpcnta
\fi
\ESPD@zonelabel@hs = \paperwidth
\ESPD@zonelabel@vs = \paperheight
\divide \ESPD@zonelabel@hs by \ESPD@zonelabel@hc
\divide \ESPD@zonelabel@vs by \ESPD@zonelabel@vc
\ESPD@zonelabel@cnt = 0
\fi
\newlength{\ESPD@origin@x}
\newlength{\ESPD@origin@y}
\setlength{\ESPD@origin@x}{1in}
\setlength{\ESPD@origin@y}{\paperheight-1in}
\newlength{\ESPDframeX}
\newlength{\ESPDframeY}
\newlength{\ESPDframeW}
\newlength{\ESPDframeH}
\setlength{\ESPDframeW}{\paperwidth-\ESPD@margin@si-\ESPD@margin@so}
\setlength{\ESPDframeH}{\paperheight-\ESPD@margin@t-\ESPD@margin@b}
\newlength{\ESPDstampX}
\newlength{\ESPDstampY}
\RequirePackage{espdfont}
\RequirePackage{espdlang}
\newcommand*{\ESPDltu}[1]{#1\@gobble}
\newcommand{\ESPDonFrontSideOnly}[1]{%
\ifESPD@twoside\ifodd\c@page#1\fi\else#1\fi}
\RequirePackage{rotating}
\newsavebox{\ESPD@frame@box}
\AtBeginDocument{%
\savebox{\ESPD@frame@box}{%
\setlength{\unitlength}{1mm}%
\begin{picture}(0,0)(0,0)
\linethickness{\ESPDlineThick}
\put(0,\ESPDltu{\ESPDframeH}){\line(1,0){\ESPDltu{\ESPDframeW}}}
\put(0,0){\line(1,0){\ESPDltu{\ESPDframeW}}}
\put(0,0){\line(0,1){\ESPDltu{\ESPDframeH}}}
\put(\ESPDltu{\ESPDframeW},0){\line(0,1){\ESPDltu{\ESPDframeH}}}
\end{picture}}}
\newcommand{\ESPDdrawFrame}{%
\put(\ESPDltu{\ESPDframeX},\ESPDltu{\ESPDframeY}){%
\usebox{\ESPD@frame@box}}}
\newsavebox{\ESPD@stamp@i@box}
\AtBeginDocument{%
\savebox{\ESPD@stamp@i@box}{%
\setlength{\unitlength}{1mm}%
\begin{picture}(0,0)(0,0)
\linethickness{\ESPDlineThick}
\put(0,55){\line(1,0){185}}
\put(65,40){\line(1,0){120}}
\put(0,35){\line(1,0){65}}
\put(135,35){\line(1,0){50}}
\put(0,30){\line(1,0){65}}
\put(135,20){\line(1,0){50}}
\put(65,15){\line(1,0){120}}
\linethickness{\ESPDlineThin}
\multiput(0,50)(0,-5){3}{\line(1,0){65}}
\multiput(0,25)(0,-5){5}{\line(1,0){65}}
\linethickness{\ESPDlineThick}
\put(0,0){\line(0,1){55}}
\put(7,30){\line(0,1){25}}
\put(17,0){\line(0,1){55}}
\put(40,0){\line(0,1){55}}
\put(55,0){\line(0,1){55}}
\put(65,0){\line(0,1){55}}
\put(135,0){\line(0,1){40}}
\put(150,20){\line(0,1){20}}
\put(155,15){\line(0,1){5}}
\put(167,20){\line(0,1){20}}
\linethickness{\ESPDlineThin}
\multiput(140,20)(5,0){2}{\line(0,1){15}}
\put(67, 41){\parbox[b][13mm][c]{106mm}{\centering\ESPDfontVII\ESPDtheColumnII}}
\put(135, 36.3){\makebox[15mm]{\ESPDfontIII\ESPDcolumnIVname}}
\put(150, 36.3){\makebox[17mm]{\ESPDfontIII\ESPDcolumnVname}}
\put(167, 36.3){\makebox[18mm]{\ESPDfontIII\ESPDcolumnVIname}}
\put(0.5, 26.3){\makebox[16mm][l]{\ESPDfontIII\ESPDcolumnXfIname}}
\put(0.5, 21.3){\makebox[16mm][l]{\ESPDfontIII\ESPDcolumnXfIIname}}
\put(0.5, 16.3){\makebox[16mm][l]{\ESPDfontIII\ESPDcolumnXfIIIname}}
\put(0.5, 11.3){\makebox[16mm][l]{\ESPDfontIII\ESPDcolumnXfIVname}}
\put(0.5, 6.3){\makebox[16mm][l]{\ESPDfontIII\ESPDcolumnXfVname}}
\put(0.5, 1.3){\makebox[16mm][l]{\ESPDfontIII\ESPDcolumnXfVIname}}
\put(17.5, 26.3){\makebox[22mm][l]{\ESPDfontIII\ESPDtheColumnXIfI}}
\put(17.5, 21.3){\makebox[22mm][l]{\ESPDfontIII\ESPDtheColumnXIfII}}
\put(17.5, 16.3){\makebox[22mm][l]{\ESPDfontIII\ESPDtheColumnXIfIII}}
\put(17.5, 11.3){\makebox[22mm][l]{\ESPDfontIII\ESPDtheColumnXIfIV}}
\put(17.5, 6.3){\makebox[22mm][l]{\ESPDfontIII\ESPDtheColumnXIfV}}
\put(17.5, 1.3){\makebox[22mm][l]{\ESPDfontIII\ESPDtheColumnXIfVI}}
\put(0, 31.3){\makebox[7mm]{\ESPDfontIII\ESPDcolumnXIVname}}
\put(7, 31.3){\makebox[10mm]{\ESPDfontIII\ESPDcolumnXVname}}
\put(17, 31.3){\makebox[23mm]{\ESPDfontIII\ESPDcolumnXVIname}}
\put(40, 31.3){\makebox[15mm]{\ESPDfontIII\ESPDcolumnXVIIname}}
\put(55, 31.3){\makebox[10mm]{\ESPDfontIII\ESPDcolumnXVIIIname}}
\end{picture}}}
\newcommand{\ESPD@stamp@i@var}{%
\begin{picture}(0,0)(0,0)
\ifnum \c@page = 1
\put(67, 16){\parbox[b][23mm][c]{66mm}{\centering\ESPDfontV\ESPDtheColumnI}}
\put(67, 1){\parbox[b][13mm][c]{66mm}{\centering\ESPDfontV\ESPDtheColumnIII}}
\put(135, 26.3){\makebox[5mm]{\ESPDfontIII\ESPDtheColumnIVfI}}
\put(140, 26.3){\makebox[5mm]{\ESPDfontIII\ESPDtheColumnIVfII}}
\put(145, 26.3){\makebox[5mm]{\ESPDfontIII\ESPDtheColumnIVfIII}}
\put(151, 21){\parbox[b][13mm][c]{15mm}{\centering\ESPDfontIII\ESPDtheColumnV}}
\put(168, 21){\parbox[b][13mm][c]{16mm}{\centering\ESPDfontIII\ESPDtheColumnVI}}
\ifESPD@enable@column@viii
\put(155, 16.3){\makebox[30mm]{\ESPDfontIII%
\ifESPD@twoside\ESPDcolumnVIIItwosideName\else\ESPDcolumnVIIIname\fi%
\ \pageref{LastPage}}}
\fi
\put(137, 1){\parbox[b][13mm][c]{46mm}{\centering\ESPDfontV\ESPDtheColumnIX}}
\fi
\ifESPD@enable@column@vii
\put(135, 16.3){\makebox[20mm]{\ESPDfontIII%
\ifESPD@twoside\ESPDcolumnVIItwosideName\else\ESPDcolumnVIIname\fi\ \thepage}}
\fi
\end{picture}}
\newcommand{\ESPDdrawStampI}{%
\put(\ESPDltu{\ESPDstampX},\ESPDltu{\ESPDstampY}){%
\usebox{\ESPD@stamp@i@box}}
\put(\ESPDltu{\ESPDstampX},\ESPDltu{\ESPDstampY}){%
\ESPD@stamp@i@var}}
\newsavebox{\ESPD@stamp@ii@box}
\AtBeginDocument{%
\savebox{\ESPD@stamp@ii@box}{%
\setlength{\unitlength}{1mm}%
\begin{picture}(0,0)(0,0)
\linethickness{\ESPDlineThick}
\put(0,40){\line(1,0){185}}
\put(0,30){\line(1,0){65}}
\put(0,25){\line(1,0){185}}
\put(135,20){\line(1,0){50}}
\put(135,15){\line(1,0){50}}
\linethickness{\ESPDlineThin}
\put(0,35){\line(1,0){65}}
\multiput(0,20)(0,-5){4}{\line(1,0){65}}
\linethickness{\ESPDlineThick}
\put(0,0){\line(0,1){40}}
\put(7,25){\line(0,1){15}}
\put(17,0){\line(0,1){40}}
\put(40,0){\line(0,1){40}}
\put(55,0){\line(0,1){40}}
\put(65,0){\line(0,1){40}}
\put(135,0){\line(0,1){25}}
\put(140,15){\line(0,1){5}}
\put(145,15){\line(0,1){5}}
\put(150,15){\line(0,1){10}}
\put(165,15){\line(0,1){10}}
\put(67, 1){\parbox[b][23mm][c]{66mm}{\centering\ESPDfontV\ESPDtheColumnI}}
\put(67, 26){\parbox[b][13mm][c]{106mm}{\centering\ESPDfontVII\ESPDtheColumnII}}
\put(135, 21.3){\makebox[15mm]{\ESPDfontIII\ESPDcolumnIVname}}
\put(135, 16.3){\makebox[5mm][c]{\ESPDfontIII\ESPDtheColumnIVfI}}
\put(140, 16.3){\makebox[5mm][c]{\ESPDfontIII\ESPDtheColumnIVfII}}
\put(145, 16.3){\makebox[5mm][c]{\ESPDfontIII\ESPDtheColumnIVfIII}}
\put(150, 21.3){\makebox[15mm]{\ESPDfontIII%
\ifESPD@twoside\ESPDcolumnVIItwosideName\else\ESPDcolumnVIIname\fi}}
\put(165, 21.3){\makebox[20mm]{\ESPDfontIII%
\ifESPD@twoside\ESPDcolumnVIIItwosideName\else\ESPDcolumnVIIIname\fi}}
\put(137, 1){\parbox[b][13mm][c]{46mm}{\centering\ESPDfontV\ESPDtheColumnIX}}
\put(0.5, 21.3){\makebox[16mm][l]{\ESPDfontIII\ESPDcolumnXfIname}}
\put(0.5, 16.3){\makebox[16mm][l]{\ESPDfontIII\ESPDcolumnXfIIname}}
\put(0.5, 11.3){\makebox[16mm][l]{\ESPDfontIII\ESPDcolumnXfIVname}}
\put(0.5, 6.3){\makebox[16mm][l]{\ESPDfontIII\ESPDcolumnXfVname}}
\put(0.5, 1.3){\makebox[16mm][l]{\ESPDfontIII\ESPDcolumnXfVIname}}
\put(17.5, 21.3){\makebox[22mm][l]{\ESPDfontIII\ESPDtheColumnXIfI}}
\put(17.5, 16.3){\makebox[22mm][l]{\ESPDfontIII\ESPDtheColumnXIfII}}
\put(17.5, 11.3){\makebox[22mm][l]{\ESPDfontIII\ESPDtheColumnXIfIV}}
\put(17.5, 6.3){\makebox[22mm][l]{\ESPDfontIII\ESPDtheColumnXIfV}}
\put(17.5, 1.3){\makebox[22mm][l]{\ESPDfontIII\ESPDtheColumnXIfVI}}
\put(0, 26.3){\makebox[7mm]{\ESPDfontIII\ESPDcolumnXIVname}}
\put(7, 26.3){\makebox[10mm]{\ESPDfontIII\ESPDcolumnXVname}}
\put(17, 26.3){\makebox[23mm]{\ESPDfontIII\ESPDcolumnXVIname}}
\put(40, 26.3){\makebox[15mm]{\ESPDfontIII\ESPDcolumnXVIIname}}
\put(55, 26.3){\makebox[10mm]{\ESPDfontIII\ESPDcolumnXVIIIname}}
\end{picture}}}
\newcommand{\ESPD@stamp@ii@var}{%
\begin{picture}(0,0)(0,0)
\ifESPD@enable@column@vii
\put(150, 16.3){\makebox[15mm]{\ESPDfontIII\thepage}}
\fi
\ifESPD@enable@column@viii
\put(165, 16.3){\makebox[20mm]{\ESPDfontIII\pageref{LastPage}}}
\fi
\end{picture}}
\newcommand{\ESPDdrawStampII}{%
\put(\ESPDltu{\ESPDstampX},\ESPDltu{\ESPDstampY}){%
\usebox{\ESPD@stamp@ii@box}}
\put(\ESPDltu{\ESPDstampX},\ESPDltu{\ESPDstampY}){%
\ESPD@stamp@ii@var}}
\newsavebox{\ESPD@stamp@ii@a@box}
\AtBeginDocument{%
\savebox{\ESPD@stamp@ii@a@box}{%
\setlength{\unitlength}{1mm}%
\begin{picture}(0,0)(0,0)
\linethickness{\ESPDlineThick}
\put(0,15){\line(1,0){185}}
\put(175,8){\line(1,0){10}}
\put(0,5){\line(1,0){65}}
\linethickness{\ESPDlineThin}
\put(0,10){\line(1,0){65}}
\linethickness{\ESPDlineThick}
\put(0,0){\line(0,1){15}}
\put(7,0){\line(0,1){15}}
\put(17,0){\line(0,1){15}}
\put(40,0){\line(0,1){15}}
\put(55,0){\line(0,1){15}}
\put(65,0){\line(0,1){15}}
\put(175,0){\line(0,1){15}}
\put(67, 1){\parbox[b][13mm][c]{106mm}{\centering\ESPDfontVII\ESPDtheColumnII}}
\put(175, 10.3){\makebox[10mm]{\ESPDfontIII%
\ifESPD@twoside\ESPDcolumnVIItwosideName\else\ESPDcolumnVIIname\fi}}
\put(0, 1.3){\makebox[7mm]{\ESPDfontIII\ESPDcolumnXIVname}}
\put(7, 1.3){\makebox[10mm]{\ESPDfontIII\ESPDcolumnXVname}}
\put(17, 1.3){\makebox[23mm]{\ESPDfontIII\ESPDcolumnXVIname}}
\put(40, 1.3){\makebox[15mm]{\ESPDfontIII\ESPDcolumnXVIIname}}
\put(55, 1.3){\makebox[10mm]{\ESPDfontIII\ESPDcolumnXVIIIname}}
\end{picture}}}
\newcommand{\ESPD@stamp@ii@a@var}{%
\begin{picture}(0,0)(0,0)
\ifESPD@enable@column@vii
\put(175, 3){\makebox[10mm]{\ESPDfontIII\thepage}}
\fi
\end{picture}}
\newcommand{\ESPDdrawStampIIa}{%
\put(\ESPDltu{\ESPDstampX},\ESPDltu{\ESPDstampY}){%
\usebox{\ESPD@stamp@ii@a@box}}
\put(\ESPDltu{\ESPDstampX},\ESPDltu{\ESPDstampY}){%
\ESPD@stamp@ii@a@var}}
\newsavebox{\ESPD@stamp@ii@b@box}
\AtBeginDocument{%
\savebox{\ESPD@stamp@ii@b@box}{%
\setlength{\unitlength}{1mm}%
\begin{picture}(0,0)(0,0)
\linethickness{\ESPDlineThick}
\put(0,15){\line(1,0){185}}
\put(0,8){\line(1,0){10}}
\put(120,5){\line(1,0){65}}
\linethickness{\ESPDlineThin}
\put(120,10){\line(1,0){65}}
\linethickness{\ESPDlineThick}
\put(0,0){\line(0,1){15}}
\put(10,0){\line(0,1){15}}
\put(120,0){\line(0,1){15}}
\put(127,0){\line(0,1){15}}
\put(137,0){\line(0,1){15}}
\put(160,0){\line(0,1){15}}
\put(175,0){\line(0,1){15}}
\put(12, 1){\parbox[b][13mm][c]{106mm}{\centering\ESPDfontVII\ESPDtheColumnII}}
\put(0, 10.3){\makebox[10mm]{\ESPDfontIII%
\ifESPD@twoside\ESPDcolumnVIItwosideName\else\ESPDcolumnVIIname\fi}}
\put(120, 1.3){\makebox[7mm]{\ESPDfontIII\ESPDcolumnXIVname}}
\put(127, 1.3){\makebox[10mm]{\ESPDfontIII\ESPDcolumnXVname}}
\put(137, 1.3){\makebox[23mm]{\ESPDfontIII\ESPDcolumnXVIname}}
\put(160, 1.3){\makebox[15mm]{\ESPDfontIII\ESPDcolumnXVIIname}}
\put(175, 1.3){\makebox[10mm]{\ESPDfontIII\ESPDcolumnXVIIIname}}
\end{picture}}}
\newcommand{\ESPD@stamp@ii@b@var}{%
\begin{picture}(0,0)(0,0)
\ifESPD@enable@column@vii
\put(0, 3){\makebox[10mm]{\ESPDfontIII\thepage}}
\fi
\end{picture}}
\newcommand{\ESPDdrawStampIIb}{%
\put(\ESPDltu{\ESPDstampX},\ESPDltu{\ESPDstampY}){%
\usebox{\ESPD@stamp@ii@b@box}}
\put(\ESPDltu{\ESPDstampX},\ESPDltu{\ESPDstampY}){%
\ESPD@stamp@ii@b@var}}
% ### Рамка
\ifESPD@enable@columns@xix
\newsavebox{\ESPD@columns@xix@box}
\AtBeginDocument{%
\savebox{\ESPD@columns@xix@box}{%
\setlength{\unitlength}{1mm}%
\begin{picture}(0,0)(-5,0)
\linethickness{\ESPDlineThick}
\put(0,12){\line(1,0){145}}
\put(0,7){\line(1,0){145}}
\put(0,0){\line(1,0){145}}
\put(0,0){\line(0,1){12}}
\put(25,0){\line(0,1){12}}
\put(60,0){\line(0,1){12}}
\put(85,0){\line(0,1){12}}
\put(110,0){\line(0,1){12}}
\put(145,0){\line(0,1){12}}
\put(0, 8.3){\makebox[25mm]{\ESPDfontGostIV\ESPDcolumnXIXname}}
\put(0, 2.3){\makebox[25mm]{\ESPDfontGostIV\ESPDtheColumnXIX}}
\put(25, 8.3){\makebox[35mm]{\ESPDfontGostIV\ESPDcolumnXXname}}
\put(60, 8.3){\makebox[25mm]{\ESPDfontGostIV\ESPDcolumnXXIname}}
\put(60, 2.3){\makebox[25mm]{\ESPDfontGostIV\ESPDtheColumnXXI}}
\put(85, 8.3){\makebox[25mm]{\ESPDfontGostIV\ESPDcolumnXXIIname}}
\put(85, 2.3){\makebox[25mm]{\ESPDfontGostIV\ESPDtheColumnXXII}}
\put(110, 8.3){\makebox[35mm]{\ESPDfontGostIV\ESPDcolumnXXIIIname}}
\end{picture}}}
\newcommand{\ESPDdrawColumnsXIX}{%
\ESPDonFrontSideOnly{%
\put(\ESPDltu{\ESPDframeX},\ESPDltu{\ESPDframeY}){%
\begin{turn}{90}\usebox{\ESPD@columns@xix@box}\end{turn}}}}
\fi
\ifESPD@enable@columns@xxiv
\newsavebox{\ESPD@columns@xxiv@box}
\AtBeginDocument{%
\savebox{\ESPD@columns@xxiv@box}{%
\setlength{\unitlength}{1mm}%
\begin{picture}(0,0)(0,0)
\linethickness{\ESPDlineThick}
\put(0,12){\line(1,0){120}}
\put(0,7){\line(1,0){120}}
\put(0,0){\line(0,1){12}}
\put(60,0){\line(0,1){12}}
\put(120,0){\line(0,1){12}}
\put(0, 8.3){\makebox[60mm]{\ESPDfontIII\ESPDcolumnXXIVname}}
\put(0, 2.3){\makebox[60mm]{\ESPDfontIII\ESPDtheColumnXXIV}}
\put(60, 8.3){\makebox[60mm]{\ESPDfontIII\ESPDcolumnXXVname}}
\put(60, 2.3){\makebox[60mm]{\ESPDfontIII\ESPDtheColumnXXV}}
\end{picture}}}
\newcommand{\ESPDdrawColumnsXXIV}{%
\setlength{\ESPD@tmpdima}{\ESPDframeY+167mm}
\put(\ESPDltu{\ESPDframeX},\ESPDltu{\ESPD@tmpdima}){%
\begin{turn}{90}\usebox{\ESPD@columns@xxiv@box}\end{turn}}}
\fi
\ifESPD@enable@column@xxvi
\newsavebox{\ESPD@column@xxvi@box}
\AtBeginDocument{%
\savebox{\ESPD@column@xxvi@box}{%
\setlength{\unitlength}{1mm}%
\begin{picture}(0,0)(0,0)
\linethickness{\ESPDlineThick}
\put(0,0){\line(1,0){70}}
\put(70,0){\line(0,1){14}}
\put(1,13){\begin{turn}{180}\parbox[b][12mm][c]{68mm}{%
\centering\ESPDfontV\ESPDtheColumnII}\end{turn}}
\end{picture}}}
\newcommand{\ESPDdrawColumnXXVI}{%
\ifESPD@column@xxvi@portrait%
\setlength{\ESPD@tmpdima}{\ESPDframeX+\ESPDframeW-14mm}%
\setlength{\ESPD@tmpdimb}{\ESPDframeY+\ESPDframeH}%
\put(\ESPDltu{\ESPD@tmpdima},\ESPDltu{\ESPD@tmpdimb}){%
\begin{turn}{270}\usebox{\ESPD@column@xxvi@box}\end{turn}}%
\else%
\setlength{\ESPD@tmpdima}{\ESPDframeY+\ESPDframeH-14mm}%
\put(\ESPDltu{\ESPDframeX},\ESPDltu{\ESPD@tmpdima}){%
\usebox{\ESPD@column@xxvi@box}}%
\fi}
\fi
\ifESPD@enable@columns@xxvii
\newsavebox{\ESPD@columns@xxvii@i@box}
\AtBeginDocument{%
\savebox{\ESPD@columns@xxvii@i@box}{%
\setlength{\unitlength}{1mm}%
\begin{picture}(0,0)(0,0)
\linethickness{\ESPDlineThick}
\put(14,7){\line(1,0){53}}
\put(0,0){\line(1,0){67}}
\put(14,0){\line(0,1){14}}
\put(67,0){\line(0,1){14}}
\put(0,13){\begin{turn}{180}\parbox[b][12mm][c]{14mm}{%
\centering\ESPDfontV\ESPDtheColumnXXVII}\end{turn}}
\put(14,11.7){\begin{turn}{180}\makebox[53mm][c]{%
\ESPDfontIII\ESPDtheColumnXXVIII}\end{turn}}
\put(14,4.7){\begin{turn}{180}\makebox[53mm][c]{%
\ESPDfontIII\ESPDtheColumnXXIX}\end{turn}}
\end{picture}}}
\newsavebox{\ESPD@columns@xxvii@ii@box}
\AtBeginDocument{%
\savebox{\ESPD@columns@xxvii@ii@box}{%
\setlength{\unitlength}{1mm}%
\begin{picture}(0,0)(0,0)
\linethickness{\ESPDlineThick}
\put(0,14){\line(1,0){120}}
\put(0,0){\line(0,1){14}}
\put(14,0){\line(0,1){14}}
\put(67,0){\line(0,1){14}}
\put(0,0){\parbox[b][14mm][c]{14mm}{%
\centering\ESPDfontIII\ESPDtheColumnXXVII}}
\put(15,0){\parbox[b][14mm][c]{51mm}{%
\centering\ESPDfontIII\ESPDtheColumnXXVIII}}
\put(68,0){\parbox[b][14mm][c]{51mm}{%
\centering\ESPDfontIII\ESPDtheColumnXXIX}}
\end{picture}}}
\newsavebox{\ESPD@column@xxx@box}
\AtBeginDocument{%
\savebox{\ESPD@column@xxx@box}{%
\setlength{\unitlength}{1mm}%
\begin{picture}(0,0)(0,0)
\linethickness{\ESPDlineThick}
\put(0,8){\line(1,0){120}}
\put(0,0){\line(0,1){8}}
\put(1,1){\parbox[b][6mm][c]{118mm}{\centering\ESPDfontV\ESPDtheColumnXXX}}
\end{picture}}}
\newcommand{\ESPDdrawColumnsXXVIIi}{%
\ifESPD@column@xxvi@portrait%
\setlength{\ESPD@tmpdima}{\ESPDframeX+\ESPDframeW-14mm}%
\setlength{\ESPD@tmpdimb}{\ESPDframeY+\ESPDframeH-70mm}%
\put(\ESPDltu{\ESPD@tmpdima},\ESPDltu{\ESPD@tmpdimb}){%
\begin{turn}{270}\usebox{\ESPD@columns@xxvii@i@box}\end{turn}}%
\else%
\setlength{\ESPD@tmpdima}{\ESPDframeX+70mm}%
\setlength{\ESPD@tmpdimb}{\ESPDframeY+\ESPDframeH-14mm}%
\put(\ESPDltu{\ESPD@tmpdima},\ESPDltu{\ESPD@tmpdimb}){%
\usebox{\ESPD@columns@xxvii@i@box}}%
\fi%
\setlength{\ESPD@tmpdima}{\ESPDstampX+65mm}%
\setlength{\ESPD@tmpdimb}{\ESPDstampY+55mm}%
\put(\ESPDltu{\ESPD@tmpdima},\ESPDltu{\ESPD@tmpdimb}){%
\usebox{\ESPD@column@xxx@box}}}%
\newcommand{\ESPDdrawColumnsXXVIIii}{%
\setlength{\ESPD@tmpdima}{\ESPDstampX+65mm}
\setlength{\ESPD@tmpdimb}{\ESPDstampY+48mm}
\put(\ESPDltu{\ESPD@tmpdima},\ESPDltu{\ESPD@tmpdimb}){%
\usebox{\ESPD@columns@xxvii@ii@box}}%
\setlength{\ESPD@tmpdimb}{\ESPDstampY+40mm}%
\put(\ESPDltu{\ESPD@tmpdima},\ESPDltu{\ESPD@tmpdimb}){%
\usebox{\ESPD@column@xxx@box}}}
\fi
\ifESPD@enable@column@xxxi
\newcommand{\ESPDdrawColumnXXXI}{%
\setlength{\ESPD@tmpdima}{\ESPDframeX+\ESPDframeW-120mm}%
\setlength{\ESPD@tmpdimb}{\ESPDframeY-3.7mm}%
\put(\ESPDltu{\ESPD@tmpdima},\ESPDltu{\ESPD@tmpdimb}){%
\makebox[70mm][r]{\ESPDfontIII\ESPDcolumnXXXIname\hspace{4em}}}}
\fi
\ifESPD@enable@column@xxxii
\newcommand{\ESPDdrawColumnXXXII}{%
\setlength{\ESPD@tmpdima}{\ESPDframeX+\ESPDframeW-50mm}%
\setlength{\ESPD@tmpdimb}{\ESPDframeY-3.7mm}%
\put(\ESPDltu{\ESPD@tmpdima},\ESPDltu{\ESPD@tmpdimb}){%
\makebox[50mm][r]{\ESPDfontIII\ESPDtheColumnXXXII}}}
\fi
\ifESPD@enable@column@xxxiii
\newsavebox{\ESPD@column@xxxiii@box}
\AtBeginDocument{%
\savebox{\ESPD@column@xxxiii@box}{%
\setlength{\unitlength}{1mm}%
\begin{picture}(0,0)(0,0)
\linethickness{\ESPDlineThick}
\put(0,25){\line(1,0){20}}
\put(0,5){\line(1,0){20}}
\put(0,0){\line(1,0){20}}
\put(0,0){\line(0,1){25}}
\linethickness{\ESPDlineThin}
\multiput(0,20)(0,-5){3}{\line(1,0){20}}
\put(0,1.3){\makebox[20mm][c]{\ESPDfontIII\ESPDcolumnXXXIIIname}}
\end{picture}}}
\newcommand{\ESPDdrawColumnXXXIII}{%
\setlength{\ESPD@tmpdima}{\ESPDstampX-20mm}%
\setlength{\ESPD@tmpdimb}{\ESPDstampY+30mm}%
\put(\ESPDltu{\ESPD@tmpdima},\ESPDltu{\ESPD@tmpdimb}){%
\usebox{\ESPD@column@xxxiii@box}}}
\fi
\ifESPD@enable@column@xxxiv
\newsavebox{\ESPD@column@xxxiv@box}
\AtBeginDocument{%
\savebox{\ESPD@column@xxxiv@box}{%
\setlength{\fboxrule}{\ESPDlineThick}%
\setlength{\fboxsep}{1.3mm}%
\parbox[b][100mm+\fboxrule][t]{70mm+\fboxrule}{%
\framebox{%
\parbox{70mm-2\fboxsep-\fboxrule}{\centering\ESPDfontIII%
\ESPDtheColumnXXXIV\rule{0mm}{7mm-2\fboxsep-\fboxrule}}}}}}
\newcommand{\ESPDdrawColumnXXXIV}{%
\ifESPD@column@xxvi@portrait%
\setlength{\ESPD@tmpdima}{%
\ESPDframeX+\ESPDframeW-114mm-.5\ESPDlineThick}%
\setlength{\ESPD@tmpdimb}{%
\ESPDframeY+\ESPDframeH+.5\ESPDlineThick}%
\put(\ESPDltu{\ESPD@tmpdima},\ESPDltu{\ESPD@tmpdimb}){%
\begin{turn}{270}\usebox{\ESPD@column@xxxiv@box}\end{turn}}%
\else%
\setlength{\ESPD@tmpdima}{\ESPDframeX-.5\ESPDlineThick}%
\setlength{\ESPD@tmpdimb}{%
\ESPDframeY+\ESPDframeH-114mm-.5\ESPDlineThick}%
\put(\ESPDltu{\ESPD@tmpdima},\ESPDltu{\ESPD@tmpdimb}){%
\usebox{\ESPD@column@xxxiv@box}}%
\fi}
\fi
\ifESPD@zonelabels
\newcommand{\ESPD@make@h@zonelabels}{
\ESPD@tmpcnta = 1
\ESPD@tmpdima = \paperwidth
\ESPD@tmpdimb = \ESPDframeY
\advance \ESPD@tmpdimb \ESPDframeH
\ESPD@tmpdimc = \ESPDframeY
\advance \ESPD@tmpdimc -5mm
\loop
\advance \ESPD@tmpdima -\ESPD@zonelabel@hs
\global\advance \ESPD@zonelabel@cnt 1
\put(\ESPDltu{\ESPD@tmpdima},\ESPDltu{\ESPD@tmpdimb}){%
\parbox[b][5mm][c]{\ESPD@zonelabel@hs}{%
\centering\ESPDfontIII\number\ESPD@zonelabel@cnt}}
\put(\ESPDltu{\ESPD@tmpdima},\ESPDltu{\ESPD@tmpdimc}){%
\parbox[b][5mm][c]{\ESPD@zonelabel@hs}{%
\centering\ESPDfontIII\number\ESPD@zonelabel@cnt}}
\ifnum \ESPD@tmpcnta < \ESPD@zonelabel@hc
\put(\ESPDltu{\ESPD@tmpdima},\ESPDltu{\ESPD@tmpdimb}){\line(0,1){5}}
\put(\ESPDltu{\ESPD@tmpdima},\ESPDltu{\ESPD@tmpdimc}){\line(0,1){5}}
\advance \ESPD@tmpcnta 1
\repeat
}
\newcommand{\ESPD@make@v@zonelabels}[1]{
\ESPD@tmpcnta = 1
\ESPD@tmpdima = 0mm
\ESPD@tmpdimb = \ESPDframeX
\advance \ESPD@tmpdimb -5mm
\ESPD@tmpdimc = \ESPDframeX
\advance \ESPD@tmpdimc \ESPDframeW
\loop
\put(\ESPDltu{\ESPD@tmpdimb},\ESPDltu{\ESPD@tmpdima}){%
\parbox[b][\ESPD@zonelabel@vs][c]{5mm}{%
\centering\ESPDfontIII\@Alph\ESPD@tmpcnta
\ifnum\ESPD@tmpcnta = 1
\ifESPD@enable@columns@xix
\par\rule{0mm}{3.5mm-\ESPD@zonelabel@vs+310mm}
\fi
\fi}}
\put(\ESPDltu{\ESPD@tmpdimc},\ESPDltu{\ESPD@tmpdima}){%
\parbox[b][\ESPD@zonelabel@vs][c]{5mm}{%
\centering\ESPDfontIII\@Alph\ESPD@tmpcnta}}
\ifnum \ESPD@tmpcnta < \ESPD@zonelabel@vc
\advance \ESPD@tmpdima \ESPD@zonelabel@vs
\ifnum \ESPD@tmpcnta = #1\else
\put(\ESPDltu{\ESPD@tmpdimb},\ESPDltu{\ESPD@tmpdima}){\line(1,0){5}}
\fi
\put(\ESPDltu{\ESPD@tmpdimc},\ESPDltu{\ESPD@tmpdima}){\line(1,0){5}}
\advance \ESPD@tmpcnta 1
\repeat
}
\newcommand{\ESPDdrawZoneLabelsI}{%
\linethickness{\ESPDlineThick}
\ESPD@make@h@zonelabels
\ifESPD@enable@columns@xxiv
\ifdim \ESPD@zonelabel@vs < 292mm
\ESPD@make@v@zonelabels{1}\else
\ESPD@make@v@zonelabels{0}\fi
\else
\ESPD@make@v@zonelabels{0}
\fi
\ifdim \ESPD@margin@si > 5mm
\ESPD@tmpdima = \ESPDframeY
\ESPD@tmpdimb = \ESPDframeX
\advance \ESPD@tmpdimb -5mm
\ifESPD@enable@columns@xix\else
\put(\ESPDltu{\ESPD@tmpdimb},\ESPDltu{\ESPD@tmpdima}){%
\line(0,1){145}}
\fi
\advance \ESPD@tmpdima 145mm
\put(\ESPDltu{\ESPD@tmpdimb},\ESPDltu{\ESPD@tmpdima}){%
\line(0,1){22}}
\advance \ESPD@tmpdima 22mm
\ifESPD@enable@columns@xxiv\else
\put(\ESPDltu{\ESPD@tmpdimb},\ESPDltu{\ESPD@tmpdima}){%
\line(0,1){120}}
\fi
\advance \ESPD@tmpdima 120mm
\ESPD@tmpdimc = \ESPDframeY
\advance \ESPD@tmpdimc \ESPDframeH
\advance \ESPD@tmpdimc -\ESPD@tmpdima
\put(\ESPDltu{\ESPD@tmpdimb},\ESPDltu{\ESPD@tmpdima}){%
\line(0,1){\ESPDltu{\ESPD@tmpdimc}}}
\advance \ESPD@tmpdima \ESPD@tmpdimc
\put(\ESPDltu{\ESPD@tmpdimb},\ESPDltu{\ESPD@tmpdima}){%
\line(1,0){5}}
\fi}
\newcommand{\ESPDdrawZoneLabelsII}{%
\linethickness{\ESPDlineThick}
\ESPD@make@h@zonelabels
\ESPD@make@v@zonelabels{0}
\ifdim \ESPD@margin@si > 5mm
\ESPD@tmpdima = \ESPDframeY
\ESPD@tmpdimb = \ESPDframeX
\advance \ESPD@tmpdimb -5mm
\ifESPD@enable@columns@xix\else
\put(\ESPDltu{\ESPD@tmpdimb},\ESPDltu{\ESPD@tmpdima}){%
\line(0,1){145}}
\fi
\advance \ESPD@tmpdima 145mm
\ESPD@tmpdimc = \ESPDframeY
\advance \ESPD@tmpdimc \ESPDframeH
\advance \ESPD@tmpdimc -\ESPD@tmpdima
\put(\ESPDltu{\ESPD@tmpdimb},\ESPDltu{\ESPD@tmpdima}){%
\line(0,1){\ESPDltu{\ESPD@tmpdimc}}}
\advance \ESPD@tmpdima \ESPD@tmpdimc
\put(\ESPDltu{\ESPD@tmpdimb},\ESPDltu{\ESPD@tmpdima}){%
\line(1,0){5}}
\fi}
\fi
\RequirePackage{espdhash}
\newcommand{\ESPDnewStyle}[2]{%
\ESPD@hash@new{@style@draw@#1}%
\@namedef{ESPD@style@sh@#1}{#2}}
\newcommand{\ESPDputOnStyle}[3]{%
\ESPD@hash@set{@style@draw@#1}{#2}{#3}}
\newcommand{\ESPDremoveFromStyle}[2]{%
\ESPD@hash@set{@style@draw@#1}{#2}{}}
\ESPDnewStyle{empty}{0mm}
\ESPDnewStyle{title}{0mm}
\ESPDputOnStyle{title}{frame}{\ESPDdrawFrame}
\ifESPD@enable@columns@xix
\ESPDputOnStyle{title}{columnsxix}{\ESPDdrawColumnsXIX}
\fi
\ESPDnewStyle{formI}{\ifESPD@enable@columns@xxvii 63mm\else 55mm\fi}
\ESPDputOnStyle{formI}{frame}{\ESPDdrawFrame}
\ESPDputOnStyle{formI}{stamp}{\ESPDdrawStampI}
\ifESPD@enable@columns@xix
\ESPDputOnStyle{formI}{columnsxix}{\ESPDdrawColumnsXIX}
\fi
\ifESPD@enable@columns@xxiv
\ESPDputOnStyle{formI}{columnsxxiv}{\ESPDdrawColumnsXXIV}
\fi
\ifESPD@enable@column@xxvi
\ESPDputOnStyle{formI}{columnxxvi}{\ESPDdrawColumnXXVI}
\fi
\ifESPD@enable@columns@xxvii
\ESPDputOnStyle{formI}{columnsxxvii}{\ESPDdrawColumnsXXVIIi}
\fi
\ifESPD@enable@column@xxxi
\ESPDputOnStyle{formI}{columnxxxi}{\ESPDdrawColumnXXXI}
\fi
\ifESPD@enable@column@xxxii
\ESPDputOnStyle{formI}{columnxxxii}{\ESPDdrawColumnXXXII}
\fi
\ifESPD@enable@column@xxxiii
\ESPDputOnStyle{formI}{columnxxxiii}{\ESPDdrawColumnXXXIII}
\fi
\ifESPD@enable@column@xxxiv
\ESPDputOnStyle{formI}{columnxxxiv}{\ESPDdrawColumnXXXIV}
\fi
\ifESPD@zonelabels%
\ESPDputOnStyle{formI}{zonelabels}{\ESPDdrawZoneLabelsI}
\fi
\ESPDnewStyle{formII}{\ifESPD@enable@columns@xxvii 62mm\else 40mm\fi}
\ESPDputOnStyle{formII}{frame}{\ESPDdrawFrame}
\ESPDputOnStyle{formII}{stamp}{\ESPDdrawStampII}
\ifESPD@enable@columns@xix
\ESPDputOnStyle{formII}{columnsxix}{\ESPDdrawColumnsXIX}
\fi
\ifESPD@enable@columns@xxiv
\ESPDputOnStyle{formII}{columnsxxiv}{\ESPDdrawColumnsXXIV}
\fi
\ifESPD@enable@columns@xxvii
\ESPDputOnStyle{formII}{columnsxxvii}{\ESPDdrawColumnsXXVIIii}
\fi
\ifESPD@enable@column@xxxi
\ESPDputOnStyle{formII}{columnxxxi}{\ESPDdrawColumnXXXI}
\fi
\ifESPD@enable@column@xxxii
\ESPDputOnStyle{formII}{columnxxxii}{\ESPDdrawColumnXXXII}
\fi
\ESPDnewStyle{formIIab}{15mm}
\ESPDputOnStyle{formIIab}{frame}{\ESPDdrawFrame}
\ESPDputOnStyle{formIIab}{stamp}{%
\ifESPD@twoside%
\ifodd\c@page\ESPDdrawStampIIa\else\ESPDdrawStampIIb\fi%
\else\ESPDdrawStampIIa\fi}
\ifESPD@enable@columns@xix
\ESPDputOnStyle{formIIab}{columnsxix}{%
\ifESPD@twoside\ifodd\c@page\ESPDdrawColumnsXIX\fi%
\else\ESPDdrawColumnsXIX\fi}
\fi
\ifESPD@enable@column@xxxi
\ESPDputOnStyle{formIIab}{columnxxxi}{\ESPDdrawColumnXXXI}
\fi
\ifESPD@enable@column@xxxii
\ESPDputOnStyle{formIIab}{columnxxxii}{\ESPDdrawColumnXXXII}
\fi
\ifESPD@zonelabels
\ESPDputOnStyle{formIIab}{zonelabels}{\ESPDdrawZoneLabelsII}
\fi
\ESPDnewStyle{espdtitle}{0mm}
\ifESPD@enable@columns@xix
\ESPDputOnStyle{espdtitle}{columnsxix}{\ESPDdrawColumnsXIX}
\fi
\newlength{\ESPD@curpad@h}
\newlength{\ESPD@curpad@v}
\setlength{\ESPD@curpad@h}{\ESPD@padding@h}
\setlength{\ESPD@curpad@v}{\ESPD@padding@v}
\RequirePackage{everyshi}
\def\ESPD@curstyle{}
\def\ESPD@thisstyle{}
\def\ESPD@extra@Hook{}
\def\ESPD@extra@ThisHook{}
\newcommand{\ESPD@ShipoutPicture}{%
\bgroup
\ifESPD@twoside
\ifodd\c@page
\ESPDframeX=\ESPD@margin@si
\else
\ESPDframeX=\ESPD@margin@so
\fi
\else
\ESPDframeX=\ESPD@margin@si
\fi
\ESPDframeY=\ESPD@margin@b
\ESPDstampX=\ESPDframeX
\advance\ESPDstampX \ESPDframeW
\advance\ESPDstampX -185mm
\ESPDstampY=\ESPDframeY
\unitlength=1mm
\global\setbox\@cclv\vbox{%
\vbox{\let\protect\relax
\begin{picture}(0,0)(\ESPDltu{\ESPD@origin@x},\ESPDltu{\ESPD@origin@y})%
\ifx\ESPD@thisstyle\@empty
\let\ESPD@thisstyle\ESPD@curstyle
\fi
\loop
\ifnum \ESPD@hash@pos{@style@draw@\ESPD@thisstyle} %
< \ESPD@hash@count{@style@draw@\ESPD@thisstyle}
\ESPD@hash@next@value{@style@draw@\ESPD@thisstyle}\relax
\repeat
\ifx\ESPD@extra@ThisHook\@empty%
\ESPD@extra@Hook\else\ESPD@extra@ThisHook%
\fi%
\global\let\ESPD@thisstyle\@empty%
\global\let\ESPD@extra@ThisHook\@empty%
\end{picture}}%
\nointerlineskip%
\box\@cclv}%
\egroup
}
\EveryShipout{\ESPD@ShipoutPicture}
\RequirePackage{chngpage}
\RequirePackage{ifpdf}
% \ESPD@tmpdima --- width
% \ESPD@tmpdimb --- height
\newcommand{\ESPDstyle}[1]{%
\pagestyle{empty}%
\def\ESPD@curstyle{#1}%
\ifpdf%
\setlength{\ESPD@tmpdimb}{\pdfpageheight}%
\setlength{\ESPD@tmpdima}{\pdfpagewidth}%
\else%
\setlength{\ESPD@tmpdima}{\paperwidth}%
\setlength{\ESPD@tmpdimb}{\paperheight}%
\fi%
\changetext{\ESPD@tmpdimb-\ESPD@margin@t-\ESPD@margin@b-2\ESPD@curpad@v%
\expandafter-\@nameuse{ESPD@style@sh@\ifESPD@ignstamp empty\else #1\fi}-\textheight}%
{\ESPD@tmpdima-\ESPD@margin@si-\ESPD@margin@so-2\ESPD@padding@h-\textwidth}{}{}{}%
\let\ESPD@thisstyle\@empty}
\newcommand{\ESPDthisStyle}[1]{%
\thispagestyle{empty}%
\def\ESPD@thisstyle{#1}%
\ifpdf%
\setlength{\ESPD@tmpdimb}{\pdfpageheight}%
\else%
\setlength{\ESPD@tmpdimb}{\paperheight}%
\fi%
\setlength{\vsize}{\ESPD@tmpdimb-\ESPD@margin@t-\ESPD@margin@b-2\ESPD@curpad@v%
\expandafter-\@nameuse{ESPD@style@sh@\ifESPD@ignstamp empty\else #1\fi}}%
\setlength{\@colht}{\vsize}\setlength{\@colroom}{\vsize}}
\newcommand{\ESPDput}[1]{\def\ESPD@extra@Hook{#1}}
\newcommand{\ESPDthisPut}[1]{\def\ESPD@extra@ThisHook{#1}}
\newcommand{\ESPDclearDoublePage}{%
\ifESPD@twoside%
\clearpage%
\ifodd\c@page\else\ESPDthisStyle{empty}\rule{0mm}{0mm}\newpage\fi%
\else\clearpage\fi}
\ESPDstyle{\ESPD@default@style@other}
\AtBeginDocument{%
\ifx\ESPD@default@style@first\ESPD@default@style@other\else
\ESPDthisStyle{\ESPD@default@style@first}%
\fi}
\newcommand{\ESPDdefaultTitleStyle}[1]{%
\renewcommand{\ESPD@default@style@title}{#1}}
\newcommand{\ESPDdefaultFirstStyle}[1]{%
\renewcommand{\ESPD@default@style@first}{#1}}
\newcommand{\ESPDdefaultStyle}[1]{%
\renewcommand{\ESPD@default@style@other}{#1}%
\ESPDstyle{#1}}
\newcommand{\ESPDsetPadding}[2]{%
\changepage{%
2\ESPD@curpad@v-#2-#2}{%
2\ESPD@curpad@h-#1-#1}{%
#1-\ESPD@curpad@h}{%
#1-\ESPD@curpad@h}{}{%
#2-\ESPD@curpad@v}{}{}{}
\setlength{\ESPD@curpad@h}{#1}
\setlength{\ESPD@curpad@v}{#2}
\edef\ESPD@tmpcmda{\ESPD@thisstyle}
\ifx\ESPD@tmpcmda\@empty\else
\ESPDthisStyle{\ESPD@tmpcmda}
\fi}
\newenvironment{ESPDpadding}[2]{%
\newpage\ESPDsetPadding{#1}{#2}}{%
\clearpage\ESPDsetPadding{\ESPD@padding@h}{\ESPD@padding@v}}
\newenvironment{ESPDzeroPadding}{%
\begin{ESPDpadding}{0mm}{0mm}}{\end{ESPDpadding}}
\RequirePackage{espdinfo}
\newcommand{\ESPDtheColumnI}{\ESPDtheTitle\par\ESPDtheDocName}
\newcommand{\ESPDcolumnI}[1]{\renewcommand{\ESPDtheColumnI}{#1}}
\newcommand{\ESPDtheColumnII}{\ESPDtheSignature}
\newcommand{\ESPDcolumnII}[1]{\renewcommand{\ESPDtheColumnII}{#1}}
\newcommand{\ESPDtheColumnIII}{\ESPDtheMaterial}
\newcommand{\ESPDcolumnIII}[1]{\renewcommand{\ESPDtheColumnIII}{#1}}
\newcommand{\ESPDtheColumnIVfI}{\ESPDtheLetterI}
\newcommand{\ESPDcolumnIVfI}[1]{\renewcommand{\ESPDtheColumnIVfI}{#1}}
\newcommand{\ESPDtheColumnIVfII}{\ESPDtheLetterII}
\newcommand{\ESPDcolumnIVfII}[1]{\renewcommand{\ESPDtheColumnIVfII}{#1}}
\newcommand{\ESPDtheColumnIVfIII}{\ESPDtheLetterIII}
\newcommand{\ESPDcolumnIVfIII}[1]{\renewcommand{\ESPDtheColumnIVfIII}{#1}}
\newcommand{\ESPDtheColumnV}{\ESPDtheMass}
\newcommand{\ESPDcolumnV}[1]{\renewcommand{\ESPDtheColumnV}{#1}}
\newcommand{\ESPDtheColumnVI}{\ESPDtheScale}
\newcommand{\ESPDcolumnVI}[1]{\renewcommand{\ESPDtheColumnVI}{#1}}
\newcommand{\ESPDtheColumnIX}{\ESPDtheGroup}
\newcommand{\ESPDcolumnIX}[1]{\renewcommand{\ESPDtheColumnIX}{#1}}
\newcommand{\ESPDtheColumnXIfI}{\ESPDtheAuthor}
\newcommand{\ESPDcolumnXIfI}[1]{\renewcommand{\ESPDtheColumnXIfI}{#1}}
\newcommand{\ESPDtheColumnXIfII}{\ESPDtheChecker}
\newcommand{\ESPDcolumnXIfII}[1]{\renewcommand{\ESPDtheColumnXIfII}{#1}}
\newcommand{\ESPDtheColumnXIfIII}{}
\newcommand{\ESPDcolumnXIfIII}[1]{\renewcommand{\ESPDtheColumnXIfIII}{#1}}
\newcommand{\ESPDtheColumnXIfIV}{}
\newcommand{\ESPDcolumnXIfIV}[1]{\renewcommand{\ESPDtheColumnXIfIV}{#1}}
\newcommand{\ESPDtheColumnXIfV}{\ESPDtheNormContr}
\newcommand{\ESPDcolumnXIfV}[1]{\renewcommand{\ESPDtheColumnXIfV}{#1}}
\newcommand{\ESPDtheColumnXIfVI}{\ESPDtheApprovedBy}
\newcommand{\ESPDcolumnXIfVI}[1]{\renewcommand{\ESPDtheColumnXIfVI}{#1}}
\newcommand{\ESPDtheColumnXIX}{}
\newcommand{\ESPDcolumnXIX}[1]{\renewcommand{\ESPDtheColumnXIX}{#1}}
\newcommand{\ESPDtheColumnXXI}{}
\newcommand{\ESPDcolumnXXI}[1]{\renewcommand{\ESPDtheColumnXXI}{#1}}
\newcommand{\ESPDtheColumnXXII}{}
\newcommand{\ESPDcolumnXXII}[1]{\renewcommand{\ESPDtheColumnXXII}{#1}}
\newcommand{\ESPDtheColumnXXIV}{}
\newcommand{\ESPDcolumnXXIV}[1]{\renewcommand{\ESPDtheColumnXXIV}{#1}}
\newcommand{\ESPDtheColumnXXV}{}
\newcommand{\ESPDcolumnXXV}[1]{\renewcommand{\ESPDtheColumnXXV}{#1}}
\newcommand{\ESPDtheColumnXXVII}{}
\newcommand{\ESPDcolumnXXVII}[1]{\renewcommand{\ESPDtheColumnXXVII}{#1}}
\newcommand{\ESPDtheColumnXXVIII}{}
\newcommand{\ESPDcolumnXXVIII}[1]{\renewcommand{\ESPDtheColumnXXVIII}{#1}}
\newcommand{\ESPDtheColumnXXIX}{}
\newcommand{\ESPDcolumnXXIX}[1]{\renewcommand{\ESPDtheColumnXXIX}{#1}}
\newcommand{\ESPDtheColumnXXX}{}
\newcommand{\ESPDcolumnXXX}[1]{\renewcommand{\ESPDtheColumnXXX}{#1}}
\newcommand{\ESPDtheColumnXXXII}{\@nameuse{ESPD\ESPD@paper FormatName}}
\newcommand{\ESPDcolumnXXXII}[1]{\renewcommand{\ESPDtheColumnXXXII}{#1}}
\newcommand{\ESPDtheColumnXXXIV}{}
\newcommand{\ESPDcolumnXXXIV}[1]{\renewcommand{\ESPDtheColumnXXXIV}{#1}}