Debian Codegraph @

texmf-dist/dvips/xypic/xy389dict.pro

raw
1 %!PS-Adobe-3.0 Resource-procset
2 %%Title: xy389dict.pro
3 %%Version: 3.8.9
4 %%Creator: Xy-ps backend to Xy-pic
5 %%DocumentSuppliedProcSets: XYdict
6 %%For: nulluse of Xy-pic
7 %%BeginResource: procset XYdict
8 /XYdict where not{250 dict /XYdict exch def
9 /xy{mark exch XYdict begin countdictstack /xylevel exch def
10 xyopen xycolor mark xypatt xypattern stopped xyclose end
11 cleartomark}def /xyg{gsave xy}def
12 /xyf{currentfont exch xy grestore setfont}def
13 /xycc{{xychgcol}xy}def /xyc{XYdict begin xycolstore end}def
14 /xyx{/xyYpos exch def /xyXpos exch def}def
15 /xyp{currentpoint xyx}def
16 /xyd{setupDirection XYdirection 2 mul}def
17 /xyct{currentpoint xyt 2 copy 6 2 roll}def
18 /xyt{xyXpos xyYpos 2 copy translate}def /xyr{neg rotate xynt}def
19 /xyrs{neg rotate 3 -1 roll sub neg 3 1 roll sub exch moveto xynt}def
20 /xynt{neg exch neg exch translate}def /xys{scale xynt}def
21 /xyss{scale 3 -1 roll sub neg 3 1 roll sub exch moveto xynt}def
22 /xyi{0 0 transform grestore gsave itransform}def
23 }if
24
25 /XYdict where pop begin XYdict begin
26 /xyopen{currentdict /XYddict known{XYddict null eq{}
27 {XYddict begin xyopen}ifelse}if}def
28 /xyclose{countdictstack -1 xylevel 1 add{pop end}for}def
29 /xychgcol{/xycolor exch def}def /xysetcol{xypush xychgcol}def
30
31 /xypush{16 dict /XYddict exch def XYddict begin}def
32 /undef where
33 {pop /xypop{countdictstack xylevel eq{}{end}ifelse
34 currentdict /XYddict undef}def}
35 {/xypop{countdictstack xylevel eq{}{end}ifelse
36 /XYddict null def}def}ifelse
37 /pu /xypush load def /pp /xypop load def
38 /xypspt{72 72.27 div dup scale}bind def /pscorrect{.85 mul}bind def
39 /gstartxy{gsave xypspt xywidth xycap xyjoin xymiter newpath 0 0 moveto}def
40 /xypath{gstartxy rmoveto counttomark 2 idiv -1 1{pop lineto}for}def
41 /xystroke{stroke grestore}bind def
42 /xyfill{closepath fill grestore}bind def
43 /xystfil{closepath gsave fill grestore 0 setgray
44 0 setlinewidth xystroke}bind def
45 /xyeofill{closepath eofill grestore}bind def
46
47 /xypolyline{xypath xystroke}def /xypolyfill{xypath xyfill}def
48 /xydotsep{/@ currentlinewidth 2 mul def}def
49 /xypolydot{xypath xydotsep [xydt @] 0 setdash xystroke}def
50 /xypolydash{xypath xydotsep [@ @] 0 setdash xystroke}def
51 /xypolyeofill{xypath xyeofill}def /pe /xypolyeofill load def
52 /pl /xypolyline load def /pf /xypolyfill load def
53 /pt /xypolydot load def /pd /xypolydash load def
54 /arc4pop{arcto 4{pop}repeat}bind def
55 /xyoval{gstartxy oval closepath xystroke}def
56 /xycircle{gstartxy circle xystroke}def
57 /circle{dup 0 moveto 0 0 3 -1 roll 0 360 arc}def
58 /oval{newpath 2 copy exch 5 index add 2 div exch 3 copy 10 3 roll
59 moveto 1 index dup 5 1 roll 3 index 7 index arc4pop
60 dup dup 4 1 roll 4 index exch 6 index arc4pop
61 1 index dup 8 1 roll 4 index 4 index arc4pop
62 arc4pop closepath}def
63 /xyellipse{gstartxy counttomark 1 gt{squarify pop pop 1}if
64 circle xystroke}def
65 /ov /xyoval load def /ox /xyellipse load def
66 /dotit{dup currentlinewidth 6 mul div round div
67 /@ exch def [xydt @] 0 setdash}def
68 /elldash{dup 4 -1 roll 10 exch div dashit}def
69 /ovdash{dup 10 dashit}def
70 /dashit{div round 2 mul div /@ exch def [@ @] 0 setdash}def
71 /dotcirc{gstartxy cirlen dotit circle xystroke}def
72 /dashcirc{gstartxy cirlen dashit circle xystroke}def
73 /dotoval{gstartxy 5 copy ovlen dotit oval xystroke}def
74 /dashoval{gstartxy 5 copy ovlen ovdash oval xystroke}def
75 /cirlen{dup 6.283185 mul}bind def
76 /ovlen{3 -1 roll sub 3 1 roll sub add exch 1.716815 mul sub}def
77 /dotellipse{gstartxy counttomark 1 gt{squarify pop pop 1}if
78 cirlen dotit circle closepath xystroke}def
79 /dashellipse{gstartxy counttomark 1 gt{squarify add 2 div 1}
80 {1 exch 1 exch}ifelse cirlen elldash circle xystroke}def
81 /ot /dotellipse load def /od /dashellipse load def
82 /vt /dotoval load def /vd /dashoval load def
83 /filloval{gstartxy oval xyfill}def
84 /stfiloval{gstartxy oval xystfil}def
85 /fillcircle{gstartxy circle xyfill}def
86 /stfilcircle{gstartxy circle xystfil}def
87 /fillellipse{gstartxy squarify pop pop 1 circle xyfill}def
88 /stfilellipse{gstartxy squarify pop pop 1 circle xystfil}def
89 /squarify{4 copy sub 2 div 3 1 roll sub 2 div translate
90 add 2 div 3 1 roll add 2 div 2 copy scale
91 2 copy add 2 div currentlinewidth exch div setlinewidth
92 newpath}def
93 /fe /fillellipse load def /sfe /stfilellipse load def
94 /fo /filloval load def /sfo /stfiloval load def
95 /fc /fillcircle load def /sfc /stfilcircle load def
96 /xywidth{.4 pscorrect setlinewidth}bind def
97 /xydash{[] 0 setdash}bind def /xycap{1 setlinecap}bind def
98 /xyjoin{1 setlinejoin}bind def /xymiter{10 setmiterlimit}bind def
99
100 /cc{dup exec xychgcol}def
101 /lw{dup setlinewidth /@l exch def
102 /xywidth{@l setlinewidth}bind def}def
103 /lc{dup setlinecap /@c exch def
104 /xycap{@c setlinecap}bind def}def
105 /lj{dup setlinejoin /@j exch def
106 /xyjoin{@j setlinejoin}bind def}def
107 /ml{dup setmitrelimit /@m exch def
108 /xymiter{@m setmitrelimit}bind def}def
109
110 /setupDirection{dup -2048 lt{3072 add neg 1024 exch}
111 {dup 0 lt{1024 add neg -1024}{dup 2048 lt{1024 sub -1024 exch}
112 {3072 sub 1024}ifelse}ifelse}ifelse atan
113 dup 180 gt{360 sub}if dup /XYdirection exch def rotate}def
114
115 userdict begin
116 /gray{setgray}bind def /gray@{setgray}bind def
117 /rgb{setrgbcolor}bind def /rgb@{setrgbcolor}bind def
118 /hsb{sethsbcolor}bind def /hsb@{sethsbcolor}bind def
119 /setcmykcolor where{pop}{/setcmykcolor{dup 3 1 roll dup 5 1 roll
120 exch sub 1 add 5 1 roll exch sub 1 add 4 1 roll
121 exch sub 1 add 3 1 roll setrgbcolor}bind def}ifelse
122 /cmyk{setcmykcolor}bind def /cmyk@{setcmykcolor}bind def
123 /sethalftone where{/sethalftone load /tone exch def}if
124 /xycolarray 3 array def /xycolstore{currentrgbcolor 2 -1 0
125 {exch xycolarray 3 1 roll put}for}def xycolstore
126 /xycolor{0 1 2{xycolarray exch get}for setrgbcolor}def
127 /xypatt{}def /xypattern{cleartomark}bind def
128 end
129 end end
130 /XYdict where pop begin XYdict begin
131 /:patt
132 {XYddict begin
133 14 dict begin
134 /BGnd exch def
135 /FGnd exch def
136 /PaintData exch def
137 /PatternType 1 def
138 /PaintType 1 def
139 /BBox[0 0 1 1]def
140 /TilingType 1 def
141 /XStep 1 def
142 /YStep 1 def
143 /PatternMtx[24 0 0 24 0 0]def
144 /PaintProc BGnd null ne
145 {{begin BGnd aload pop setrgbcolor 0 0 1 1 rF
146 FGnd aload pop setrgbcolor
147 24 24 true PatternMtx PaintData imagemask end}}
148 {{begin FGnd aload pop setrgbcolor
149 24 24 true PatternMtx PaintData imagemask end}}
150 ifelse def
151 currentdict PatternMtx end
152 gsave patangle xyland{180 add}if
153 rotate macfreq patfreq div dup neg exch scale matrix currentmatrix
154 grestore gsave setmatrix /DeviceRGB setcolorspace makepattern grestore
155 end}def
156 /rF{gsave
157 newpath 4 2 roll moveto 1 index 0 rlineto 0 exch rlineto neg 0 rlineto
158 fill grestore}bind def
159 /setpatscreen{/pattstring exch store patfreq
160 patangle xyport not{90 add}if
161 {1 add 4 mul cvi pattstring exch get exch 1 add 4 mul cvi 7 sub
162 bitshift 1 and}setscreen}bind def
163 /setcolpattern{setpatscreen 64 div 1 exch sub currentrgbcolor
164 1 1 3{pop 1 exch sub 3 index mul 1 exch sub 3 1 roll}for
165 setrgbcolor pop}def
166 /setgraypattern{setpatscreen 64 div setgray}def
167 /macfreq 9.375 def /patangle 0 def /patfreq 12.5 def
168 /checkland{ /normland where{pop normland not}{false}ifelse
169 /xyland exch def
170 /por where{pop por}{/isls where{pop isls not /xyland true def}
171 {/land where{pop land not}{true}
172 ifelse}ifelse}ifelse /xyport exch def}def
173 /setpatfreq{/patfreq exch def}def
174 /setpatangle{/patangle exch def}def
175 /setbackcolor{/backcolor exch def}def
176 /setforecolor{/forecolor exch def}def
177 [1 1 1] setbackcolor xycolarray setforecolor
178 /bg /setbackcolor load def /fg /setforecolor load def
179 /pa /setpatangle load def /pq /setpatfreq load def
180 /xypattern{checkland counttomark dup 0 eq{pop}
181 {dup 1 eq{pop setpatscreen}
182 {dup 2 eq{pop setcolpattern}
183 {dup 3 eq{pop
184 /setcolorspace where {
185 /.setcolorspace where{pop pop pop setcolpattern}
186 {/.buildpattern where {pop
187 forecolor backcolor :patt setpattern
188 }{pop pop setcolpattern}ifelse}ifelse}
189 {pop setcolpattern}ifelse}
190 {5 eq{/setcolorspace where{
191 /.setcolorspace where{pop pop pop pop pop setcolpattern}
192 {/.buildpattern where {pop
193 :patt setpattern
194 }{pop pop pop pop setcolpattern}ifelse}ifelse}
195 {pop pop pop setcolpattern}ifelse
196 }{}ifelse}ifelse}ifelse}ifelse}ifelse cleartomark }def
197 /xysetpattern{/xypatt exch def}def
198 /sp /xysetpattern load def
199 end end
200 /XYdict where pop begin XYdict begin
201 /xysize 10 def /T true def /F false def
202 /dimendiv{65536 div}bind def
203 /xysegl 327680 dimendiv def
204 /xyopp{1 -1 scale}bind def
205 /xynormwidth{26213 dimendiv pscorrect}bind def
206 /xywidth{xynormwidth setlinewidth}bind def
207
208 /xyfont{4096 add 64 div round 64 mul 4096 sub}def /xydt 0.01 def
209 /xysdfont{4096 add 32 div round 32 mul 4096 sub}def
210 /xydots{xywidth 1 setlinecap [xydt 2] 0 setdash}bind def
211 /f /xyfont load def /fs /xysdfont load def
212 /xyCheckDir{dup 8 div 3 mul 3 -1 roll sub neg exch div 360 mul
213 dup dup XYdirection sub 180 div round 180 mul XYdirection add
214 dup 3 -1 roll sub abs 10 gt not{exch}if pop}def
215
216 /xyrulth{26213 dimendiv pscorrect setlinewidth
217 0 setlinecap}bind def
218
219 /gsavexy{gsave xypspt XYdirection rotate xywidth newpath 0 0 moveto}def
220 /gchksavexy{gsave xypspt setupDirection xywidth newpath 0 0 moveto}def
221
222 /xyswap{XYdirection 180 add /XYdirection exch def}def
223 /xyline{gstartxy setupDirection rlineto xystroke}def
224
225 /dash{exch gchksavexy xysegl XYdirection dup
226 -90 lt{pop neg}{90 gt{neg}if}ifelse exch{neg}if
227 0 rlineto xystroke}def
228 /stopper{gstartxy setupDirection 0 xysegl 2 div rmoveto
229 0 xysegl neg rlineto xystroke }def
230 /d /dash load def /st /stopper load def
231 /solid{gstartxy xydash neg exch neg exch rlineto xystroke}def
232 /dashed{gstartxy 2 copy dup mul exch dup mul add sqrt dup
233 xysegl add xysegl 2 mul div round 2 mul 1 sub div [ exch dup ] 0 setdash
234 neg exch neg exch rlineto xystroke}def
235 /l /solid load def /dd /dashed load def
236 /dot{gstartxy 2 setlinecap [xydt 2] 0 setdash
237 1 0 rlineto xystroke}def
238 /dotted{gstartxy 2 copy dup mul exch dup mul add sqrt dup
239 2 div round 1 add div 2 setlinecap [xydt 3 -1 roll] 0 setdash
240 neg exch neg exch rlineto 0 0 rlineto xystroke}def
241 /p /dot load def /dt /dotted load def
242 /cubic{gstartxy docubic} def
243 /docubic{chkvalid
244 {chkcubedge 8 -2 roll moveto curveto xystroke pop}
245 {cleartomark grestore}ifelse}def
246 /chkcubedge{2 copy 1.0 eq{0.0 eq{pop pop}{cubicedge}ifelse}
247 {pop cubicedge}ifelse}def
248 /bz /cubic load def
249 /dotcubic{gstartxy 1 setlinecap [xydt 2] 0 setdash docubic}def
250 /dashcubic{gstartxy [5 5] 0 setdash docubic}def
251 /bt /dotcubic load def /bd /dashcubic load def
252 /squine{gstartxy dosquine}def
253 /dosquine{chkvalid
254 {chksquedge 2 copy moveto xysq2cub curveto xystroke pop}
255 {cleartomark grestore}ifelse}def
256 /q /squine load def
257 /chkvalid{2 copy lt{dup 1 gt{false}{true}ifelse}{false}ifelse}def
258
259 /chksquedge{2 copy 1.0 eq{0.0 eq{pop pop}{squineedge}ifelse}
260 {pop squineedge}ifelse}def
261 /xysq2cub{xysq2cubit 6 1 roll xysq2cubit 6 1 roll 3 index 3 index
262 xysq2cubit 6 1 roll xysq2cubit 6 1 roll pop pop}def
263 /xysq2cubit{2 index 2 mul add 3 div}def
264
265 /dotsquine{gstartxy 1 setlinecap [xydt 2] 0 setdash dosquine}def
266 /dashsquine{gstartxy [5 5] 0 setdash dosquine}def
267 /qt /dotsquine load def /qd /dashsquine load def
268 /xy4mul{8 copy
269 5 -1 roll mul 5 1 roll 6 -1 roll mul 6 1 roll
270 3 -1 roll mul exch 4 -1 roll mul 3 1 roll
271 add 3 1 roll add exch 10 2 roll
272 7 -1 roll mul 7 1 roll 4 -1 roll mul 5 1 roll
273 4 -1 roll mul 4 1 roll mul add 3 1 roll add
274 exch 3 -1 roll }def
275
276 /xy44mul{4 copy 16 4 roll exch 3 1 roll 4 copy 12 4 roll
277 xy4mul 12 4 roll xy4mul 12 -4 roll 4 copy 16 4 roll
278 8 4 roll xy4mul 12 4 roll xy4mul}def
279
280 /cubicedge{10 2 roll exch 8 1 roll 3 -1 roll dup dup 9 2 roll
281 5 -1 roll dup dup 9 1 roll 8 3 roll
282 4 1 roll dup dup 5 3 roll dup dup 5 1 roll 3 -1 roll
283 18 -2 roll 2 copy 1 sub neg 4 1 roll 1 sub neg exch 4 1 roll
284 xy444mul
285 pop pop pop 13 1 roll pop pop pop 9 1 roll 10 1 roll
286 pop 8 1 roll 7 1 roll 8 1 roll pop 5 1 roll 3 1 roll}def
287
288 /xy444mul{4 copy 24 4 roll 12 -4 roll 16 4 roll 4 copy 16 4 roll
289 xy44mul 20 8 roll xy44mul
290 12 -4 roll 4 -1 roll 7 1 roll exch 4 1 roll exch 6 -1 roll exch
291 4 2 roll 16 8 roll 8 4 roll
292 4 -1 roll 7 1 roll exch 4 1 roll exch 6 -1 roll exch 4 2 roll
293 8 4 roll 16 4 roll 8 4 roll 20 -4 roll exch 3 1 roll
294 4 copy 20 4 roll 4 copy 16 4 roll 4 copy 12 4 roll
295 xy4mul 28 4 roll xy4mul 20 4 roll xy4mul 12 4 roll xy4mul}def
296
297 /squineedge{8 2 roll
298 exch 5 1 roll 3 -1 roll dup 6 2 roll 1 index exch
299 10 -2 roll 2 copy 1 sub neg 4 1 roll 1 sub neg exch 4 1 roll
300 xy44mul 4 1 roll pop 5 1 roll 6 1 roll 3 -1 roll pop}def
301
302 /xyshort{2 copy abs exch abs add xysegl .5 mul lt
303 {pop pop grestore}{rlineto xystroke}ifelse}def
304
305 /tipwidth{xywidth xynormwidth dup currentlinewidth exch div
306 sqrt dup dup scale mul setlinewidth 1 setlinecap}def
307
308 /halftip{tipwidth xysize 10 div 0 0 moveto
309 -.25 0 3 -1 roll -2.5 mul 0 xysize 2 div neg
310 dup .62 mul 2 div neg curveto}bind def
311
312 /atip{gchksavexy halftip xystroke}def
313 /btip{gchksavexy xyopp halftip xystroke}def
314 /tip{gchksavexy gsave halftip stroke grestore
315 xyopp halftip xystroke}def
316 /t /tip load def /a /atip load def /b /btip load def
317 /cmatip{gchksavexy halfcmtip xystroke}def
318 /cmbtip{gchksavexy xyopp halfcmtip xystroke}def
319 /cmtip{gchksavexy gsave halfcmtip stroke grestore
320 xyopp halfcmtip xystroke}def
321 /halfcmtip{tipwidth 0 0 moveto
322 -.1333 0 .25 neg dup .125 3 -1 roll .25 curveto}bind def
323 /ct /cmtip load def /ca /cmatip load def /cb /cmbtip load def
324 /xyfscale{/xyfsize exch def}def /xyfsize{10}def
325 /eu{-0.0551 0.0643 -0.0976 0.1386 -0.125 0.2188}def
326 /cm{-0.105 0.0437 -0.1804 0.1380 -0.2 0.25}def
327 /XY{-0.1753 0.0181 -0.3452 0.0708 -0.5 0.155}def
328 /tipstart{3 -1 roll gchksavexy exch xyfscale tipwidth dup XYdict exch
329 known{dup /xy eq{pop /XY}if}{pop /XY}ifelse XYdict exch get}def
330 /tipend{halfxytip xystroke}def
331 /halfxytip{1 1 6{pop xyfsize mul 6 1 roll}for 0 0 moveto curveto}def
332 /A{tipstart D}def /B{tipstart C}def /C{xyopp D}def /D{exec tipend}def
333 /AB{tipstart dup gsave exec halfxytip stroke grestore C}def
334
335 /Tip{exch gchksavexy /xyfsize{10}def tipwidth gsave
336 dup XYdict exch known{dup /xy eq{pop /XT}if}{pop /XT}ifelse
337 XYdict exch get dup
338 halfTip stroke grestore xyopp halfTip xystroke}def
339 /XT{360 32 div neg}def /Xt{-1 .31 mul 1 atan}def
340 /ET{360 64 div 5 mul neg}def /Et{-1 .31 mul 1 atan}def
341 /halfTip{exec rotate XY halfxytip}def /halfTtip{halfTip}def
342 /Ttip{exch gchksavexy /xyfsize{10}def tipwidth gsave
343 dup XYdict exch known{dup /xy eq{pop /Xt}if}{pop /Xt}ifelse
344 XYdict exch get dup
345 halfTtip stroke grestore xyopp halfTtip xystroke}def
346 /tt /Tip load def /tT /Ttip load def
347 /halfturn{xysegl 2 div dup dup neg exch rmoveto
348 0 exch dup exch -180 -90 arc}bind def
349 /aturn{gchksavexy halfturn xystroke}def
350 /bturn{gchksavexy xyopp halfturn xystroke}def
351 /ta /aturn load def /tb /bturn load def
352 /xysqll 231705 dimendiv def
353 /squigl{gchksavexy xysqll dup neg 0 rmoveto
354 2 div dup dup neg dup 3 -1 roll
355 2 sqrt mul dup 5 1 roll
356 135 45 arcn dup 3 -1 roll -135 -45 arc
357 xystroke}def
358 /g /squigl load def
359 /fullhook{0 xysegl 2 div dup -90 90 arcn}bind def
360 /halfhook{xysegl 2 div dup 0 exch 180 90 arcn}bind def
361
362 /ahook{gchksavexy fullhook xystroke}def
363 /bhook{gchksavexy xyopp fullhook xystroke}def
364 /hook{gchksavexy gsave halfhook stroke grestore
365 xyopp halfhook xystroke}def
366 /h /hook load def /ha /ahook load def /hb /bhook load def
367 /xyqcirc{dup dup neg exch translate newpath
368 dup neg 0 exch moveto 0 0 3 -1 roll -90 0 arc}bind def
369
370 /circ{gstartxy
371 3 copy pop 2 copy cos mul 3 1 roll sin mul
372 rmoveto 0 0 5 2 roll arc xystroke}bind def
373 /o /circ load def
374 /circhar{gsave dup 3 gt{7 sub neg}if dup
375 3 eq{pop dup 2 sqrt -2 div mul}{dup 1 eq{pop dup 2 sqrt 2 div mul}
376 {0 eq{dup}{0}ifelse}ifelse}ifelse
377 0 translate 3 1 roll circ grestore}bind def
378 /c /circhar load def
379 end end
380 %%EndResource