summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-06-01 03:00:58 +0000
committerNorbert Preining <norbert@preining.info>2021-06-01 03:00:58 +0000
commit0f69e2fd4a9928663f0cc64b8cac1f0d8baee9d6 (patch)
treec9ab8a25ba9f5a5dcfb4bef6a51aa35fe07834cb /graphics
parent098258765e1921f3e57f38e424272587103189dd (diff)
CTAN sync 202106010300
Diffstat (limited to 'graphics')
-rw-r--r--graphics/pstricks/base/Changes3
-rw-r--r--graphics/pstricks/base/dvips/pstricks.pro26
-rw-r--r--graphics/pstricks/base/generic/pstricks.tex12
3 files changed, 35 insertions, 6 deletions
diff --git a/graphics/pstricks/base/Changes b/graphics/pstricks/base/Changes
index 93e83c51a0..98e1a674c0 100644
--- a/graphics/pstricks/base/Changes
+++ b/graphics/pstricks/base/Changes
@@ -1,4 +1,4 @@
-% $Id: Changes 25 2020-09-18 06:59:21Z herbert $
+% $Id: Changes 68 2021-04-08 06:41:14Z herbert $
Changelog for
@@ -25,6 +25,7 @@ pstricks.tex --------
versions like 2.47a have only changes in other files, but not
in this main package.
+3.02 2021-05-31 - added arrow type T<->T, similar to TikZ
3.01a 2021-03-30 - fix bug for intro to Ghostscript >9.52 in pstricks.pro
3.01 2020-09-18 - make it compatible to Ghostscript >9.52 for strokeopacity
3.00 2020-06-11 - added package pstricks-pdf for using auto-pst-pdf
diff --git a/graphics/pstricks/base/dvips/pstricks.pro b/graphics/pstricks/base/dvips/pstricks.pro
index 823fa1e8e7..a54aed45d2 100644
--- a/graphics/pstricks/base/dvips/pstricks.pro
+++ b/graphics/pstricks/base/dvips/pstricks.pro
@@ -1,7 +1,7 @@
-% $Id: pstricks.pro 1055 2019-05-16 11:59:06Z herbert $
+% $Id: pstricks.pro 68 2021-04-08 06:41:14Z herbert $
%
%% PostScript prologue for pstricks.tex.
-%% Version 1.34, 2021/03/30
+%% Version 1.35, 2021/05/21
%%
%% This program can be redistributed and/or modified under the terms
%% of the LaTeX Project Public License Distributed from CTAN archives
@@ -460,6 +460,28 @@ gsave
gsave fill grestore
} def
%
+/ArrowT { % like tikz
+ CLW mul add dup
+ 2 div /w ED
+ mul dup /h ED
+ mul /Inset ED
+ { 0 h T 1 -1 scale } if % changes the direction
+ w 2 mul /w exch def
+ w neg h moveto % lower left of >
+ w 9 div 4 mul neg h 3 div 2 mul
+ w 9 div neg h 3 div
+ 0 0 curveto % tip of >
+ w 9 div h 3 div
+ w 9 div 4 mul h 3 div 2 mul
+ w h curveto % upper left of >
+% w neg Inset neg rlineto % move to x=0 and inset
+% CLW SLW
+% 1 0 0 setrgbcolor
+ 2 setlinejoin
+ stroke
+ 0 0 moveto
+} def
+%
/Tbar {
CLW mul add /z ED
z -2 div CLW 2 div moveto
diff --git a/graphics/pstricks/base/generic/pstricks.tex b/graphics/pstricks/base/generic/pstricks.tex
index 57dbfd33dd..52a5865655 100644
--- a/graphics/pstricks/base/generic/pstricks.tex
+++ b/graphics/pstricks/base/generic/pstricks.tex
@@ -80,8 +80,8 @@
\fi
\let\pgfforeach\foreach
%
-\def\fileversion{3.01a}
-\def\filedate{2021/03/30}
+\def\fileversion{3.02}
+\def\filedate{2021/05/31}
\pst@addfams{pstricks}
%
%\define@boolkey[psset]{pstricks}[Pst@]{useURWfonts}[true]{}
@@ -1485,7 +1485,7 @@
%
\def\psk@arrowA{}
\def\psk@arrowB{}
-\def\pst@arrowtable{,-,<->,<<->>,>-<,>>-<<,(-),[-],)-(,]-[,|>-<|,<D-D>,D>-<D,<D<D-D>D>} % hv --1.16
+\def\pst@arrowtable{,-,<->,<<->>,>-<,>>-<<,(-),[-],)-(,]-[,|>-<|,<D-D>,D>-<D,<D<D-D>D>,<T-T>} % hv --1.16
\edef\pst@arrowtable{\pst@arrowtable,|<*->|*,|<->|}
\begingroup
\catcode`\<=13
@@ -1498,6 +1498,7 @@
%
\def\tx@Arrow{ \tx@setStrokeTransparency Arrow }% hv 2008-01-13
\def\tx@ArrowD{ \tx@setStrokeTransparency ArrowD }% hv 2008-01-13
+\def\tx@ArrowT{ \tx@setStrokeTransparency ArrowT }% hv 2021-05-31
%
\@namedef{psas@<|}{
\psk@tbarsize\space \tx@Tbar
@@ -1575,6 +1576,11 @@
CP newpath moveto 0 a neg L stroke 0 h neg T
true \psk@arrowinset \psk@arrowlength \psk@arrowsize \tx@ArrowD
}
+\@namedef{psas@T>}{ false \psk@arrowinset \psk@arrowlength \psk@arrowsize \tx@ArrowT }% hv 20210531
+\@namedef{psas@<T}{ % hv 20071211
+ true \psk@arrowinset \psk@arrowlength \psk@arrowsize \tx@ArrowT
+}
+
\define@key[psset]{pstricks}{tbarsize}[2pt 5]{%
\pst@expandafter\pst@getdimnum{#1} 0 {} {}\@nil
\edef\psk@tbarsize{\pst@number\pst@dimg \pst@tempg}}