Debian Codegraph @

texmf-dist/doc/latex/interactiveworkbook/epsfiles/buttonappearance.eps

raw
1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2 %
3 % BUTTON APPEARANCES: PREVIOUS, INDEX, NEXT, EXERQUES, RETURN, SUBMIT, CLEAR,
4 % SELECTED (UP) AND UNSELECTED (DOWN)
5 %
6 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
7
8 %!PS-Adobe-3.0 EPSF-3.0
9 %%BoundingBox: 0 0 1 1
10 %%EndProlog
11
12 % stops printout of postscript (pdfmark) commands
13
14 /pdfmark where {
15 pop
16 /__pdfMark__ true def
17 }{
18 /pdfmark {cleartomark} def
19 /__pdfMark__ false def
20 } ifelse
21
22 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
23 %
24 % BUTTON OUTLINE APPEARANCES: SELECTED (UP) AND UNSELECTED (DOWN)
25 %
26 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
27
28 % up outline of all buttons
29
30 [/BBox [ 0 0 100 30 ] /_objdef {Button_Up} /BP pdfmark
31 __pdfMark__ {
32 % upper left
33 1.0 setgray 0 0 moveto 0 30 lineto 100 30 lineto stroke
34 0.9 setgray 1 1 moveto 1 29 lineto 99 29 lineto stroke
35 0.8 setgray 2 2 moveto 2 28 lineto 98 28 lineto stroke
36 0.7 setgray 3 3 moveto 3 27 lineto 97 27 lineto stroke
37 0.6 setgray 4 4 moveto 4 26 lineto 96 26 lineto stroke
38 0.5 setgray 5 5 moveto 5 25 lineto 95 25 lineto stroke
39 % lower right
40 0.5 setgray 5 5 moveto 95 5 lineto 95 25 lineto stroke
41 0.4 setgray 4 4 moveto 96 4 lineto 96 26 lineto stroke
42 0.3 setgray 3 3 moveto 97 3 lineto 97 27 lineto stroke
43 0.2 setgray 2 2 moveto 98 2 lineto 98 28 lineto stroke
44 0.1 setgray 1 1 moveto 99 1 lineto 99 29 lineto stroke
45 0.0 setgray 0 0 moveto 100 0 lineto 100 30 lineto stroke
46 % the corners
47 0.5 setgray 0 0 moveto 5 5 lineto stroke
48 100 30 moveto 95 25 lineto stroke
49 } if
50 [/EP pdfmark
51
52 % down outline of all buttons
53
54 [ /_objdef {Button_Down} /BBox [ 0 0 100 30 ] /BP pdfmark
55 __pdfMark__ {
56 % upper left
57 0.0 setgray 0 0 moveto 0 30 lineto 100 30 lineto stroke
58 0.1 setgray 1 1 moveto 1 29 lineto 99 29 lineto stroke
59 0.2 setgray 2 2 moveto 2 28 lineto 98 28 lineto stroke
60 0.3 setgray 3 3 moveto 3 27 lineto 97 27 lineto stroke
61 0.4 setgray 4 4 moveto 4 26 lineto 96 26 lineto stroke
62 0.5 setgray 5 5 moveto 5 25 lineto 95 25 lineto stroke
63 % lower right
64 0.5 setgray 5 5 moveto 95 5 lineto 95 25 lineto stroke
65 0.6 setgray 4 4 moveto 96 4 lineto 96 26 lineto stroke
66 0.7 setgray 3 3 moveto 97 3 lineto 97 27 lineto stroke
67 0.8 setgray 2 2 moveto 98 2 lineto 98 28 lineto stroke
68 0.9 setgray 1 1 moveto 99 1 lineto 99 29 lineto stroke
69 1 setgray 0 0 moveto 100 0 lineto 100 30 lineto stroke
70 % the corners
71 0.5 setgray 0 0 moveto 5 5 lineto stroke
72 100 30 moveto 95 25 lineto stroke
73 % the interior
74 0.8 setgray 5 5 90 20 rectfill
75 } if
76 [/EP pdfmark
77
78 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
79 %
80 % BUTTON OUTLINES WITH TEXT: PREVIOUS, INDEX, NEXT, EXERQUES
81 % SELECTED (UP) AND UNSELECTED (DOWN)
82 %
83 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
84
85 % previous button up
86
87 [/_objdef {Prev_Up} /BBox [ 0 0 100 30 ] /BP pdfmark
88 __pdfMark__ {
89 [{Button_Up} /SP pdfmark
90 0 setgray /Courier-Bold 16 selectfont 10 7 moveto (Previous) show
91 } if
92 [/EP pdfmark
93
94 % previous button down
95
96 [/_objdef {Prev_Down} /BBox [ 0 0 100 30 ] /BP pdfmark
97 __pdfMark__ {
98 [{Button_Down} /SP pdfmark
99 0 setgray /Courier-Bold 16 selectfont 10 7 moveto (Previous) show
100 } if
101 [/EP pdfmark
102
103 % index button up
104
105 [/_objdef {Index_Up} /BBox [ 0 0 100 30 ] /BP pdfmark
106 __pdfMark__ {
107 [{Button_Up} /SP pdfmark
108 0 setgray /Courier-Bold 16 selectfont 10 7 moveto ( Index) show
109 } if
110 [/EP pdfmark
111
112 % index button down
113
114 [/_objdef {Index_Down} /BBox [ 0 0 100 30 ] /BP pdfmark
115 __pdfMark__ {
116 [{Button_Down} /SP pdfmark
117 0 setgray /Courier-Bold 16 selectfont 10 7 moveto ( Index) show
118 } if
119 [/EP pdfmark
120
121 % next button up
122
123 [/_objdef {Next_Up} /BBox [ 0 0 100 30 ] /BP pdfmark
124 __pdfMark__ {
125 [{Button_Up} /SP pdfmark
126 0 setgray /Courier-Bold 16 selectfont 10 7 moveto ( Next) show
127 } if
128 [/EP pdfmark
129
130 % next button down
131
132 [/_objdef {Next_Down} /BBox [ 0 0 100 30 ] /BP pdfmark
133 __pdfMark__ {
134 [{Button_Down} /SP pdfmark
135 0 setgray /Courier-Bold 16 selectfont 10 7 moveto ( Next) show
136 } if
137 [/EP pdfmark
138
139 % exercise question button up (no words on button; used in exercise index)
140
141 [/_objdef {ExerQues_Up} /BBox [ 0 0 100 30 ] /BP pdfmark
142 __pdfMark__ {
143 [{Button_Up} /SP pdfmark
144 } if
145 [/EP pdfmark
146
147 % exercise question button down
148
149 [/_objdef {ExerQues_Down} /BBox [ 0 0 100 30 ] /BP pdfmark
150 __pdfMark__ {
151 [{Button_Down} /SP pdfmark
152 } if
153 [/EP pdfmark
154
155 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
156 %
157 % BUTTON OUTLINES WITH TEXT: RETURN, SUBMIT, CLEAR, ANSWER
158 % SELECTED (UP) AND UNSELECTED (DOWN)
159 %
160 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
161
162 % return button up
163
164 [/_objdef {Return_Up} /BBox [ 0 0 100 30 ] /BP pdfmark
165 __pdfMark__ {
166 [{Button_Up} /SP pdfmark
167 0 setgray /Courier-Bold 16 selectfont 10 7 moveto ( Return) show
168 } if
169 [/EP pdfmark
170
171 % return button down
172
173 [/_objdef {Return_Down} /BBox [ 0 0 100 30 ] /BP pdfmark
174 __pdfMark__ {
175 [{Button_Down} /SP pdfmark
176 0 setgray /Courier-Bold 16 selectfont 10 7 moveto ( Return) show
177 } if
178 [/EP pdfmark
179
180 % clear button up
181
182 [/_objdef {Clear_Up} /BBox [ 0 0 100 30 ] /BP pdfmark
183 __pdfMark__ {
184 [{Button_Up} /SP pdfmark
185 0 setgray /Courier-Bold 16 selectfont 10 7 moveto ( Clear) show
186 } if
187 [/EP pdfmark
188
189 % clear button down
190
191 [/_objdef {Clear_Down} /BBox [ 0 0 100 30 ] /BP pdfmark
192 __pdfMark__ {
193 [{Button_Down} /SP pdfmark
194 0 setgray /Courier-Bold 16 selectfont 10 7 moveto ( Clear) show
195 } if
196 [/EP pdfmark
197
198 % submit button up
199
200 [/_objdef {Submit_Up} /BBox [ 0 0 100 30 ] /BP pdfmark
201 __pdfMark__ {
202 [{Button_Up} /SP pdfmark
203 0 setgray /Courier-Bold 16 selectfont 10 7 moveto ( Submit) show
204 } if
205 [/EP pdfmark
206
207 % submit button down
208
209 [/_objdef {Submit_Down} /BBox [ 0 0 100 30 ] /BP pdfmark
210 __pdfMark__ {
211 [{Button_Down} /SP pdfmark
212 0 setgray /Courier-Bold 16 selectfont 10 7 moveto ( Submit) show
213 } if
214 [/EP pdfmark
215
216 % answer button up
217
218 [/_objdef {Answer_Up} /BBox [ 0 0 100 30 ] /BP pdfmark
219 __pdfMark__ {
220 [{Button_Up} /SP pdfmark
221 0 setgray /Courier-Bold 16 selectfont 10 7 moveto ( Answer) show
222 } if
223 [/EP pdfmark
224
225 % answer button down
226
227 [/_objdef {Answer_Down} /BBox [ 0 0 100 30 ] /BP pdfmark
228 __pdfMark__ {
229 [{Button_Down} /SP pdfmark
230 0 setgray /Courier-Bold 16 selectfont 10 7 moveto ( Answer) show
231 } if
232 [/EP pdfmark
233
234 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
235 %
236 % CHECK BOX APPEARANCE: SELECTED (UP) AND UNSELECTED (DOWN)
237 %
238 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
239
240 % check boxes unselected
241
242 [ /_objdef {UnChecked} /BBox [0 0 30 30] /BP pdfmark
243 __pdfMark__ {
244 0 setgray 0 0 moveto 0 30 lineto 30 30 lineto 30 0 lineto 0 0 lineto stroke
245 1 1 moveto 1 29 lineto 29 29 lineto 29 1 lineto 1 1 lineto stroke
246 } if
247 [/EP pdfmark
248
249 % check boxes selected
250
251 [/_objdef {Checked} /BBox [0 0 30 30] /BP pdfmark
252 __pdfMark__ {
253 0 setgray 0 0 moveto 0 30 lineto 30 30 lineto 30 0 lineto 0 0 lineto stroke
254 1 1 moveto 1 29 lineto 29 29 lineto 29 1 lineto 1 1 lineto stroke
255 /Courier-Bold 30 selectfont 5 5 moveto (X) show
256 } if
257 [/EP pdfmark
258
259 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
260 %
261 % POPUP MENU APPEARANCE: BOX AND TEXT FOR FIVE MENUS
262 %
263 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
264
265 % popup menu border
266
267 [/_objdef {Popup_Menu} /BBox [ 0 0 60 30 ] /BP pdfmark
268 __pdfMark__ {
269 0 setgray 0 0 60 30 rectstroke 2 setlinewidth % rectangle low left (0,0) to up right (60,30)
270 } if % linewidth 2
271 [/EP pdfmark
272
273 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
274 %
275 % TEXT FIELD APPEARANCE: BOX AND TEXT FOR FIVE FIELDS
276 %
277 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
278
279 % general text field appearance; here, so that it appears on screen
280
281 [/_objdef {Text_Field} /BBox [0 0 300 30] /BP pdfmark
282 __pdfMark__ {
283 [ 0 0 300 30 ] rectfill
284 0.75 setgray 0 0 300 30 rectfill
285 } if
286 [/EP pdfmark
287
288 % text field one
289
290 [/_objdef {field1}
291 /Subtype /Widget % dummy widget not actually used, but required in objdef
292 /Rect [0 0 0 0] % dummy text area not actually used, but required in objdef
293 /DA (/CourB 11 Tf 0 g ) % black font (zero gray level), typed in text fields, first page
294 /ANN pdfmark
295
296 % text field two
297
298 [/_objdef {field2}
299 /Subtype /Widget
300 /Rect [0 0 0 0]
301 /DA (/CourB 11 Tf 0 g )
302 /ANN pdfmark
303
304 % text field three
305
306 [/_objdef {field3}
307 /Subtype /Widget
308 /Rect [0 0 0 0]
309 /DA (/CourB 11 Tf 0 g )
310 /ANN pdfmark
311
312 % text field four
313
314 [/_objdef {field4}
315 /Subtype /Widget
316 /Rect [0 0 0 0]
317 /DA (/CourB 11 Tf 0 g )
318 /ANN pdfmark
319
320 % text field five
321
322 [/_objdef {field5}
323 /Subtype /Widget
324 /Rect [0 0 0 0]
325 /DA (/CourB 11 Tf 0 g )
326 /ANN pdfmark
327
328 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
329 %
330 % RADIO BUTTON APPEARANCE: SELECTED (UP) AND UNSELECTED (DOWN)
331 %
332 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
333
334 % radio button unselected
335
336 [ /_objdef {Radio_Button_UnSelected} /BBox [0 0 30 30] /BP pdfmark
337 __pdfMark__ {
338 0 setgray 15 15 14 0 360 arc closepath % start (0,0), radius 14, 360 degree arc (circle)
339 2 setlinewidth stroke % line width 2, draw circle
340 } if
341 [/EP pdfmark
342
343 % radio button selected
344
345 [/_objdef {Radio_Button_Selected} /BBox [0 0 30 30] /BP pdfmark
346 __pdfMark__ {
347 0 setgray 15 15 14 0 360 arc closepath % start (0,0), radius 14, 360 degree arc (circle)
348 2 setlinewidth stroke % line width 2, draw circle
349 0 setgray 15 15 8 0 360 arc closepath % start (0,0), radius 8, 360 degree arc (circle)
350 0 0 0 setrgbcolor % set color black
351 0 setgray fill % fill inner circle with black color
352 } if
353 [/EP pdfmark
354
355
356 %%EOF