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
|
%!
%%
%% This is file `pspicture.ps', generated
%% on <1995/6/4> with the docstrip utility (2.2i).
%%
%% The original source files were:
%%
%% pspicture.doc (with options: `ps')
%%
%% Do not distribute the stripped version of this file.
%% The checksum in the header refers to the documented version.
%%
%%% ====================================================================
%%% @LaTeX-style-file{
%%% author = "David Carlisle",
%%% version = "2.01",
%%% date = "16 June 1992",
%%% time = "18:30:53 BST",
%%% filename = "pspicture.sty",
%%% address = "Computer Science Department
%%% Manchester University
%%% Oxford Road
%%% Manchester
%%% England
%%% M13 9PL",
%%% telephone = "+44 61 275 6139",
%%% FAX = "+44 61 275 6236",
%%% checksum = "56975 755 2882 22245",
%%% email = "carlisle@cs.man.ac.uk (Internet)",
%%% codetable = "ISO/ASCII",
%%% keywords = "LaTeX, pictures, PostScript",
%%% supported = "yes",
%%% docstring = "
%%%
%%% pspicture.sty
%%%
%%% A LaTeX style option that reimplements most of the picture
%%% environment commands to use PostScript \special's, rather than
%%% the line and circle fonts. This allows lines to have arbitrary
%%% slope and thickness, and circles to be any size.
%%%
%%% The checksum field above was produced by
%%% Robert Solovay's checksum utility.",
%%% }
%%% ====================================================================
/!BP{
72 72.27 div dup scale
}def
/!A{
newpath
0 0 moveto
dup neg dup .4 mul rlineto
.8 mul 0 exch rlineto
closepath
fill
} def
/!V{
!BP
/!X exch def
/!y exch def
/!x exch def
newpath
0 0 moveto
!x 0 eq {0 !y 0 lt {!X neg}{!X} ifelse}
{!x 0 lt {!X neg}{!X}ifelse !X !y mul !x abs div} ifelse
lineto
setlinewidth % @wholewidth
currentpoint
stroke
translate
!y !x atan
rotate
!A % @arrowlength
}def
/!L{
!BP
/!X exch def
/!y exch def
/!x exch def
newpath
0 0 moveto
!x 0 eq {0 !y 0 lt {!X neg}{!X} ifelse}
{!x 0 lt {!X neg}{!X}ifelse !X !y mul !x abs div} ifelse
lineto
setlinewidth % @wholewidth
stroke
}def
/!C{
!BP
0 0 3 2 roll
2 div 0 360 arc
setlinewidth % @wholewidth
stroke
}def
/!D{
!BP
0 0 3 2 roll
2 div 0 360 arc fill
}def
/!O{
!BP
/!y exch 2 div def
/!x exch 2 div def
/!r exch !x !y
2 copy gt {exch} if pop
2 copy gt {exch} if pop
def
setlinewidth % @wholewidth
1 eq
{newpath
!x neg 0 moveto
!x neg !y 0 !y !r arcto 4 {pop} repeat
0 !y lineto
stroke}if
1 eq
{newpath
!x 0 moveto
!x !y 0 !y !r arcto 4 {pop} repeat
0 !y lineto
stroke}if
1 eq
{newpath
!x neg 0 moveto
!x neg !y neg 0 !y neg !r arcto 4 {pop} repeat
0 !y neg lineto
stroke}if
1 eq
{newpath
!x 0 moveto
!x !y neg 0 !y neg !r arcto 4 {pop} repeat
0 !y neg lineto
stroke}if
}def
/!V2{
!BP
2 copy exch
atan
/a exch def
2 copy
newpath
0 0 moveto
lineto % <x*unitlength> <y*unitlength>
3 2 roll
setlinewidth % @wholewidth
stroke
translate % <x*unitlength> <y*unitlength>
a rotate
!A % @arrowlength
}def
/!L2{
!BP
newpath
0 0 moveto
lineto % <x*unitlength> <y*unitlength>
setlinewidth % @wholewidth
stroke
}def
/!C2{
!BP
/!s exch def
/!y exch def
/!x exch def
newpath
0 0 moveto
0 0
!x 2 div !y 10 div !s mul add
!y 2 div !x 10 div !s mul sub
!x !y
curveto
setlinewidth % @wholewidth
stroke
}def
%% End of pspicture.ps
|