forked from drdrang/planner-inserts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
notes-topbinding-short-v.ps
117 lines (101 loc) · 2.05 KB
/
notes-topbinding-short-v.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
%!PS-Adobe-3.0
%%Title: Cornellish Notes Topbinding - Junior Short
%%Author: Dr. Drang (drdrang at gmail)
%%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 5.00 inch def
/length 7.25 inch def
% dimensions of gridded area
/gwidth 3.75 inch def
/glength 6.75 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
% 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
[] 0 setdash
% draw grid verticals
.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
} def
% draw 2 notes sections on a rotated page
gsave
0 0 moveto
-90 rotate
-10.75 inch .75 inch notes
-5.25 inch .75 inch notes
grestore
showpage