/
notes-junior-daily-r.ps
127 lines (109 loc) · 2.24 KB
/
notes-junior-daily-r.ps
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
%!PS-Adobe-3.0
%%Title: Cornellish Notes Recto - Junior
%%Author: Dr. Drang (drdrang at gmail)
%%DocumentFonts: Helvetica
%%DocumentNeededFonts: Helvetica
%%EndComments
%%BeginSetup
% basic dimensions
/inch {72 mul} def % conversion to points
/swidth 8.5 inch def % letter-sized sheet width
/slength 11 inch def % letter-sized sheet length
% size of printed area
/width 4.75 inch def
/length 7.75 inch def
% dimensions of gridded area
/gwidth 3.5 inch def
/glength 7.25 inch def
/gspace .25 inch def
% dimensions of cue area
/cwidth width gwidth sub def
/clength glength def
% dimensions of title block
/hwidth width def
/hlength .375 inch def
/hpage hwidth .5 inch sub def
/hdate hpage 1 inch sub def
% font for title block
/tfont /Helvetica findfont 16 scalefont def
% draw the notes
% stack: llx lly
/notes {
/lly exch def
/llx exch def
% draw cue area
.5 setlinewidth
0 setgray
newpath
llx lly moveto
cwidth 0 rlineto
0 clength rlineto
cwidth neg 0 rlineto
closepath
stroke
% draw grid horizontals
.25 setlinewidth
0 setgray
[1 2] .5 setdash
lly gspace lly glength add {
newpath
llx cwidth add exch moveto
gwidth 0 rlineto
stroke
} for
% draw grid verticals
0.25 setlinewidth
0 setgray
[.5 5.5] 3.25 setdash
llx cwidth add gspace llx cwidth add gwidth add {
newpath
lly moveto
0 glength rlineto
stroke
} for
[] 0 setdash
% draw grid box
.5 setlinewidth
0 setgray
newpath
llx cwidth add lly moveto
gwidth 0 rlineto
0 glength rlineto
gwidth neg 0 rlineto
closepath
stroke
% draw title block
.5 setlinewidth
0 setgray
newpath
llx lly length add moveto
hwidth 0 rlineto
0 hlength neg rlineto
hwidth neg 0 rlineto
closepath
stroke
% page and date separators
.5 setlinewidth
0 setgray
newpath
llx hpage add lly length add moveto
0 hlength neg rlineto
stroke
newpath
llx hdate add lly length add moveto
0 hlength neg rlineto
stroke
% title
0 setgray
tfont setfont
llx 50 add lly length add 20 sub moveto
(Daily notes) show
} def
% draw 2 notes sections on a rotated page
gsave
0 0 moveto
90 rotate
.5 inch -8 inch notes
6 inch -8 inch notes
grestore
showpage