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
37 /Helvetica findfont texty scalefont setfont
47 blacky neg kmy add stridiy mul
57 /stridox gridox gn div def
58 /stridoy gridoy gn div def
60 /szix stridox margox sub def
61 /sziy stridoy margoy sub def
63 /stridix szix knx div def
64 /stridiy sziy kny div def
66 /szfx stridix margix sub def
67 /szfy stridiy margiy sub def
69 0 1 gm { /magenta exch def
70 0 1 gm { /cyan exch def
76 cyan neg gm add stridoy mul translate
80 0 1 kmx { /blackx exch def
81 0 1 kmy { /blacky exch def
106 text_l_p text_u_p and {
111 0 stridoy neg translate
113 0 1 kmx { /blackx exch def
114 0 1 kmy { /blacky exch def
115 kentry_moveto exch 0.65 mul exch moveto
116 klist_get digits exch get
127 0 0 moveto (Y) show ytext show
129 1 1 gm { /magenta exch def
130 gm stridox mul 0 moveto
143 0 1 gm { /yellow exch def
145 /ytext digits yellow get def
155 margin margin translate
173 /klist [ 0 1 2 3 ] def
174 /ylist [ 0 1 2 3 5 8 11 15 ] def
188 /gridox szox 2 div margbx sub def
189 /gridoy szoy 2 div margby sub def
191 0 1 1 { /yellowpage exch def
192 0 1 1 { /yellowx exch def
193 0 1 1 { /yellowy exch def
197 yellowy neg 1 add 2 mul add
201 yellowx gridox margbx add mul
202 yellowy gridoy margby add mul
205 /yellow ylist yellowix get def
207 /text_l_p yellowx 0 le def
208 /text_u_p yellowy 1 ge def
220 /klist [ 4 5 6 7 ] def ranges2
221 /klist [ 8 10 13 15 ] def ranges2