[latex3-commits] [git/LaTeX3-latex3-xcolor] testl3color: correct pdfcol patch (6ebcfba)
Ulrike Fischer
fischer at troubleshooting-tex.de
Thu Jan 19 11:13:24 CET 2023
Repository : https://github.com/latex3/xcolor
On branch : testl3color
Link : https://github.com/latex3/xcolor/commit/6ebcfbad4a57d220d52f684404ba566d20e3468c
>---------------------------------------------------------------
commit 6ebcfbad4a57d220d52f684404ba566d20e3468c
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Thu Jan 19 11:13:24 2023 +0100
correct pdfcol patch
>---------------------------------------------------------------
6ebcfbad4a57d220d52f684404ba566d20e3468c
xcolor.dtx | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/xcolor.dtx b/xcolor.dtx
index 85a12c6..b0e1f99 100644
--- a/xcolor.dtx
+++ b/xcolor.dtx
@@ -7117,15 +7117,17 @@
\ExplSyntaxOn
\AddToHook{package/pdfcol/after}
{
- \def\pdfcolSwitchStack#1{%
- \pdfcolIfStackExists{#1}{%
- \expandafter\let\expandafter\@pdfcolorstack
+ \ifpdfcolAvailable
+ \def\pdfcolSwitchStack#1{%
+ \pdfcolIfStackExists{#1}{%
+ \expandafter\let\expandafter\@pdfcolorstack
\csname pdfcol at Stack@#1\endcsname
- \int_set:Nn\l__color_backend_stack_int{ \@pdfcolorstack }
- }{%
- \pdfcol at ErrorNoStack{#1}%
- }%
- }%
+ \int_set:Nn\l__color_backend_stack_int{ \@pdfcolorstack }
+ }{%
+ \pdfcol at ErrorNoStack{#1}%
+ }%
+ }%
+ \fi
}
\ExplSyntaxOff
%</package>
More information about the latex3-commits
mailing list.