[latex3-commits] [git/LaTeX3-latex3-pdfresources] main: improve the xcolor patch a bit (648c938)
Ulrike Fischer
fischer at troubleshooting-tex.de
Mon Feb 22 18:21:18 CET 2021
Repository : https://github.com/latex3/pdfresources
On branch : main
Link : https://github.com/latex3/pdfresources/commit/648c9384a1cd1fcb9104fe4435c20b986fe90cd7
>---------------------------------------------------------------
commit 648c9384a1cd1fcb9104fe4435c20b986fe90cd7
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Mon Feb 22 18:21:18 2021 +0100
improve the xcolor patch a bit
>---------------------------------------------------------------
648c9384a1cd1fcb9104fe4435c20b986fe90cd7
firstaid/xcolor-patches-tmp-ltx.sty | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/firstaid/xcolor-patches-tmp-ltx.sty b/firstaid/xcolor-patches-tmp-ltx.sty
index 590ab44..34e5db9 100644
--- a/firstaid/xcolor-patches-tmp-ltx.sty
+++ b/firstaid/xcolor-patches-tmp-ltx.sty
@@ -7,10 +7,21 @@
\cs_gset_eq:NN \@expl at color@set@@nnn \color_set:nnn
\cs_gset_protected:Npn \@expl at color@set@@nnn #1 #2 #3
{
- \cs_if_exist:cT { __color_parse_model_ #2 :w }
+ \cs_if_exist:cTF { __color_parse_model_ #2 :w }
{
\color_set:nnn {#1}{#2}{#3}
}
+ {
+ \tl_if_eq:nnTF{#2}{named}
+ {
+ \color_set:nn{#1}{#3}
+ }
+ {
+ %this is for multi models, it will break if there is model
+ %l3 doesn't know, but the case is rare, so accept it for now.
+ \color_set:nnn{#1}{#2}{#3}
+ }
+ }
}
\cs_generate_variant:Nn \color_set:nn {ne}
\cs_new_protected:Npn \@expl at color@set@@ne #1 #2
More information about the latex3-commits
mailing list.