diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/oberdiek/transparent.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/oberdiek/transparent.sty | 33 |
1 files changed, 24 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/oberdiek/transparent.sty b/Master/texmf-dist/tex/latex/oberdiek/transparent.sty index c00262b9576..9e084646e24 100644 --- a/Master/texmf-dist/tex/latex/oberdiek/transparent.sty +++ b/Master/texmf-dist/tex/latex/oberdiek/transparent.sty @@ -9,7 +9,7 @@ %% This is a generated file. %% %% Project: transparent -%% Version: 2016/05/16 v1.1 +%% Version: 2018/11/18 v1.3 %% %% Copyright (C) 2007 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> @@ -35,7 +35,7 @@ %% \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{transparent}% - [2016/05/16 v1.1 Transparency via pdfTeX's color stack (HO)]% + [2018/11/18 v1.3 Transparency via pdfTeX's color stack (HO)]% \RequirePackage{ifpdf} \ifpdf \else @@ -44,13 +44,28 @@ }% \expandafter\endinput \fi -\begingroup\expandafter\expandafter\expandafter\endgroup -\expandafter\ifx\csname pdfcolorstackinit\endcsname\relax +\ifx\pdfextension\@undefined + \let\TRP@pdfcolorstackinit\pdfcolorstackinit + \let\TRP@pdfpageresources\pdfpageresources + \let\TRP@pdfcolorstack\pdfcolorstack +\else + \def\TRP@pdfcolorstackinit {\pdffeedback colorstackinit} + \protected\edef\TRP@pdfpageresources {\pdfvariable pageresources} + \protected\def\TRP@pdfcolorstack {\pdfextension colorstack} +\fi +\ifcsname TRP@pdfcolorstackinit\endcsname\else \PackageWarningNoLine{transparent}{% Your pdfTeX version does not support color stacks% }% \expandafter\endinput \fi +\AtBeginDocument + {% + \ifcsname pgfutil@addpdfresource@extgs\endcsname + \let\TRP@addresource\relax + \pgfutil@addpdfresource@extgs{\TRP@list}% + \fi + } \RequirePackage{auxhook} \AddLineBeginAux{% \string\providecommand{\string\transparent@use}[1]{}% @@ -73,8 +88,8 @@ \def\TRP@addresource{% \begingroup \edef\x{\endgroup - \pdfpageresources{% - \the\pdfpageresources + \TRP@pdfpageresources{% + \the\TRP@pdfpageresources /ExtGState<<\TRP@list>>% }% }% @@ -82,7 +97,7 @@ } \newif\ifTRP@rerun \xdef\TRP@colorstack{% - \pdfcolorstackinit page direct{/TRP1 gs}% + \TRP@pdfcolorstackinit page direct{/TRP1 gs}% } \newcommand*{\transparent}[1]{% \begingroup @@ -126,14 +141,14 @@ \@ifundefined{TRP\transparent@current}{% \global\TRP@reruntrue }{% - \pdfcolorstack\TRP@colorstack push{% + \TRP@pdfcolorstack\TRP@colorstack push{% \csname TRP\transparent@current\endcsname }% \aftergroup\transparent@reset }% } \def\transparent@reset{% - \pdfcolorstack\TRP@colorstack pop\relax + \TRP@pdfcolorstack\TRP@colorstack pop\relax } \newcommand*{\texttransparent}[2]{% \protect\leavevmode |