diff options
author | Karl Berry <karl@freefriends.org> | 2006-08-12 16:09:08 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-08-12 16:09:08 +0000 |
commit | d850ed90db1a9f0924025751583132c068c524ee (patch) | |
tree | e4e64e69a6f99d9daf10f9b26e2c0b375d81a21a /Master/texmf-dist/tex/generic/pstricks/pstricks.tex | |
parent | c6141418a8cc97b3ebbf324c22c27c20dfd95063 (diff) |
pstricks 2006/08/10 update
git-svn-id: svn://tug.org/texlive/trunk@1935 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic/pstricks/pstricks.tex')
-rw-r--r-- | Master/texmf-dist/tex/generic/pstricks/pstricks.tex | 72 |
1 files changed, 47 insertions, 25 deletions
diff --git a/Master/texmf-dist/tex/generic/pstricks/pstricks.tex b/Master/texmf-dist/tex/generic/pstricks/pstricks.tex index dc3ea08413c..f9fa9535fcf 100644 --- a/Master/texmf-dist/tex/generic/pstricks/pstricks.tex +++ b/Master/texmf-dist/tex/generic/pstricks/pstricks.tex @@ -20,8 +20,8 @@ % See the PSTricks User's Guide for description. % This uses the header file `pstricks.pro'. % -\def\fileversion{1.12} -\def\filedate{2005/10/25} +\def\fileversion{1.14c} +\def\filedate{2006/04/29} % \csname PSTricksLoaded\endcsname \let\PSTricksLoaded\endinput @@ -309,7 +309,8 @@ \endgroup \def\@newcolor#1#2{% \expandafter\edef\csname #1\endcsname{\noexpand\pst@color{#2}}% -\expandafter\edef\csname color@#1\endcsname{#2}% +%\expandafter\edef\csname color@#1\endcsname{#2}% +\expandafter\edef\csname\string\color@#1\endcsname{#2}% hv 1.14 2005-12-17 \ignorespaces} \def\pst@color#1{% \def\pst@currentcolor{#1}\pstVerb{#1}\aftergroup\pst@endcolor} @@ -328,7 +329,9 @@ setmatrix moveto } -\def\pst@usecolor#1{\csname color@#1\endcsname\space} +%\def\pst@usecolor#1{\csname color@#1\endcsname\space}% hv 1.14 2005--12-17 +\def\pst@usecolor#1{\csname\string\color@#1\endcsname\space} +% \def\newgray#1#2{% \pst@checknum{#2}\pst@tempg \@newcolor{#1}{\pst@tempg setgray}% @@ -379,7 +382,8 @@ %------------ hv 1.10 end ------------------- \def\@none{none} \def\pst@getcolor#1#2{% - \@ifundefined{color@#1}% +% \@ifundefined{color@#1}% hv 1.14 2005-12-17 + \@ifundefined{\string\color@#1}% {\@pstrickserr{Color `#1' not defined}\@eha}% {\edef#2{#1}}% } @@ -668,9 +672,12 @@ \psset@dashadjust{true} \def\tx@DashLine{DashLine } \def\psls@dashed{% +%%--------------------------------- hv 2006-04-29 beg --------------------- + \psk@linecap\space setlinecap +%%--------------------------------- hv 2006-04-29 end --------------------- \ifpsdashadjust % \psk@dash \pst@linetype\space \tx@DashLine - \psk@dash \@ifundefined\pst@linetype{2}{\pst@linetype}\space \tx@DashLine + \psk@dash \@ifundefined{pst@linetype}{2}{\pst@linetype}\space \tx@DashLine \else [ \psk@dash ] 0 setdash stroke \fi} @@ -690,6 +697,17 @@ {\edef\pslinestyle{#1}}% } \psset@linestyle{solid} +%%--------------------------------- hv 2006-04-29 beg --------------------- +\def\psset@linecap#1{% + \def\psk@linecap{0}% + \ifnum#1>-1 + \ifnum#1<3 + \pst@getint{#1}\psk@linecap% + \fi\fi% +} +\psset{linecap=0} +%%--------------------------------- hv 2006-04-29 end --------------------- + \def\psfs@none{} \def\psset@fillcolor#1{\pst@getcolor{#1}\psfillcolor} \psset@fillcolor{white} @@ -835,7 +853,7 @@ mtrx setmatrix stroke 0 CLW moveto } def \psk@rbracketlength\space \psk@tbarsize\space \tx@RoundBracketOut } -% end of new definitions of the missing arrows ---- hv 1.1.2 +% end of new definitions of the missing arrows ---- hv 1.12 \@namedef{psas@>}{% false \psk@arrowinset \psk@arrowlength \psk@arrowsize \tx@Arrow } @@ -1221,7 +1239,10 @@ grestore}} % \def\psset@linetype#1{% \pst@getint{#1}\pslinetype - \ifnum\pst@dimg<-3 +%----------------- hv begin 2006-04-20 ------------- patch 1.14b + \ifnum\pst@cntg<-3 +% \ifnum\pst@dimg<-3 +%----------------- hv end 2004-05-07 ------------- patch 1.14b \@pstrickserr{linetype must be greater than -3}\@ehpa %----------------- hv begin 2004-05-07 ------------- patch 15 % \def\pslinetype{0}% @@ -1289,7 +1310,8 @@ grestore}} \def\setcolor#1{% % ----------------hv begin 2004-05-07-------------------- patch 15 % \@ifundefined{color@#1}{}{\addto@pscode{\use@color{#1}}}}% - \@ifundefined{color@#1}{}{\addto@pscode{\pst@usecolor{#1}}}}% +% \@ifundefined{color@#1}{}{\addto@pscode{\pst@usecolor{#1}}}}% + \@ifundefined{\string\color@#1}{}{\addto@pscode{\pst@usecolor{#1}}}}% hv 1.14 2005-12-17 % ----------------hv end 2004-05-07-------------------- \def\arrows#1{{\psset@arrows{#1}\pst@addarrowdef}}% \let\file\pst@rawfile @@ -1492,6 +1514,9 @@ grestore}} \def\psdot@i{\@ifnextchar({\psdot@ii}{\psdot@ii(\z@,\z@)}} \def\psdot@ii(#1){% \begin@SpecialObj +% hv modification 1.13 2005-11-28 + \solid@star +% hv modification end \pst@@getcoor{#1}% \addto@pscode{% \psk@dotsize @@ -1871,11 +1896,8 @@ DS .93 mul dup 1.236 mul /r1 ED CLW sub 1.236 mul /r2 ED \egroup% } \def\pslongbox#1#2{% -%--------------- hv begin 2004-05-07 ---------- patch 15 - \@namedef{#1}{\pst@longbox#2\ignorespaces}% -% \@namedef{#1}{\pst@longbox#2}% -%--------------- hv end 2004-05-07 ---------- patch 15 - \@namedef{end#1}{\pst@endlongbox}% +\@namedef{#1}{\pst@longbox#2}% +\@namedef{end#1}{\pst@endlongbox}% } \newdimen\psframesep \def\psset@framesep#1{\pssetlength\psframesep{#1}} @@ -2692,16 +2714,16 @@ closepath}% \kern-\pst@dimh\vbox to\z@{\vss\box#1\kern-\pst@dimg}\hss}} \def\psset@ref#1{\pst@expandafter\psset@@ref{#1}\@empty,,\@nil} \def\psset@@ref#1#2,#3,#4\@nil{% -\def\psk@xref{.5}% -\def\psk@yref{.5}% -\let\pst@makesmall\pst@@@makesmall -\ifx\@empty#3\@empty -\@nameuse{getref@#1}% -\@nameuse{getref@#2}% -\else -\pst@checknum{#1#2}\psk@xref -\pst@checknum{#3}\psk@yref -\fi} + \def\psk@xref{.5}% + \def\psk@yref{.5}% + \let\pst@makesmall\pst@@@makesmall + \ifx\@empty#3\@empty + \@nameuse{getref@#1}% + \@nameuse{getref@#2}% + \else + \pst@checknum{#1#2}\psk@xref + \pst@checknum{#3}\psk@yref + \fi} \def\getref@c{\let\pst@makesmall\pst@@makesmall} \def\getref@t{\def\psk@yref{1}} \def\getref@b{\def\psk@yref{0}} @@ -2997,7 +3019,7 @@ closepath}% \egroup \ifdim\wd\pst@hbox=\z@\else %\@pstrickserr{Extraneous space in the pspicture environment}% - %{Type \space <return> \space to procede.}% + %{Type \space <return> \space to proceed.}% \fi \ht\pst@hbox=\pst@dimd \dp\pst@hbox=-\pst@dimb |