[latex3-commits] [git/LaTeX3-latex3-pdfresources] main: test if l3color model exists (38155f4)

Ulrike Fischer fischer at troubleshooting-tex.de
Fri Feb 12 17:41:19 CET 2021


Repository : https://github.com/latex3/pdfresources
On branch  : main
Link       : https://github.com/latex3/pdfresources/commit/38155f4aa95369a9a9fde5cd9c44ca9527b78dfe

>---------------------------------------------------------------

commit 38155f4aa95369a9a9fde5cd9c44ca9527b78dfe
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Fri Feb 12 17:41:19 2021 +0100

    test if l3color model exists


>---------------------------------------------------------------

38155f4aa95369a9a9fde5cd9c44ca9527b78dfe
 firstaid/xcolor-patches-tmp-ltx.sty | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/firstaid/xcolor-patches-tmp-ltx.sty b/firstaid/xcolor-patches-tmp-ltx.sty
index 70c4ba5..245c517 100644
--- a/firstaid/xcolor-patches-tmp-ltx.sty
+++ b/firstaid/xcolor-patches-tmp-ltx.sty
@@ -1,10 +1,17 @@
 %% LaTeX2e file `xcolor-patches.sty'
 %%
-\ProvidesPackage{xcolor-patches-tmp}[2021/02/10 v0.2 patch xcolor for l3color]
+\ProvidesPackage{xcolor-patches-tmp-ltx}[2021/02/10 v0.2 patch xcolor for l3color]
 \@ifundefined{color_set:nn}{\RequirePackage{l3color}}{}
 
 \ExplSyntaxOn
  \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 }
+       { 
+         \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.