diff options
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2008-04-12 12:25:10 +0000 |
---|---|---|
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2008-04-12 12:25:10 +0000 |
commit | aebcc2b16b6b785a2b95ff1aebf9e2701593a21d (patch) | |
tree | d5d9ef1e3ee9c3d290f622cc6707768a9b584e17 /Master/texmf-dist/tex/latex/pstricks | |
parent | 1fd146d1531fbad7eeab136355a4cd1a63986ce0 (diff) |
pstricks update
git-svn-id: svn://tug.org/texlive/trunk@7389 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/pstricks')
-rw-r--r-- | Master/texmf-dist/tex/latex/pstricks/Changes | 1 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/pstricks/pstricks.sty | 43 |
2 files changed, 39 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/pstricks/Changes b/Master/texmf-dist/tex/latex/pstricks/Changes index aa5a783cc1f..a1116de2b6d 100644 --- a/Master/texmf-dist/tex/latex/pstricks/Changes +++ b/Master/texmf-dist/tex/latex/pstricks/Changes @@ -1,4 +1,5 @@ pstricks.sty -------- +0.37 2008-01-24 - add option distiller for transparent colors 0.36 2008-01-22 - Better error message, when the document has the same name than a PSTricks file. (RN) 0.35 2008-01-01 - add message for loading pstalpparser.pro diff --git a/Master/texmf-dist/tex/latex/pstricks/pstricks.sty b/Master/texmf-dist/tex/latex/pstricks/pstricks.sty index 4b5b9197b00..13d26a87df4 100644 --- a/Master/texmf-dist/tex/latex/pstricks/pstricks.sty +++ b/Master/texmf-dist/tex/latex/pstricks/pstricks.sty @@ -16,7 +16,7 @@ \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{pstricks} - [2008/01/22 v0.36 LaTeX wrapper for `PSTricks' (RN,HV)] + [2008/01/24 v0.37 LaTeX wrapper for `PSTricks' (RN,HV)] % \def\documentclass{ \edef\@tempa{\jobname.tex }% @@ -25,13 +25,15 @@ \@onelevel@sanitize\@tempb \ifx\@tempa\@tempb \@latex@error - {`\jobname.tex' is a forbidden name for your document}% + {`\jobname.tex' is a forbidden name for your document,\MessageBreak + it is already a name of a package}% {Choose another name for your document}\@gobble \else \@twoclasseserror \fi } % +%------------------------------------ PLAIN -------------------------------- \DeclareOption{plain}{% \input{pstricks.tex} \ProvidesFile{pstricks.tex} @@ -72,14 +74,45 @@ \PassOptionsToPackage{override}{xcolor} }{\def\pst@ColorPackage{color}}% +%------------------------------------ DIA -------------------------------- \newif\ifpst@DIA\pst@DIAfalse \DeclareOption{DIA}{\pst@DIAtrue} \DeclareOption{noxcolor}{\def\pst@ColorPackage{color}} \DeclareOption{vtex}{% -% \def\psfs@solid{\pst@fill{\pst@usecolor\psfillcolor fill }} -% \def\psfs@eofill{\pst@fill{\pst@usecolor\psfillcolor eofill }} -% \def\psfs@shape{\pst@fill{\pst@usecolor\psfillcolor fill }} + \pst@def{setTransparency}< > + \pst@def{setStrokeTransparency}< > + \pst@def{setBlendmode}< >% } +%---------------------------------DISTILLER -------------------------------- +\DeclareOption{distiller}{% + \pst@def{setTransparency}< + [ /ca \psk@opacityalpha + /CA \psk@opacityalpha /SetTransparency pdfmark > + \pst@def{setStrokeTransparency}< + [ /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 >% +} +%---------------------------------COLOR -------------------------------- \DeclareOption*{% \PassOptionsToPackage\CurrentOption{\pst@ColorPackage}} \ProcessOptions\relax |