summaryrefslogtreecommitdiff
path: root/graphics/pstricks
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/pstricks')
-rw-r--r--graphics/pstricks/base/Changes5
-rw-r--r--graphics/pstricks/base/doc/pst-news20.pdfbin56052 -> 320406 bytes
-rw-r--r--graphics/pstricks/base/doc/pst-news20.tex9
-rw-r--r--graphics/pstricks/base/dvips/pstricks.pro41
-rw-r--r--graphics/pstricks/base/generic/pstricks.tex8
-rw-r--r--graphics/pstricks/base/latex/pstricks-pdf.sty7
6 files changed, 55 insertions, 15 deletions
diff --git a/graphics/pstricks/base/Changes b/graphics/pstricks/base/Changes
index 816f1fe0e8..bf79c3d4b5 100644
--- a/graphics/pstricks/base/Changes
+++ b/graphics/pstricks/base/Changes
@@ -1,4 +1,4 @@
-% $Id: Changes 6 2020-06-10 18:50:14Z herbert $
+% $Id: Changes 23 2020-09-18 06:29:04Z 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.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
2.99 2020-06-09 - added two optional arguments for \psgrid: griddx and griddy
2.97 2019-05-11 - fix for trailing space with \pscustom
@@ -278,6 +279,7 @@ in this main package.
pstricks-pdf.sty -------------(hv)
+0.02 2020-08-18 - set ps2pdf=-dALLOWPSTRANSPARENCY as default
0.01 2020-06-11 - first CTAN version
@@ -340,6 +342,7 @@ pstricks-doc -----------
---- pstricks.pro
+1.32 2020-09-18 - make .setopacityalpha compatible to Ghostscript >9.52
1.31 2020-06-09 - added support for griddx and griddy
1.30 2018-12-17 - added offset parameter for Grid
1.29 2018-11-14 - added /Power function
diff --git a/graphics/pstricks/base/doc/pst-news20.pdf b/graphics/pstricks/base/doc/pst-news20.pdf
index c3bdd08629..b38ebe0f52 100644
--- a/graphics/pstricks/base/doc/pst-news20.pdf
+++ b/graphics/pstricks/base/doc/pst-news20.pdf
Binary files differ
diff --git a/graphics/pstricks/base/doc/pst-news20.tex b/graphics/pstricks/base/doc/pst-news20.tex
index cf75126c9d..00acba1ff2 100644
--- a/graphics/pstricks/base/doc/pst-news20.tex
+++ b/graphics/pstricks/base/doc/pst-news20.tex
@@ -1,4 +1,4 @@
-%% $Id: pst-news20.tex 6 2020-06-10 18:50:14Z herbert $
+%% $Id: pst-news20.tex 23 2020-09-18 06:29:04Z herbert $
\documentclass[11pt,english,BCOR=10mm,DIV=12,bibliography=totoc,parskip=false,headings=small,
headinclude=false,footinclude=false,twoside]{scrartcl}
@@ -9,7 +9,7 @@
\usepackage{libertinus}
\usepackage[scaled=0.88]{beramono}
\usepackage{babel}
-\usepackage[svgnames,dvipsnames,x11names]{pstricks-pdf}
+\usepackage[svgnames,dvipsnames,x11names,pspdf=-dALLOWPSTRANSPARENCY]{pstricks-pdf}
\usepackage{pstricks-add}
\usepackage{biblatex}
@@ -115,6 +115,11 @@ for \Lcs{psgrid}:
The function \texttt{Grid} supports GridDX and GridDY.
+The current version 1.32 should handle transparency for all Ghostscript versions.
+For versions > 9.52 you need for \verb|ps2pdf| the optional argument \verb|-dALLOWPSTRANSPARENCY|
+instead of \verb|-dNOSAFER|, which is still needed if you want to write Postscript files from within
+the \TeX-run.
+
\nocite{*}
\printbibliography
diff --git a/graphics/pstricks/base/dvips/pstricks.pro b/graphics/pstricks/base/dvips/pstricks.pro
index 9ea39830fe..5c3cb6e755 100644
--- a/graphics/pstricks/base/dvips/pstricks.pro
+++ b/graphics/pstricks/base/dvips/pstricks.pro
@@ -1,7 +1,7 @@
-% $Id: pstricks.pro 4 2020-06-09 08:32:19Z herbert $
+% $Id: pstricks.pro 23 2020-09-18 06:29:04Z herbert $
%
%% PostScript prologue for pstricks.tex.
-%% Version 1.30, 2018/12/17
+%% Version 1.32, 2020/09/18
%%
%% This program can be redistributed and/or modified under the terms
%% of the LaTeX Project Public License Distributed from CTAN archives
@@ -10,9 +10,40 @@
%
% Define the follwing gs-functions if not known, eg when using distiller
%
-systemdict /.setopacityalpha known not {/.setopacityalpha { pop } def } if
-systemdict /.setblendmode known not {/.setblendmode { pop } def } if
-systemdict /.setshapealpha known not {/.setshapealpha { pop } def } if
+
+revision 952 gt
+{
+ systemdict /.setalphaisshape known not
+ {
+ (\n\n%%%% WARNING: Transparency operations ignored - need to use -dALLOWPSTRANSPARENCY\n\n) print flush
+ /.pushpdf14devicefilter {pop} bind def
+ /.begintransparencygroup {pop pop pop pop pop} bind def
+ /.endtransparencygroup {} bind def
+ /.poppdf14devicefilter {} bind def
+ /.setfillconstantalpha {pop} bind def
+ /.setstrokeconstantalpha {pop} bind def
+ /PageUsesTransparency false def
+ }
+ {
+ systemdict /.setopacityalpha known not
+ { systemdict /.setfillconstantalpha known { /.setopacityalpha /.setfillconstantalpha load def } { /.setopacityalpha { pop } def } ifelse } if
+ systemdict /.setblendmode known not { /.setblendmode { pop } def } if
+ systemdict /.setshapealpha known not
+ { systemdict /.setstrokeconstantalpha known { /.setshapealpha {dup .setfillconstantalpha .setstrokeconstantalpha true .setalphaisshape } def } { /.setshapealpha { pop } def } ifelse } if
+ } ifelse
+}
+{
+ systemdict /.setopacityalpha known not
+ {
+ (\n\n%%%% WARNING: Transparency operations ignored - need to use -dNOSAFER\n\n) print flush
+ /.setopacityalpha { pop } bind def
+ /.setshapealpha { pop } bind def
+ } if
+} ifelse
+
+%%<bool> .setalphaisshape -
+%% If true, the values set by setstrokeconstantalpha and setfillconstantalpha are interpreted as shape values. The initial value of the AIS flag is false.
+
%
/tx@Dict 200 dict def % the main PSTricks dictionary
tx@Dict begin
diff --git a/graphics/pstricks/base/generic/pstricks.tex b/graphics/pstricks/base/generic/pstricks.tex
index 827e5d5d84..80be67ad6a 100644
--- a/graphics/pstricks/base/generic/pstricks.tex
+++ b/graphics/pstricks/base/generic/pstricks.tex
@@ -1,7 +1,7 @@
%% pstricks.tex
%% COPYRIGHT 1993, 1994, 1999 by Timothy Van Zandt
%% COPYRIGHT 2000-2003 by Denis Girou.
-%% Copyright 2004-2019 Herbert Voss <hvoss@tug.org>
+%% Copyright 2004- by Herbert Voss <hvoss@tug.org>
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
@@ -80,8 +80,8 @@
\fi
\let\pgfforeach\foreach
%
-\def\fileversion{2.97}
-\def\filedate{2019/05/11}
+\def\fileversion{3.01}
+\def\filedate{2020/09/18}
\pst@addfams{pstricks}
%
%\define@boolkey[psset]{pstricks}[Pst@]{useURWfonts}[true]{}
@@ -1220,7 +1220,7 @@
\psset{linecap=0}
%------------------------- Transparency modes ----------------------------
\pst@def{setTransparency}< \psk@opacityalpha .setopacityalpha >
-\pst@def{setStrokeTransparency}< \psk@strokeopacityalpha .setopacityalpha >
+\pst@def{setStrokeTransparency}< \psk@strokeopacityalpha revision 952 gt { .setstrokeconstantalpha }{ .setopacityalpha } ifelse >
\pst@def{setBlendmode}<
\ifcase\psk@blendmode
/Normal \or
diff --git a/graphics/pstricks/base/latex/pstricks-pdf.sty b/graphics/pstricks/base/latex/pstricks-pdf.sty
index bbed574301..9923109fbb 100644
--- a/graphics/pstricks/base/latex/pstricks-pdf.sty
+++ b/graphics/pstricks/base/latex/pstricks-pdf.sty
@@ -1,4 +1,4 @@
-% $Id: pstricks-pdf.sty 6 2020-06-10 18:50:14Z herbert $
+% $Id: pstricks-pdf.sty 23 2020-09-18 06:29:04Z herbert $
%%
%% This is file `pstricks-pdf.sty'.
%%
@@ -16,7 +16,7 @@
%%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{pstricks-pdf}[2020/06/11 v0.01 creating pdf output (hv)]
+\ProvidesPackage{pstricks-pdf}[2020/06/11 v0.02 creating pdf output (hv)]
\RequirePackage{ifpdf,xkeyval,ifplatform}
\newif\if@app@off@
@@ -70,7 +70,8 @@
dvips={-Ppdf},
pdfcrop={},
cleanup={log,aux,dvi,ps,pdf},
- runs=1
+ runs=1,
+ pspdf={-dALLOWPSTRANSPARENCY},
}
\ifwindows
\ExecuteOptionsX{pspdf={}}