diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/pstricks/pstricks.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/pstricks/pstricks.sty | 65 |
1 files changed, 41 insertions, 24 deletions
diff --git a/Master/texmf-dist/tex/latex/pstricks/pstricks.sty b/Master/texmf-dist/tex/latex/pstricks/pstricks.sty index 6d2703b2ba8..571c7c06979 100644 --- a/Master/texmf-dist/tex/latex/pstricks/pstricks.sty +++ b/Master/texmf-dist/tex/latex/pstricks/pstricks.sty @@ -1,4 +1,4 @@ -% $Id: pstricks.sty 446 2017-04-19 11:40:55Z herbert $ +% $Id: pstricks.sty 616 2017-10-04 16:14:42Z herbert $ %% %% This is file `pstricks.sty'. %% @@ -17,7 +17,7 @@ \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{pstricks}[2017/03/17 v0.63 LaTeX wrapper for `PSTricks' (RN,HV)] +\ProvidesPackage{pstricks}[2017/09/17 v0.65 LaTeX wrapper for `PSTricks' (RN,HV)] % \def\documentclass{% \edef\@tempa{\jobname.tex }% @@ -40,7 +40,9 @@ %---------------------------------DISTILLER -------------------------------- \newif\ifpst@distiller\pst@distillerfalse \DeclareOption{distiller}{\pst@distillertrue} - +% +\newif\ifpst@psfonts \pst@psfontsfalse +\DeclareOption{psfonts}{\pst@psfontstrue} %---------------------------------COLOR -------------------------------- \DeclareOption{monochrome}{% \AtBeginDocument{\special{ps: @@ -65,18 +67,29 @@ \DeclareOption*{\PassOptionsToPackage\CurrentOption{\pst@ColorPackage}} \ProcessOptions\relax +\RequirePackage{iftex} +\RequirePackage{shellesc} +%\ifPDFTeX +% \ifpdfshellescape\else +% \@latex@error +% {You are running `\jobname.tex' with pdflatex and without option `--shell-escape' ,\MessageBreak +% you need package auto-pst-pdf and that option!}% +% {Alternatively use xelatex or latex->dvips->ps2pdf} +% \fi +%\fi \RequirePackage{\pst@ColorPackage} % \@ifundefined{PSTricksLoaded} {% \let\saved@scalebox\scalebox + \input{pst-xkey}% \input{pstricks}% \ProvidesFile{pstricks.tex}[\filedate\space v\fileversion\space `PSTricks' (tvz,hv)] - \input{pst-fp.tex} + \input{pst-fp.tex}% \ProvidesFile{pst-fp.tex}[\filedate\space v\fileversion\space `PST-fp' (hv)] \IfFileExists{pstricks.pro}{% \ProvidesFile{pstricks.pro} - [2012/10/16 v. 1.15, PostScript prologue file (hv)] + [2017/09/18 v. 1.27, PostScript prologue file (hv)] \@addtofilelist{pstricks.pro}}{}% \IfFileExists{pst-algparser.pro}{% \ProvidesFile{pst-algparser.pro}[2011/10/31 v. 0.04, PostScript prologue file (hv)] @@ -97,25 +110,29 @@ [ /ca \psk@strokeopacityalpha /CA \psk@strokeopacityalpha /SetTransparency pdfmark > \pst@def{setBlendmode}< - [ /BM\ifcase\psk@blendmode% - /Normal \or % 0 - /Multiply \or % 1 - /Screen \or % 2 - /Overlay \or % 3 - /Darken \or % 4 - /Lighten \or % 5 - /ColorDodge \or % 6 - /ColorBurn \or % 7 - /HardLight \or % 8 - /SoftLight \or % 9 - /Difference \or % 10 - /Exclusion \or % 11 - /Hue \or % 12 - /Color \or % 13 - /Saturation \or % 14 - /Luminosity % 15 - \else /Normal \fi - /ca \psk@shapealpha /CA \psk@opacityalpha /SetTransparency pdfmark >% + [ /BM% + \ifcase\psk@blendmode + /Normal \or + /Compatible \or + /Screen \or + /Multiply \or + /HardLight \or + /Darken \or + /Lighten \or + /Difference \or + /ColorDodge \or + /ColorBurn \or + /SoftLight \or + /Hue \or + /Saturation \or + /Luminosity \or + /Overlay \or + /Exclusion \or + /Color + \else + /Normal + \fi + /ca \psk@shapealpha /CA \psk@opacityalpha /SetTransparency pdfmark > \fi % \@ifpackageloaded{xcolor}{% |