[latex3-commits] [git/LaTeX3-latex3-xcolor] changekeyhandler: guard definitions (cde8406)
Ulrike Fischer
fischer at troubleshooting-tex.de
Sun Jul 31 14:49:39 CEST 2022
Repository : https://github.com/latex3/xcolor
On branch : changekeyhandler
Link : https://github.com/latex3/xcolor/commit/cde8406d09fc7ece55318581d66717b3c0237b27
>---------------------------------------------------------------
commit cde8406d09fc7ece55318581d66717b3c0237b27
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Sun Jul 31 14:49:39 2022 +0200
guard definitions
>---------------------------------------------------------------
cde8406d09fc7ece55318581d66717b3c0237b27
xcolor.dtx | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/xcolor.dtx b/xcolor.dtx
index be56742..4864648 100644
--- a/xcolor.dtx
+++ b/xcolor.dtx
@@ -4835,7 +4835,8 @@
% \end{macrocode}
% |\@expl at xcolor@set@@nonn| prepares color for the l3color support.
% \begin{macrocode}
-\providecommand\@expl at xcolor@set@@nonn[4]{}
+\IfDocumentMetadataTF{}
+ {\providecommand\@expl at xcolor@set@@nonn[4]{}}
\def\XC at definec@lor[#1]#2[#3]#4#5%
{\@expl at xcolor@set@@nonn{#2}{#4}{#5}{#1}%
\begingroup
@@ -5006,7 +5007,8 @@
\def\colorlet{\@testopt{\XC at colorlet}{}}
% \end{macrocode}
% |\@expl at xcolor@set@@ne| prepares colors also for l3color.
-\providecommand\@expl at xcolor@set@@ne[2]{}
+\IfDocumentMetadataTF{}
+ {\providecommand\@expl at xcolor@set@@ne[2]{}}
\def\XC at colorlet[#1]#2{\@testopt{\XC at col@rlet[#1]{#2}}{}}
\def\XC at col@rlet[#1]#2[#3]#4%
{\@expl at xcolor@set@@ne{#2}{#4}%
More information about the latex3-commits
mailing list.