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
5 % 4^3 x 8 10 13 15 16 Y,C per page 4 = 0 5 10 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
40 /stridox gridox n div def
41 /stridoy gridoy n div def
43 /szix stridox margox sub def
44 /sziy stridoy margoy sub def
46 /stridix szix knx div def
47 /stridiy sziy kny div def
49 /szfx stridix margix sub def
50 /szfy stridiy margiy sub def
52 margin margin translate
55 0 1 m { /magenta exch def
56 0 1 m { /cyan exch def
61 cyan neg m add stridoy mul translate
65 0 1 kmx { /blackx exch def
66 0 1 kmy { /blacky exch def
80 blacky neg kmy add stridiy mul
98 0 1 m { /yellow exch def
102 /Helvetica findfont 18 scalefont setfont
105 yellow (___) cvs show
117 /klist [ 0 1 2 3 4 5 ] def
125 /klist [ 6 7 9 11 13 15 ] def
126 /ylist [ 0 2 5 7 8 10 12 15 ] def
128 /gridox szox 2 div margbx sub def
129 /gridoy szoy 2 div margby sub def
131 0 1 1 { /yellowpage exch def
132 0 1 1 { /yellowx exch def
133 0 1 1 { /yellowy exch def
137 yellowy neg 1 add 2 mul add
141 yellowx gridox margbx add mul
142 yellowy gridoy margby add mul
145 /yellow ylist yellowix get def
151 /yellowix yellowix 1 add def