[latex3-commits] [git/LaTeX3-latex3-xcolor] testl3color: correct selectcolormodel for l3color (19408c4)

Ulrike Fischer fischer at troubleshooting-tex.de
Tue Aug 16 23:45:04 CEST 2022


Repository : https://github.com/latex3/xcolor
On branch  : testl3color
Link       : https://github.com/latex3/xcolor/commit/19408c4a604faaca2e5ea8e99fa2407f1cd6a2fd

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

commit 19408c4a604faaca2e5ea8e99fa2407f1cd6a2fd
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Tue Aug 16 23:45:04 2022 +0200

    correct selectcolormodel for l3color


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

19408c4a604faaca2e5ea8e99fa2407f1cd6a2fd
 xcolor.dtx | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/xcolor.dtx b/xcolor.dtx
index dbf4693..dad0af3 100644
--- a/xcolor.dtx
+++ b/xcolor.dtx
@@ -3875,9 +3875,11 @@
 \ExplSyntaxOn
 \cs_set_protected:Npn \XC at expl@setcolormodel at n #1
   {
-    \str_if_eq:nnTF {#1} { natural }
+    \str_case:nnF {#1}
       {
-        \tl_set:Nn \l_color_fixed_model_tl {}
+        { natural } {\tl_set:Nn \l_color_fixed_model_tl {}}
+        { cmy }     {\tl_set:Nn \l_color_fixed_model_tl {cmyk}}
+        { hsb }     {\tl_set:Nn \l_color_fixed_model_tl {rgb}}
       }
       {
         \tl_set:Nn \l_color_fixed_model_tl { #1 }





More information about the latex3-commits mailing list.