5 % 9^3 0 1 2 9 pagex @ 9 x 9 x 3 = 243
10 % veert' K } M-C-K grid
12 % 5^3 3 4 1 page @ 5 x 5 x 5 x 2 = 250
13 % 5^3 6 8 1 page @ 5 x 5 x 5 x 2 = 250
18 % horiz M } M-C-K grid
19 % vert' C } M-C-K grid
21 % 16^3 x 0 .. 3 1 Y per page
22 % 8^3 x 4 .. 7 4 Y per page 8 = 0 2 4 6 8 10 12 15
30 /printareax paperx margin 2 mul sub def
31 /printareay papery margin 2 mul sub def
36 /szox printareax textx sub def
37 /szoy printareay texty sub def
39 % o = outer, i = inner, f = final
52 /digits [ (0) (1) (2) (3) (4) (5) (6) (7) (8) (9)
53 (a) (b) (c) (d) (e) (f) ] def
55 /Helvetica findfont texty scalefont setfont
65 blacky neg kmy add stridiy mul
75 /stridox gridox gn div def
76 /stridoy gridoy gn div def
78 /szix stridox margox sub def
79 /sziy stridoy margoy sub def
81 /stridix szix knx div def
82 /stridiy sziy kny div def
84 /szfx stridix margix sub def
85 /szfy stridiy margiy sub def
87 0 1 gm { /magenta exch def
88 0 1 gm { /cyan exch def
94 cyan neg gm add stridoy mul translate
98 0 1 kmx { /blackx exch def
99 0 1 kmy { /blacky exch def
111 szfx 0 rlineto stroke
124 text_l_p text_u_p and {
129 0 stridoy neg translate
131 0 1 kmx { /blackx exch def
132 0 1 kmy { /blacky exch def
133 kentry_moveto exch 0.65 mul exch moveto
134 klist_get digits exch get
145 0 0 moveto (Y) show ytext show
147 1 1 gm { /magenta exch def
148 gm stridox mul 0 moveto
161 0 1 gm { /yellow exch def
163 /ytext digits yellow get def
173 margin margin translate
191 /klist [ 0 1 2 3 ] def
192 /ylist [ 0 1 2 3 5 8 11 15 ] def
206 /gridox szox 2 div margbx sub def
207 /gridoy szoy 2 div margby sub def
209 0 1 1 { /yellowpage exch def
210 0 1 1 { /yellowx exch def
211 0 1 1 { /yellowy exch def
215 yellowy neg 1 add 2 mul add
219 yellowx gridox margbx add mul
220 yellowy gridoy margby add mul
223 /yellow ylist yellowix get def
225 /text_l_p yellowx 0 le def
226 /text_u_p yellowy 1 ge def
238 /klist [ 4 5 6 7 ] def ranges2
239 /klist [ 8 10 13 15 ] def ranges2