1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
|
% 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.
%
% ðÁËÅÔ ÐÒÅÄÏÓÔÁ×ÌÑÅÔ ×ÏÚÍÏÖÎÏÓÔØ ×ÓÔÁ×ËÉ ÌÉÓÔÁ
% ÐÏÞÔÉ ÌÀÂÏÇÏ ÒÁÚÍÅÒÁ (ÏÇÒÁÎÉÞÅÎÉÑ ÏÐÉÓÁÎÙ × ÒÕËÏ×ÏÄÓÔ×Å
% ÐÏÌØÚÏ×ÁÔÅÌÑ eskdx):
m4_ESKDX_INIT
m4_FILE_INIT
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{eskdfreesize}[m4_dnl
m4_FILE_ID([[$Date:: 2010-02-20#$]]) Inserting Free Size Sheets]
\RequirePackage{eskdstamp}
% ÐÅÒÅËÌÀÞÅÎÉÅ ÒÁÚÍÅÒÁ ×ÏÚÍÏÖÎÏ ÔÏÌØËÏ × pdflatex.
% TÅÍ ÎÅ ÍÅÎÅÅ, latex ÔÏÖÅ ÓÍÏÖÅÔ ÓÏÂÒÁÔØ ÔÁËÏÊ ÄÏËÕÍÅÎÔ,
% ÎÏ ×ÓÅ ÂÏÌØÛÉÅ ÓÔÒÁÎÉÃÙ
% ÏÂÒÅÖÅÔ ÐÏ ÒÁÚÍÅÒÁÍ ÆÏÒÍÁÔÁ, ÕÓÔÁÎÏ×ÌÅÎÎÏÇÏ × documentclass
\RequirePackage{ifpdf}
\ifpdf{}
\else{\PackageWarningNoLine{eskdfreesize}
{It's better to compile this document with pdflatex.\MessageBreak
In DVI you will get only part of the inserted big sheet}}
\fi
% × eskdstamp ÄÌÑ ÕÓËÏÒÅÎÉÑ ÏÔÒÉÓÏ×ËÉ ÒÁÍËÉ ÐÒÉÍÅÎÅÎ \savebox
% × ÎÁÛÅÍ ÓÌÕÞÁÅ ÜÔÏ ÎÅÕÄÏÂÎÏ, ÂÕÄÅÍ ÒÉÓÏ×ÁÔØ ÐÅÒÓÏÎÁÌØÎÏ
% ÎÁ ËÁÖÄÏÊ ÓÔÒÁÎÉÃÅ
\newcommand{\ESKDdrawFrameFree}{%
\put(\ESKDltu{\ESKDframeX},\ESKDltu{\ESKDframeY}){%
\setlength{\unitlength}{1mm}%
\begin{picture}(0,0)(0,0)
\linethickness{\ESKDlineThick}
\put(0,\ESKDltu{\ESKDframeH}){\line(1,0){\ESKDltu{\ESKDframeW}}}
\put(0,0){\line(1,0){\ESKDltu{\ESKDframeW}}}
\put(0,0){\line(0,1){\ESKDltu{\ESKDframeH}}}
\put(\ESKDltu{\ESKDframeW},0){\line(0,1){\ESKDltu{\ESKDframeH}}}
\end{picture}}}
% ÓÏÄÅÒÖÉÍÏÅ ÎÅÓÔÁÎÄÁÒÔÎÏÊ ÇÒÁÆÙ 32 ÐÏ ÕÍÏÌÞÁÎÉÀ
\newcommand\ESKDtheColumnXXXIIfree{\@nameuse{ESKDemptyFormatName}}
% ÏÐÒÅÄÅÌÉÍ ÎÁÛÕ ÓÏÂÓÔ×ÅÎÎÕÀ ÎÅÓÔÁÎÄÁÒÔÎÕÀ ÇÒÁÆÕ 32
\newcommand{\ESKDdrawColumnXXXIIfree}{%
\setlength{\ESKD@tmpdima}{\ESKDframeX+\ESKDframeW-50mm}%
\setlength{\ESKD@tmpdimb}{\ESKDframeY-3.7mm}%
\put(\ESKDltu{\ESKD@tmpdima},\ESKDltu{\ESKD@tmpdimb}){%
\makebox[50mm][r]{\ESKDfontIII\ESKDtheColumnXXXIIfree}}}
% ïÐÒÅÄÅÌÉÍ ÎÏ×ÙÊ ÓÔÉÌØ. ðÏÄÒÏÂÎÅÅ ÐÒÏ ÏÐÒÅÄÅÌÅÎÉÅ Ó×ÏÉÈ ÓÔÉÌÅÊ
% ÍÏÖÎÏ ÐÒÏÞÉÔÁÔØ × ÒÕËÏ×ÏÄÓÔ×Å ÐÏÌØÚÏ×ÁÔÅÌÑ eskdx,
% ÉÌÉ ÚÁÇÌÑÎÕÔØ × eskdstamp.sty,
% ËÕÓÏË ÏÔÔÕÄÁ ÂÙÌ ÉÓÐÏÌØÚÏ×ÁÎ ËÁË ÏÓÎÏ×Á ÄÌÑ ÓÔÉÌÑ freesize
\ESKDnewStyle{freesize}{8mm}
\ESKDputOnStyle{freesize}{frame}{\ESKDdrawFrameFree}
\ESKDputOnStyle{freesize}{stamp}{\ESKDdrawStampIIa}
\ifESKD@enable@columns@xix
\ESKDputOnStyle{freesize}{columnsxix}{\ESKDdrawColumnsXIX}
\fi
\ifESKD@enable@column@xxvi
\ESKDputOnStyle{freesize}{columnxxvi}{\ESKDdrawColumnXXVI}
\fi
\ifESKD@enable@columns@xxvii
\ESKDputOnStyle{freesize}{columnsxxvii}{\ESKDdrawColumnsXXVIIi}
\fi
\ifESKD@enable@column@xxxi
\ESKDputOnStyle{freesize}{columnxxxi}{\ESKDdrawColumnXXXI}
\fi
\ifESKD@enable@column@xxxii
% ÎÁÛÁ ÎÏ×ÁÑ ÇÒÁÆÁ 32
\ESKDputOnStyle{freesize}{columnxxxii}{\ESKDdrawColumnXXXIIfree}
\fi
\ifESKD@enable@column@xxxiii
\ESKDputOnStyle{freesize}{columnxxxiii}{\ESKDdrawColumnXXXIII}
\fi
\ifESKD@enable@column@xxxiv
\ESKDputOnStyle{freesize}{columnxxxiv}{\ESKDdrawColumnXXXIV}
\fi
\ifESKD@zonelabels%
\ESKDputOnStyle{freesize}{zonelabels}{\ESKDdrawZoneLabelsI}
\fi
% ×ÓÐÏÍÏÇÁÔÅÌØÎÙÅ ÓÞÅÔÞÉËÉ ÄÌÑ ÚÁÐÉÓÅÊ × ÌÏÇ
\newcounter{ESKD@free@sizepagebegin}
\newcounter{ESKD@free@sizepageend}
% ÔÅÐÅÒØ ÓÁÍÏÅ ÓÌÏÖÎÏÅ - ÓÁÍ ÐÅÒÅËÌÀÞÁÔÅÌØ
\newcommand{\ESKDfreeSize}[3]{%
\ESKDclearDoublePage%
\setcounter{ESKD@free@sizepagebegin}{\value{page}}% ÚÁÐÏÍÎÉÍ ÔÅËÕÝÕÀ ÓÔÒÁÎÉÃÕ
\pdfpagewidth=#1%
\pdfpageheight=#2%
\setlength{\ESKD@origin@y}{#2-1in}%
\setlength{\ESKDframeW}{\pdfpagewidth-\ESKD@margin@si-\ESKD@margin@so}%
\setlength{\ESKDframeH}{\pdfpageheight-\ESKD@margin@t-\ESKD@margin@b}%
\ESKDstyle{freesize}%
\expandafter{#3}%
% ÚÁÆÉËÓÉÒÕÅÍ ÆÁËÔ ×ÓÔÁ×ËÉ ÌÉÓÔÁ × \jobname.log
\ESKDclearDoublePage%
\renewcommand\ESKDtheColumnXXXIIfree{\@nameuse{ESKDemptyFormatName}}% ÓÂÒÏÓ ÇÒÁÆÙ 32
\setcounter{ESKD@free@sizepageend}{\value{page}}%
\addtocounter{ESKD@free@sizepageend}{-1}%
\ifthenelse{\value{ESKD@free@sizepagebegin}<\value{ESKD@free@sizepageend}}% ÌÁÔÅÈ ÎÁÞÁÌ ÎÏ×ÕÀ ÓÔÒÁÎÉÃÕ
{\immediate\write0{eskdfreesize: sheet(s) with size (#1 x #2) inserted
at page(s) \noexpand[\arabic{ESKD@free@sizepagebegin}%
-\arabic{ESKD@free@sizepageend}\noexpand]}}
{\immediate\write0{eskdfreesize: sheet(s) with size (#1 x #2) inserted
at page(s) \noexpand[\arabic{ESKD@free@sizepageend}\noexpand]}}
% ÔÅÐÅÒØ ×ÅÒÎÅÍ ×Ó£ ËÁË ÂÙÌÏ ÄÏ ÎÁÓ
\setlength{\ESKD@origin@y}{\paperheight-1in}%
\pdfpageheight=\paperheight%
\pdfpagewidth=\paperwidth%
\setlength{\ESKDframeW}{\paperwidth-\ESKD@margin@si-\ESKD@margin@so}%
\setlength{\ESKDframeH}{\paperheight-\ESKD@margin@t-\ESKD@margin@b}%
\ESKDstyle{\ESKD@default@style@other}%
\newpage%
}
% ïÐÒÅÄÅÌÉÍ ÎÅÓËÏÌØËÏ ÇÏÔÏ×ÙÈ Ë ÕÐÏÔÒÅÂÌÅÎÉÀ ÆÏÒÍÁÔÏ×
\newcommand{\ESKDlandscapeAIII}[1]{%
\renewcommand\ESKDtheColumnXXXIIfree{\@nameuse{ESKDa3FormatName}}%
\ESKDfreeSize{420mm}{297mm}{#1}}
\newcommand{\ESKDportraitAIII}[1]{%
\renewcommand\ESKDtheColumnXXXIIfree{\@nameuse{ESKDa3FormatName}}%
\ESKDfreeSize{297mm}{420mm}{#1}}
\newcommand{\ESKDlandscapeAII}[1]{%
\renewcommand\ESKDtheColumnXXXIIfree{\@nameuse{ESKDa2FormatName}}%
\ESKDfreeSize{594mm}{420mm}{#1}}
\newcommand{\ESKDportraitAII}[1]{%
\renewcommand\ESKDtheColumnXXXIIfree{\@nameuse{ESKDa2FormatName}}%
\ESKDfreeSize{420mm}{594mm}{#1}}
\newcommand{\ESKDlandscapeAI}[1]{%
\renewcommand\ESKDtheColumnXXXIIfree{\@nameuse{ESKDa1FormatName}}%
\ESKDfreeSize{841mm}{594mm}{#1}}
\newcommand{\ESKDportraitAI}[1]{%
\renewcommand\ESKDtheColumnXXXIIfree{\@nameuse{ESKDa1FormatName}}%
\ESKDfreeSize{594mm}{841mm}{#1}}
\newcommand{\ESKDlandscapeAZERO}[1]{%
\renewcommand\ESKDtheColumnXXXIIfree{\@nameuse{ESKDa0FormatName}}%
\ESKDfreeSize{1189mm}{841mm}{#1}}
\newcommand{\ESKDportraitAZERO}[1]{%
\renewcommand\ESKDtheColumnXXXIIfree{\@nameuse{ESKDa0FormatName}}%
\ESKDfreeSize{841mm}{1189mm}{#1}}
\newcommand{\ESKDlandscapeBanner}[1]{%
% ðÑÔÉÍÅÔÒÏ×ÏÅ ÐÏÌÏÔÎÏ ÄÌÑ ÐÏÄÛÉ×ËÉ ÇÁÒÍÏÛËÏÊ × ÏÂÙÞÎÕÀ ÐÁÐËÕ á4.
% ðÒÏÓÔÏ ÄÌÑ ÄÅÍÏÎÓÔÒÁÃÉÉ
\ESKDfreeSize{5000mm}{297mm}{#1}}
|