Debian Codegraph @

texmf-dist/tex/latex/pspicture/pspicture.sty

raw
1 %%
2 %% This is file `pspicture.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% pspicture.dtx (with options: `package,dvips')
8 %%
9 %%
10 %% Source File `pspicture.dtx'.
11 %% Copyright (C) 1992 1999 David Carlisle
12 %% This file may be distributed under the terms of the LPPL.
13 %% See 00readme.txt for details.
14 %%
15 \NeedsTeXFormat{LaTeX2e}
16 \ProvidesPackage{pspicture}
17 [1999/04/11/ v2.02 Picture mode via PS specials (DPC)]
18
19 \def\PS@header#1{\special{header=#1}}
20 \PS@header{pspicture.ps}
21 \def\PS@special#1{\special{"#1}}
22 {\catcode`t=12\catcode`p=12\gdef\noPT#1pt{#1}}
23 \def\strippt#1{\expandafter\noPT\the#1\space}
24 \def\@circle#1{%
25 \@tempdimb #1\unitlength
26 \PS@special{%
27 \strippt\@wholewidth
28 \strippt\@tempdimb
29 !C}}
30 \def\@dot#1{%
31 \@tempdimb #1\unitlength
32 \PS@special{%
33 \strippt\@tempdimb
34 !D}}
35 \def\line(#1,#2)#3{%
36 \@linelen=#3\unitlength
37 \PS@special{%
38 \strippt\@wholewidth
39 #1
40 #2
41 \strippt\@linelen
42 !L}}
43 \def\vector(#1,#2)#3{%
44 \@linelen=#3\unitlength
45 \PS@special{%
46 \strippt\@arrowlength
47 \strippt\@wholewidth
48 #1
49 #2
50 \strippt\@linelen
51 !V}}
52 \def\oval{%
53 \@ifnextchar[%
54 {\@ov@l}%
55 {\count@=\maxdimen \divide\count@ by \unitlength \@ov@l[\count@]}}
56 \def\@ov@l[#1](#2,#3){%
57 \@ifnextchar[{\@oval[#1](#2,#3)}{\@oval[#1](#2,#3)[]}}%
58 \def\@oval[#1](#2,#3)[#4]{\begingroup
59 \@tempdimb #1\unitlength
60 \@ovxx #2\unitlength
61 \@ovyy #3\unitlength
62 \def\r{\def\TL{0 }\def\BL{0 }}%
63 \def\l{\def\TR{0 }\def\BR{0 }}%
64 \def\t{\def\BL{0 }\def\BR{0 }}%
65 \def\b{\def\TL{0 }\def\TR{0 }}%
66 \def\TL{1 }\def\BL{1 }\def\TR{1 }\def\BR{1 }%
67 \@tfor\@tempa :=#4\do{\csname\@tempa\endcsname}%
68 \PS@special{%
69 \BR\BL\TR\TL
70 \strippt\@wholewidth
71 \strippt\@tempdimb
72 \strippt\@ovxx
73 \strippt\@ovyy
74 !O}%
75 \endgroup}
76 \def\Line(#1,#2){%
77 \@ovxx #1\unitlength
78 \@ovyy #2\unitlength
79 \PS@special{%
80 \strippt\@wholewidth
81 \strippt\@ovxx
82 \strippt\@ovyy
83 !L2}}
84 \def\Curve(#1,#2)#3{%
85 \@ovxx #1\unitlength
86 \@ovyy #2\unitlength
87 \PS@special{%
88 \strippt\@wholewidth
89 \strippt\@ovxx
90 \strippt\@ovyy
91 #3
92 !C2}}
93 \def\Vector(#1,#2){%
94 \@ovxx #1\unitlength
95 \@ovyy #2\unitlength
96 \PS@special{%
97 \strippt\@arrowlength
98 \strippt\@wholewidth
99 \strippt\@ovxx
100 \strippt\@ovyy
101 !V2}}
102 \newdimen\@arrowlength
103 \def\arrowlength#1{\@arrowlength #1}
104 \arrowlength{8pt}
105 \endinput
106
107
108
109 \endinput
110 %%
111 %% End of file `pspicture.sty'.