[latex3-commits] [git/LaTeX3-latex3-pdfresources] develop: test for model to avoid errors with deviceN (6120bf8)

Ulrike Fischer fischer at troubleshooting-tex.de
Wed Aug 31 17:01:32 CEST 2022


Repository : https://github.com/latex3/pdfresources
On branch  : develop
Link       : https://github.com/latex3/pdfresources/commit/6120bf83b22710105ad05b27965c46a4bde9c9e6

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

commit 6120bf83b22710105ad05b27965c46a4bde9c9e6
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Wed Aug 31 17:01:32 2022 +0200

    test for model to avoid errors with deviceN


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

6120bf83b22710105ad05b27965c46a4bde9c9e6
 firstaid/colorspace-patches-tmp-ltx.sty | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/firstaid/colorspace-patches-tmp-ltx.sty b/firstaid/colorspace-patches-tmp-ltx.sty
index 1067d68..f66cb4c 100644
--- a/firstaid/colorspace-patches-tmp-ltx.sty
+++ b/firstaid/colorspace-patches-tmp-ltx.sty
@@ -22,13 +22,20 @@
 \ProvidesExplPackage{colorspace-patches-tmp-ltx}{2022-08-24}{0.95r}
   {temporay patches to for the colorspace package to test pdfresource management ... UF}
 
+% colorspace can define more models, that l3color can't yet handle.
+\cs_set_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} }
+ }
+
+
 \hook_gput_code:nnn {begindocument} {pdf}
   {
     \tl_if_exist:NT \spc at op
       {
         \def\spc at Pageresources#1{}
       }
-
   }
 
 \hook_gput_code:nnn {begindocument/end} {pdf}





More information about the latex3-commits mailing list.