3 % 16^3 x 0 .. 3 1 Y per page
4 % 8^3 x 4 .. 7 4 Y per page 8 = 0 2 4 6 8 10 12 15
12 /printareax paperx margin 2 mul sub def
13 /printareay papery margin 2 mul sub def
18 /szox printareax textx sub def
19 /szoy printareay texty sub def
21 % o = outer, i = inner, f = final
34 /digits [ (0) (1) (2) (3) (4) (5) (6) (7) (8) (9)
35 (a) (b) (c) (d) (e) (f) ] def
45 blacky neg kmy add stridiy mul
55 /stridox gridox gn div def
56 /stridoy gridoy gn div def
58 /szix stridox margox sub def
59 /sziy stridoy margoy sub def
61 /stridix szix knx div def
62 /stridiy sziy kny div def
64 /szfx stridix margix sub def
65 /szfy stridiy margiy sub def
67 0 1 gm { /magenta exch def
68 0 1 gm { /cyan exch def
74 cyan neg gm add stridoy mul translate
78 0 1 kmx { /blackx exch def
79 0 1 kmy { /blacky exch def
105 0 1 gm { /yellow exch def
109 /Helvetica findfont 18 scalefont setfont
112 yellow (___) cvs show
120 margin margin translate
126 /Helvetica findfont texty scalefont setfont
129 0 printareay texty sub translate
134 0 stridoy neg translate
136 0 1 kmx { /blackx exch def
137 0 1 kmy { /blacky exch def
138 kentry_moveto exch 0.65 mul exch moveto
139 klist_get digits exch get
157 /klist [ 0 1 2 3 ] def
158 /ylist [ 0 1 2 3 5 8 11 15 ] def
169 /gridox szox 2 div margbx sub def
170 /gridoy szoy 2 div margby sub def
172 0 1 1 { /yellowpage exch def
173 0 1 1 { /yellowx exch def
174 0 1 1 { /yellowy exch def
178 yellowy neg 1 add 2 mul add
182 yellowx gridox margbx add mul
183 yellowy gridoy margby add mul
186 /yellow ylist yellowix get def
198 /klist [ 4 5 6 7 ] def ranges2
199 /klist [ 8 10 13 15 ] def ranges2