summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/interactiveworkbook/epsfiles/buttonappearance.eps
blob: 7ce134bfb8b3da8f45f582accff8ba341ddaa351 (plain)
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%  BUTTON APPEARANCES: PREVIOUS, INDEX, NEXT, EXERQUES, RETURN, SUBMIT, CLEAR,
%                     SELECTED (UP) AND UNSELECTED (DOWN)
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%!PS-Adobe-3.0 EPSF-3.0
%%BoundingBox: 0 0 1 1
%%EndProlog

% stops printout of postscript (pdfmark) commands

/pdfmark where {
    pop
    /__pdfMark__ true def
}{
    /pdfmark {cleartomark} def
    /__pdfMark__ false def
} ifelse

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%  BUTTON OUTLINE APPEARANCES: SELECTED (UP) AND UNSELECTED (DOWN)
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% up outline of all buttons

[/BBox [ 0 0 100 30 ] /_objdef {Button_Up}  /BP pdfmark
__pdfMark__ {
% upper left
    1.0 setgray 0 0 moveto 0 30 lineto 100 30 lineto stroke
    0.9 setgray 1 1 moveto 1 29 lineto 99 29 lineto stroke
    0.8 setgray 2 2 moveto 2 28 lineto 98 28 lineto stroke
    0.7 setgray 3 3 moveto 3 27 lineto 97 27 lineto stroke
    0.6 setgray 4 4 moveto 4 26 lineto 96 26 lineto stroke
    0.5 setgray 5 5 moveto 5 25 lineto 95 25 lineto stroke
% lower right
    0.5 setgray 5 5 moveto 95 5 lineto 95 25 lineto stroke
    0.4 setgray 4 4 moveto 96 4 lineto 96 26 lineto stroke
    0.3 setgray 3 3 moveto 97 3 lineto 97 27 lineto stroke
    0.2 setgray 2 2 moveto 98 2 lineto 98 28 lineto stroke
    0.1 setgray 1 1 moveto 99 1 lineto 99 29 lineto stroke
    0.0 setgray 0 0 moveto 100 0 lineto 100 30 lineto stroke
% the corners
    0.5 setgray 0 0 moveto 5 5 lineto stroke
    100 30 moveto 95 25 lineto stroke
} if
[/EP pdfmark

% down outline of all buttons

[ /_objdef {Button_Down} /BBox [ 0 0 100 30 ] /BP pdfmark
__pdfMark__ {
% upper left
    0.0 setgray 0 0 moveto 0 30 lineto 100 30 lineto stroke
    0.1 setgray 1 1 moveto 1 29 lineto 99 29 lineto stroke
    0.2 setgray 2 2 moveto 2 28 lineto 98 28 lineto stroke
    0.3 setgray 3 3 moveto 3 27 lineto 97 27 lineto stroke
    0.4 setgray 4 4 moveto 4 26 lineto 96 26 lineto stroke
    0.5 setgray 5 5 moveto 5 25 lineto 95 25 lineto stroke
% lower right
    0.5 setgray 5 5 moveto 95 5 lineto 95 25 lineto stroke
    0.6 setgray 4 4 moveto 96 4 lineto 96 26 lineto stroke
    0.7 setgray 3 3 moveto 97 3 lineto 97 27 lineto stroke
    0.8 setgray 2 2 moveto 98 2 lineto 98 28 lineto stroke
    0.9 setgray 1 1 moveto 99 1 lineto 99 29 lineto stroke
    1 setgray 0 0 moveto 100 0 lineto 100 30 lineto stroke
% the corners
    0.5 setgray 0 0 moveto 5 5 lineto stroke
    100 30 moveto 95 25 lineto stroke
% the interior
    0.8 setgray 5 5 90 20 rectfill
} if
[/EP pdfmark

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%  BUTTON OUTLINES WITH TEXT: PREVIOUS, INDEX, NEXT, EXERQUES
%                     SELECTED (UP) AND UNSELECTED (DOWN)
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% previous button up

[/_objdef {Prev_Up} /BBox [ 0 0 100 30 ] /BP pdfmark
__pdfMark__ {
    [{Button_Up} /SP pdfmark
    0 setgray /Courier-Bold 16 selectfont 10 7 moveto (Previous) show
} if
[/EP pdfmark

% previous button down

[/_objdef {Prev_Down} /BBox [ 0 0 100 30 ] /BP pdfmark
__pdfMark__ {
    [{Button_Down} /SP pdfmark
    0 setgray /Courier-Bold 16 selectfont 10 7 moveto (Previous) show
} if
[/EP pdfmark

% index button up

[/_objdef {Index_Up} /BBox [ 0 0 100 30 ] /BP pdfmark
__pdfMark__ {
    [{Button_Up} /SP pdfmark
    0 setgray /Courier-Bold 16 selectfont 10 7 moveto ( Index) show
} if
[/EP pdfmark

% index button down

[/_objdef {Index_Down} /BBox [ 0 0 100 30 ] /BP pdfmark
__pdfMark__ {
    [{Button_Down} /SP pdfmark
    0 setgray /Courier-Bold 16 selectfont 10 7 moveto ( Index) show
} if
[/EP pdfmark

% next button up

[/_objdef {Next_Up} /BBox [ 0 0 100 30 ] /BP pdfmark
__pdfMark__ {
    [{Button_Up} /SP pdfmark
    0 setgray /Courier-Bold 16 selectfont 10 7 moveto (  Next) show
} if
[/EP pdfmark

% next button down

[/_objdef {Next_Down} /BBox [ 0 0 100 30 ] /BP pdfmark
__pdfMark__ {
    [{Button_Down} /SP pdfmark
    0 setgray /Courier-Bold 16 selectfont 10 7 moveto (  Next) show
} if
[/EP pdfmark

% exercise question button up (no words on button; used in exercise index)

[/_objdef {ExerQues_Up} /BBox [ 0 0 100 30 ] /BP pdfmark
__pdfMark__ {
    [{Button_Up} /SP pdfmark
} if
[/EP pdfmark

% exercise question button down

[/_objdef {ExerQues_Down} /BBox [ 0 0 100 30 ] /BP pdfmark
__pdfMark__ {
    [{Button_Down} /SP pdfmark
} if
[/EP pdfmark

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%  BUTTON OUTLINES WITH TEXT: RETURN, SUBMIT, CLEAR, ANSWER
%                     SELECTED (UP) AND UNSELECTED (DOWN)
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% return button up

[/_objdef {Return_Up} /BBox [ 0 0 100 30 ] /BP pdfmark
__pdfMark__ {
    [{Button_Up} /SP pdfmark
    0 setgray /Courier-Bold 16 selectfont 10 7 moveto ( Return) show
} if
[/EP pdfmark

% return button down

[/_objdef {Return_Down} /BBox [ 0 0 100 30 ] /BP pdfmark
__pdfMark__ {
    [{Button_Down} /SP pdfmark
    0 setgray /Courier-Bold 16 selectfont 10 7 moveto ( Return) show
} if
[/EP pdfmark

% clear button up

[/_objdef {Clear_Up} /BBox [ 0 0 100 30 ] /BP pdfmark
__pdfMark__ {
    [{Button_Up} /SP pdfmark
    0 setgray /Courier-Bold 16 selectfont 10 7 moveto ( Clear) show
} if
[/EP pdfmark

% clear button down

[/_objdef {Clear_Down} /BBox [ 0 0 100 30 ] /BP pdfmark
__pdfMark__ {
    [{Button_Down} /SP pdfmark
    0 setgray /Courier-Bold 16 selectfont 10 7 moveto ( Clear) show
} if
[/EP pdfmark

% submit button up

[/_objdef {Submit_Up} /BBox [ 0 0 100 30 ] /BP pdfmark
__pdfMark__ {
    [{Button_Up} /SP pdfmark
    0 setgray /Courier-Bold 16 selectfont 10 7 moveto ( Submit) show
} if
[/EP pdfmark

% submit button down

[/_objdef {Submit_Down} /BBox [ 0 0 100 30 ] /BP pdfmark
__pdfMark__ {
    [{Button_Down} /SP pdfmark
    0 setgray /Courier-Bold 16 selectfont 10 7 moveto ( Submit) show
} if
[/EP pdfmark

% answer button up

[/_objdef {Answer_Up} /BBox [ 0 0 100 30 ] /BP pdfmark
__pdfMark__ {
    [{Button_Up} /SP pdfmark
    0 setgray /Courier-Bold 16 selectfont 10 7 moveto ( Answer) show
} if
[/EP pdfmark

% answer button down

[/_objdef {Answer_Down} /BBox [ 0 0 100 30 ] /BP pdfmark
__pdfMark__ {
    [{Button_Down} /SP pdfmark
    0 setgray /Courier-Bold 16 selectfont 10 7 moveto ( Answer) show
} if
[/EP pdfmark

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%  CHECK BOX APPEARANCE:  SELECTED (UP) AND UNSELECTED (DOWN)
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% check boxes unselected

[ /_objdef {UnChecked} /BBox [0 0 30 30] /BP pdfmark
__pdfMark__ {
    0 setgray 0 0 moveto 0 30 lineto 30 30 lineto 30 0 lineto 0 0 lineto stroke
    1 1 moveto 1 29 lineto 29 29 lineto 29 1 lineto 1 1 lineto stroke
} if
[/EP pdfmark

% check boxes selected

[/_objdef {Checked} /BBox [0 0 30 30] /BP pdfmark
__pdfMark__ {
    0 setgray 0 0 moveto 0 30 lineto 30 30 lineto 30 0 lineto 0 0 lineto stroke
    1 1 moveto 1 29 lineto 29 29 lineto 29 1 lineto 1 1 lineto stroke
    /Courier-Bold 30 selectfont 5 5 moveto (X) show
} if
[/EP pdfmark

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%  POPUP MENU APPEARANCE: BOX AND TEXT FOR FIVE MENUS
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% popup menu border

[/_objdef {Popup_Menu} /BBox [ 0 0 60 30 ] /BP pdfmark
__pdfMark__ {
    0 setgray 0 0 60 30 rectstroke 2 setlinewidth % rectangle low left (0,0) to up right (60,30)
} if                                              % linewidth 2
[/EP pdfmark

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%  TEXT FIELD APPEARANCE: BOX AND TEXT FOR FIVE FIELDS
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% general text field appearance; here, so that it appears on screen

[/_objdef {Text_Field} /BBox [0 0 300 30] /BP pdfmark
__pdfMark__ {
    [ 0 0 300 30 ] rectfill
    0.75 setgray  0 0 300 30 rectfill
} if
[/EP pdfmark

% text field one

[/_objdef {field1}
    /Subtype /Widget % dummy widget not actually used, but required in objdef
    /Rect [0 0 0 0] % dummy text area not actually used, but required in objdef
    /DA (/CourB 11 Tf 0 g ) % black font (zero gray level), typed in text fields, first page
/ANN pdfmark

% text field two

[/_objdef {field2}
    /Subtype /Widget
    /Rect [0 0 0 0]
    /DA (/CourB 11 Tf 0 g )
/ANN pdfmark

% text field three

[/_objdef {field3}
    /Subtype /Widget
    /Rect [0 0 0 0]
    /DA (/CourB 11 Tf 0 g )
/ANN pdfmark

% text field four

[/_objdef {field4}
    /Subtype /Widget
    /Rect [0 0 0 0]
    /DA (/CourB 11 Tf 0 g )
/ANN pdfmark

% text field five

[/_objdef {field5}
    /Subtype /Widget
    /Rect [0 0 0 0]
    /DA (/CourB 11 Tf 0 g )
/ANN pdfmark

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%  RADIO BUTTON APPEARANCE: SELECTED (UP) AND UNSELECTED (DOWN)
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% radio button unselected

[ /_objdef {Radio_Button_UnSelected} /BBox [0 0 30 30] /BP pdfmark
__pdfMark__ {
    0 setgray 15 15 14 0 360 arc closepath % start (0,0), radius 14, 360 degree arc (circle)
    2 setlinewidth stroke % line width 2, draw circle
} if
[/EP pdfmark

% radio button selected

[/_objdef {Radio_Button_Selected} /BBox [0 0 30 30] /BP pdfmark
__pdfMark__ {
    0 setgray 15 15 14 0 360 arc closepath % start (0,0), radius 14, 360 degree arc (circle)
    2 setlinewidth stroke % line width 2, draw circle
    0 setgray 15 15 8 0 360 arc closepath % start (0,0), radius 8, 360 degree arc (circle)
    0 0 0 setrgbcolor % set color black
    0 setgray fill % fill inner circle with black color
} if
[/EP pdfmark


%%EOF