| 1 |
%! |
| 2 |
% PostScript prologue for pstricks.tex. |
| 3 |
% Version 97 patch 3, 98/06/01 |
| 4 |
% For distribution, see pstricks.tex. |
| 5 |
% |
| 6 |
/tx@Dict 200 dict def tx@Dict begin |
| 7 |
/ADict 25 dict def |
| 8 |
/CM { matrix currentmatrix } bind def |
| 9 |
/SLW /setlinewidth load def |
| 10 |
/CLW /currentlinewidth load def |
| 11 |
/CP /currentpoint load def |
| 12 |
/ED { exch def } bind def |
| 13 |
/L /lineto load def |
| 14 |
/T /translate load def |
| 15 |
/TMatrix { } def |
| 16 |
/RAngle { 0 } def |
| 17 |
/Atan { /atan load stopped { pop pop 0 } if } def |
| 18 |
/Div { dup 0 eq { pop } { div } ifelse } def |
| 19 |
/NET { neg exch neg exch T } def |
| 20 |
/Pyth { dup mul exch dup mul add sqrt } def |
| 21 |
/PtoC { 2 copy cos mul 3 1 roll sin mul } def |
| 22 |
/PathLength@ { /z z y y1 sub x x1 sub Pyth add def /y1 y def /x1 x def } |
| 23 |
def |
| 24 |
/PathLength { flattenpath /z 0 def { /y1 ED /x1 ED /y2 y1 def /x2 x1 def |
| 25 |
} { /y ED /x ED PathLength@ } {} { /y y2 def /x x2 def PathLength@ } |
| 26 |
/pathforall load stopped { pop pop pop pop } if z } def |
| 27 |
/STP { .996264 dup scale } def |
| 28 |
/STV { SDict begin normalscale end STP } def |
| 29 |
/DashLine { dup 0 gt { /a .5 def PathLength exch div } { pop /a 1 def |
| 30 |
PathLength } ifelse /b ED /x ED /y ED /z y x add def b a .5 sub 2 mul y |
| 31 |
mul sub z Div round z mul a .5 sub 2 mul y mul add b exch Div dup y mul |
| 32 |
/y ED x mul /x ED x 0 gt y 0 gt and { [ y x ] 1 a sub y mul } { [ 1 0 ] |
| 33 |
0 } ifelse setdash stroke } def |
| 34 |
/DotLine { /b PathLength def /a ED /z ED /y CLW def /z y z add def a 0 gt |
| 35 |
{ /b b a div def } { a 0 eq { /b b y sub def } { a -3 eq { /b b y add |
| 36 |
def } if } ifelse } ifelse [ 0 b b z Div round Div dup 0 le { pop 1 } if |
| 37 |
] a 0 gt { 0 } { y 2 div a -2 gt { neg } if } ifelse setdash 1 |
| 38 |
setlinecap stroke } def |
| 39 |
/LineFill { gsave abs CLW add /a ED a 0 dtransform round exch round exch |
| 40 |
2 copy idtransform exch Atan rotate idtransform pop /a ED .25 .25 |
| 41 |
% DG/SR modification begin - Dec. 12, 1997 - Patch 2 |
| 42 |
%itransform translate pathbbox /y2 ED a Div ceiling cvi /x2 ED /y1 ED a |
| 43 |
itransform pathbbox /y2 ED a Div ceiling cvi /x2 ED /y1 ED a |
| 44 |
% DG/SR modification end |
| 45 |
Div cvi /x1 ED /y2 y2 y1 sub def clip newpath 2 setlinecap systemdict |
| 46 |
/setstrokeadjust known { true setstrokeadjust } if x2 x1 sub 1 add { x1 |
| 47 |
% DG/SR modification begin - Jun. 1, 1998 - Patch 3 (from Michael Vulis) |
| 48 |
% a mul y1 moveto 0 y2 rlineto stroke /x1 x1 1 add def } repeat grestore } |
| 49 |
% def |
| 50 |
a mul y1 moveto 0 y2 rlineto stroke /x1 x1 1 add def } repeat grestore |
| 51 |
pop pop } def |
| 52 |
% DG/SR modification end |
| 53 |
/BeginArrow { ADict begin /@mtrx CM def gsave 2 copy T 2 index sub neg |
| 54 |
exch 3 index sub exch Atan rotate newpath } def |
| 55 |
/EndArrow { @mtrx setmatrix CP grestore end } def |
| 56 |
/Arrow { CLW mul add dup 2 div /w ED mul dup /h ED mul /a ED { 0 h T 1 -1 |
| 57 |
scale } if w neg h moveto 0 0 L w h L w neg a neg rlineto gsave fill |
| 58 |
grestore } def |
| 59 |
/Tbar { CLW mul add /z ED z -2 div CLW 2 div moveto z 0 rlineto stroke 0 |
| 60 |
CLW moveto } def |
| 61 |
/Bracket { CLW mul add dup CLW sub 2 div /x ED mul CLW add /y ED /z CLW 2 |
| 62 |
div def x neg y moveto x neg CLW 2 div L x CLW 2 div L x y L stroke 0 |
| 63 |
CLW moveto } def |
| 64 |
/RoundBracket { CLW mul add dup 2 div /x ED mul /y ED /mtrx CM def 0 CLW |
| 65 |
2 div T x y mul 0 ne { x y scale } if 1 1 moveto .85 .5 .35 0 0 0 |
| 66 |
curveto -.35 0 -.85 .5 -1 1 curveto mtrx setmatrix stroke 0 CLW moveto } |
| 67 |
def |
| 68 |
/SD { 0 360 arc fill } def |
| 69 |
/EndDot { { /z DS def } { /z 0 def } ifelse /b ED 0 z DS SD b { 0 z DS |
| 70 |
CLW sub SD } if 0 DS z add CLW 4 div sub moveto } def |
| 71 |
/Shadow { [ { /moveto load } { /lineto load } { /curveto load } { |
| 72 |
/closepath load } /pathforall load stopped { pop pop pop pop CP /moveto |
| 73 |
load } if ] cvx newpath 3 1 roll T exec } def |
| 74 |
/NArray { aload length 2 div dup dup cvi eq not { exch pop } if /n exch |
| 75 |
cvi def } def |
| 76 |
/NArray { /f ED counttomark 2 div dup cvi /n ED n eq not { exch pop } if |
| 77 |
f { ] aload /Points ED } { n 2 mul 1 add -1 roll pop } ifelse } def |
| 78 |
/Line { NArray n 0 eq not { n 1 eq { 0 0 /n 2 def } if ArrowA /n n 2 sub |
| 79 |
def n { Lineto } repeat CP 4 2 roll ArrowB L pop pop } if } def |
| 80 |
/Arcto { /a [ 6 -2 roll ] cvx def a r /arcto load stopped { 5 } { 4 } |
| 81 |
ifelse { pop } repeat a } def |
| 82 |
/CheckClosed { dup n 2 mul 1 sub index eq 2 index n 2 mul 1 add index eq |
| 83 |
and { pop pop /n n 1 sub def } if } def |
| 84 |
/Polygon { NArray n 2 eq { 0 0 /n 3 def } if n 3 lt { n { pop pop } |
| 85 |
repeat } { n 3 gt { CheckClosed } if n 2 mul -2 roll /y0 ED /x0 ED /y1 |
| 86 |
ED /x1 ED x1 y1 /x1 x0 x1 add 2 div def /y1 y0 y1 add 2 div def x1 y1 |
| 87 |
moveto /n n 2 sub def n { Lineto } repeat x1 y1 x0 y0 6 4 roll Lineto |
| 88 |
Lineto pop pop closepath } ifelse } def |
| 89 |
/Diamond { /mtrx CM def T rotate /h ED /w ED dup 0 eq { pop } { CLW mul |
| 90 |
neg /d ED /a w h Atan def /h d a sin Div h add def /w d a cos Div w add |
| 91 |
def } ifelse mark w 2 div h 2 div w 0 0 h neg w neg 0 0 h w 2 div h 2 |
| 92 |
div /ArrowA { moveto } def /ArrowB { } def false Line closepath mtrx |
| 93 |
setmatrix } def |
| 94 |
% DG modification begin - Jan. 15, 1997 |
| 95 |
%/Triangle { /mtrx CM def translate rotate /h ED 2 div /w ED dup 0 eq { |
| 96 |
%pop } { CLW mul /d ED /h h d w h Atan sin Div sub def /w w d h w Atan 2 |
| 97 |
%div dup cos exch sin Div mul sub def } ifelse mark 0 d w neg d 0 h w d 0 |
| 98 |
%d /ArrowA { moveto } def /ArrowB { } def false Line closepath mtrx |
| 99 |
%setmatrix } def |
| 100 |
/Triangle { /mtrx CM def translate rotate /h ED 2 div /w ED dup |
| 101 |
CLW mul /d ED /h h d w h Atan sin Div sub def /w w d h w Atan 2 |
| 102 |
div dup cos exch sin Div mul sub def mark 0 d w neg d 0 h w d 0 |
| 103 |
d /ArrowA { moveto } def /ArrowB { } def false Line closepath mtrx |
| 104 |
% DG/SR modification begin - Jun. 1, 1998 - Patch 3 (from Michael Vulis) |
| 105 |
% setmatrix } def |
| 106 |
setmatrix pop } def |
| 107 |
% DG/SR modification end |
| 108 |
/CCA { /y ED /x ED 2 copy y sub /dy1 ED x sub /dx1 ED /l1 dx1 dy1 Pyth |
| 109 |
def } def |
| 110 |
/CCA { /y ED /x ED 2 copy y sub /dy1 ED x sub /dx1 ED /l1 dx1 dy1 Pyth |
| 111 |
def } def |
| 112 |
/CC { /l0 l1 def /x1 x dx sub def /y1 y dy sub def /dx0 dx1 def /dy0 dy1 |
| 113 |
def CCA /dx dx0 l1 c exp mul dx1 l0 c exp mul add def /dy dy0 l1 c exp |
| 114 |
mul dy1 l0 c exp mul add def /m dx0 dy0 Atan dx1 dy1 Atan sub 2 div cos |
| 115 |
abs b exp a mul dx dy Pyth Div 2 div def /x2 x l0 dx mul m mul sub def |
| 116 |
/y2 y l0 dy mul m mul sub def /dx l1 dx mul m mul neg def /dy l1 dy mul |
| 117 |
m mul neg def } def |
| 118 |
/IC { /c c 1 add def c 0 lt { /c 0 def } { c 3 gt { /c 3 def } if } |
| 119 |
ifelse /a a 2 mul 3 div 45 cos b exp div def CCA /dx 0 def /dy 0 def } |
| 120 |
def |
| 121 |
/BOC { IC CC x2 y2 x1 y1 ArrowA CP 4 2 roll x y curveto } def |
| 122 |
/NC { CC x1 y1 x2 y2 x y curveto } def |
| 123 |
/EOC { x dx sub y dy sub 4 2 roll ArrowB 2 copy curveto } def |
| 124 |
/BAC { IC CC x y moveto CC x1 y1 CP ArrowA } def |
| 125 |
/NAC { x2 y2 x y curveto CC x1 y1 } def |
| 126 |
/EAC { x2 y2 x y ArrowB curveto pop pop } def |
| 127 |
/OpenCurve { NArray n 3 lt { n { pop pop } repeat } { BOC /n n 3 sub def |
| 128 |
n { NC } repeat EOC } ifelse } def |
| 129 |
/AltCurve { { false NArray n 2 mul 2 roll [ n 2 mul 3 sub 1 roll ] aload |
| 130 |
/Points ED n 2 mul -2 roll } { false NArray } ifelse n 4 lt { n { pop |
| 131 |
pop } repeat } { BAC /n n 4 sub def n { NAC } repeat EAC } ifelse } def |
| 132 |
/ClosedCurve { NArray n 3 lt { n { pop pop } repeat } { n 3 gt { |
| 133 |
CheckClosed } if 6 copy n 2 mul 6 add 6 roll IC CC x y moveto n { NC } |
| 134 |
repeat closepath pop pop } ifelse } def |
| 135 |
/SQ { /r ED r r moveto r r neg L r neg r neg L r neg r L fill } def |
| 136 |
/ST { /y ED /x ED x y moveto x neg y L 0 x L fill } def |
| 137 |
/SP { /r ED gsave 0 r moveto 4 { 72 rotate 0 r L } repeat fill grestore } |
| 138 |
def |
| 139 |
/FontDot { DS 2 mul dup matrix scale matrix concatmatrix exch matrix |
| 140 |
rotate matrix concatmatrix exch findfont exch makefont setfont } def |
| 141 |
/Rect { x1 y1 y2 add 2 div moveto x1 y2 lineto x2 y2 lineto x2 y1 lineto |
| 142 |
x1 y1 lineto closepath } def |
| 143 |
/OvalFrame { x1 x2 eq y1 y2 eq or { pop pop x1 y1 moveto x2 y2 L } { y1 |
| 144 |
y2 sub abs x1 x2 sub abs 2 copy gt { exch pop } { pop } ifelse 2 div |
| 145 |
exch { dup 3 1 roll mul exch } if 2 copy lt { pop } { exch pop } ifelse |
| 146 |
/b ED x1 y1 y2 add 2 div moveto x1 y2 x2 y2 b arcto x2 y2 x2 y1 b arcto |
| 147 |
x2 y1 x1 y1 b arcto x1 y1 x1 y2 b arcto 16 { pop } repeat closepath } |
| 148 |
ifelse } def |
| 149 |
/Frame { CLW mul /a ED 3 -1 roll 2 copy gt { exch } if a sub /y2 ED a add |
| 150 |
/y1 ED 2 copy gt { exch } if a sub /x2 ED a add /x1 ED 1 index 0 eq { |
| 151 |
pop pop Rect } { OvalFrame } ifelse } def |
| 152 |
/BezierNArray { /f ED counttomark 2 div dup cvi /n ED n eq not { exch pop |
| 153 |
} if n 1 sub neg 3 mod 3 add 3 mod { 0 0 /n n 1 add def } repeat f { ] |
| 154 |
aload /Points ED } { n 2 mul 1 add -1 roll pop } ifelse } def |
| 155 |
/OpenBezier { BezierNArray n 1 eq { pop pop } { ArrowA n 4 sub 3 idiv { 6 |
| 156 |
2 roll 4 2 roll curveto } repeat 6 2 roll 4 2 roll ArrowB curveto } |
| 157 |
ifelse } def |
| 158 |
/ClosedBezier { BezierNArray n 1 eq { pop pop } { moveto n 1 sub 3 idiv { |
| 159 |
6 2 roll 4 2 roll curveto } repeat closepath } ifelse } def |
| 160 |
/BezierShowPoints { gsave Points aload length 2 div cvi /n ED moveto n 1 |
| 161 |
sub { lineto } repeat CLW 2 div SLW [ 4 4 ] 0 setdash stroke grestore } |
| 162 |
def |
| 163 |
/Parab { /y0 exch def /x0 exch def /y1 exch def /x1 exch def /dx x0 x1 |
| 164 |
sub 3 div def /dy y0 y1 sub 3 div def x0 dx sub y0 dy add x1 y1 ArrowA |
| 165 |
x0 dx add y0 dy add x0 2 mul x1 sub y1 ArrowB curveto /Points [ x1 y1 x0 |
| 166 |
y0 x0 2 mul x1 sub y1 ] def } def |
| 167 |
/Grid { newpath /a 4 string def /b ED /c ED /n ED cvi dup 1 lt { pop 1 } |
| 168 |
if /s ED s div dup 0 eq { pop 1 } if /dy ED s div dup 0 eq { pop 1 } if |
| 169 |
/dx ED dy div round dy mul /y0 ED dx div round dx mul /x0 ED dy div |
| 170 |
round cvi /y2 ED dx div round cvi /x2 ED dy div round cvi /y1 ED dx div |
| 171 |
round cvi /x1 ED /h y2 y1 sub 0 gt { 1 } { -1 } ifelse def /w x2 x1 sub |
| 172 |
0 gt { 1 } { -1 } ifelse def b 0 gt { /z1 b 4 div CLW 2 div add def |
| 173 |
/Helvetica findfont b scalefont setfont /b b .95 mul CLW 2 div add def } |
| 174 |
if systemdict /setstrokeadjust known { true setstrokeadjust /t { } def } |
| 175 |
{ /t { transform 0.25 sub round 0.25 add exch 0.25 sub round 0.25 add |
| 176 |
exch itransform } bind def } ifelse gsave n 0 gt { 1 setlinecap [ 0 dy n |
| 177 |
div ] dy n div 2 div setdash } { 2 setlinecap } ifelse /i x1 def /f y1 |
| 178 |
dy mul n 0 gt { dy n div 2 div h mul sub } if def /g y2 dy mul n 0 gt { |
| 179 |
dy n div 2 div h mul add } if def x2 x1 sub w mul 1 add dup 1000 gt { |
| 180 |
pop 1000 } if { i dx mul dup y0 moveto b 0 gt { gsave c i a cvs dup |
| 181 |
stringwidth pop /z2 ED w 0 gt {z1} {z1 z2 add neg} ifelse h 0 gt {b neg} |
| 182 |
{z1} ifelse rmoveto show grestore } if dup t f moveto g t L stroke /i i |
| 183 |
w add def } repeat grestore gsave n 0 gt |
| 184 |
% DG/SR modification begin - Nov. 7, 1997 - Patch 1 |
| 185 |
%{ 1 setlinecap [ 0 dx n div ] dy n div 2 div setdash } |
| 186 |
{ 1 setlinecap [ 0 dx n div ] dx n div 2 div setdash } |
| 187 |
% DG/SR modification end |
| 188 |
{ 2 setlinecap } ifelse /i y1 def /f x1 dx mul |
| 189 |
n 0 gt { dx n div 2 div w mul sub } if def /g x2 dx mul n 0 gt { dx n |
| 190 |
div 2 div w mul add } if def y2 y1 sub h mul 1 add dup 1000 gt { pop |
| 191 |
1000 } if { newpath i dy mul dup x0 exch moveto b 0 gt { gsave c i a cvs |
| 192 |
dup stringwidth pop /z2 ED w 0 gt {z1 z2 add neg} {z1} ifelse h 0 gt |
| 193 |
{z1} {b neg} ifelse rmoveto show grestore } if dup f exch t moveto g |
| 194 |
exch t L stroke /i i h add def } repeat grestore } def |
| 195 |
/ArcArrow { /d ED /b ED /a ED gsave newpath 0 -1000 moveto clip newpath 0 |
| 196 |
1 0 0 b grestore c mul /e ED pop pop pop r a e d PtoC y add exch x add |
| 197 |
exch r a PtoC y add exch x add exch b pop pop pop pop a e d CLW 8 div c |
| 198 |
mul neg d } def |
| 199 |
/Ellipse { /mtrx CM def T scale 0 0 1 5 3 roll arc mtrx setmatrix } def |
| 200 |
/Rot { CP CP translate 3 -1 roll neg rotate NET } def |
| 201 |
/RotBegin { tx@Dict /TMatrix known not { /TMatrix { } def /RAngle { 0 } |
| 202 |
def } if /TMatrix [ TMatrix CM ] cvx def /a ED a Rot /RAngle [ RAngle |
| 203 |
dup a add ] cvx def } def |
| 204 |
/RotEnd { /TMatrix [ TMatrix setmatrix ] cvx def /RAngle [ RAngle pop ] |
| 205 |
cvx def } def |
| 206 |
/PutCoor { gsave CP T CM STV exch exec moveto setmatrix CP grestore } def |
| 207 |
/PutBegin { /TMatrix [ TMatrix CM ] cvx def CP 4 2 roll T moveto } def |
| 208 |
/PutEnd { CP /TMatrix [ TMatrix setmatrix ] cvx def moveto } def |
| 209 |
/Uput { /a ED add 2 div /h ED 2 div /w ED /s a sin def /c a cos def /b s |
| 210 |
abs c abs 2 copy gt dup /q ED { pop } { exch pop } ifelse def /w1 c b |
| 211 |
div w mul def /h1 s b div h mul def q { w1 abs w sub dup c mul abs } { |
| 212 |
h1 abs h sub dup s mul abs } ifelse } def |
| 213 |
/UUput { /z ED abs /y ED /x ED q { x s div c mul abs y gt } { x c div s |
| 214 |
mul abs y gt } ifelse { x x mul y y mul sub z z mul add sqrt z add } { q |
| 215 |
{ x s div } { x c div } ifelse abs } ifelse a PtoC h1 add exch w1 add |
| 216 |
exch } def |
| 217 |
/BeginOL { dup (all) eq exch TheOL eq or { IfVisible not { Visible |
| 218 |
/IfVisible true def } if } { IfVisible { Invisible /IfVisible false def |
| 219 |
} if } ifelse } def |
| 220 |
/InitOL { /OLUnit [ 3000 3000 matrix defaultmatrix dtransform ] cvx def |
| 221 |
/Visible { CP OLUnit idtransform T moveto } def /Invisible { CP OLUnit |
| 222 |
neg exch neg exch idtransform T moveto } def /BOL { BeginOL } def |
| 223 |
/IfVisible true def } def |
| 224 |
end |
| 225 |
% END pstricks.pro |