| 1 |
%% $Id: pstricks97.tex 166 2021-08-26 19:52:16Z herbert $ |
| 2 |
%% BEGIN: pstricks.tex |
| 3 |
%% |
| 4 |
%% PostScript macros for Generic TeX: main input file for PSTricks 97. |
| 5 |
%% See the PSTricks User's Guide for description. |
| 6 |
%% This uses the header file `pstricks.pro'. |
| 7 |
%% |
| 8 |
\def\fileversion{97 patch 14} |
| 9 |
\def\filedate{1999/12/23} |
| 10 |
%% |
| 11 |
%% COPYRIGHT 1993, 1994, 1999 by Timothy Van Zandt, [email protected]. |
| 12 |
%% |
| 13 |
%% This program can be redistributed and/or modified under the terms |
| 14 |
%% of the LaTeX Project Public License Distributed from CTAN |
| 15 |
%% archives in directory macros/latex/base/lppl.txt. |
| 16 |
%% |
| 17 |
\csname PSTricksLoaded\endcsname |
| 18 |
\let\PSTricksLoaded\endinput |
| 19 |
\edef\PstAtCode{\the\catcode`\@} |
| 20 |
\catcode`\@=11\relax |
| 21 |
\expandafter\ifx\csname @latexerr\endcsname\relax |
| 22 |
\long\def\@ifundefined#1#2#3{\expandafter\ifx\csname |
| 23 |
#1\endcsname\relax#2\else#3\fi} |
| 24 |
\def\@namedef#1{\expandafter\def\csname #1\endcsname} |
| 25 |
\def\@nameuse#1{\csname #1\endcsname} |
| 26 |
\def\@eha{% |
| 27 |
Your command was ignored.^^J |
| 28 |
Type \space I <command> <return> \space to replace |
| 29 |
it with another command,^^J |
| 30 |
or \space <return> \space to continue without it.} |
| 31 |
\def\@spaces{\space\space\space\space} |
| 32 |
\def\typeout#1{\immediate\write\@unused{#1}} |
| 33 |
\alloc@7\write\chardef\sixt@@n\@unused |
| 34 |
\def\@empty{} |
| 35 |
\def\@gobble#1{} |
| 36 |
\def\@nnil{\@nil} |
| 37 |
\def\@ifnextchar#1#2#3{% |
| 38 |
\let\@tempe#1\def\@tempa{#2}\def\@tempb{#3}\futurelet\@tempc\@ifnch} |
| 39 |
\def\@ifnch{% |
| 40 |
\ifx\@tempc\@sptoken |
| 41 |
\let\@tempd\@xifnch |
| 42 |
\else |
| 43 |
\ifx\@tempc\@tempe \let\@tempd\@tempa \else \let\@tempd\@tempb \fi |
| 44 |
\fi |
| 45 |
\@tempd} |
| 46 |
\begingroup |
| 47 |
\def\:{\global\let\@sptoken= } \: |
| 48 |
\def\:{\@xifnch} \expandafter\gdef\: {\futurelet\@tempc\@ifnch} |
| 49 |
\endgroup |
| 50 |
\fi |
| 51 |
\typeout{`PSTricks' v\fileversion\space\space <\filedate> (tvz)} |
| 52 |
\def\@pstrickserr#1#2{% |
| 53 |
\begingroup |
| 54 |
\newlinechar`\^^J |
| 55 |
\edef\pst@tempc{#2}% |
| 56 |
\expandafter\errhelp\expandafter{\pst@tempc}% |
| 57 |
\typeout{% |
| 58 |
PSTricks error. \space See User's Guide for further information.^^J |
| 59 |
\@spaces\@spaces\@spaces\@spaces |
| 60 |
Type \space H <return> \space for immediate help.}% |
| 61 |
\errmessage{#1}% |
| 62 |
\endgroup} |
| 63 |
\def\@ehpa{% |
| 64 |
Your command was ignored. Default value substituted.^^J |
| 65 |
Type \space <return> \space to procede.} |
| 66 |
\def\@ehpb{% |
| 67 |
Your command was ignored. Will recover best I can.^^J |
| 68 |
Type \space <return> \space to procede.} |
| 69 |
\def\@ehpc{% |
| 70 |
You better fix this before proceding.^^J |
| 71 |
See the PSTricks User's Guide or ask your system administrator for help.^^J |
| 72 |
Type \space X <return> \space to quit.} |
| 73 |
\def\pst@misplaced#1{\@pstrickserr{Misplaced \string#1 command}\@ehpb} |
| 74 |
\newdimen\pst@dima |
| 75 |
\newdimen\pst@dimb |
| 76 |
\newdimen\pst@dimc |
| 77 |
\newdimen\pst@dimd |
| 78 |
\newdimen\pst@dimg |
| 79 |
\newdimen\pst@dimh |
| 80 |
\newbox\pst@hbox |
| 81 |
\newbox\pst@boxg |
| 82 |
\newcount\pst@cnta |
| 83 |
\newcount\pst@cntb |
| 84 |
\newcount\pst@cntc |
| 85 |
\newcount\pst@cntd |
| 86 |
\newcount\pst@cntg |
| 87 |
\newcount\pst@cnth |
| 88 |
\newif\if@pst |
| 89 |
\newtoks\pst@toks |
| 90 |
\newif\if@star |
| 91 |
\def\pst@ifstar#1{% |
| 92 |
\@ifnextchar*{\@startrue\def\next*{#1}\next}{\@starfalse#1}} |
| 93 |
\def\pst@expandafter#1#2{% |
| 94 |
\def\next{#1}% |
| 95 |
\edef\@tempa{#2}% |
| 96 |
\ifx\@tempa\@empty |
| 97 |
\@pstrickserr{Unexpected empty argument!}\@ehpb |
| 98 |
\def\@tempa{\@empty}% |
| 99 |
\fi |
| 100 |
\expandafter\next\@tempa} |
| 101 |
\def\pst@dimtonum#1#2{\edef#2{\pst@@dimtonum#1}} |
| 102 |
\def\pst@@dimtonum#1{\expandafter\pst@@@dimtonum\the#1} |
| 103 |
{\catcode`\p=12 \catcode`\t=12 \global\@namedef{pst@@@dimtonum}#1pt{#1}} |
| 104 |
\def\pst@pyth#1#2#3{% |
| 105 |
\ifdim#1>#2\pst@@pyth#1#2#3\else\pst@@pyth#2#1#3\fi} |
| 106 |
\def\pst@@pyth#1#2#3{% |
| 107 |
\ifdim4#1>9#2% |
| 108 |
#3=#1\advance#3 .2122#2% |
| 109 |
\else |
| 110 |
#3=.8384#1\advance#3 .5758#2% |
| 111 |
\fi} |
| 112 |
\def\pst@divide#1#2#3{% |
| 113 |
\pst@@divide{#1}{#2}% |
| 114 |
\pst@dimtonum\pst@dimg{#3}} |
| 115 |
\def\pst@@divide#1#2{% |
| 116 |
\pst@dimg=#1\relax |
| 117 |
\pst@dimh=#2\relax |
| 118 |
\pst@cntg=\pst@dimh |
| 119 |
\pst@cnth=67108863 |
| 120 |
\pst@@@divide\pst@@@divide\pst@@@divide\pst@@@divide |
| 121 |
\divide\pst@dimg\pst@cntg} |
| 122 |
\def\pst@@@divide{% |
| 123 |
\ifnum |
| 124 |
\ifnum\pst@dimg<\z@-\fi\pst@dimg<\pst@cnth |
| 125 |
\multiply\pst@dimg\sixt@@n |
| 126 |
\else |
| 127 |
\divide\pst@cntg\sixt@@n |
| 128 |
\fi} |
| 129 |
\def\pst@configerr#1{% |
| 130 |
\@pstrickserr{\string#1 not defined in pstricks.con}\@ehpc} |
| 131 |
% % \begin{macrocode} |
| 132 |
\def\pstVerb#1{\pst@configerr\pstVerb} |
| 133 |
\def\pstverb#1{\pst@configerr\pstverb} |
| 134 |
\def\pstverbscale{\pst@configerr\pstverbscale} |
| 135 |
\def\pstrotate{\pst@configerr\pstrotate} |
| 136 |
\def\pstheader#1{\pst@configerr\pstheader} |
| 137 |
\def\pstdriver{\pst@configerr\pstdriver} |
| 138 |
\@ifundefined{pstcustomize}% |
| 139 |
{\def\pstcustomize{\endinput\let\pstcustomize\relax}}{} |
| 140 |
\input pstricks.con |
| 141 |
\newif\ifPSTricks |
| 142 |
\PSTrickstrue |
| 143 |
\def\PSTricksOff{% |
| 144 |
\def\pstheader##1{}% |
| 145 |
\def\pstverb##1{}% |
| 146 |
\def\pstVerb##1{}% |
| 147 |
\PSTricksfalse} |
| 148 |
\@ifundefined{pst@def}{\def\pst@def#1<#2>{\@namedef{tx@#1}{#2 }}}{} |
| 149 |
\@ifundefined{pst@ATH}{\def\pst@ATH<#1>{}}{} |
| 150 |
\pstheader{pstricks97.pro} |
| 151 |
\def\pst@dict{tx@Dict begin } |
| 152 |
\def\pst@theheaders{pstricks.pro} |
| 153 |
\def\pst@Verb#1{\pstVerb{\pst@dict #1 end}} |
| 154 |
\def\tx@Atan{Atan } |
| 155 |
\def\tx@Div{Div } |
| 156 |
\def\tx@NET{NET } |
| 157 |
\def\tx@Pyth{Pyth } |
| 158 |
\def\tx@PtoC{PtoC } |
| 159 |
\def\tx@PathLength@{PathLength@ } |
| 160 |
\def\tx@PathLength{PathLength } |
| 161 |
\pst@dimg=\pstunit\relax |
| 162 |
\ifdim\pst@dimg=1bp |
| 163 |
\def\pst@stp{.996264 dup scale} |
| 164 |
\else |
| 165 |
\edef\pst@stp{1 \pst@@dimtonum\pst@dimg\space div dup scale} |
| 166 |
\fi |
| 167 |
\def\tx@STP{STP } |
| 168 |
\def\tx@STV{STV } |
| 169 |
\def\pst@number#1{\pst@@dimtonum#1\space} |
| 170 |
\def\pst@checknum#1#2{% |
| 171 |
\edef\next{#1}% |
| 172 |
\ifx\next\@empty |
| 173 |
\let\pst@num\z@ |
| 174 |
\else |
| 175 |
\expandafter\pst@@checknum\next..\@nil |
| 176 |
\fi |
| 177 |
\ifnum\pst@num=\z@ |
| 178 |
\@pstrickserr{Bad number: `#1'. 0 substituted.}\@ehpa |
| 179 |
\def#2{0 }% |
| 180 |
\else |
| 181 |
\edef#2{\ifnum\pst@num=\tw@-\fi\the\pst@cntg.% |
| 182 |
\expandafter\@gobble\the\pst@cnth\space}% |
| 183 |
\fi} |
| 184 |
\def\pst@@checknum{% |
| 185 |
\@ifnextchar-% |
| 186 |
{\let\pst@num\tw@\expandafter\pst@@@checknum\@gobble}% |
| 187 |
{\let\pst@num\@ne\pst@@@checknum}} |
| 188 |
\def\pst@@@checknum#1.#2.#3\@nil{% |
| 189 |
\afterassignment\pst@@@@checknum\pst@cntg=0#1\relax\@nil |
| 190 |
\afterassignment\pst@@@@checknum\pst@cnth=1#2\relax\@nil} |
| 191 |
\def\pst@@@@checknum#1\relax\@nil{% |
| 192 |
\ifx\@nil#1\@nil\else\let\pst@num\z@\fi} |
| 193 |
\def\pst@getnumii#1 #2 #3\@nil{% |
| 194 |
\pst@checknum{#1}\pst@tempg |
| 195 |
\pst@checknum{#2}\pst@temph} |
| 196 |
\def\pst@getnumiii#1 #2 #3 #4\@nil{% |
| 197 |
\pst@checknum{#1}\pst@tempg |
| 198 |
\pst@checknum{#2}\pst@temph |
| 199 |
\pst@checknum{#3}\pst@tempi} |
| 200 |
\def\pst@getnumiv#1 #2 #3 #4 #5\@nil{% |
| 201 |
\pst@checknum{#1}\pst@tempg |
| 202 |
\pst@checknum{#2}\pst@temph |
| 203 |
\pst@checknum{#3}\pst@tempi |
| 204 |
\pst@checknum{#4}\pst@tempj} |
| 205 |
\def\pst@getdimnum#1 #2 #3\@nil{% |
| 206 |
\pssetlength\pst@dimg{#1}% |
| 207 |
\pst@checknum{#2}\pst@tempg} |
| 208 |
% DG/SR modification begin - Jan. 7, 1998 - Patch 9 |
| 209 |
% Missing from pstricks.bug 0.93 |
| 210 |
%\def\pst@getscale#1#2{% |
| 211 |
%\pst@expandafter\pst@getnumii{#1 #1} {} {} {}\@nil |
| 212 |
%\@psttrue |
| 213 |
%\ifdim\pst@tempg\p@=\z@ |
| 214 |
%\@pstrickserr{Bad scaling argument `#1'}\@ehpa |
| 215 |
%\def\pst@tempg{1 }% |
| 216 |
%\@pstfalse |
| 217 |
%\fi |
| 218 |
%\ifdim\pst@temph\p@=\z@ |
| 219 |
%\if@pst\@pstrickserr{Bad scaling argument `#1'}\@ehpa\fi |
| 220 |
%\def\pst@temph{1 }% |
| 221 |
%\fi |
| 222 |
%\edef#2{\pst@tempg\space \pst@temph\space scale }% |
| 223 |
%\ifdim\pst@tempg\p@=\p@ \ifdim\pst@temph\p@=\p@ |
| 224 |
%\def#2{}% |
| 225 |
%\fi\fi} |
| 226 |
\def\pst@getscale#1#2{% |
| 227 |
\edef\pst@tempg{#1}% |
| 228 |
\ifx\pst@tempg\@none |
| 229 |
\def#2{}% |
| 230 |
\else |
| 231 |
\pst@expandafter\pst@getnumii{#1 #1} {} {} {}\@nil |
| 232 |
\ifdim\pst@tempg\p@=\z@ |
| 233 |
\@pstrickserr{Bad scaling argument `#1'}\@ehpa |
| 234 |
\def#2{}% |
| 235 |
\else |
| 236 |
\ifdim\pst@temph\p@=\z@ |
| 237 |
\@pstrickserr{Bad scaling argument `#1'}\@ehpa |
| 238 |
\def#2{}% |
| 239 |
\else |
| 240 |
\edef#2{\pst@tempg\space \pst@temph\space scale }% |
| 241 |
\fi |
| 242 |
\fi |
| 243 |
\fi} |
| 244 |
% DG/SR modification end |
| 245 |
\def\pst@getint#1#2{% |
| 246 |
\pst@cntg=#1\relax |
| 247 |
\edef#2{\the\pst@cntg\space}} |
| 248 |
\begingroup |
| 249 |
\catcode`\{=12 |
| 250 |
\catcode`\}=12 |
| 251 |
\catcode`\[=1 |
| 252 |
\catcode`\]=2 |
| 253 |
\gdef\pslbrace[{ ] |
| 254 |
\gdef\psrbrace[} ] |
| 255 |
\endgroup |
| 256 |
\def\@newcolor#1#2{% |
| 257 |
\expandafter\edef\csname #1\endcsname{\noexpand\pst@color{#2}}% |
| 258 |
\expandafter\edef\csname color@#1\endcsname{#2}% |
| 259 |
\ignorespaces} |
| 260 |
\def\pst@color#1{% |
| 261 |
\def\pst@currentcolor{#1}\pstVerb{#1}\aftergroup\pst@endcolor} |
| 262 |
\def\pst@endcolor{\pstVerb{\pst@currentcolor}} |
| 263 |
\def\pst@currentcolor{0 setgray} |
| 264 |
\def\altcolormode{% |
| 265 |
\def\pst@color##1{% |
| 266 |
\pstVerb{gsave ##1}\aftergroup\pst@endcolor}% |
| 267 |
\def\pst@endcolor{\pstVerb{\pst@grestore}}} |
| 268 |
\def\pst@grestore{% |
| 269 |
currentpoint |
| 270 |
matrix currentmatrix |
| 271 |
currentfont |
| 272 |
grestore |
| 273 |
setfont |
| 274 |
setmatrix |
| 275 |
moveto} |
| 276 |
\def\pst@usecolor#1{\csname color@#1\endcsname\space} |
| 277 |
\def\newgray#1#2{% |
| 278 |
\pst@checknum{#2}\pst@tempg |
| 279 |
\@newcolor{#1}{\pst@tempg setgray}} |
| 280 |
\def\newrgbcolor#1#2{% |
| 281 |
\pst@expandafter\pst@getnumiii{#2} {} {} {} {}\@nil |
| 282 |
\@newcolor{#1}{\pst@tempg \pst@temph \pst@tempi setrgbcolor}} |
| 283 |
\def\newhsbcolor#1#2{% |
| 284 |
\pst@expandafter\pst@getnumiii{#2} {} {} {} {}\@nil |
| 285 |
\@newcolor{#1}{\pst@tempg \pst@temph \pst@tempi sethsbcolor}} |
| 286 |
\def\newcmykcolor#1#2{% |
| 287 |
\pst@expandafter\pst@getnumiv{#2} {} {} {} {} {}\@nil |
| 288 |
\@newcolor{#1}{\pst@tempg \pst@temph \pst@tempi \pst@tempj setcmykcolor}} |
| 289 |
\newgray{black}{0} |
| 290 |
\newgray{darkgray}{.25} |
| 291 |
\newgray{gray}{.5} |
| 292 |
\newgray{lightgray}{.75} |
| 293 |
\newgray{white}{1} |
| 294 |
\newrgbcolor{red}{1 0 0} |
| 295 |
\newrgbcolor{green}{0 1 0} |
| 296 |
\newrgbcolor{blue}{0 0 1} |
| 297 |
\newrgbcolor{yellow}{1 1 0} |
| 298 |
\newrgbcolor{cyan}{0 1 1} |
| 299 |
\newrgbcolor{magenta}{1 0 1} |
| 300 |
\def\psset#1{\@psset#1,\@nil\ignorespaces} |
| 301 |
\def\@psset#1,{% |
| 302 |
\@@psset#1==\@nil |
| 303 |
\@ifnextchar\@nil{\@gobble}{\@psset}} |
| 304 |
\def\@@psset#1=#2=#3\@nil{% |
| 305 |
\@ifundefined{psset@#1}% |
| 306 |
{\@pstrickserr{Graphics parameter `#1' not defined.}\@ehpa}% |
| 307 |
{\@nameuse{psset@#1}{#2}}}% |
| 308 |
\def\psset@style#1{% |
| 309 |
\@ifundefined{pscs@#1}% |
| 310 |
{\@pstrickserr{Custom style `#1' undefined}\@ehpa}% |
| 311 |
{\@nameuse{pscs@#1}}} |
| 312 |
\def\newpsstyle#1#2{\@namedef{pscs@#1}{\psset{#2}}} |
| 313 |
\def\@none{none} |
| 314 |
\def\pst@getcolor#1#2{% |
| 315 |
\@ifundefined{color@#1}% |
| 316 |
{\@pstrickserr{Color `#1' not defined}\@eha}% |
| 317 |
{\edef#2{#1}}} |
| 318 |
\newdimen\psunit \psunit 1cm |
| 319 |
\newdimen\psxunit \psxunit 1cm |
| 320 |
\newdimen\psyunit \psyunit 1cm |
| 321 |
\let\psrunit\psunit |
| 322 |
\def\pstunit@off{\let\@psunit\ignorespaces\ignorespaces} |
| 323 |
\def\pssetlength#1#2{% |
| 324 |
\let\@psunit\psunit |
| 325 |
\afterassignment\pstunit@off |
| 326 |
#1 #2\@psunit} |
| 327 |
\def\psaddtolength#1#2{% |
| 328 |
\let\@psunit\psunit |
| 329 |
\afterassignment\pstunit@off |
| 330 |
\advance#1 #2\@psunit} |
| 331 |
\def\pssetxlength#1#2{% |
| 332 |
\let\@psunit\psxunit |
| 333 |
\afterassignment\pstunit@off |
| 334 |
#1 #2\@psunit} |
| 335 |
\def\pssetylength#1#2{% |
| 336 |
\let\@psunit\psyunit |
| 337 |
\afterassignment\pstunit@off |
| 338 |
#1 #2\@psunit} |
| 339 |
\def\psset@unit#1{% |
| 340 |
\pssetlength\psunit{#1}% |
| 341 |
\psxunit=\psunit |
| 342 |
\psyunit=\psunit} |
| 343 |
\def\psset@runit#1{\pssetlength\psrunit{#1}} |
| 344 |
\def\psset@xunit#1{\pssetxlength\psxunit{#1}} |
| 345 |
\def\psset@yunit#1{\pssetylength\psyunit{#1}} |
| 346 |
\def\pst@getlength#1#2{% |
| 347 |
\pssetlength\pst@dimg{#1}% |
| 348 |
\edef#2{\pst@number\pst@dimg}} |
| 349 |
\def\pst@@getlength#1#2{% |
| 350 |
\pssetlength\pst@dimg{#1}% |
| 351 |
\edef#2{\number\pst@dimg sp}} |
| 352 |
\def\pst@getcoor#1#2{\pst@@getcoor{#1}\let#2\pst@coor} |
| 353 |
\def\pst@coor{0 0 } |
| 354 |
\def\pst@getcoors#1#2{% |
| 355 |
\def\pst@aftercoors{\addto@pscode{#1 \pst@coors }#2}% |
| 356 |
\def\pst@coors{}% |
| 357 |
\pst@@getcoors} |
| 358 |
\def\pst@@getcoors(#1){% |
| 359 |
\pst@@getcoor{#1}% |
| 360 |
\edef\pst@coors{\pst@coor\pst@coors}% |
| 361 |
\@ifnextchar({\pst@@getcoors}{\pst@aftercoors}} |
| 362 |
\def\pst@getangle#1#2{\pst@@getangle{#1}\let#2\pst@angle} |
| 363 |
\def\pst@angle{0 } |
| 364 |
\def\cartesian@coor#1,#2,#3\@nil{% |
| 365 |
\pssetxlength\pst@dimg{#1}% |
| 366 |
\pssetylength\pst@dimh{#2}% |
| 367 |
\edef\pst@coor{\pst@number\pst@dimg \pst@number\pst@dimh}} |
| 368 |
\def\NormalCoor{% |
| 369 |
\def\pst@@getcoor##1{\pst@expandafter\cartesian@coor{##1},\relax,\@nil}% |
| 370 |
\def\pst@@getangle##1{% |
| 371 |
\pst@checknum{##1}\pst@angle |
| 372 |
\edef\pst@angle{\pst@angle \pst@angleunit}}% |
| 373 |
\def\psput@##1{\pst@@getcoor{##1}\leavevmode\psput@cartesian}} |
| 374 |
\NormalCoor |
| 375 |
\def\degrees{\@ifnextchar[{\@degrees}{\def\pst@angleunit{}}} |
| 376 |
\def\@degrees[#1]{% |
| 377 |
\pst@checknum{#1}\pst@tempg |
| 378 |
\edef\pst@angleunit{360 \pst@tempg div mul }% |
| 379 |
\ignorespaces} |
| 380 |
\def\radians{\def\pst@angleunit{57.2956 mul }} |
| 381 |
\def\pst@angleunit{} |
| 382 |
\def\SpecialCoor{% |
| 383 |
\def\pst@@getcoor##1{% |
| 384 |
\begingroup |
| 385 |
\pst@activecoor |
| 386 |
\xdef\pst@tempg{##1}% |
| 387 |
\endgroup |
| 388 |
\expandafter\special@coor\pst@tempg||\@nil}% |
| 389 |
\def\pst@@getangle##1{% |
| 390 |
\begingroup |
| 391 |
\pst@activecoor |
| 392 |
\xdef\pst@tempg{##1}% |
| 393 |
\endgroup |
| 394 |
\expandafter\special@angle\pst@tempg\@empty)\@nil}% |
| 395 |
\def\psput@##1{\pst@@getcoor{##1}\leavevmode\psput@special}} |
| 396 |
\begingroup |
| 397 |
\catcode`\|=13 |
| 398 |
\catcode`\;=13 |
| 399 |
\catcode`\!=13 |
| 400 |
\gdef\pst@activecoor{% |
| 401 |
\def|{\string|}% |
| 402 |
\def;{\string;}% |
| 403 |
\def!{\string!}} |
| 404 |
\endgroup |
| 405 |
\def\special@coor#1|#2|#3\@nil{% |
| 406 |
\ifx#3|\relax |
| 407 |
\mixed@coor{#1}{#2}% |
| 408 |
\else |
| 409 |
\special@@coor#1;;\@nil |
| 410 |
\fi} |
| 411 |
\def\special@@coor#1{% |
| 412 |
\ifcat#1a\relax |
| 413 |
\def\next{\node@coor#1}% |
| 414 |
\else |
| 415 |
\ifx#1[\relax |
| 416 |
\def\next{\Node@coor[}% |
| 417 |
\else |
| 418 |
\ifx#1!\relax |
| 419 |
\def\next{\raw@coor}% |
| 420 |
\else |
| 421 |
\def\next{\special@@@coor#1}% |
| 422 |
\fi |
| 423 |
\fi |
| 424 |
\fi |
| 425 |
\next} |
| 426 |
\def\special@@@coor#1;#2;#3\@nil{% |
| 427 |
\ifx#3;\relax |
| 428 |
\polar@coor{#1}{#2}% |
| 429 |
\else |
| 430 |
\cartesian@coor#1,\relax,\@nil |
| 431 |
\fi} |
| 432 |
\def\mixed@coor#1#2{% |
| 433 |
\begingroup |
| 434 |
% DG/SR modification begin - Oct. 27, 1997 - Patch 6 |
| 435 |
%\specialcoor@ii#1;;\@nil |
| 436 |
%\let\pst@tempa\pst@coor |
| 437 |
%\specialcoor@ii#2;;\@nil |
| 438 |
\special@@coor#1;;\@nil |
| 439 |
\let\pst@tempa\pst@coor |
| 440 |
\special@@coor#2;;\@nil |
| 441 |
% DG/SR modification end |
| 442 |
\xdef\pst@tempg{\pst@tempa pop \pst@coor exch pop }% |
| 443 |
\endgroup |
| 444 |
\let\pst@coor\pst@tempg} |
| 445 |
\def\polar@coor#1#2{% |
| 446 |
\pssetlength\pst@dimg{#1}% |
| 447 |
\pst@@getangle{#2}% |
| 448 |
\edef\pst@coor{\pst@number\pst@dimg \pst@angle \tx@PtoC}} |
| 449 |
\def\raw@coor#1;#2\@nil{% |
| 450 |
\edef\pst@coor{% |
| 451 |
#1 \pst@number\psyunit mul exch \pst@number\psxunit mul exch }} |
| 452 |
\def\node@coor#1\@nil{% |
| 453 |
\@pstrickserr{You must load `pst-node.tex' to use node coordinates.}\@ehps |
| 454 |
\def\pst@coor{0 0 }} |
| 455 |
\def\Node@coor{\node@coor} |
| 456 |
\def\special@angle#1#2)#3\@nil{% |
| 457 |
\ifx!#1\relax |
| 458 |
\edef\pst@angle{#2 \pst@angleunit}% |
| 459 |
\else |
| 460 |
\ifx(#1\relax |
| 461 |
\pst@@getcoor{#2}% |
| 462 |
\edef\pst@angle{\pst@coor exch \tx@Atan}% |
| 463 |
\else |
| 464 |
\pst@checknum{#1#2}\pst@angle |
| 465 |
\edef\pst@angle{\pst@angle \pst@angleunit}% |
| 466 |
\fi |
| 467 |
\fi} |
| 468 |
\def\Cartesian{% |
| 469 |
\def\cartesian@coor##1,##2,##3\@nil{% |
| 470 |
\pssetxlength\pst@dimg{##1}% |
| 471 |
\pssetylength\pst@dimh{##2}% |
| 472 |
\edef\pst@coor{\pst@number\pst@dimg \pst@number\pst@dimh}}% |
| 473 |
\@ifnextchar({\Cartesian@}{}} |
| 474 |
\def\Cartesian@(#1,#2){% |
| 475 |
\pssetxlength\psxunit{#1}% |
| 476 |
\pssetylength\psyunit{#2}% |
| 477 |
\ignorespaces} |
| 478 |
\def\Polar{% |
| 479 |
\def\psput@cartesian{\psput@special}% |
| 480 |
\def\cartesian@coor##1,##2,##3\@nil{\polar@coor{##1}{##2}}}% |
| 481 |
\def\psset@origin#1{% |
| 482 |
\pst@@getcoor{#1}% |
| 483 |
\edef\psk@origin{\pst@coor \tx@NET }} |
| 484 |
\def\psk@origin{} |
| 485 |
\newif\ifswapaxes |
| 486 |
\def\psset@swapaxes#1{% |
| 487 |
\@nameuse{@pst#1}% |
| 488 |
\if@pst |
| 489 |
\def\psk@swapaxes{-90 rotate -1 1 scale }% |
| 490 |
\else |
| 491 |
\def\psk@swapaxes{}% |
| 492 |
\fi} |
| 493 |
\psset@swapaxes{false} |
| 494 |
\newif\ifshowpoints |
| 495 |
\def\psset@showpoints#1{\@nameuse{showpoints#1}} |
| 496 |
\psset@showpoints{false} |
| 497 |
\let\pst@setrepeatarrowsflag\relax |
| 498 |
\def\psset@border#1{% |
| 499 |
\pst@getlength{#1}\psk@border |
| 500 |
\pst@setrepeatarrowsflag} |
| 501 |
\psset@border{0pt} |
| 502 |
\def\psset@bordercolor#1{\pst@getcolor{#1}\psbordercolor} |
| 503 |
\psset@bordercolor{white} |
| 504 |
\newif\ifpsdoubleline |
| 505 |
\def\psset@doubleline#1{% |
| 506 |
\@nameuse{psdoubleline#1}% |
| 507 |
\pst@setrepeatarrowsflag} |
| 508 |
\psset@doubleline{false} |
| 509 |
\def\psset@doublesep#1{\def\psdoublesep{#1}} |
| 510 |
\psset@doublesep{1.25\pslinewidth} |
| 511 |
\def\psset@doublecolor#1{\pst@getcolor{#1}\psdoublecolor} |
| 512 |
\psset@doublecolor{white} |
| 513 |
\newif\ifpsshadow |
| 514 |
\def\psset@shadow#1{% |
| 515 |
\@nameuse{psshadow#1}% |
| 516 |
\pst@setrepeatarrowsflag} |
| 517 |
\psset@shadow{false} |
| 518 |
\def\psset@shadowsize#1{\pst@getlength{#1}\psk@shadowsize} |
| 519 |
\psset@shadowsize{3pt} |
| 520 |
\def\psset@shadowangle#1{\pst@getangle{#1}\psk@shadowangle} |
| 521 |
\psset@shadowangle{-45} |
| 522 |
\def\psset@shadowcolor#1{\pst@getcolor{#1}\psshadowcolor} |
| 523 |
\psset@shadowcolor{darkgray} |
| 524 |
\def\pst@repeatarrowsflag{\z@} |
| 525 |
\def\pst@setrepeatarrowsflag{% |
| 526 |
\edef\pst@repeatarrowsflag{% |
| 527 |
\ifdim\psk@border\p@>\z@ 1\else\ifpsdoubleline 1\else |
| 528 |
\ifpsshadow 1\else \z@\fi\fi\fi}} |
| 529 |
\def\psls@none{} |
| 530 |
\newdimen\pslinewidth |
| 531 |
\def\psset@linewidth#1{\pssetlength\pslinewidth{#1}} |
| 532 |
\psset@linewidth{.8pt} |
| 533 |
\def\psset@linecolor#1{\pst@getcolor{#1}\pslinecolor} |
| 534 |
\psset@linecolor{black} |
| 535 |
\def\psls@solid{0 setlinecap stroke } |
| 536 |
\def\pst@missing{% |
| 537 |
\z@ |
| 538 |
\@pstrickserr{Missing number or dimension. 0 substituted}\@ehpa} |
| 539 |
\def\psset@dash#1{% |
| 540 |
\pst@expandafter\psset@@dash{#1} {\pst@missing} {\pst@missing} {}\@nil |
| 541 |
\edef\psk@dash{\pst@number\pst@dimg \pst@number\pst@dimh}} |
| 542 |
\def\psset@@dash#1 #2 #3\@nil{% |
| 543 |
\pssetlength\pst@dimg{#1}% |
| 544 |
\pssetlength\pst@dimh{#2}} |
| 545 |
\psset@dash{5pt 3pt} |
| 546 |
\newif\ifpsdashadjust |
| 547 |
\def\psset@dashadjust#1{\@nameuse{psdashadjust#1}} |
| 548 |
\psset@dashadjust{true} |
| 549 |
\def\psls@dashed{% |
| 550 |
\ifpsdashadjust |
| 551 |
\psk@dash \pst@linetype\space \tx@DashLine |
| 552 |
\else |
| 553 |
[ \psk@dash ] 0 setdash stroke |
| 554 |
\fi} |
| 555 |
\def\tx@DashLine{DashLine } |
| 556 |
\def\psset@dotsep#1{\pst@getlength{#1}\psk@dotsep} |
| 557 |
\psset@dotsep{3pt} |
| 558 |
\def\psls@dotted{% |
| 559 |
\ifpsdashadjust |
| 560 |
\psk@dotsep \pst@linetype\space \tx@DotLine |
| 561 |
\else |
| 562 |
[ 0 \psk@dotsep CLW add ] 0 setdash 1 setlinecap stroke |
| 563 |
\fi} |
| 564 |
\def\tx@DotLine{DotLine } |
| 565 |
\def\psset@linestyle#1{% |
| 566 |
\@ifundefined{psls@#1}% |
| 567 |
{\@pstrickserr{Line style `#1' not defined}\@eha}% |
| 568 |
{\edef\pslinestyle{#1}}} |
| 569 |
\psset@linestyle{solid} |
| 570 |
\def\psfs@none{} |
| 571 |
\def\psset@fillcolor#1{\pst@getcolor{#1}\psfillcolor} |
| 572 |
\psset@fillcolor{white} |
| 573 |
\def\psfs@solid{\pst@fill{\pst@usecolor\psfillcolor fill}} |
| 574 |
\def\psset@hatchwidth#1{\pst@getlength{#1}\psk@hatchwidth} |
| 575 |
\psset@hatchwidth{.8pt} |
| 576 |
\def\psset@hatchsep#1{\pst@getlength{#1}\psk@hatchsep} |
| 577 |
\psset@hatchsep{4pt} |
| 578 |
\def\psset@hatchcolor#1{\pst@getcolor{#1}\pshatchcolor} |
| 579 |
\psset@hatchcolor{black} |
| 580 |
\def\psset@hatchangle#1{\pst@getangle{#1}\psk@hatchangle} |
| 581 |
\psset@hatchangle{45} |
| 582 |
\def\pst@linefill{% |
| 583 |
\psk@hatchangle rotate |
| 584 |
\psk@hatchwidth SLW |
| 585 |
\pst@usecolor\pshatchcolor |
| 586 |
\psk@hatchsep \tx@LineFill} |
| 587 |
\def\psfs@vlines{\pst@fill\pst@linefill} |
| 588 |
\@namedef{psfs@vlines*}{\psfs@solid \psfs@vlines} |
| 589 |
\def\psfs@hlines{\pst@fill{90 rotate \pst@linefill}} |
| 590 |
\@namedef{psfs@hlines*}{\psfs@solid \psfs@hlines} |
| 591 |
\def\psfs@crosshatch{\psfs@vlines \psfs@hlines} |
| 592 |
\@namedef{psfs@crosshatch*}{\psfs@solid \psfs@vlines \psfs@hlines} |
| 593 |
\def\tx@LineFill{LineFill } |
| 594 |
\def\psset@fillstyle#1{% |
| 595 |
\edef\pst@tempg{#1}\def\pst@temph{none}% |
| 596 |
\ifx\pst@tempg\pst@temph |
| 597 |
\let\psk@fillstyle\relax |
| 598 |
\else |
| 599 |
\@ifundefined{psfs@#1}% |
| 600 |
{\@pstrickserr{Undefined fill style: `#1'}\@eha}% |
| 601 |
{\edef\psk@fillstyle{\expandafter\noexpand\csname psfs@#1\endcsname}}% |
| 602 |
\fi} |
| 603 |
\def\psset@addfillstyle#1{% |
| 604 |
\@ifundefined{psfs@#1}% |
| 605 |
{\@pstrickserr{Undefined fill style: `#1'}\@eha}% |
| 606 |
{\edef\psk@fillstyle{% |
| 607 |
\expandafter\noexpand\psk@fillstyle |
| 608 |
\expandafter\noexpand\csname psfs@#1\endcsname}}} |
| 609 |
\psset@fillstyle{none} |
| 610 |
\def\psset@arrows#1{% |
| 611 |
\begingroup |
| 612 |
\pst@activearrows |
| 613 |
\xdef\pst@tempg{#1}% |
| 614 |
\endgroup |
| 615 |
\expandafter\psset@@arrows\pst@tempg\@empty-\@empty\@nil |
| 616 |
\if@pst\else |
| 617 |
\@pstrickserr{Bad arrows specification: #1}\@ehpa |
| 618 |
\fi} |
| 619 |
\def\psset@@arrows#1-#2\@empty#3\@nil{% |
| 620 |
\@psttrue |
| 621 |
\def\next##1,#1-##2,##3\@nil{\def\pst@tempg{##2}}% |
| 622 |
\expandafter\next\pst@arrowtable,#1-#1,\@nil |
| 623 |
\@ifundefined{psas@\pst@tempg}% |
| 624 |
{\@pstfalse\def\psk@arrowA{}}% |
| 625 |
{\let\psk@arrowA\pst@tempg}% |
| 626 |
\@ifundefined{psas@#2}% |
| 627 |
{\@pstfalse\def\psk@arrowB{}}% |
| 628 |
{\def\psk@arrowB{#2}}} |
| 629 |
\def\psk@arrowA{} |
| 630 |
\def\psk@arrowB{} |
| 631 |
\def\pst@arrowtable{,<->,<<->>,>-<,>>-<<,(-),[-]} |
| 632 |
\begingroup |
| 633 |
\catcode`\<=13 |
| 634 |
\catcode`\>=13 |
| 635 |
\catcode`\|=13 |
| 636 |
\gdef\pst@activearrows{\def<{\string<}\def>{\string>}\def|{\string|}} |
| 637 |
\endgroup |
| 638 |
\def\tx@BeginArrow{BeginArrow } |
| 639 |
\def\tx@EndArrow{EndArrow } |
| 640 |
\def\psset@arrowscale#1{\pst@getscale{#1}\psk@arrowscale} |
| 641 |
\psset@arrowscale{1} |
| 642 |
\def\psset@arrowsize#1{% |
| 643 |
\pst@expandafter\pst@getdimnum{#1} 0 {} {}\@nil |
| 644 |
\edef\psk@arrowsize{\pst@number\pst@dimg \pst@tempg}} |
| 645 |
\psset@arrowsize{1.5pt 2} |
| 646 |
\def\psset@arrowlength#1{\pst@checknum{#1}\psk@arrowlength} |
| 647 |
\psset@arrowlength{1.4} |
| 648 |
\def\psset@arrowinset#1{\pst@checknum{#1}\psk@arrowinset}% |
| 649 |
\psset@arrowinset{.4} |
| 650 |
\def\tx@Arrow{Arrow } |
| 651 |
\@namedef{psas@>}{% |
| 652 |
false \psk@arrowinset \psk@arrowlength \psk@arrowsize \tx@Arrow} |
| 653 |
\@namedef{psas@>>}{% |
| 654 |
false \psk@arrowinset \psk@arrowlength \psk@arrowsize \tx@Arrow |
| 655 |
0 h T |
| 656 |
gsave |
| 657 |
newpath |
| 658 |
false \psk@arrowinset \psk@arrowlength \psk@arrowsize \tx@Arrow |
| 659 |
CP |
| 660 |
grestore |
| 661 |
CP newpath moveto |
| 662 |
2 copy |
| 663 |
L |
| 664 |
stroke |
| 665 |
moveto} |
| 666 |
\@namedef{psas@<}{% |
| 667 |
true \psk@arrowinset \psk@arrowlength \psk@arrowsize \tx@Arrow} |
| 668 |
\@namedef{psas@<<}{% |
| 669 |
true \psk@arrowinset \psk@arrowlength \psk@arrowsize \tx@Arrow |
| 670 |
CP newpath moveto 0 a neg L stroke 0 h neg T |
| 671 |
false \psk@arrowinset \psk@arrowlength \psk@arrowsize \tx@Arrow} |
| 672 |
\def\psset@tbarsize#1{% |
| 673 |
\pst@expandafter\pst@getdimnum{#1} 0 {} {}\@nil |
| 674 |
\edef\psk@tbarsize{\pst@number\pst@dimg \pst@tempg}} |
| 675 |
\psset@tbarsize{2pt 5} |
| 676 |
\def\tx@Tbar{Tbar } |
| 677 |
\@namedef{psas@|}{\psk@tbarsize \tx@Tbar} |
| 678 |
\@namedef{psas@|*}{0 CLW -2 div T \psk@tbarsize \tx@Tbar} |
| 679 |
\@namedef{psas@>|}{% |
| 680 |
\psk@tbarsize \tx@Tbar |
| 681 |
0 CLW 2 div T |
| 682 |
newpath |
| 683 |
false \psk@arrowinset \psk@arrowlength \psk@arrowsize \tx@Arrow} |
| 684 |
\@namedef{psas@>|*}{% |
| 685 |
0 CLW -2 div T |
| 686 |
\psk@tbarsize \tx@Tbar |
| 687 |
0 CLW 2 div T |
| 688 |
newpath |
| 689 |
false \psk@arrowinset \psk@arrowlength \psk@arrowsize \tx@Arrow} |
| 690 |
\edef\pst@arrowtable{\pst@arrowtable,|<*->|*,|<->|} |
| 691 |
\def\psset@bracketlength#1{\pst@checknum{#1}\psk@bracketlength} |
| 692 |
\psset@bracketlength{.15} |
| 693 |
\def\tx@Bracket{Bracket } |
| 694 |
\@namedef{psas@]}{\psk@bracketlength \psk@tbarsize \tx@Bracket} |
| 695 |
\def\psset@rbracketlength#1{\pst@checknum{#1}\psk@rbracketlength} |
| 696 |
\psset@rbracketlength{.15} |
| 697 |
\def\tx@RoundBracket{RoundBracket } |
| 698 |
\@namedef{psas@)}{\psk@rbracketlength \psk@tbarsize \tx@RoundBracket} |
| 699 |
\def\psas@c{1 \psas@@c} |
| 700 |
\def\psas@cc{0 CLW 2 div T 1 \psas@@c} |
| 701 |
\def\psas@C{2 \psas@@c} |
| 702 |
\def\psas@@c{% |
| 703 |
setlinecap |
| 704 |
0 0 moveto |
| 705 |
0 CLW 2 div L |
| 706 |
stroke |
| 707 |
0 0 moveto} |
| 708 |
\def\psas@{} |
| 709 |
\psset@arrows{-} |
| 710 |
\def\tx@SD{SD } |
| 711 |
\def\tx@EndDot{EndDot } |
| 712 |
\def\psas@oo{{\pst@usecolor\psfillcolor true} true \psk@dotsize \tx@EndDot} |
| 713 |
\def\psas@o{{\pst@usecolor\psfillcolor true} false \psk@dotsize \tx@EndDot} |
| 714 |
\@namedef{psas@**}{{false} true \psk@dotsize \tx@EndDot} |
| 715 |
\@namedef{psas@*}{{false} false \psk@dotsize \tx@EndDot} |
| 716 |
\def\pst@par{} |
| 717 |
\def\addto@par#1{% |
| 718 |
\ifx\pst@par\@empty |
| 719 |
\def\pst@par{#1}% |
| 720 |
\else |
| 721 |
\expandafter\def\expandafter\pst@par\expandafter{\pst@par,#1}% |
| 722 |
\fi} |
| 723 |
\def\addbefore@par#1{% |
| 724 |
\ifx\pst@par\@empty |
| 725 |
\def\pst@par{#1}% |
| 726 |
\else |
| 727 |
\toks@{#1}% |
| 728 |
\pst@toks\expandafter{\pst@par}% |
| 729 |
\edef\pst@par{\the\toks@,\the\pst@toks}% |
| 730 |
\fi} |
| 731 |
\def\use@par{% |
| 732 |
\ifx\pst@par\@empty\else |
| 733 |
\expandafter\@psset\pst@par,\@nil |
| 734 |
\def\pst@par{}% |
| 735 |
\fi} |
| 736 |
\def\pst@object#1{% |
| 737 |
\pst@ifstar{% |
| 738 |
\@ifnextchar[% |
| 739 |
{\pst@@object{#1}}% |
| 740 |
{\def\pst@par{}\@nameuse{#1@i}}}} |
| 741 |
\def\pst@@object#1[#2]{% |
| 742 |
\def\pst@par{#2}% |
| 743 |
\@ifnextchar+{\@nameuse{#1@i}}{\@nameuse{#1@i}}} |
| 744 |
\def\newpsobject#1#2#3{% |
| 745 |
\@ifundefined{#2@i}% |
| 746 |
{\@pstrickserr{Graphics object `#2' not defined}\@eha}{% |
| 747 |
\@namedef{#1}{\pst@object{#1}}% |
| 748 |
\@namedef{#1@i}{\addbefore@par{#3}\@nameuse{#2@i}}}% |
| 749 |
\ignorespaces} |
| 750 |
\def\pst@getarrows#1{\@ifnextchar({#1}{\pst@@getarrows{#1}}} |
| 751 |
\def\pst@@getarrows#1#2{\addto@par{arrows=#2}#1} |
| 752 |
\def\begin@ClosedObj{% |
| 753 |
\leavevmode |
| 754 |
\pst@killglue |
| 755 |
\begingroup |
| 756 |
\use@par |
| 757 |
\solid@star |
| 758 |
\ifpsdoubleline \pst@setdoublesep \fi |
| 759 |
\init@pscode} |
| 760 |
\def\end@ClosedObj{% |
| 761 |
\ifpsshadow \pst@closedshadow \fi |
| 762 |
\ifdim\psk@border\p@>\z@ \pst@addborder \fi |
| 763 |
\psk@fillstyle |
| 764 |
\pst@stroke |
| 765 |
\ifpsdoubleline \pst@doublestroke \fi |
| 766 |
\ifshowpoints |
| 767 |
% DG modification begin - Mar. 4, 1995 |
| 768 |
%\addto@pscode{Points aload length 2 div cvi /N ED \psdots@iii}% |
| 769 |
\pst@OpenShowPoints |
| 770 |
% DG modification end |
| 771 |
\fi |
| 772 |
\use@pscode |
| 773 |
\endgroup |
| 774 |
\ignorespaces} |
| 775 |
\def\begin@OpenObj{% |
| 776 |
\begin@ClosedObj |
| 777 |
\let\pst@linetype\pst@arrowtype |
| 778 |
\pst@addarrowdef} |
| 779 |
\def\begin@AltOpenObj{% |
| 780 |
\begin@ClosedObj |
| 781 |
\def\pst@repeatarrowsflag{\z@}% |
| 782 |
\def\pst@linetype{0}} |
| 783 |
\def\end@OpenObj{% |
| 784 |
\ifpsshadow \pst@openshadow \fi |
| 785 |
\ifdim\psk@border\p@>\z@ \pst@addborder \fi |
| 786 |
\psk@fillstyle |
| 787 |
\pst@stroke |
| 788 |
\ifpsdoubleline \pst@doublestroke \fi |
| 789 |
\ifnum\pst@repeatarrowsflag>\z@ \pst@repeatarrows \fi |
| 790 |
\ifshowpoints \pst@OpenShowPoints \fi |
| 791 |
\use@pscode |
| 792 |
\endgroup |
| 793 |
\ignorespaces} |
| 794 |
\def\begin@SpecialObj{% |
| 795 |
\leavevmode |
| 796 |
\pst@killglue |
| 797 |
\begingroup |
| 798 |
\use@par |
| 799 |
\init@pscode} |
| 800 |
\def\end@SpecialObj{% |
| 801 |
\use@pscode |
| 802 |
\endgroup |
| 803 |
\ignorespaces} |
| 804 |
\def\pst@code{}% |
| 805 |
\def\init@pscode{% |
| 806 |
\addto@pscode{% |
| 807 |
\pst@number\pslinewidth SLW |
| 808 |
\pst@usecolor\pslinecolor}} |
| 809 |
\def\addto@pscode#1{\xdef\pst@code{\pst@code#1\space}} |
| 810 |
\def\use@pscode{% |
| 811 |
\pstverb{% |
| 812 |
\pst@dict |
| 813 |
\tx@STP |
| 814 |
\pst@newpath |
| 815 |
\psk@origin |
| 816 |
\psk@swapaxes |
| 817 |
\pst@code |
| 818 |
end}% |
| 819 |
\gdef\pst@code{}} |
| 820 |
\def\pst@newpath{newpath } |
| 821 |
\def\pst@@killglue{\unskip\ifdim\lastskip>\z@\expandafter\pst@@killglue\fi} |
| 822 |
\def\KillGlue{\let\pst@killglue\pst@@killglue} |
| 823 |
\def\DontKillGlue{\let\pst@killglue\relax} |
| 824 |
\DontKillGlue |
| 825 |
\def\solid@star{% |
| 826 |
\if@star |
| 827 |
\pslinewidth=\z@ |
| 828 |
\psdoublelinefalse |
| 829 |
\def\pslinestyle{none}% |
| 830 |
\def\psk@fillstyle{\psfs@solid}% |
| 831 |
\let\psfillcolor\pslinecolor |
| 832 |
\fi} |
| 833 |
\def\pst@setdoublesep{% |
| 834 |
\pst@getlength\psdoublesep\psdoublesep |
| 835 |
\pslinewidth=2\pslinewidth |
| 836 |
\advance\pslinewidth\psdoublesep\p@ |
| 837 |
\let\pst@setdoublesep\relax} |
| 838 |
\def\tx@Shadow{Shadow } |
| 839 |
\def\pst@closedshadow{% |
| 840 |
\addto@pscode{% |
| 841 |
gsave |
| 842 |
\psk@shadowsize \psk@shadowangle \tx@PtoC |
| 843 |
\tx@Shadow |
| 844 |
\pst@usecolor\psshadowcolor |
| 845 |
gsave fill grestore |
| 846 |
stroke |
| 847 |
grestore |
| 848 |
gsave |
| 849 |
\pst@usecolor\psfillcolor |
| 850 |
gsave fill grestore |
| 851 |
stroke |
| 852 |
grestore}} |
| 853 |
\def\pst@openshadow{% |
| 854 |
\addto@pscode{% |
| 855 |
gsave |
| 856 |
\psk@shadowsize \psk@shadowangle \tx@PtoC |
| 857 |
\tx@Shadow |
| 858 |
\pst@usecolor\psshadowcolor |
| 859 |
\ifx\psk@fillstyle\relax\else |
| 860 |
gsave fill grestore |
| 861 |
\fi |
| 862 |
stroke}% |
| 863 |
\pst@repeatarrows |
| 864 |
\addto@pscode{grestore} |
| 865 |
\ifx\psk@fillstyle\relax\else |
| 866 |
\addto@pscode{% |
| 867 |
gsave |
| 868 |
\pst@usecolor\psfillcolor |
| 869 |
gsave fill grestore |
| 870 |
stroke |
| 871 |
grestore} |
| 872 |
\fi} |
| 873 |
\def\pst@addborder{% |
| 874 |
\addto@pscode{% |
| 875 |
gsave |
| 876 |
\psk@border 2 mul |
| 877 |
CLW add SLW |
| 878 |
\pst@usecolor\psbordercolor |
| 879 |
stroke |
| 880 |
grestore}} |
| 881 |
\def\pst@stroke{% |
| 882 |
\ifx\pslinestyle\@none\else |
| 883 |
\addto@pscode{% |
| 884 |
gsave |
| 885 |
\pst@number\pslinewidth SLW |
| 886 |
\pst@usecolor\pslinecolor |
| 887 |
\@nameuse{psls@\pslinestyle} |
| 888 |
grestore}% |
| 889 |
\fi} |
| 890 |
\def\pst@fill#1{\addto@pscode{gsave #1 grestore}}% |
| 891 |
\def\pst@doublestroke{% |
| 892 |
\addto@pscode{% |
| 893 |
gsave |
| 894 |
\psdoublesep SLW |
| 895 |
\pst@usecolor\psdoublecolor |
| 896 |
stroke |
| 897 |
grestore}} |
| 898 |
\def\pst@arrowtype{% |
| 899 |
\ifx\psk@arrowB\@empty 0 \else -2 \fi |
| 900 |
\ifx\psk@arrowA\@empty 0 \else -1 \fi |
| 901 |
add} |
| 902 |
\def\pst@addarrowdef{% |
| 903 |
\addto@pscode{% |
| 904 |
/ArrowA { |
| 905 |
\ifx\psk@arrowA\@empty |
| 906 |
\pst@oplineto |
| 907 |
\else |
| 908 |
\pst@arrowdef{A} |
| 909 |
moveto |
| 910 |
\fi |
| 911 |
} def |
| 912 |
/ArrowB { |
| 913 |
\ifx\psk@arrowB\@empty \else \pst@arrowdef{B} \fi |
| 914 |
} def}} |
| 915 |
\def\pst@arrowdef#1{% |
| 916 |
\ifnum\pst@repeatarrowsflag>\z@ |
| 917 |
/Arrow#1c [ 6 2 roll ] cvx def Arrow#1c |
| 918 |
\fi |
| 919 |
\tx@BeginArrow |
| 920 |
\psk@arrowscale |
| 921 |
\@nameuse{psas@\@nameuse{psk@arrow#1}} |
| 922 |
\tx@EndArrow} |
| 923 |
\def\pst@repeatarrows{% |
| 924 |
\addto@pscode{% |
| 925 |
gsave |
| 926 |
\ifx\psk@arrowA\@empty\else |
| 927 |
ArrowAc ArrowA pop pop |
| 928 |
\fi |
| 929 |
\ifx\psk@arrowB\@empty\else |
| 930 |
ArrowBc ArrowB pop pop pop pop |
| 931 |
\fi |
| 932 |
grestore}} |
| 933 |
\def\pst@OpenShowPoints{% |
| 934 |
\addto@pscode{% |
| 935 |
gsave |
| 936 |
\psk@dotsize |
| 937 |
\@nameuse{psds@\psk@dotstyle} |
| 938 |
newpath |
| 939 |
Points aload length 2 div 2 sub cvi /N ED |
| 940 |
N 0 ge |
| 941 |
{ \ifx\psk@arrowA\@empty |
| 942 |
Dot |
| 943 |
\else |
| 944 |
pop pop |
| 945 |
\fi |
| 946 |
N { Dot } repeat |
| 947 |
\ifx\psk@arrowB\@empty |
| 948 |
Dot |
| 949 |
\else |
| 950 |
pop pop |
| 951 |
\fi } |
| 952 |
{ N 2 mul { pop } repeat } |
| 953 |
ifelse |
| 954 |
grestore}} |
| 955 |
\def\pscustom{\pst@object{pscustom}} |
| 956 |
\long\def\pscustom@i#1{% |
| 957 |
\begin@SpecialObj |
| 958 |
\solid@star |
| 959 |
\let\pst@ifcustom\iftrue |
| 960 |
\let\begin@ClosedObj\begin@CustomObj |
| 961 |
\let\end@ClosedObj\endgroup |
| 962 |
\def\begin@OpenObj{\begin@CustomObj\pst@addarrowdef}% |
| 963 |
\let\end@OpenObj\endgroup |
| 964 |
\let\begin@AltOpenObj\begin@CustomObj |
| 965 |
\def\begin@SpecialObj{% |
| 966 |
\begingroup |
| 967 |
\pst@misplaced{special graphics object}% |
| 968 |
\def\addto@pscode####1{} |
| 969 |
\let\end@SpecialObj\endgroup}% |
| 970 |
\def\@multips(##1)(##2)##3##4{\pst@misplaced\multips}% |
| 971 |
\def\psclip##1{\pst@misplaced\psclip}% |
| 972 |
\def\pst@repeatarrowsflag{\z@}% |
| 973 |
\let\pst@setrepeatarrowsflag\relax |
| 974 |
\showpointsfalse |
| 975 |
\let\showpointstrue\relax |
| 976 |
\def\pst@linetype{\pslinetype}% |
| 977 |
\let\psset@liftpen\psset@@liftpen |
| 978 |
\psset@liftpen{\z@}% |
| 979 |
\def\pst@cp{/currentpoint load stopped pop }% |
| 980 |
\def\pst@oplineto{/lineto load stopped { moveto } if }% |
| 981 |
\def\pst@optcp##1##2{% |
| 982 |
\ifnum##1=\z@\def##2{/currentpoint load stopped { 0 0 } if }\fi}% |
| 983 |
\let\caddto@pscode\addto@pscode |
| 984 |
\def\cuse@par##1{{\use@par##1}}% |
| 985 |
\the\pst@customdefs |
| 986 |
\setbox\pst@hbox=\hbox{#1}% |
| 987 |
\psk@fillstyle |
| 988 |
\pst@stroke |
| 989 |
\end@SpecialObj} |
| 990 |
\def\begin@CustomObj{% |
| 991 |
\begingroup |
| 992 |
\use@par |
| 993 |
\addto@pscode{% |
| 994 |
\pst@number\pslinewidth SLW |
| 995 |
\pst@usecolor\pslinecolor}} |
| 996 |
\def\pst@oplineto{moveto } |
| 997 |
\def\pst@cp{} |
| 998 |
\def\pst@optcp#1#2{} |
| 999 |
\def\psset@liftpen#1{} |
| 1000 |
\def\psset@@liftpen#1{% |
| 1001 |
\ifcase#1\relax |
| 1002 |
\def\psk@liftpen{\z@}% |
| 1003 |
\def\pst@cp{/currentpoint load stopped pop }% |
| 1004 |
\def\pst@oplineto{/lineto load stopped { moveto } if }% |
| 1005 |
\or |
| 1006 |
\def\psk@liftpen{1}% |
| 1007 |
\def\pst@cp{}% |
| 1008 |
\def\pst@oplineto{/lineto load stopped { moveto } if }% |
| 1009 |
\or |
| 1010 |
\def\psk@liftpen{2}% |
| 1011 |
\def\pst@cp{}% |
| 1012 |
\def\pst@oplineto{moveto }% |
| 1013 |
\fi} |
| 1014 |
\psset@liftpen{0} |
| 1015 |
\def\psk@liftpen{-1} |
| 1016 |
\def\psset@linetype#1{% |
| 1017 |
\pst@getint{#1}\pslinetype |
| 1018 |
\ifnum\pst@dimg<-3 |
| 1019 |
\@pstrickserr{linetype must be greater than -3}\@ehpa |
| 1020 |
\def\pslinetype{0}% |
| 1021 |
\fi} |
| 1022 |
\psset@linetype{0} |
| 1023 |
\def\caddto@pscode#1{% |
| 1024 |
\@pstrickserr{Command can only be used in \string\pscustom}\@ehpa} |
| 1025 |
\let\cuse@par\caddto@pscode |
| 1026 |
\def\tx@MSave{% |
| 1027 |
/msavemtrx |
| 1028 |
[ tx@Dict /msavemtrx known { msavemtrx aload pop } if CM ] |
| 1029 |
def } |
| 1030 |
\def\tx@MRestore{% |
| 1031 |
tx@Dict /msavemtrx known { length 0 gt } { false } ifelse |
| 1032 |
{ /msavematrx [ msavematrx aload pop setmatrix ] def } |
| 1033 |
if } |
| 1034 |
\newtoks\pst@customdefs |
| 1035 |
\pst@customdefs{% |
| 1036 |
\def\newpath{\addto@pscode{newpath}}% |
| 1037 |
\def\moveto(#1){\pst@@getcoor{#1}\addto@pscode{\pst@coor moveto}}% |
| 1038 |
\def\closepath{\addto@pscode{closepath}}% |
| 1039 |
\def\gsave{\begingroup\addto@pscode{gsave}}% |
| 1040 |
\def\grestore{\endgroup\addto@pscode{grestore}}% |
| 1041 |
% DG/SR modification begin - May 12, 1997 - Patch 2 |
| 1042 |
%\def\translate(#1){\pst@@getcoor{#1}\addto@pscode{\pst@coor moveto}}% |
| 1043 |
\def\translate(#1){\pst@@getcoor{#1}\addto@pscode{\pst@coor translate}}% |
| 1044 |
% DG/SR modification end |
| 1045 |
\def\rotate#1{\pst@@getangle{#1}\addto@pscode{\pst@angle rotate}}% |
| 1046 |
\def\scale#1{\pst@getscale{#1}\pst@tempg\addto@pscode{\pst@tempg}}% |
| 1047 |
\def\msave{\addto@pscode{\tx@MSave}}% |
| 1048 |
\def\mrestore{\addto@pscode{\tx@MRestore}}% |
| 1049 |
\def\swapaxes{\addto@pscode{-90 rotate -1 1 scale}}% |
| 1050 |
\def\stroke{\pst@object{stroke}}% |
| 1051 |
\def\fill{\pst@object{fill}}% |
| 1052 |
\def\openshadow{\pst@object{openshadow}}% |
| 1053 |
\def\closedshadow{\pst@object{closedshadow}}% |
| 1054 |
% DG/SR modification begin - Jan. 7, 1998 - Patch 8 |
| 1055 |
%\def\movepath(#1){\pst@@getcoor{#1}\addto@pscode{\pst@coor tx@Shadow}}% |
| 1056 |
\def\movepath(#1){\pst@@getcoor{#1}\addto@pscode{\pst@coor \tx@Shadow}}% |
| 1057 |
% DG/SR modification end |
| 1058 |
\def\lineto{\pst@onecoor{lineto}}% |
| 1059 |
\def\rlineto{\pst@onecoor{rlineto}}% |
| 1060 |
\def\curveto{\pst@threecoor{curveto}}% |
| 1061 |
\def\rcurveto{\pst@threecoor{rcurveto}}% |
| 1062 |
\def\code#1{\addto@pscode{#1}}% |
| 1063 |
\def\coor(#1){\pst@@getcoor{#1}\addto@pscode\pst@coor\@ifnextchar({\coor}{}}% |
| 1064 |
\def\rcoor{\pst@getcoors{}{}}% |
| 1065 |
\def\dim#1{\pssetlength\pst@dimg{#1}\addto@pscode{\pst@number\pst@dimg}}% |
| 1066 |
\def\setcolor#1{% |
| 1067 |
\@ifundefined{color@#1}{}{\addto@pscode{\use@color{#1}}}}% |
| 1068 |
\def\arrows#1{{\psset@arrows{#1}\pst@addarrowdef}}% |
| 1069 |
\let\file\pst@rawfile |
| 1070 |
} % END \pst@customdefs |
| 1071 |
\def\closedshadow@i{\cuse@par\pst@closedshadow} |
| 1072 |
\def\openshadow@i{\cuse@par\pst@openshadow} |
| 1073 |
\def\stroke@i{\cuse@par\pst@stroke}% |
| 1074 |
\def\fill@i{\cuse@par\psk@fillstyle}% |
| 1075 |
\def\pst@onecoor#1(#2){% |
| 1076 |
\pst@@getcoor{#2}% |
| 1077 |
\addto@pscode{\pst@coor #1}} |
| 1078 |
\def\pst@threecoor#1(#2)#3(#4)#5(#6){% |
| 1079 |
\begingroup |
| 1080 |
\pst@getcoor{#2}\pst@tempa |
| 1081 |
\pst@getcoor{#4}\pst@tempb |
| 1082 |
% DG/SR modification begin - Aug. 4, 1999 - Patch 11 |
| 1083 |
%\pst@getcoor{#6}\pst@tembc |
| 1084 |
\pst@getcoor{#6}\pst@tempc |
| 1085 |
% DG/SR modification end |
| 1086 |
\addto@pscode{\pst@tempa \pst@tempb \pst@tempc #1}% |
| 1087 |
\endgroup} |
| 1088 |
\def\pst@rawfile#1{% |
| 1089 |
\begingroup |
| 1090 |
\def\do##1{\catcode`##1=12\relax}" |
| 1091 |
\dospecials |
| 1092 |
\catcode`\%=14 |
| 1093 |
\pst@@rawfile{#1}% |
| 1094 |
\endgroup} |
| 1095 |
\def\pst@@rawfile#1{% |
| 1096 |
\immediate\openin1 #1 |
| 1097 |
\ifeof1 |
| 1098 |
\@pstrickserr{File `#1' not found}\@ehpa |
| 1099 |
\else |
| 1100 |
\immediate\read1 to \pst@tempg |
| 1101 |
\loop |
| 1102 |
\ifeof1 \@pstfalse\else\@psttrue\fi |
| 1103 |
\if@pst |
| 1104 |
\addto@pscode\pst@tempg |
| 1105 |
\immediate\read1 to \pst@tempg |
| 1106 |
\repeat |
| 1107 |
\fi |
| 1108 |
\immediate\closein1\relax} |
| 1109 |
\def\tx@NArray{NArray } |
| 1110 |
\def\tx@NArray{NArray } |
| 1111 |
\def\tx@Line{Line } |
| 1112 |
\def\tx@Arcto{Arcto } |
| 1113 |
\def\tx@CheckClosed{CheckClosed } |
| 1114 |
\def\tx@Polygon{Polygon } |
| 1115 |
\def\psset@gangle#1{\pst@getangle{#1}\psk@gangle} |
| 1116 |
\psset@gangle{0} |
| 1117 |
\def\tx@Diamond{Diamond } |
| 1118 |
\def\psdiamond{\pst@object{psdiamond}} |
| 1119 |
\def\psdiamond@i(#1){% |
| 1120 |
\@ifnextchar({\psdiamond@ii(#1)}{\psdiamond@ii(0,0)(#1)}} |
| 1121 |
\def\psdiamond@ii(#1)(#2){% |
| 1122 |
\begin@ClosedObj |
| 1123 |
\pst@getcoor{#1}\pst@tempa |
| 1124 |
\pst@getcoor{#2}\pst@tempb |
| 1125 |
\addto@pscode{% |
| 1126 |
\psline@iii |
| 1127 |
pop |
| 1128 |
\psk@dimen |
| 1129 |
\pst@tempb |
| 1130 |
\psk@gangle |
| 1131 |
\pst@tempa |
| 1132 |
\tx@Diamond}% |
| 1133 |
\def\pst@linetype{4}% |
| 1134 |
\end@ClosedObj} |
| 1135 |
\def\tx@Triangle{Triangle } |
| 1136 |
\def\pstriangle{\pst@object{pstriangle}} |
| 1137 |
\def\pstriangle@i(#1){% |
| 1138 |
\@ifnextchar({\pstriangle@ii(#1)}{\pstriangle@ii(0,0)(#1)}} |
| 1139 |
\def\pstriangle@ii(#1)(#2){% |
| 1140 |
\begin@ClosedObj |
| 1141 |
\pst@getcoor{#1}\pst@tempa |
| 1142 |
\pst@getcoor{#2}\pst@tempb |
| 1143 |
\addto@pscode{% |
| 1144 |
\psline@iii |
| 1145 |
pop |
| 1146 |
\psk@dimen |
| 1147 |
\pst@tempb |
| 1148 |
\psk@gangle |
| 1149 |
\pst@tempa |
| 1150 |
\tx@Triangle}% |
| 1151 |
\def\pst@linetype{2}% |
| 1152 |
\end@ClosedObj} |
| 1153 |
\def\tx@CCA{CCA } |
| 1154 |
\def\tx@CCA{CCA } |
| 1155 |
\def\tx@CC{CC } |
| 1156 |
\def\tx@IC{IC } |
| 1157 |
\def\tx@BOC{BOC } |
| 1158 |
\def\tx@NC{NC } |
| 1159 |
\def\tx@EOC{EOC } |
| 1160 |
\def\tx@BAC{BAC } |
| 1161 |
\def\tx@NAC{NAC } |
| 1162 |
\def\tx@EAC{EAC } |
| 1163 |
\def\tx@OpenCurve{OpenCurve } |
| 1164 |
\def\tx@AltCurve{AltCurve } |
| 1165 |
\def\tx@ClosedCurve{ClosedCurve } |
| 1166 |
\def\psset@curvature#1{% |
| 1167 |
\edef\pst@tempg{#1 }% |
| 1168 |
\expandafter\psset@@curvature\pst@tempg * * * \@nil} |
| 1169 |
\def\psset@@curvature#1 #2 #3 #4\@nil{% |
| 1170 |
\pst@checknum{#1}\pst@tempg |
| 1171 |
\pst@checknum{#2}\pst@temph |
| 1172 |
\pst@checknum{#3}\pst@tempi |
| 1173 |
\edef\psk@curvature{\pst@tempg \pst@temph \pst@tempi}} |
| 1174 |
\psset@curvature{1 .1 0} |
| 1175 |
\def\pscurve{\pst@object{pscurve}} |
| 1176 |
\def\pscurve@i{% |
| 1177 |
\pst@getarrows{% |
| 1178 |
\begin@OpenObj |
| 1179 |
\pst@getcoors[\pscurve@ii}} |
| 1180 |
\def\pscurve@ii{% |
| 1181 |
\addto@pscode{% |
| 1182 |
\pst@cp |
| 1183 |
\psk@curvature\space /c ED /b ED /a ED |
| 1184 |
\ifshowpoints true \else false \fi |
| 1185 |
\tx@OpenCurve}% |
| 1186 |
\end@OpenObj} |
| 1187 |
\def\psecurve{\pst@object{psecurve}} |
| 1188 |
\def\psecurve@i{% |
| 1189 |
\pst@getarrows{% |
| 1190 |
\begin@OpenObj |
| 1191 |
\pst@getcoors[\psecurve@ii}} |
| 1192 |
\def\psecurve@ii{% |
| 1193 |
\addto@pscode{% |
| 1194 |
\psk@curvature\space /c ED /b ED /a ED |
| 1195 |
\ifshowpoints true \else false \fi |
| 1196 |
\tx@AltCurve}% |
| 1197 |
\end@OpenObj} |
| 1198 |
\def\psccurve{\pst@object{psccurve}} |
| 1199 |
\def\psccurve@i{% |
| 1200 |
\begin@ClosedObj |
| 1201 |
\pst@getcoors[\psccurve@ii} |
| 1202 |
\def\psccurve@ii{% |
| 1203 |
\addto@pscode{% |
| 1204 |
\psk@curvature\space /c ED /b ED /a ED |
| 1205 |
\ifshowpoints true \else false \fi |
| 1206 |
\tx@ClosedCurve}% |
| 1207 |
\def\pst@linetype{1}% |
| 1208 |
\end@ClosedObj} |
| 1209 |
\def\psset@dotsize#1{% |
| 1210 |
\pst@expandafter\pst@getdimnum{#1} 0 {} {}\@nil |
| 1211 |
\edef\psk@@dotsize{\pst@number\pst@dimg}% |
| 1212 |
\let\psk@@@dotsize\pst@tempg |
| 1213 |
\edef\psk@dotsize{% |
| 1214 |
/DS \psk@@dotsize \psk@@@dotsize CLW mul add 2 div def }} |
| 1215 |
\psset@dotsize{2pt 2} |
| 1216 |
\def\psset@dotscale#1{% |
| 1217 |
\pst@getscale{#1}\psk@dotscale |
| 1218 |
\ifx\psk@dotscale\@empty |
| 1219 |
\def\psk@xdotscale{1 }% |
| 1220 |
\def\psk@ydotscale{1 }% |
| 1221 |
\else |
| 1222 |
\let\psk@xdotscale\pst@tempg |
| 1223 |
\let\psk@ydotscale\pst@temph |
| 1224 |
\fi} |
| 1225 |
% DG/SR modification begin - Oct. 17, 1997 - Patch 5 |
| 1226 |
%\psset@dotscale{1} |
| 1227 |
% DG/SR modification end |
| 1228 |
\def\pst@Getangle#1#2{% |
| 1229 |
\pst@getangle{#1}\pst@tempg |
| 1230 |
\def\pst@temph{0. }% |
| 1231 |
\ifx\pst@tempg\pst@temph |
| 1232 |
\def#2{}% |
| 1233 |
\else |
| 1234 |
\edef#2{\pst@tempg\space rotate }% |
| 1235 |
\fi} |
| 1236 |
\def\psset@dotangle#1{% |
| 1237 |
\pst@getangle{#1}\psk@@dotangle |
| 1238 |
\ifdim\psk@@dotangle\p@=\z@ |
| 1239 |
\let\psk@dotangle\@empty |
| 1240 |
\else |
| 1241 |
% DG/SR modification begin - Aug. 8, 1997 - Patch 4 |
| 1242 |
%\edef\psk@dotangle{\psk@@dotangle rotate } |
| 1243 |
\edef\psk@dotangle{\psk@@dotangle rotate }% |
| 1244 |
% DG/SR modification end |
| 1245 |
\fi} |
| 1246 |
\psset@dotangle{0} |
| 1247 |
\def\pst@getdotsize{% |
| 1248 |
\pst@dimg=\psk@@@dotsize\pslinewidth |
| 1249 |
\advance\pst@dimg\psk@@dotsize\p@ |
| 1250 |
\pst@dimh=\psk@ydotscale\pst@dimg |
| 1251 |
\pst@dimg=\psk@xdotscale\pst@dimg |
| 1252 |
\divide\pst@dimh 2 |
| 1253 |
\divide\pst@dimg 2\relax} |
| 1254 |
% DG/SR modification begin - Oct. 17, 1997 - Patch 5 |
| 1255 |
\psset@dotscale{1} |
| 1256 |
% DG/SR modification end |
| 1257 |
\def\psdot{\pst@object{psdot}} |
| 1258 |
\def\psdot@i{\@ifnextchar({\psdot@ii}{\psdot@ii(\z@,\z@)}} |
| 1259 |
\def\psdot@ii(#1){% |
| 1260 |
\begin@SpecialObj |
| 1261 |
\pst@@getcoor{#1}% |
| 1262 |
\addto@pscode{% |
| 1263 |
\psk@dotsize |
| 1264 |
\@nameuse{psds@\psk@dotstyle}% |
| 1265 |
\pst@coor Dot}% |
| 1266 |
\end@SpecialObj} |
| 1267 |
\def\psdots{\pst@object{psdots}} |
| 1268 |
\def\psdots@i{% |
| 1269 |
\begin@SpecialObj |
| 1270 |
\pst@getcoors[\psdots@ii} |
| 1271 |
\def\psdots@ii{% |
| 1272 |
\addto@pscode{false \tx@NArray \psdots@iii}% |
| 1273 |
\end@SpecialObj} |
| 1274 |
\def\psdots@iii{% |
| 1275 |
\psk@dotsize |
| 1276 |
\@nameuse{psds@\psk@dotstyle} |
| 1277 |
newpath |
| 1278 |
n { transform floor .5 add exch floor .5 add exch itransform Dot } repeat} |
| 1279 |
% DG: dead code (to suppress until \psset@dotstyle) ? - Aug. 4, 1997 |
| 1280 |
\def\tx@SQ{SQ } |
| 1281 |
\def\tx@ST{ST } |
| 1282 |
\def\tx@SP{SP } |
| 1283 |
\def\pst@gdot#1{/Dot { gsave T \psk@dotangle \psk@dotscale #1 grestore } def } |
| 1284 |
\@namedef{psds@*}{\pst@gdot{0 0 DS \tx@SD}} |
| 1285 |
\@namedef{psds@o}{% |
| 1286 |
/r2 DS CLW sub def |
| 1287 |
\pst@gdot{0 0 DS \tx@SD \pst@usecolor\psfillcolor 0 0 r2 \tx@SD}} |
| 1288 |
\@namedef{psds@square*}{% |
| 1289 |
/r1 DS .886 mul def |
| 1290 |
\pst@gdot{r1 \tx@SQ}} |
| 1291 |
\@namedef{psds@square}{% |
| 1292 |
/r1 DS .886 mul def /r2 r1 CLW sub def |
| 1293 |
\pst@gdot{r1 \tx@SQ \pst@usecolor\psfillcolor r2 \tx@SQ}} |
| 1294 |
\@namedef{psds@triangle*}{% |
| 1295 |
/y1 DS .778 mul neg def /x1 y1 1.732 mul neg def |
| 1296 |
\pst@gdot{x1 y1 \tx@ST}} |
| 1297 |
\@namedef{psds@triangle}{% |
| 1298 |
/y1 DS .778 mul neg def /x1 y1 1.732 mul neg def |
| 1299 |
/y2 y1 CLW add def /x2 y2 1.732 mul neg def |
| 1300 |
\pst@gdot{x1 y1 \tx@ST \pst@usecolor\psfillcolor x2 y2 \tx@ST}} |
| 1301 |
\@namedef{psds@pentagon*}{% |
| 1302 |
/r1 DS 1.149 mul def |
| 1303 |
\pst@gdot{r1 \tx@SP}} |
| 1304 |
\@namedef{psds@pentagon}{% |
| 1305 |
DS .93 mul dup 1.236 mul /r1 ED CLW sub 1.236 mul /r2 ED |
| 1306 |
\pst@gdot{r1 \tx@SP \pst@usecolor\psfillcolor r2 \tx@SP}} |
| 1307 |
\@namedef{psds@+}{% |
| 1308 |
/DS DS 1.253 mul def |
| 1309 |
\pst@gdot{DS 0 moveto DS neg 0 L stroke 0 DS moveto 0 DS neg L stroke}} |
| 1310 |
\@namedef{psds@|}{% |
| 1311 |
\psk@tbarsize CLW mul add 2 div /DS ED |
| 1312 |
\pst@gdot{0 DS moveto 0 DS neg L stroke}} |
| 1313 |
% DG: end dead code? |
| 1314 |
\def\psset@dotstyle#1{% |
| 1315 |
\@ifundefined{psds@#1}% |
| 1316 |
{\@pstrickserr{Dot style `#1' not defined}\@eha}% |
| 1317 |
{\edef\psk@dotstyle{#1}}} |
| 1318 |
\psset@dotstyle{*} |
| 1319 |
\def\tx@FontDot{FontDot } |
| 1320 |
\def\newpsfontdot#1[#2]#3#4{% |
| 1321 |
\@namedef{psds@#1}{% |
| 1322 |
/#3 \psk@@dotangle [#2] \tx@FontDot |
| 1323 |
% DG/SR modification begin - Dec. 12, 1999 - Patch 14 |
| 1324 |
%/Dot { moveto #4 show } bind def }} |
| 1325 |
/Dot { moveto gsave \psk@dotscale #4 show grestore } bind def }} |
| 1326 |
% DG/SR modification end |
| 1327 |
\def\newpsfontdotH#1[#2]#3#4#5{% |
| 1328 |
\@namedef{psds@#1}{% |
| 1329 |
/#3 \psk@@dotangle [#2] \tx@FontDot |
| 1330 |
/Dot { |
| 1331 |
moveto |
| 1332 |
\iftrue |
| 1333 |
% DG/SR modification begin - Dec. 23, 1999 - Patch 14 |
| 1334 |
%gsave \pst@usecolor\psfillcolor #5 show grestore |
| 1335 |
%\fi |
| 1336 |
%#4 show |
| 1337 |
gsave \psk@dotscale \pst@usecolor\psfillcolor #5 show grestore |
| 1338 |
\fi |
| 1339 |
gsave \psk@dotscale #4 show grestore |
| 1340 |
% DG/SR modification end |
| 1341 |
} bind def }} |
| 1342 |
\pstheader{pst-dots.pro} |
| 1343 |
\newpsfontdot{*}% |
| 1344 |
[1.0 0.0 0.0 1.0 0.0 0.0]{PSTricksDotFont}{(b)} |
| 1345 |
\newpsfontdotH{o}% |
| 1346 |
[1.0 0.0 0.0 1.0 0.0 0.0]{PSTricksDotFont}{(c)}{(b)} |
| 1347 |
\newpsfontdotH{Bo}% |
| 1348 |
[1.0 0.0 0.0 1.0 0.0 0.0]{PSTricksDotFont}{(C)}{(b)} |
| 1349 |
\newpsfontdotH{triangle}% |
| 1350 |
[1.0 0.0 0.0 1.0 0.0 0.0]{PSTricksDotFont}{(t)}{(u)} |
| 1351 |
\newpsfontdotH{Btriangle}% |
| 1352 |
[1.0 0.0 0.0 1.0 0.0 0.0]{PSTricksDotFont}{(T)}{(u)} |
| 1353 |
\newpsfontdot{triangle*}% |
| 1354 |
[1.0 0.0 0.0 1.0 0.0 0.0]{PSTricksDotFont}{(u)} |
| 1355 |
\newpsfontdotH{square}% |
| 1356 |
[1.0 0.0 0.0 1.0 0.0 0.0]{PSTricksDotFont}{(s)}{(r)} |
| 1357 |
\newpsfontdotH{Bsquare}% |
| 1358 |
[1.0 0.0 0.0 1.0 0.0 0.0]{PSTricksDotFont}{(S)}{(r)} |
| 1359 |
\newpsfontdot{square*}% |
| 1360 |
[1.0 0.0 0.0 1.0 0.0 0.0]{PSTricksDotFont}{(r)} |
| 1361 |
\newpsfontdotH{pentagon}% |
| 1362 |
[1.0 0.0 0.0 1.0 0.0 0.0]{PSTricksDotFont}{(p)}{(q)} |
| 1363 |
\newpsfontdotH{Bpentagon}% |
| 1364 |
[1.0 0.0 0.0 1.0 0.0 0.0]{PSTricksDotFont}{(P)}{(q)} |
| 1365 |
\newpsfontdot{pentagon*}% |
| 1366 |
[1.0 0.0 0.0 1.0 0.0 0.0]{PSTricksDotFont}{(q)} |
| 1367 |
% DG/SR modification begin - Mar. 18, 1997 and Dec. 16, 1999 - Patch 14 |
| 1368 |
%\newpsfontdot{diamond*}% |
| 1369 |
%[1.9 0.0 0.0 1.9 -0.4598 -0.70775]{Symbol}{<E0>} |
| 1370 |
%\newpsfontdot{diamond}% |
| 1371 |
%[2.3 0.0 0.0 2.3 -0.8533 -0.5336]{Symbol}{<A8>} |
| 1372 |
% D.G. modification begin - Jan. 17, 2000 |
| 1373 |
\newpsfontdotH{diamond}% |
| 1374 |
[1.0 0.0 0.0 1.0 0.0 0.0]{PSTricksDotFont}{(d)}{(l)} |
| 1375 |
\newpsfontdotH{Bdiamond}% |
| 1376 |
[1.0 0.0 0.0 1.0 0.0 0.0]{PSTricksDotFont}{(D)}{(l)} |
| 1377 |
\newpsfontdot{diamond*}% |
| 1378 |
[1.0 0.0 0.0 1.0 0.0 0.0]{PSTricksDotFont}{(l)} |
| 1379 |
% DG/SR modification end |
| 1380 |
\newpsfontdot{oplus}% |
| 1381 |
[1.44928 0.0 0.0 1.44928 -0.562319 -0.478261]{Symbol}{<C5>} |
| 1382 |
\newpsfontdot{otimes}% |
| 1383 |
[1.44928 0.0 0.0 1.44928 -0.562319 -0.475362]{Symbol}{<C4>} |
| 1384 |
\newpsfontdot{x}% |
| 1385 |
[1.8 0.0 0.0 1.8 -0.495 -0.4788]{Symbol}{<B4>} |
| 1386 |
\newpsfontdot{+}% |
| 1387 |
[2.3 0.0 0.0 2.3 -0.6486 -0.5819]{Times-Roman}{<2B>} |
| 1388 |
\newpsfontdot{asterisk}% |
| 1389 |
[2.43309 0.0 0.0 2.43309 -0.609489 -1.14477]{Times-Roman}{<2A>} |
| 1390 |
\newpsfontdot{B+}% |
| 1391 |
[2.3 0.0 0.0 2.3 -0.6555 -0.5819]{Times-Bold}{<2B>} |
| 1392 |
\newpsfontdot{Basterisk}% |
| 1393 |
[2.29358 0.0 0.0 2.29358 -0.576835 -1.08486]{Times-Bold}{<2A>} |
| 1394 |
\newpsfontdot{|}% |
| 1395 |
% DG/SR modification begin - Oct. 27, 1997 - Patch 7 |
| 1396 |
%[1.98413 0.0 0.0 1.98413 -0.258929 -0.712302]{Helvetica}{(|)} |
| 1397 |
[1.98413 0.0 0.0 1.38 -0.258929 -0.5]{Helvetica}{(|)} |
| 1398 |
% DG/SR modification end |
| 1399 |
\newpsfontdot{B|}% |
| 1400 |
% DG/SR modification begin - Oct. 27, 1997 - Patch 7 |
| 1401 |
%[1.98413 0.0 0.0 1.98413 -0.277778 -0.78302]{Helvetica-Bold}{(|)} |
| 1402 |
[1.98413 0.0 0.0 1.38 -0.277778 -0.5]{Helvetica-Bold}{(|)} |
| 1403 |
% DG/SR modification end |
| 1404 |
\iffalse |
| 1405 |
\newpsfontdot{*}% |
| 1406 |
[2.77778 0.0 0.0 2.77778 -0.638889 -0.813889]{Symbol}{<B7>} |
| 1407 |
\newpsfontdot{o}% |
| 1408 |
[3.33333 0.0 0.0 3.33333 -0.666667 -1.78167]{Symbol}{<B0>} |
| 1409 |
\newpsfontdot{Bo}% |
| 1410 |
[4.69484 0.0 0.0 4.69484 -0.78169 -2.97418]{Times-Bold}{<CA>} |
| 1411 |
\fi |
| 1412 |
\newdimen\pslinearc |
| 1413 |
\def\psset@linearc#1{\pssetlength\pslinearc{#1}} |
| 1414 |
\psset@linearc{0pt} |
| 1415 |
\def\psline{\pst@object{psline}} |
| 1416 |
\def\psline@i{% |
| 1417 |
\pst@getarrows{% |
| 1418 |
\begin@OpenObj |
| 1419 |
\pst@getcoors[\psline@ii}} |
| 1420 |
\def\psline@ii{% |
| 1421 |
\addto@pscode{\pst@cp \psline@iii \tx@Line}% |
| 1422 |
\end@OpenObj} |
| 1423 |
\def\psline@iii{% |
| 1424 |
\ifdim\pslinearc>\z@ |
| 1425 |
/r \pst@number\pslinearc def |
| 1426 |
/Lineto { \tx@Arcto } def |
| 1427 |
\else |
| 1428 |
/Lineto /lineto load def |
| 1429 |
\fi |
| 1430 |
\ifshowpoints true \else false \fi} |
| 1431 |
\def\qline(#1)(#2){% |
| 1432 |
\def\pst@par{}% |
| 1433 |
\begin@SpecialObj |
| 1434 |
\def\pst@linetype{0}% |
| 1435 |
\pst@getcoor{#1}\pst@tempa |
| 1436 |
\pst@@getcoor{#2}% |
| 1437 |
\addto@pscode{% |
| 1438 |
\pst@tempa moveto \pst@coor L |
| 1439 |
\@nameuse{psls@\pslinestyle}}% |
| 1440 |
\end@SpecialObj} |
| 1441 |
\def\pspolygon{\pst@object{pspolygon}} |
| 1442 |
\def\pspolygon@i{% |
| 1443 |
\begin@ClosedObj |
| 1444 |
\def\pst@cp{}% |
| 1445 |
\pst@getcoors[\pspolygon@ii} |
| 1446 |
\def\pspolygon@ii{% |
| 1447 |
\addto@pscode{\psline@iii \tx@Polygon}% |
| 1448 |
\def\pst@linetype{1}% |
| 1449 |
\end@ClosedObj} |
| 1450 |
\def\psset@framearc#1{\pst@checknum{#1}\psk@framearc} |
| 1451 |
\psset@framearc{0} |
| 1452 |
\def\psset@cornersize#1{% |
| 1453 |
\pst@expandafter\psset@@cornersize{#1}\@nil} |
| 1454 |
\def\psset@@cornersize#1#2\@nil{% |
| 1455 |
\if #1a\relax |
| 1456 |
\def\psk@cornersize{\pst@number\pslinearc false }% |
| 1457 |
\else |
| 1458 |
\def\psk@cornersize{\psk@framearc true }% |
| 1459 |
\fi} |
| 1460 |
\psset@cornersize{relative} |
| 1461 |
\def\tx@Rect{Rect } |
| 1462 |
\def\tx@OvalFrame{OvalFrame } |
| 1463 |
\def\tx@Frame{Frame } |
| 1464 |
\def\psset@dimen#1{% |
| 1465 |
\pst@expandafter\psset@@dimen{#1}\@nil} |
| 1466 |
\def\psset@@dimen#1#2\@nil{% |
| 1467 |
\if #1o\relax |
| 1468 |
\def\psk@dimen{.5 }% |
| 1469 |
\else |
| 1470 |
\if #1m\relax |
| 1471 |
\def\psk@dimen{0 }% |
| 1472 |
\else |
| 1473 |
\if #1i\relax |
| 1474 |
\def\psk@dimen{-.5 }% |
| 1475 |
\fi |
| 1476 |
\fi |
| 1477 |
\fi} |
| 1478 |
\psset@dimen{outer} |
| 1479 |
\def\psframe{\pst@object{psframe}} |
| 1480 |
\def\psframe@i(#1){% |
| 1481 |
\@ifnextchar({\psframe@ii(#1)}{\psframe@ii(0,0)(#1)}} |
| 1482 |
\def\psframe@ii(#1)(#2){% |
| 1483 |
\begin@ClosedObj |
| 1484 |
\pst@getcoor{#1}\pst@tempa |
| 1485 |
\pst@@getcoor{#2}% |
| 1486 |
\addto@pscode{\psk@cornersize \pst@tempa \pst@coor \psk@dimen \tx@Frame}% |
| 1487 |
\def\pst@linetype{2}% |
| 1488 |
\showpointsfalse |
| 1489 |
\end@ClosedObj} |
| 1490 |
\def\tx@BezierNArray{BezierNArray } |
| 1491 |
\def\tx@OpenBezier{OpenBezier } |
| 1492 |
\def\tx@ClosedBezier{ClosedBezier } |
| 1493 |
\def\tx@BezierShowPoints{BezierShowPoints } |
| 1494 |
\def\psbezier{\pst@object{psbezier}} |
| 1495 |
\def\psbezier@i{% |
| 1496 |
\pst@getarrows{% |
| 1497 |
\begin@OpenObj |
| 1498 |
\pst@getcoors[\psbezier@ii}} |
| 1499 |
\def\psbezier@ii{% |
| 1500 |
\addto@pscode{% |
| 1501 |
% DG/SR modification begin - Apr. 28, 1997 - Patch 1 |
| 1502 |
% \psbezier doesn't work inside \pscustom |
| 1503 |
%\pst@cp |
| 1504 |
% DG/SR modification end |
| 1505 |
\ifshowpoints true \else false \fi |
| 1506 |
\tx@OpenBezier |
| 1507 |
\ifshowpoints \tx@BezierShowPoints \fi}% |
| 1508 |
\end@OpenObj} |
| 1509 |
\def\pscbezier{\pst@object{pscbezier}} |
| 1510 |
\def\pscbezier@i{% |
| 1511 |
\begin@ClosedObj |
| 1512 |
\pst@getcoors[\pscbezier@ii} |
| 1513 |
\def\pscbezier@ii{% |
| 1514 |
\addto@pscode{% |
| 1515 |
\ifshowpoints true \else false \fi |
| 1516 |
\tx@ClosedBezier |
| 1517 |
\ifshowpoints \tx@BezierShowPoints \fi}% |
| 1518 |
\chardef\pst@linetype=1 |
| 1519 |
\end@ClosedObj} |
| 1520 |
\def\tx@Parab{Parab } |
| 1521 |
\def\parabola{\pst@object{parabola}} |
| 1522 |
\def\parabola@i{\pst@getarrows\parabola@ii} |
| 1523 |
\def\parabola@ii#1(#2)#3(#4){% |
| 1524 |
\begin@OpenObj |
| 1525 |
\pst@getcoor{#2}\pst@tempa |
| 1526 |
\pst@@getcoor{#4}% |
| 1527 |
\addto@pscode{\pst@tempa \pst@coor \tx@Parab}% |
| 1528 |
\end@OpenObj} |
| 1529 |
\def\psset@gridwidth#1{\pst@getlength{#1}\psk@gridwidth} |
| 1530 |
\psset@gridwidth{.8pt} |
| 1531 |
\def\psset@griddots#1{% |
| 1532 |
\pst@cntg=#1\relax |
| 1533 |
\edef\psk@griddots{\the\pst@cntg}} |
| 1534 |
\psset@griddots{0} |
| 1535 |
\def\psset@gridcolor#1{\pst@getcolor{#1}\psgridcolor} |
| 1536 |
\psset@gridcolor{black} |
| 1537 |
\def\psset@subgridwidth#1{\pst@getlength{#1}\psk@subgridwidth} |
| 1538 |
\psset@subgridwidth{.4pt} |
| 1539 |
\def\psset@subgridcolor#1{\pst@getcolor{#1}\pssubgridcolor} |
| 1540 |
\psset@subgridcolor{gray} |
| 1541 |
\def\psset@subgriddots#1{% |
| 1542 |
\pst@cntg=#1\relax\edef\psk@subgriddots{\the\pst@cntg}} |
| 1543 |
\psset@subgriddots{0} |
| 1544 |
\def\psset@subgriddiv#1{% |
| 1545 |
\pst@cntg=#1\relax\edef\psk@subgriddiv{\the\pst@cntg}} |
| 1546 |
\psset@subgriddiv{5} |
| 1547 |
\def\psset@gridlabels#1{\pst@getlength{#1}\psk@gridlabels} |
| 1548 |
\psset@gridlabels{10pt} |
| 1549 |
\def\psset@gridlabelcolor#1{\pst@getcolor{#1}\psgridlabelcolor} |
| 1550 |
\psset@gridlabelcolor{black} |
| 1551 |
\def\tx@Grid{Grid } |
| 1552 |
\def\psgrid{\pst@object{psgrid}} |
| 1553 |
\def\psgrid@i{\@ifnextchar(% |
| 1554 |
{\psgrid@ii}{\expandafter\psgrid@iv\pic@coor}} |
| 1555 |
\def\psgrid@ii(#1){\@ifnextchar(% |
| 1556 |
{\psgrid@iii(#1)}{\psgrid@iv(0,0)(0,0)(#1)}} |
| 1557 |
\def\psgrid@iii(#1)(#2){\@ifnextchar(% |
| 1558 |
{\psgrid@iv(#1)(#2)}{\psgrid@iv(#1)(#1)(#2)}} |
| 1559 |
\def\psgrid@iv(#1)(#2)(#3){% |
| 1560 |
\begin@SpecialObj |
| 1561 |
\pst@getcoor{#1}\pst@tempa |
| 1562 |
\pst@getcoor{#2}\pst@tempb |
| 1563 |
\pst@@getcoor{#3}% |
| 1564 |
\ifnum\psk@subgriddiv>1 |
| 1565 |
\addto@pscode{gsave |
| 1566 |
\psk@subgridwidth SLW \pst@usecolor\pssubgridcolor |
| 1567 |
\pst@tempb \pst@coor \pst@tempa |
| 1568 |
\pst@number\psxunit \pst@number\psyunit |
| 1569 |
\psk@subgriddiv\space \psk@subgriddots\space |
| 1570 |
{} 0 \tx@Grid grestore}% |
| 1571 |
\fi |
| 1572 |
\addto@pscode{gsave |
| 1573 |
\psk@gridwidth SLW \pst@usecolor\psgridcolor |
| 1574 |
\pst@tempb \pst@coor \pst@tempa |
| 1575 |
\pst@number\psxunit \pst@number\psyunit |
| 1576 |
1 \psk@griddots\space { \pst@usecolor\psgridlabelcolor } |
| 1577 |
\psk@gridlabels \tx@Grid grestore}% |
| 1578 |
\end@SpecialObj} |
| 1579 |
\newif\ifpsmathbox |
| 1580 |
\psmathboxtrue |
| 1581 |
\def\pst@mathflag{\z@} |
| 1582 |
\newtoks\everypsbox |
| 1583 |
\let\pst@thisbox\relax |
| 1584 |
\long\def\pst@makenotverbbox#1#2{% |
| 1585 |
\edef\pst@mathflag{% |
| 1586 |
\ifpsmathbox\ifmmode\ifinner 1\else 2\fi\else \z@\fi\else \z@\fi}% |
| 1587 |
\setbox\pst@hbox=\hbox{% |
| 1588 |
\ifcase\pst@mathflag\or$\m@th\textstyle\or$\m@th\displaystyle\fi |
| 1589 |
{\pst@thisbox\the\everypsbox#2}% |
| 1590 |
\ifnum\pst@mathflag>\z@$\fi}% |
| 1591 |
#1} |
| 1592 |
\def\pst@makeverbbox#1{% |
| 1593 |
\def\pst@afterbox{#1}% |
| 1594 |
\edef\pst@mathflag{% |
| 1595 |
\ifpsmathbox\ifmmode\ifinner 1\else 2\fi\else \z@\fi\else \z@\fi}% |
| 1596 |
\afterassignment\pst@beginbox |
| 1597 |
\setbox\pst@hbox\hbox} |
| 1598 |
\def\pst@beginbox{% |
| 1599 |
\ifcase\pst@mathflag\or$\m@th\or$\m@th\displaystyle\fi |
| 1600 |
\bgroup\aftergroup\pst@endbox |
| 1601 |
\pst@thisbox |
| 1602 |
\the\everypsbox} |
| 1603 |
\def\pst@endbox{% |
| 1604 |
\ifnum\pst@mathflag>\z@$\fi |
| 1605 |
\egroup |
| 1606 |
\pst@afterbox} |
| 1607 |
\def\pst@makebox{\pst@@makebox} |
| 1608 |
\def\psverbboxtrue{\def\pst@@makebox{\pst@makeverbbox}} |
| 1609 |
\def\psverbboxfalse{\def\pst@@makebox{\pst@makenotverbbox}} |
| 1610 |
\psverbboxfalse |
| 1611 |
\def\pst@longbox{% |
| 1612 |
\def\pst@makebox{% |
| 1613 |
\gdef\pst@makebox{\pst@@makebox}% |
| 1614 |
\pst@makelongbox}} |
| 1615 |
\def\pst@makelongbox#1{% |
| 1616 |
\def\pst@afterbox{#1}% |
| 1617 |
\edef\pst@mathflag{% |
| 1618 |
\ifpsmathbox\ifmmode\ifinner 1\else 2\fi\else \z@\fi\else \z@\fi}% |
| 1619 |
\setbox\pst@hbox\hbox\bgroup |
| 1620 |
\aftergroup\pst@afterbox |
| 1621 |
\ifcase\pst@mathflag\or$\m@th\or$\m@th\displaystyle\fi |
| 1622 |
\begingroup |
| 1623 |
\pst@thisbox |
| 1624 |
\the\everypsbox} |
| 1625 |
\def\pst@endlongbox{% |
| 1626 |
\endgroup |
| 1627 |
\ifnum\pst@mathflag>\z@$\fi |
| 1628 |
\egroup} |
| 1629 |
\def\pslongbox#1#2{% |
| 1630 |
\@namedef{#1}{\pst@longbox#2}% |
| 1631 |
\@namedef{end#1}{\pst@endlongbox}} |
| 1632 |
\newdimen\psframesep |
| 1633 |
\def\psset@framesep#1{\pssetlength\psframesep{#1}} |
| 1634 |
\psset@framesep{3pt} |
| 1635 |
\newif\ifpsboxsep |
| 1636 |
\def\psset@boxsep#1{\@nameuse{psboxsep#1}} |
| 1637 |
\psset@boxsep{true} |
| 1638 |
\def\pst@useboxpar{% |
| 1639 |
\use@par |
| 1640 |
\if@star |
| 1641 |
\let\pslinecolor\psfillcolor |
| 1642 |
\solid@star |
| 1643 |
\let\solid@star\relax |
| 1644 |
\fi |
| 1645 |
\ifpsdoubleline \pst@setdoublesep \fi} |
| 1646 |
\def\psframebox{\pst@object{psframebox}} |
| 1647 |
\def\psframebox@i{\pst@makebox\psframebox@ii} |
| 1648 |
\def\psframebox@ii{% |
| 1649 |
\begingroup |
| 1650 |
\pst@useboxpar |
| 1651 |
\pst@dima=\pslinewidth |
| 1652 |
\advance\pst@dima by \psframesep |
| 1653 |
\pst@dimc=\wd\pst@hbox\advance\pst@dimc by \pst@dima |
| 1654 |
\pst@dimb=\dp\pst@hbox\advance\pst@dimb by \pst@dima |
| 1655 |
\pst@dimd=\ht\pst@hbox\advance\pst@dimd by \pst@dima |
| 1656 |
\setbox\pst@hbox=\hbox{% |
| 1657 |
\ifpsboxsep\kern\pst@dima\fi |
| 1658 |
\begin@ClosedObj |
| 1659 |
\addto@pscode{% |
| 1660 |
\psk@cornersize |
| 1661 |
\pst@number\pst@dima neg |
| 1662 |
\pst@number\pst@dimb neg |
| 1663 |
\pst@number\pst@dimc |
| 1664 |
\pst@number\pst@dimd |
| 1665 |
.5 |
| 1666 |
\tx@Frame}% |
| 1667 |
\def\pst@linetype{2}% |
| 1668 |
\showpointsfalse |
| 1669 |
\end@ClosedObj |
| 1670 |
\box\pst@hbox |
| 1671 |
\ifpsboxsep\kern\pst@dima\fi}% |
| 1672 |
\ifpsboxsep\dp\pst@hbox=\pst@dimb\ht\pst@hbox=\pst@dimd\fi |
| 1673 |
\leavevmode\box\pst@hbox |
| 1674 |
\endgroup} |
| 1675 |
\def\psdblframebox{\pst@object{psdblframebox}} |
| 1676 |
\def\psdblframebox@i{\addto@par{doubleline=true}\psframebox@i} |
| 1677 |
\def\psclip#1{% |
| 1678 |
\leavevmode |
| 1679 |
\begingroup |
| 1680 |
\begin@psclip |
| 1681 |
\begingroup |
| 1682 |
\def\use@pscode{% |
| 1683 |
\pstVerb{% |
| 1684 |
\pst@dict |
| 1685 |
/mtrxc CM def |
| 1686 |
CP CP T |
| 1687 |
\tx@STV |
| 1688 |
\psk@origin |
| 1689 |
\psk@swapaxes |
| 1690 |
newpath |
| 1691 |
\pst@code |
| 1692 |
clip |
| 1693 |
newpath |
| 1694 |
mtrxc setmatrix |
| 1695 |
moveto |
| 1696 |
0 setgray |
| 1697 |
end}% |
| 1698 |
\gdef\pst@code{}}% |
| 1699 |
\def\@multips(##1)(##2)##3##4{\pst@misplaced\multips}% |
| 1700 |
\def\nc@object##1##2##3##4{\pst@misplaced{node connection}}% |
| 1701 |
\hbox to\z@{#1}% |
| 1702 |
\endgroup |
| 1703 |
\def\endpsclip{% |
| 1704 |
\end@psclip |
| 1705 |
\endgroup}% |
| 1706 |
\ignorespaces} |
| 1707 |
\def\endpsclip{\pst@misplaced\endpsclip} |
| 1708 |
\let\begin@psclip\relax |
| 1709 |
\def\end@psclip{\pstVerb{currentpoint initclip moveto}} |
| 1710 |
\def\AltClipMode{% |
| 1711 |
\def\end@psclip{\pstVerb{\pst@grestore}}% |
| 1712 |
\def\begin@psclip{\pstVerb{gsave}}} |
| 1713 |
\def\clipbox{\@ifnextchar[{\clipbox@}{\clipbox@[\z@]}} |
| 1714 |
% DG modification begin - Apr. 3, 1997 |
| 1715 |
% From [email protected] (Dietrich Paulus) |
| 1716 |
%\def\clipbox@[#1]{\pst@makebox\clipbox@@{#1}} |
| 1717 |
\def\clipbox@[#1]{\pst@makebox{\clipbox@@{#1}}} |
| 1718 |
% DG modification end |
| 1719 |
\def\clipbox@@#1{% |
| 1720 |
\pssetlength\pst@dimg{#1}% |
| 1721 |
\leavevmode\hbox{% |
| 1722 |
\begin@psclip |
| 1723 |
\pst@Verb{% |
| 1724 |
CM \tx@STV CP T newpath |
| 1725 |
/a \pst@number\pst@dimg def |
| 1726 |
/w \pst@number{\wd\pst@hbox}a add def |
| 1727 |
/d \pst@number{\dp\pst@hbox}a add neg def |
| 1728 |
/h \pst@number{\ht\pst@hbox}a add def |
| 1729 |
a neg d moveto |
| 1730 |
a neg h L |
| 1731 |
w h L |
| 1732 |
w d L |
| 1733 |
closepath |
| 1734 |
clip |
| 1735 |
newpath |
| 1736 |
0 0 moveto |
| 1737 |
setmatrix}% |
| 1738 |
\unhbox\pst@hbox |
| 1739 |
\end@psclip}} |
| 1740 |
\def\psshadowbox{\pst@object{psshadowbox}} |
| 1741 |
\def\psshadowbox@i{\pst@makebox\psshadowbox@ii} |
| 1742 |
\def\psshadowbox@ii{% |
| 1743 |
\begingroup |
| 1744 |
\pst@useboxpar |
| 1745 |
\psshadowtrue |
| 1746 |
\psboxseptrue |
| 1747 |
\def\psk@shadowangle{-45 }% |
| 1748 |
\setbox\pst@hbox=\hbox{\psframebox@ii}% |
| 1749 |
\pst@dimh=\psk@shadowsize\p@ |
| 1750 |
\pst@dimh=.7071\pst@dimh |
| 1751 |
\pst@dimg=\dp\pst@hbox |
| 1752 |
\advance\pst@dimg\pst@dimh |
| 1753 |
\dp\pst@hbox=\pst@dimg |
| 1754 |
\pst@dimg=\wd\pst@hbox |
| 1755 |
\advance\pst@dimg\pst@dimh |
| 1756 |
\wd\pst@hbox=\pst@dimg |
| 1757 |
\leavevmode |
| 1758 |
\box\pst@hbox |
| 1759 |
\endgroup} |
| 1760 |
%$ |
| 1761 |
\def\pscirclebox{\pst@object{pscirclebox}} |
| 1762 |
\def\pscirclebox@i{\pst@makebox\pscirclebox@ii} |
| 1763 |
\def\pscirclebox@ii{% |
| 1764 |
\begingroup |
| 1765 |
\pst@useboxpar |
| 1766 |
\setbox\pst@hbox=\hbox{% |
| 1767 |
\pst@nodehook |
| 1768 |
\pscirclebox@iii |
| 1769 |
\box\pst@hbox}% |
| 1770 |
\ifpsboxsep \pscirclebox@sep \fi |
| 1771 |
\leavevmode |
| 1772 |
\box\pst@hbox |
| 1773 |
\endgroup} |
| 1774 |
\def\pscirclebox@iii{% |
| 1775 |
\if@star |
| 1776 |
\pslinewidth\z@ |
| 1777 |
\pstverb{\pst@dict \tx@STP \pst@usecolor\psfillcolor |
| 1778 |
newpath \pscirclebox@iv \tx@SD end}% |
| 1779 |
\else |
| 1780 |
\begin@ClosedObj |
| 1781 |
\def\pst@linetype{4}\showpointsfalse |
| 1782 |
\addto@pscode{% |
| 1783 |
\pscirclebox@iv CLW 2 div add 0 360 arc closepath}% |
| 1784 |
\end@ClosedObj |
| 1785 |
\fi} |
| 1786 |
\def\pscirclebox@iv{% |
| 1787 |
\pst@number{\wd\pst@hbox}2 div |
| 1788 |
\pst@number{\ht\pst@hbox}\pst@number{\dp\pst@hbox}add 2 div |
| 1789 |
2 copy \pst@number{\dp\pst@hbox}sub 4 2 roll |
| 1790 |
\tx@Pyth \pst@number\psframesep add } |
| 1791 |
\def\pscirclebox@sep{% |
| 1792 |
\pst@dimb=\ht\pst@hbox |
| 1793 |
\advance\pst@dimb\dp\pst@hbox |
| 1794 |
\divide\pst@dimb 2 |
| 1795 |
\pst@dima=.5\wd\pst@hbox |
| 1796 |
\pst@pyth\pst@dima\pst@dimb\pst@dimc |
| 1797 |
\advance\pst@dimc\pslinewidth |
| 1798 |
\advance\pst@dimc\psframesep |
| 1799 |
\advance\pst@dimb-\pst@dimc |
| 1800 |
\setbox\pst@hbox=\hbox to2\pst@dimc{% |
| 1801 |
\hss |
| 1802 |
\vbox{\kern-\pst@dimb\box\pst@hbox}% |
| 1803 |
\hss}% |
| 1804 |
\advance\pst@dimb-\dp\pst@hbox |
| 1805 |
\dp\pst@hbox=-\pst@dimb} |
| 1806 |
\let\pst@nodehook\relax |
| 1807 |
\def\psCirclebox{\pst@object{psCirclebox}} |
| 1808 |
\def\psCirclebox@i{\pst@makebox\psCirclebox@ii} |
| 1809 |
\def\psCirclebox@ii{% |
| 1810 |
\begingroup |
| 1811 |
\pst@useboxpar |
| 1812 |
\pst@dima=\ht\pst@hbox |
| 1813 |
\advance\pst@dima\dp\pst@hbox |
| 1814 |
\divide\pst@dima\tw@ |
| 1815 |
\pssetlength\pst@dimb\psk@radius |
| 1816 |
\setbox\pst@hbox=\hbox{% |
| 1817 |
\pst@nodehook |
| 1818 |
\pscircle(.5\wd\pst@hbox,\pst@dima){\pst@dimb}% |
| 1819 |
\box\pst@hbox}% |
| 1820 |
\ifpsboxsep \psCirclebox@sep \fi |
| 1821 |
\leavevmode |
| 1822 |
\box\pst@hbox |
| 1823 |
\endgroup} |
| 1824 |
\def\psCirclebox@sep{% |
| 1825 |
\pst@dimc=\pst@dimb |
| 1826 |
\advance\pst@dimb-\pst@dima |
| 1827 |
\advance\pst@dima\pst@dimc |
| 1828 |
\setbox\pst@hbox=\hbox to\tw@\pst@dimc{% |
| 1829 |
\hss |
| 1830 |
\vrule width \z@ depth \pst@dimb height \pst@dima |
| 1831 |
\box\pst@hbox |
| 1832 |
\hss}}% |
| 1833 |
\def\psovalbox{\pst@object{psovalbox}} |
| 1834 |
\def\psovalbox@i{\pst@makebox{\psovalbox@ii}} |
| 1835 |
\def\psovalbox@ii{% |
| 1836 |
\begingroup |
| 1837 |
\pst@useboxpar |
| 1838 |
\psovalbox@iii |
| 1839 |
\ifpsboxsep\psovalbox@sep\fi |
| 1840 |
\leavevmode |
| 1841 |
\box\pst@hbox |
| 1842 |
\endgroup} |
| 1843 |
\def\psovalbox@iii{% |
| 1844 |
\psovalbox@iv |
| 1845 |
\setbox\pst@hbox=\hbox{% |
| 1846 |
\begin@ClosedObj |
| 1847 |
\addto@pscode{% |
| 1848 |
0 360 |
| 1849 |
\pst@number\pst@dimc CLW 2 div sub |
| 1850 |
\pst@number\pst@dimd CLW 2 div sub |
| 1851 |
\pst@number\pst@dima |
| 1852 |
\pst@number\pst@dimb |
| 1853 |
\tx@Ellipse |
| 1854 |
closepath}% |
| 1855 |
\def\pst@linetype{2}% |
| 1856 |
\end@ClosedObj |
| 1857 |
\unhbox\pst@hbox}} |
| 1858 |
\def\psovalbox@iv{% |
| 1859 |
\pst@dimc=\pslinewidth\advance\pst@dimc\psframesep |
| 1860 |
\pst@dimd=\ht\pst@hbox\advance\pst@dimd\dp\pst@hbox |
| 1861 |
\pst@dima=.5\wd\pst@hbox |
| 1862 |
\pst@dimb=.5\pst@dimd\advance\pst@dimb-\dp\pst@hbox |
| 1863 |
\pst@dimd=.707\pst@dimd |
| 1864 |
\advance\pst@dimd\pst@dimc |
| 1865 |
\advance\[email protected]\wd\pst@hbox} |
| 1866 |
\def\psovalbox@sep{% |
| 1867 |
\setbox\pst@hbox\hbox to 2\pst@dimc{\hss\unhbox\pst@hbox\hss}% |
| 1868 |
\pst@dimg=\pst@dimd |
| 1869 |
\advance\pst@dimg-\pst@dimb |
| 1870 |
\dp\pst@hbox=\pst@dimg |
| 1871 |
\advance\pst@dimd\pst@dimb |
| 1872 |
\ht\pst@hbox=\pst@dimd} |
| 1873 |
\def\psdiabox{\pst@object{psdiabox}} |
| 1874 |
\def\psdiabox@i{\pst@makebox{\psdiabox@ii}} |
| 1875 |
\def\psdiabox@ii{% |
| 1876 |
\begingroup |
| 1877 |
\pst@useboxpar |
| 1878 |
\psdiabox@iii |
| 1879 |
\ifpsboxsep\psdiabox@sep\fi |
| 1880 |
\leavevmode |
| 1881 |
\box\pst@hbox |
| 1882 |
\endgroup} |
| 1883 |
\def\psdiabox@iv{% |
| 1884 |
\pst@dimg=.707\pslinewidth |
| 1885 |
\advance\[email protected]\psframesep |
| 1886 |
\pst@dima=\wd\pst@hbox |
| 1887 |
\divide\pst@dima 2 |
| 1888 |
\pst@dimc=\pst@dima |
| 1889 |
\advance\pst@dimc\pst@dimg |
| 1890 |
\pst@dimd=\ht\pst@hbox |
| 1891 |
\advance\pst@dimd\dp\pst@hbox |
| 1892 |
\divide\pst@dimd 2 |
| 1893 |
\pst@dimb=\pst@dimd |
| 1894 |
\advance\pst@dimb-\dp\pst@hbox |
| 1895 |
\advance\pst@dimd\pst@dimg} |
| 1896 |
\def\psdiabox@iii{% |
| 1897 |
\psdiabox@iv |
| 1898 |
\setbox\pst@hbox=\hbox{% |
| 1899 |
\begin@ClosedObj |
| 1900 |
\addto@pscode{% |
| 1901 |
\psline@iii |
| 1902 |
pop |
| 1903 |
.5 |
| 1904 |
\pst@number\pst@dimc 2 mul \pst@number\pst@dimd 2 mul |
| 1905 |
0 |
| 1906 |
\pst@number\pst@dima \pst@number\pst@dimb |
| 1907 |
\tx@Diamond}% |
| 1908 |
\def\pst@linetype{4}% |
| 1909 |
\end@ClosedObj |
| 1910 |
\box\pst@hbox}} |
| 1911 |
\def\psdiabox@sep{% |
| 1912 |
\setbox\pst@hbox\hbox to 4\pst@dimc{\hss\unhbox\pst@hbox\hss}% |
| 1913 |
\multiply\pst@dimd 2 |
| 1914 |
\advance\pst@dimd\pst@dimb |
| 1915 |
\ht\pst@hbox\pst@dimd |
| 1916 |
\advance\pst@dimd-2\pst@dimb |
| 1917 |
\dp\pst@hbox\pst@dimd} |
| 1918 |
\def\psset@trimode#1{\pst@expandafter\psset@@trimode{#1}\@empty\@empty\@nil} |
| 1919 |
\def\psset@@trimode#1#2#3\@nil{% |
| 1920 |
\let\pst@tempg#1\relax |
| 1921 |
\ifx\pst@tempg*% |
| 1922 |
\let\psk@@trimode\@empty |
| 1923 |
\let\pst@tempg#2\relax |
| 1924 |
\else |
| 1925 |
\let\psk@@trimode\relax |
| 1926 |
\fi |
| 1927 |
\edef\psk@trimode{% |
| 1928 |
\ifx R\pst@tempg 1 \else\ifx D\pst@tempg 2 |
| 1929 |
\else\ifx L\pst@tempg 3 \else 0 \fi\fi\fi}} |
| 1930 |
\psset@trimode{U} |
| 1931 |
\def\pstribox{\pst@object{pstribox}} |
| 1932 |
\def\pstribox@i{\pst@makebox{\pstribox@ii}} |
| 1933 |
\def\pstribox@ii{% |
| 1934 |
\begingroup |
| 1935 |
\pst@useboxpar |
| 1936 |
\pstribox@iii |
| 1937 |
\ifpsboxsep\pstribox@sep\fi |
| 1938 |
\leavevmode |
| 1939 |
\box\pst@hbox |
| 1940 |
\endgroup} |
| 1941 |
\def\pstribox@iii{% |
| 1942 |
\pstribox@iv |
| 1943 |
\setbox\pst@hbox=\hbox{% |
| 1944 |
\begin@ClosedObj |
| 1945 |
\addto@pscode{% |
| 1946 |
\psline@iii |
| 1947 |
pop |
| 1948 |
.5 |
| 1949 |
\pst@number\pst@dimc \pst@number\pst@dimd |
| 1950 |
\ifodd\psk@trimode exch \fi |
| 1951 |
\psk@trimode -90 mul |
| 1952 |
\pst@number\pst@dima \pst@number\pst@dimb |
| 1953 |
\tx@Triangle}% |
| 1954 |
\def\pst@linetype{2}% |
| 1955 |
\end@ClosedObj |
| 1956 |
\box\pst@hbox}} |
| 1957 |
\def\pstribox@iv{% |
| 1958 |
\pst@dimh=\pslinewidth |
| 1959 |
\advance\pst@dimh\psframesep |
| 1960 |
\pst@dimg=\ht\pst@hbox |
| 1961 |
\advance\pst@dimg-\dp\pst@hbox |
| 1962 |
\divide\pst@dimg 2 |
| 1963 |
\edef\pst@tempa{\number\pst@dimg sp}% For use by nodes. |
| 1964 |
\ifodd\psk@trimode |
| 1965 |
\pst@dimb\pst@dimg |
| 1966 |
\else |
| 1967 |
\pst@dima=\wd\pst@hbox |
| 1968 |
\divide\pst@dima 2 |
| 1969 |
\fi |
| 1970 |
\ifcase\psk@trimode |
| 1971 |
\pst@dimb=-\dp\pst@hbox |
| 1972 |
\advance\pst@dimb-\pst@dimh |
| 1973 |
\or |
| 1974 |
\pst@dima=-\pst@dimh |
| 1975 |
\or |
| 1976 |
\pst@dimb=\ht\pst@hbox |
| 1977 |
\advance\pst@dimb\pst@dimh |
| 1978 |
\or |
| 1979 |
\pst@dima=\wd\pst@hbox |
| 1980 |
\advance\pst@dima\pst@dimh |
| 1981 |
\fi |
| 1982 |
\pst@dimd=\dp\pst@hbox |
| 1983 |
\advance\pst@dimd\ht\pst@hbox |
| 1984 |
\ifx\psk@@trimode\relax |
| 1985 |
\pst@dimc=\wd\pst@hbox |
| 1986 |
\advance\pst@dimc\ifodd\psk@trimode 1.447\else 1.789\fi\pst@dimh |
| 1987 |
\multiply\pst@dimc 2 |
| 1988 |
\advance\pst@dimd\ifodd\psk@trimode 1.789\else 1.447\fi\pst@dimh |
| 1989 |
\multiply\pst@dimd 2 |
| 1990 |
\else |
| 1991 |
\ifodd\psk@trimode |
| 1992 |
\advance\pst@dimd 1.1547\wd\pst@hbox |
| 1993 |
\advance\pst@dimd 3.4641\pst@dimh |
| 1994 |
\pst@dimc=.866\pst@dimd |
| 1995 |
\else |
| 1996 |
\advance\pst@dimd .866\wd\pst@hbox %.866=(sqrt(3)/2) |
| 1997 |
\advance\pst@dimd 3\pst@dimh |
| 1998 |
\pst@dimc=1.1547\pst@dimd % 1.1547=(2/sqrt(3)) |
| 1999 |
\fi |
| 2000 |
\fi} |
| 2001 |
\def\pstribox@sep{% |
| 2002 |
\ifodd\psk@trimode |
| 2003 |
\advance\[email protected]\pst@dimd |
| 2004 |
\ht\pst@hbox=\pst@dimb |
| 2005 |
\advance\pst@dimd-\pst@dimb |
| 2006 |
\dp\pst@hbox=\pst@dimd |
| 2007 |
\else |
| 2008 |
\setbox\pst@hbox\hbox to \pst@dimc{\hss\unhbox\pst@hbox\hss}% |
| 2009 |
\global\pst@dimg=.5\pst@dimc |
| 2010 |
\fi |
| 2011 |
\ifcase\psk@trimode |
| 2012 |
\dp\pst@hbox-\pst@dimb |
| 2013 |
\advance\pst@dimd\pst@dimb |
| 2014 |
\ht\pst@hbox\pst@dimd |
| 2015 |
\or |
| 2016 |
\pst@dimg=.5\wd\pst@hbox |
| 2017 |
\global\advance\pst@dimg-\pst@dima |
| 2018 |
\setbox\pst@hbox\hbox to \pst@dimc{\kern-\pst@dima\box\pst@hbox\hss}% |
| 2019 |
\or |
| 2020 |
\ht\pst@hbox\pst@dimb |
| 2021 |
\advance\pst@dimd-\pst@dimb |
| 2022 |
\dp\pst@hbox\pst@dimd |
| 2023 |
\or |
| 2024 |
\pst@dimg=\pst@dimc |
| 2025 |
\advance\pst@dimg-\pst@dima |
| 2026 |
\global\advance\[email protected]\wd\pst@hbox |
| 2027 |
\setbox\pst@hbox\hbox to \pst@dimc{% |
| 2028 |
\hss\box\pst@hbox\kern\psframesep\kern\pslinewidth}% |
| 2029 |
\fi} |
| 2030 |
\def\psset@arcsepA#1{\pst@getlength{#1}\psk@arcsepA} |
| 2031 |
\def\psset@arcsepB#1{\pst@getlength{#1}\psk@arcsepB} |
| 2032 |
\def\psset@arcsep#1{% |
| 2033 |
\psset@arcsepA{#1}\let\psk@arcsepB\psk@arcsepA} |
| 2034 |
\psset@arcsep{0} |
| 2035 |
\def\tx@ArcArrow{ArcArrow } |
| 2036 |
\def\psarc{\pst@object{psarc}} |
| 2037 |
\def\psarc@i{% |
| 2038 |
\@ifnextchar({\psarc@iii}{\psarc@ii}} |
| 2039 |
\def\psarc@ii#1{\addto@par{arrows=#1}% |
| 2040 |
\@ifnextchar({\psarc@iii}{\psarc@iii(0,0)}} |
| 2041 |
\def\psarc@iii(#1)#2#3#4{% |
| 2042 |
\begin@OpenObj |
| 2043 |
\pst@getangle{#3}\pst@tempa |
| 2044 |
\pst@getangle{#4}\pst@tempb |
| 2045 |
\pst@@getcoor{#1}% |
| 2046 |
\pssetlength\pst@dima{#2}% |
| 2047 |
\addto@pscode{\psarc@iv \psarc@v}% |
| 2048 |
\gdef\psarc@type{0}% |
| 2049 |
\showpointsfalse |
| 2050 |
\end@OpenObj} |
| 2051 |
\def\psarc@iv{% |
| 2052 |
\pst@coor /y ED /x ED |
| 2053 |
/r \pst@number\pst@dima def |
| 2054 |
/c 57.2957 r \tx@Div def |
| 2055 |
/angleA |
| 2056 |
\pst@tempa |
| 2057 |
\psk@arcsepA c mul 2 div |
| 2058 |
\ifcase \psarc@type add \or sub \fi |
| 2059 |
def |
| 2060 |
/angleB |
| 2061 |
\pst@tempb |
| 2062 |
\psk@arcsepB c mul 2 div |
| 2063 |
\ifcase \psarc@type sub \or add \fi |
| 2064 |
def |
| 2065 |
\ifshowpoints\psarc@showpoints\fi |
| 2066 |
\ifx\psk@arrowA\@empty |
| 2067 |
\ifnum\psk@liftpen=2 |
| 2068 |
r angleA \tx@PtoC |
| 2069 |
y add exch x add exch |
| 2070 |
moveto |
| 2071 |
\fi |
| 2072 |
\fi} |
| 2073 |
\def\psarc@v{% |
| 2074 |
x y r |
| 2075 |
angleA |
| 2076 |
\ifx\psk@arrowA\@empty\else |
| 2077 |
{ ArrowA CP } |
| 2078 |
{ \ifcase\psarc@type add \or sub \fi } |
| 2079 |
\tx@ArcArrow |
| 2080 |
\fi |
| 2081 |
angleB |
| 2082 |
\ifx\psk@arrowB\@empty\else |
| 2083 |
{ ArrowB } |
| 2084 |
{ \ifcase\psarc@type sub \or add \fi } |
| 2085 |
\tx@ArcArrow |
| 2086 |
\fi |
| 2087 |
\ifcase\psarc@type arc \or arcn \fi} |
| 2088 |
\def\psarc@type{0} |
| 2089 |
\def\psarc@showpoints{% |
| 2090 |
gsave |
| 2091 |
newpath |
| 2092 |
x y moveto |
| 2093 |
x y r \pst@tempa \pst@tempb |
| 2094 |
\ifcase\psarc@type arc \or arcn \fi |
| 2095 |
closepath |
| 2096 |
CLW 2 div SLW |
| 2097 |
[ \psk@dash\space ] 0 setdash stroke |
| 2098 |
grestore } |
| 2099 |
\def\psarcn{\pst@object{psarcn}} |
| 2100 |
\def\psarcn@i{\def\psarc@type{1}\psarc@i} |
| 2101 |
\def\pscircle{\pst@object{pscircle}} |
| 2102 |
\def\pscircle@i{\@ifnextchar({\pscircle@do}{\pscircle@do(0,0)}} |
| 2103 |
\def\pscircle@do(#1)#2{% |
| 2104 |
\if@star |
| 2105 |
{\use@par\qdisk(#1){#2}}% |
| 2106 |
\else |
| 2107 |
\begin@ClosedObj |
| 2108 |
\pst@@getcoor{#1}% |
| 2109 |
\pssetlength\pst@dimc{#2}% |
| 2110 |
\def\pst@linetype{4}% |
| 2111 |
\addto@pscode{% |
| 2112 |
\pst@coor |
| 2113 |
\pst@number\pst@dimc |
| 2114 |
\psk@dimen CLW mul sub |
| 2115 |
0 360 arc |
| 2116 |
closepath}% |
| 2117 |
\showpointsfalse |
| 2118 |
\end@ClosedObj |
| 2119 |
\fi |
| 2120 |
\ignorespaces} |
| 2121 |
\def\qdisk(#1)#2{% |
| 2122 |
\def\pst@par{}% |
| 2123 |
\begin@SpecialObj |
| 2124 |
\pst@@getcoor{#1}% |
| 2125 |
\pssetlength\pst@dimg{#2}% |
| 2126 |
\addto@pscode{\pst@coor \pst@number\pst@dimg \tx@SD}% |
| 2127 |
\end@SpecialObj} |
| 2128 |
\def\psset@radius#1{\pst@@getlength{#1}\psk@radius} |
| 2129 |
\psset@radius{.25cm} |
| 2130 |
\def\psCircle{\pst@object{psCircle}} |
| 2131 |
\def\psCircle@i{\@ifnextchar({\psCircle@ii}{\psCircle@ii(0,0)}} |
| 2132 |
\def\psCircle@ii(#1){\pscircle@do(#1){\psk@radius}} |
| 2133 |
\def\pswedge{\pst@object{pswedge}} |
| 2134 |
\def\pswedge@i{\@ifnextchar({\pswedge@ii}{\pswedge@ii(0,0)}} |
| 2135 |
\def\pswedge@ii(#1)#2#3#4{% |
| 2136 |
\begin@ClosedObj |
| 2137 |
\pssetlength\pst@dimc{#2} |
| 2138 |
\pst@getangle{#3}\pst@tempa |
| 2139 |
\pst@getangle{#4}\pst@tempb |
| 2140 |
\pst@@getcoor{#1}% |
| 2141 |
\def\pst@linetype{1}% |
| 2142 |
\addto@pscode{% |
| 2143 |
\pst@coor |
| 2144 |
2 copy |
| 2145 |
moveto |
| 2146 |
\pst@number\pst@dimc \psk@dimen CLW mul sub % Adjusted radius |
| 2147 |
\pst@tempa \pst@tempb |
| 2148 |
arc |
| 2149 |
closepath}% |
| 2150 |
\showpointsfalse |
| 2151 |
\end@ClosedObj} |
| 2152 |
\def\tx@Ellipse{Ellipse } |
| 2153 |
\def\psellipse{\pst@object{psellipse}} |
| 2154 |
\def\psellipse@i(#1){\@ifnextchar(% |
| 2155 |
{\psellipse@ii(#1)}{\psellipse@ii(0,0)(#1)}} |
| 2156 |
\def\psellipse@ii(#1)(#2){% |
| 2157 |
\begin@ClosedObj |
| 2158 |
\pst@getcoor{#1}\pst@tempa |
| 2159 |
\pst@@getcoor{#2}% |
| 2160 |
\addto@pscode{% |
| 2161 |
0 360 |
| 2162 |
\pst@coor |
| 2163 |
\ifdim\psk@dimen\p@=\z@\else |
| 2164 |
\psk@dimen CLW mul |
| 2165 |
dup 4 -1 roll sub neg 3 1 roll sub |
| 2166 |
\fi |
| 2167 |
\pst@tempa |
| 2168 |
\tx@Ellipse |
| 2169 |
closepath}% |
| 2170 |
\def\pst@linetype{2}% |
| 2171 |
\end@ClosedObj} |
| 2172 |
\def\multips{\@ifnextchar({\def\pst@par{}\multips@ii}{\multips@i}} |
| 2173 |
\def\multips@i#1{\def\pst@par{rot=#1}\multips@ii} |
| 2174 |
\def\multips@ii(#1){\@ifnextchar({\multips@iii(#1)}{\multips@iii(\z@,\z@)(#1)}} |
| 2175 |
\long\def\multips@iii(#1)(#2)#3#4{% |
| 2176 |
\begingroup |
| 2177 |
\use@par |
| 2178 |
\pst@getcoor{#1}\pst@tempa |
| 2179 |
\pst@@getcoor{#2}% |
| 2180 |
\pst@cnta=#3\relax |
| 2181 |
\init@pscode |
| 2182 |
\addto@pscode{% |
| 2183 |
\pst@tempa T \the\pst@cnta\space \pslbrace |
| 2184 |
gsave \ifx\psk@rot\@empty\else\psk@rot rotate \fi}% |
| 2185 |
\hbox to\z@{% |
| 2186 |
\def\init@pscode{% |
| 2187 |
\addto@pscode{% |
| 2188 |
gsave |
| 2189 |
\pst@number\pslinewidth SLW |
| 2190 |
\pst@usecolor\pslinecolor}}% |
| 2191 |
\def\use@pscode{\addto@pscode{grestore}}% |
| 2192 |
\def\psclip##1{\pst@misplaced\psclip}% |
| 2193 |
\def\nc@object##1##2##3##4{\pst@misplaced{node connection}}% |
| 2194 |
#4}% |
| 2195 |
\addto@pscode{grestore \pst@coor T \psrbrace repeat}% |
| 2196 |
\leavevmode |
| 2197 |
\use@pscode |
| 2198 |
\endgroup |
| 2199 |
\ignorespaces} |
| 2200 |
\def\scalebox#1{\pst@makebox{\@scalebox{#1}}} |
| 2201 |
\def\@scalebox#1{% |
| 2202 |
\begingroup |
| 2203 |
\pst@getscale{#1}\pst@tempa |
| 2204 |
\let\pst@tempc\pst@tempg |
| 2205 |
\let\pst@tempd\pst@temph |
| 2206 |
\@@scalebox |
| 2207 |
\endgroup} |
| 2208 |
\def\@@scalebox{% |
| 2209 |
\leavevmode |
| 2210 |
\hbox{% |
| 2211 |
\ifdim\pst@tempd\p@<\z@ |
| 2212 |
\pst@dimg=\pst@tempd\ht\pst@hbox |
| 2213 |
\pst@dimh=\pst@tempd\dp\pst@hbox |
| 2214 |
\dp\pst@hbox=-\pst@dimg |
| 2215 |
\ht\pst@hbox=-\pst@dimh |
| 2216 |
\else |
| 2217 |
\ht\pst@hbox=\pst@tempd\ht\pst@hbox |
| 2218 |
\dp\pst@hbox=\pst@tempd\dp\pst@hbox |
| 2219 |
\fi |
| 2220 |
\pst@dima=\pst@tempc\wd\pst@hbox |
| 2221 |
\ifdim\pst@dima<\z@\kern-\pst@dima\fi |
| 2222 |
\pst@Verb{CP CP translate \pst@tempa \tx@NET}% |
| 2223 |
\hbox to \z@{\box\pst@hbox\hss}% |
| 2224 |
\pst@Verb{% |
| 2225 |
CP CP translate |
| 2226 |
1 \pst@tempc div 1 \pst@tempd div scale |
| 2227 |
\tx@NET}% |
| 2228 |
\ifdim\pst@dima>\z@\kern\pst@dima\fi}} |
| 2229 |
\pslongbox{Scalebox}{\scalebox} |
| 2230 |
\def\scaleboxto(#1,#2){\pst@makebox{\@scaleboxto(#1,#2)}} |
| 2231 |
\def\@scaleboxto(#1,#2){% |
| 2232 |
\begingroup |
| 2233 |
\pssetlength\pst@dima{#1}% |
| 2234 |
\pssetlength\pst@dimb{#2}% |
| 2235 |
\ifdim\pst@dima=\z@\else |
| 2236 |
\pst@divide{\pst@dima}{\wd\pst@hbox}\pst@tempc |
| 2237 |
\edef\pst@tempc{\pst@tempc\space}% |
| 2238 |
\fi |
| 2239 |
\ifdim\pst@dimb=\z@ |
| 2240 |
\ifdim\pst@dima=\z@ |
| 2241 |
\@pstrickserr{% |
| 2242 |
\string\scaleboxto\space dimensions cannot both be zero}\@ehpa |
| 2243 |
\def\pst@tempa{}% |
| 2244 |
\def\pst@tempc{1 }% |
| 2245 |
\def\pst@tempd{1 }% |
| 2246 |
\else |
| 2247 |
\let\pst@tempd\pst@tempc |
| 2248 |
\fi |
| 2249 |
\else |
| 2250 |
\pst@dimc=\ht\pst@hbox |
| 2251 |
\advance\pst@dimc\dp\pst@hbox |
| 2252 |
\pst@divide{\pst@dimb}{\pst@dimc}\pst@tempd |
| 2253 |
\edef\pst@tempd{\pst@tempd\space}% |
| 2254 |
\ifdim\pst@dima=\z@ \let\pst@tempc\pst@tempd \fi |
| 2255 |
\fi |
| 2256 |
\edef\pst@tempa{\pst@tempc \pst@tempd scale }% |
| 2257 |
\@@scalebox |
| 2258 |
\endgroup} |
| 2259 |
\pslongbox{Scaleboxto}{\scaleboxto} |
| 2260 |
\def\tx@Rot{Rot } |
| 2261 |
\def\rotateleft{\pst@makebox{\@rotateleft\pst@hbox}} |
| 2262 |
\def\@rotateleft#1{% |
| 2263 |
\leavevmode\hbox{\hskip\ht#1\hskip\dp#1\vbox{\vskip\wd#1% |
| 2264 |
\pst@Verb{90 \tx@Rot} |
| 2265 |
\vbox to \z@{\vss\hbox to \z@{\box#1\hss}\vskip\z@}% |
| 2266 |
\pst@Verb{-90 \tx@Rot}}}} |
| 2267 |
\def\rotateright{\pst@makebox{\@rotateright\pst@hbox}} |
| 2268 |
\def\@rotateright#1{% |
| 2269 |
\hbox{\hskip\ht#1\hskip\dp#1\vbox{\vskip\wd#1% |
| 2270 |
\pst@Verb{-90 \tx@Rot} |
| 2271 |
\vbox to \z@{\hbox to \z@{\hss\box#1}\vss}% |
| 2272 |
\pst@Verb{90 \tx@Rot}}}} |
| 2273 |
\def\rotatedown{\pst@makebox{\@rotatedown\pst@hbox}} |
| 2274 |
\def\@rotatedown#1{% |
| 2275 |
\hbox{\hskip\wd#1\vbox{\vskip\ht#1\vskip\dp#1% |
| 2276 |
\pst@Verb{180 \tx@Rot}% |
| 2277 |
\vbox to \z@{\hbox to \z@{\box#1\hss}\vss}% |
| 2278 |
\pst@Verb{-180 \tx@Rot}}}} |
| 2279 |
\pslongbox{Rotateleft}{\rotateleft} |
| 2280 |
\pslongbox{Rotateright}{\rotateright} |
| 2281 |
\pslongbox{Rotatedown}{\rotatedown} |
| 2282 |
\def\pst@starbox{% |
| 2283 |
\setbox\pst@hbox\hbox{\psframebox*[boxsep=false]{\unhbox\pst@hbox}}} |
| 2284 |
\def\pst@@makesmall#1{% |
| 2285 |
\setbox#1=\hbox to\z@{\hss\vbox to \z@{\vss\box#1\vss}\hss}} |
| 2286 |
\def\pst@@@makesmall#1{% |
| 2287 |
\pst@dimh=\psk@xref\wd#1% |
| 2288 |
\ifx\psk@yref\relax |
| 2289 |
\pst@dimg=\dp#1% |
| 2290 |
\else |
| 2291 |
\pst@dimg=\psk@yref\ht#1% |
| 2292 |
\advance\pst@dimg\psk@yref\dp#1% |
| 2293 |
\fi |
| 2294 |
\setbox#1=\hbox to\z@{% |
| 2295 |
\kern-\pst@dimh\vbox to\z@{\vss\box#1\kern-\pst@dimg}\hss}} |
| 2296 |
\def\psset@ref#1{\pst@expandafter\psset@@ref{#1}\@empty,,\@nil} |
| 2297 |
\def\psset@@ref#1#2,#3,#4\@nil{% |
| 2298 |
\def\psk@xref{.5}% |
| 2299 |
\def\psk@yref{.5}% |
| 2300 |
\let\pst@makesmall\pst@@@makesmall |
| 2301 |
\ifx\@empty#3\@empty |
| 2302 |
\@nameuse{getref@#1}% |
| 2303 |
\@nameuse{getref@#2}% |
| 2304 |
\else |
| 2305 |
\pst@checknum{#1#2}\psk@xref |
| 2306 |
\pst@checknum{#3}\psk@yref |
| 2307 |
\fi} |
| 2308 |
\def\getref@c{\let\pst@makesmall\pst@@makesmall} |
| 2309 |
\def\getref@t{\def\psk@yref{1}} |
| 2310 |
\def\getref@b{\def\psk@yref{0}} |
| 2311 |
\def\getref@B{\let\psk@yref\relax} |
| 2312 |
\def\getref@l{\def\psk@xref{0}} |
| 2313 |
\def\getref@r{\def\psk@xref{1}} |
| 2314 |
\psset@ref{c} |
| 2315 |
\def\psset@rot#1{% |
| 2316 |
\pst@expandafter{\@ifnextchar*{\psset@@@rot}{\psset@@rot}}{#1}\@nil} |
| 2317 |
\def\psset@@rot#1\@nil{% |
| 2318 |
\def\next##1@#1=##2@##3\@nil{% |
| 2319 |
\ifx\relax##2% |
| 2320 |
\pst@getangle{#1}\psk@rot |
| 2321 |
\else |
| 2322 |
\def\psk@rot{##2}% |
| 2323 |
\fi}% |
| 2324 |
\expandafter\next\pst@rottable @#1=\relax @\@nil} |
| 2325 |
\def\psset@@@rot#1#2\@nil{% |
| 2326 |
\psset@@rot#2\@nil |
| 2327 |
\edef\psk@rot{\pst@rotlist \ifx\psk@rot\@empty\else\psk@rot add \fi}} |
| 2328 |
\def\pst@rotlist{mark RAngle /a ED cleartomark a neg } |
| 2329 |
\def\pst@rottable{% |
| 2330 |
@0=% |
| 2331 |
@U=% |
| 2332 |
@L=90 % |
| 2333 |
@D=180 % |
| 2334 |
@R=-90 % |
| 2335 |
@N=\pst@rotlist |
| 2336 |
@W=\pst@rotlist 90 add % |
| 2337 |
@S=\pst@rotlist 180 add % |
| 2338 |
@E=\pst@rotlist 90 sub } |
| 2339 |
\psset@rot{0} |
| 2340 |
\def\tx@RotBegin{RotBegin } |
| 2341 |
\def\tx@RotEnd{RotEnd } |
| 2342 |
\def\pst@rotate#1#2{% |
| 2343 |
\ifx#1\@empty\else |
| 2344 |
\setbox#2=\hbox{\pst@Verb{#1 \tx@RotBegin}\box#2\pst@Verb{\tx@RotEnd}}% |
| 2345 |
\fi} |
| 2346 |
\def\psput@cartesian#1{% |
| 2347 |
\hbox to \z@{\kern\pst@dimg{\vbox to \z@{\vss\box#1\vskip\pst@dimh}\hss}}} |
| 2348 |
\def\psput@special#1{% |
| 2349 |
\hbox{% |
| 2350 |
\pst@Verb{{ \pst@coor } \tx@PutCoor \tx@PutBegin}% |
| 2351 |
\box#1% |
| 2352 |
\pst@Verb{\tx@PutEnd}}} |
| 2353 |
\def\tx@PutCoor{PutCoor } |
| 2354 |
\def\tx@PutBegin{PutBegin } |
| 2355 |
\def\tx@PutEnd{PutEnd } |
| 2356 |
\def\rput{\def\pst@par{}\pst@ifstar{\@ifnextchar[{\rput@i}{\rput@ii}}} |
| 2357 |
\def\rput@i[#1]{\addto@par{ref={#1}}\rput@ii} |
| 2358 |
\def\rput@ii{\@ifnextchar({\rput@iv}{\rput@iii}} |
| 2359 |
\def\rput@iii#1{\addto@par{rot={#1}}\@ifnextchar({\rput@iv}{\rput@iv(\z@,\z@)}} |
| 2360 |
\def\rput@iv(#1){\pst@killglue\pst@makebox{\rput@v{#1}}} |
| 2361 |
\def\rput@v#1{% |
| 2362 |
\begingroup |
| 2363 |
\use@par |
| 2364 |
\if@star\pst@starbox\fi |
| 2365 |
\pst@makesmall\pst@hbox |
| 2366 |
\pst@rotate\psk@rot\pst@hbox |
| 2367 |
\psput@{#1}\pst@hbox |
| 2368 |
\endgroup |
| 2369 |
\ignorespaces} |
| 2370 |
\def\multirput{% |
| 2371 |
\def\pst@par{}% |
| 2372 |
\pst@ifstar{\@ifnextchar[{\multirput@i}{\multirput@ii}}} |
| 2373 |
\def\multirput@i[#1]{\addto@par{ref={#1}}\multirput@ii} |
| 2374 |
\def\multirput@ii{\@ifnextchar({\multirput@iv}{\multirput@iii}} |
| 2375 |
\def\multirput@iii#1{\addto@par{rot={#1}}\multirput@iv} |
| 2376 |
\def\multirput@iv(#1){% |
| 2377 |
\@ifnextchar({\multirput@v(#1)}{\multirput@v(\z@,\z@)(#1)}} |
| 2378 |
\def\multirput@v(#1,#2)(#3,#4)#5{% |
| 2379 |
\pst@makebox{\multirput@vi(#1,#2)(#3,#4){#5}}} |
| 2380 |
\def\multirput@vi(#1,#2)(#3,#4)#5{% |
| 2381 |
\begingroup |
| 2382 |
\use@par |
| 2383 |
\if@star\pst@starbox\fi |
| 2384 |
\pst@makesmall\pst@hbox |
| 2385 |
\pst@rotate\psk@rot\pst@hbox |
| 2386 |
\pssetxlength\pst@dima{#1}% |
| 2387 |
\pssetylength\pst@dimb{#2}% |
| 2388 |
\pssetxlength\pst@dimc{#3}% |
| 2389 |
\pssetylength\pst@dimd{#4}% |
| 2390 |
\pst@cntg=#5\relax |
| 2391 |
\pst@cnth=\@ne |
| 2392 |
\leavevmode |
| 2393 |
\loop |
| 2394 |
\vbox to \z@{% |
| 2395 |
\vss |
| 2396 |
\hbox to \z@{\kern\pst@dima\copy\pst@hbox\hss}% |
| 2397 |
\vskip\pst@dimb}% |
| 2398 |
\ifnum\pst@cntg>\pst@cnth |
| 2399 |
\advance\pst@dima\pst@dimc |
| 2400 |
\advance\pst@dimb\pst@dimd |
| 2401 |
\advance\pst@cnth\@ne |
| 2402 |
\repeat |
| 2403 |
\endgroup |
| 2404 |
\ignorespaces} |
| 2405 |
\newif\if@fixedradius |
| 2406 |
\def\cput{\pst@object{cput}} |
| 2407 |
\def\cput@i{\@fixedradiusfalse\cput@ii} |
| 2408 |
\def\cput@ii{\pst@killglue\@ifnextchar({\cput@iv}{\cput@iii}} |
| 2409 |
\def\cput@iii#1{% |
| 2410 |
\addto@par{rot={#1}}% |
| 2411 |
\@ifnextchar({\cput@iv}{\cput@iv(\z@,\z@)}} |
| 2412 |
\def\cput@iv(#1){\pst@makebox{\cput@v{#1}}} |
| 2413 |
\def\cput@v#1{% |
| 2414 |
\begingroup |
| 2415 |
\use@par |
| 2416 |
\setbox\pst@hbox=\hbox{% |
| 2417 |
\psboxsepfalse |
| 2418 |
\if@fixedradius\psCirclebox@ii\else\pscirclebox@ii\fi}% |
| 2419 |
\pst@@makesmall\pst@hbox |
| 2420 |
\pst@rotate\psk@rot\pst@hbox |
| 2421 |
\psput@{#1}\pst@hbox |
| 2422 |
\endgroup |
| 2423 |
\ignorespaces} |
| 2424 |
\def\Cput{\pst@object{Cput}} |
| 2425 |
\def\Cput@i{\@fixedradiustrue\cput@ii} |
| 2426 |
\newdimen\pslabelsep |
| 2427 |
\def\psset@labelsep#1{\pssetlength\pslabelsep{#1}} |
| 2428 |
\psset@labelsep{5pt} |
| 2429 |
\def\psset@refangle#1{\pst@expandafter\psset@@refangle{#1}\@nil} |
| 2430 |
\def\psset@@refangle#1\@nil{% |
| 2431 |
\def\next##1@#1=##2"##3@##4\@nil{% |
| 2432 |
\ifx\relax##2% |
| 2433 |
\pst@getangle{#1}\psk@refangle |
| 2434 |
\def\psk@uputref{}% |
| 2435 |
\else |
| 2436 |
\def\psk@refangle{##2 }% |
| 2437 |
\def\psk@uputref{##3}% |
| 2438 |
\fi}% |
| 2439 |
\expandafter\next\pst@refangletable @#1=\relax"@\@nil} |
| 2440 |
\def\pst@refangletable{% |
| 2441 |
@r=0"20% |
| 2442 |
@u=90"02% |
| 2443 |
@l=180"10% |
| 2444 |
@d=-90"01% |
| 2445 |
@ur=45"22% |
| 2446 |
@ul=135"12% |
| 2447 |
@dr=-135"21% |
| 2448 |
@dl=-45"11} |
| 2449 |
\psset@refangle{0} |
| 2450 |
% DG/SR modification begin - Mar. 24, 1999 - Patch 10 |
| 2451 |
%\def\uput{\def\pst@par{}\@ifnextchar[{\uput@ii}{\uput@i}} |
| 2452 |
\def\uput{\def\pst@par{}\pst@ifstar{\@ifnextchar[{\uput@ii}{\uput@i}}} |
| 2453 |
% DG/SR modification end |
| 2454 |
\def\uput@i#1{\addto@par{labelsep=#1}\uput@ii} |
| 2455 |
\def\uput@ii[#1]{% |
| 2456 |
\addto@par{refangle={#1}}% |
| 2457 |
\@ifnextchar({\uput@iv}{\uput@iii}} |
| 2458 |
\def\uput@iii#1{% |
| 2459 |
\addto@par{rot={#1}}% |
| 2460 |
\@ifnextchar({\uput@iv}{\uput@iv(\z@,\z@)}} |
| 2461 |
\def\uput@iv(#1){\pst@killglue\pst@makebox{\uput@v{#1}}} |
| 2462 |
\def\uput@v#1{% |
| 2463 |
\begingroup |
| 2464 |
\use@par |
| 2465 |
\if@star\pst@starbox\fi |
| 2466 |
\uput@vi |
| 2467 |
\psput@{#1}\pst@hbox |
| 2468 |
\endgroup |
| 2469 |
\ignorespaces} |
| 2470 |
\def\uput@vi{% |
| 2471 |
\ifx\psk@uputref\@empty |
| 2472 |
\uput@vii\tx@UUput{}% |
| 2473 |
\else |
| 2474 |
\ifx\psk@rot\@empty |
| 2475 |
\expandafter\uput@viii\psk@uputref |
| 2476 |
\else |
| 2477 |
\uput@vii\tx@UUput{}% |
| 2478 |
\fi |
| 2479 |
\fi} |
| 2480 |
\def\uput@vii#1#2{% |
| 2481 |
\edef\pst@coor{% |
| 2482 |
\pst@number\pslabelsep |
| 2483 |
#2% |
| 2484 |
\pst@number{\wd\pst@hbox}% |
| 2485 |
\pst@number{\ht\pst@hbox}% |
| 2486 |
\pst@number{\dp\pst@hbox}% |
| 2487 |
\psk@refangle\space \ifx\psk@rot\@empty\else\psk@rot\space sub \fi |
| 2488 |
\tx@Uput #1}% |
| 2489 |
\setbox\pst@hbox=\hbox to\z@{\hss\vbox to\z@{\vss\box\pst@hbox\vss}\hss}% |
| 2490 |
\setbox\pst@hbox=\psput@special\pst@hbox |
| 2491 |
\ifx\psk@rot\@empty\else\pst@rotate\psk@rot\pst@hbox\fi} |
| 2492 |
\def\uput@viii#1#2{% |
| 2493 |
\ifnum#1>\z@\ifnum#2>\z@\pslabelsep=.707\pslabelsep\fi\fi |
| 2494 |
\setbox\pst@hbox=\vbox to\z@{% |
| 2495 |
\ifnum#2=1 \vskip\pslabelsep\else\vss\fi |
| 2496 |
\hbox to\z@{% |
| 2497 |
\ifnum#1=2 \hskip\pslabelsep\else\hss\fi |
| 2498 |
\box\pst@hbox |
| 2499 |
\ifnum#1=1 \hskip\pslabelsep\else\hss\fi}% |
| 2500 |
\ifnum#2=2 \vskip\pslabelsep\else\vss\fi}} |
| 2501 |
\def\tx@Uput{Uput } |
| 2502 |
\def\tx@UUput{UUput } |
| 2503 |
\def\Rput{\def\pst@par{}\pst@ifstar{\@ifnextchar[{\Rput@ii}{\Rput@i}}} |
| 2504 |
\def\Rput@i#1{\addto@par{labelsep=#1}\Rput@ii} |
| 2505 |
\def\Rput@ii[#1]{\addto@par{ref={#1}}\@ifnextchar({\Rput@iv}{\Rput@iii}} |
| 2506 |
\def\Rput@iii#1{\addto@par{rot={#1}}\@ifnextchar({\Rput@iv}{\Rput@iv(\z@,\z@)}} |
| 2507 |
\def\Rput@iv(#1){\pst@killglue\pst@makebox{\Rput@v{#1}}} |
| 2508 |
\def\Rput@v#1{% |
| 2509 |
\begingroup |
| 2510 |
\use@par |
| 2511 |
\if@star\pst@starbox\fi |
| 2512 |
\Rput@vi |
| 2513 |
\pst@makesmall\pst@hbox |
| 2514 |
\pst@rotate\psk@rot\pst@hbox |
| 2515 |
\psput@{#1}\pst@hbox |
| 2516 |
\endgroup |
| 2517 |
\ignorespaces} |
| 2518 |
\def\Rput@vi{% |
| 2519 |
\pst@dimg=\dp\pst@hbox |
| 2520 |
\advance\pst@dimg\pslabelsep |
| 2521 |
\dp\pst@hbox=\pst@dimg |
| 2522 |
\pst@dimg=\ht\pst@hbox |
| 2523 |
\advance\pst@dimg\pslabelsep |
| 2524 |
\ht\pst@hbox=\pst@dimg |
| 2525 |
\setbox\pst@hbox\hbox{\kern\pslabelsep\box\pst@hbox\kern\pslabelsep}}% |
| 2526 |
\def\oldpsput{% |
| 2527 |
\def\pst@par{}\pst@ifstar{\@ifnextchar[{\oldpsput@i}{\oldpsput@ii}}} |
| 2528 |
\def\oldpsput@i[#1]{\addto@par{ref={#1}}\oldpsput@ii} |
| 2529 |
\def\oldpsput@ii{\@ifnextchar<{\oldpsput@iii}{\oldpsput@iv}} |
| 2530 |
\def\oldpsput@iii<#1>{\rput@iii{#1}} |
| 2531 |
\def\OldPsput{\let\psput\oldpsput} |
| 2532 |
\def\NewPsput{\let\psput\rput} |
| 2533 |
\def\pspicture{\begingroup\pst@ifstar\pst@picture} |
| 2534 |
\def\pst@picture{% |
| 2535 |
\@ifnextchar[{\pst@@picture}{\pst@@picture[0]}} |
| 2536 |
\def\pst@@picture[#1]#2(#3,#4){% |
| 2537 |
\@ifnextchar({\pst@@@picture[#1](#3,#4)}% |
| 2538 |
{\pst@@@picture[#1](0,0)(#3,#4)}} |
| 2539 |
\def\pst@@@picture[#1](#2,#3)(#4,#5){% |
| 2540 |
\pssetxlength\pst@dima{#2}% |
| 2541 |
\pssetylength\pst@dimb{#3}% |
| 2542 |
\pssetxlength\pst@dimc{#4}% |
| 2543 |
\pssetylength\pst@dimd{#5}% |
| 2544 |
\ifdim\pst@dima>\pst@dimc |
| 2545 |
\pst@dimg=\pst@dima |
| 2546 |
\pst@dima=\pst@dimc |
| 2547 |
\pst@dimc=\pst@dimg |
| 2548 |
\fi |
| 2549 |
\ifdim\pst@dimb>\pst@dimd |
| 2550 |
\pst@dimg=\pst@dimb |
| 2551 |
\pst@dimb=\pst@dimd |
| 2552 |
\pst@dimd=\pst@dimg |
| 2553 |
\fi |
| 2554 |
\def\pst@tempa{#1}% |
| 2555 |
\setbox\pst@hbox=\hbox\bgroup |
| 2556 |
\begingroup\KillGlue |
| 2557 |
\@ifundefined{@latexerr}{}{\let\unitlength\psunit}% |
| 2558 |
\edef\pic@coor{(#2,#3)(#2,#3)(#4,#5)}\ignorespaces} |
| 2559 |
\def\pic@coor{(0,0)(0,0)(10,10)} |
| 2560 |
\def\endpspicture{% |
| 2561 |
\pst@killglue |
| 2562 |
\endgroup |
| 2563 |
\egroup |
| 2564 |
\ifdim\wd\pst@hbox=\z@\else |
| 2565 |
%\@pstrickserr{Extraneous space in the pspicture environment}% |
| 2566 |
%{Type \space <return> \space to procede.}% |
| 2567 |
\fi |
| 2568 |
\ht\pst@hbox=\pst@dimd |
| 2569 |
\dp\pst@hbox=-\pst@dimb |
| 2570 |
\setbox\pst@hbox=\hbox{% |
| 2571 |
\kern-\pst@dima |
| 2572 |
\ifx\pst@tempa\@empty\else |
| 2573 |
\advance\pst@dimd-\pst@dimb |
| 2574 |
\pst@dimd=\pst@tempa\pst@dimd |
| 2575 |
\advance\pst@dimd\pst@dimb |
| 2576 |
\lower\pst@dimd |
| 2577 |
\fi |
| 2578 |
\box\pst@hbox |
| 2579 |
\kern\pst@dimc}% |
| 2580 |
\if@star\setbox\pst@hbox=\hbox{\clipbox@@\z@}\fi |
| 2581 |
\leavevmode\box\pst@hbox |
| 2582 |
\endgroup} |
| 2583 |
\@namedef{pspicture*}{\pspicture*} |
| 2584 |
\@namedef{endpspicture*}{\endpspicture} |
| 2585 |
\def\tx@BeginOL{BeginOL } |
| 2586 |
\def\tx@InitOL{InitOL } |
| 2587 |
\def\pst@initoverlay#1{\pst@Verb{\tx@InitOL /TheOL (#1) def}} |
| 2588 |
\def\AltOverlayMode{% |
| 2589 |
\def\pst@initoverlay##1{% |
| 2590 |
\pst@Verb{% |
| 2591 |
\tx@InitOL |
| 2592 |
/Visible { initclip } def |
| 2593 |
/Invisible { |
| 2594 |
CP newpath OLUnit itransform moveto clip newpath moveto |
| 2595 |
} def |
| 2596 |
/TheOL (##1) def}}} |
| 2597 |
\def\pst@overlay#1{% |
| 2598 |
\edef\curr@overlay{#1}% |
| 2599 |
\pst@Verb{(#1) BOL}% |
| 2600 |
\aftergroup\pst@endoverlay} |
| 2601 |
\def\pst@endoverlay{% |
| 2602 |
\pst@Verb{(\curr@overlay) BOL}} |
| 2603 |
\def\curr@overlay{all} |
| 2604 |
\newbox\theoverlaybox |
| 2605 |
\def\overlaybox{% |
| 2606 |
\global\setbox\theoverlaybox=\hbox\bgroup |
| 2607 |
\begingroup |
| 2608 |
\let\psoverlay\pst@overlay |
| 2609 |
\def\overlaybox{% |
| 2610 |
\@pstrickserr{Overlays cannot be nested}\@eha}% |
| 2611 |
\def\putoverlaybox{% |
| 2612 |
\@pstrickserr{You must end the overlay box |
| 2613 |
before using \string\putoverlaybox}}% |
| 2614 |
\psoverlay{main}% |
| 2615 |
\ignorespaces} |
| 2616 |
\def\endoverlaybox{\endgroup\egroup} |
| 2617 |
\def\putoverlaybox#1{% |
| 2618 |
\hbox{\pst@initoverlay{#1}\copy\theoverlaybox}} |
| 2619 |
\def\psoverlay{\@pstrickserr{\string\psoverlay\space |
| 2620 |
can only be used after \string\overlaybox}} |
| 2621 |
\ifx\pstcustomize\relax \input pstricks.con \fi |
| 2622 |
\catcode`\@=\PstAtCode\relax |
| 2623 |
% |
| 2624 |
\endinput |
| 2625 |
%% |
| 2626 |
%% END: pstricks.tex |