[latex3-commits] [git/LaTeX3-latex3-xcolor] testl3color: handle undeclared colors (8e1839c)

Ulrike Fischer fischer at troubleshooting-tex.de
Tue Aug 16 21:15:10 CEST 2022


Repository : https://github.com/latex3/xcolor
On branch  : testl3color
Link       : https://github.com/latex3/xcolor/commit/8e1839c554657eb7ca4b5cacbeefe5e41e74c91a

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

commit 8e1839c554657eb7ca4b5cacbeefe5e41e74c91a
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Tue Aug 16 21:15:10 2022 +0200

    handle undeclared colors


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

8e1839c554657eb7ca4b5cacbeefe5e41e74c91a
 testfiles/l3color-setcolor-03.lvt                  | 84 ++++++++++++++++++++++
 .../{github-004.tlg => l3color-setcolor-03.tlg}    |  0
 xcolor.dtx                                         |  1 +
 3 files changed, 85 insertions(+)

diff --git a/testfiles/l3color-setcolor-03.lvt b/testfiles/l3color-setcolor-03.lvt
new file mode 100644
index 0000000..326ad2b
--- /dev/null
+++ b/testfiles/l3color-setcolor-03.lvt
@@ -0,0 +1,84 @@
+% !Mode:: "TeX:UTF-8:Main"
+\input{regression-test}
+\documentclass{article}
+
+\usepackage[dvipsnames]{xcolor}
+\usepackage{colorspace}
+\definespotcolor{spot}{PANTONE 3005 U}{1,0.56,0,0}
+\begin{document}
+\START
+\showoutput
+
+\color{spot} spot
+
+\color{red!50!RoyalBlue} mix
+
+\color[gray] {0.5} gray 0.5
+
+\color[rgb] {1,0.3,0.5} rgb
+
+{
+ \selectcolormodel{cmyk}
+   \color[rgb] {1,0.3,0.5} rgb as cmyk
+}   
+
+
+\color[cmyk] {0.5,0.4,1,0.2} cmyk
+
+\color[hsb] {0.5,0.4,0.2} xxx
+
+\color[wave] {610} wave
+
+\color[tHsb] {233,0.4,0.2} tHsb
+
+{
+\def\rangeHsb{300}
+\def\rangetHsb{80,45;130,70;185,130;210,175;240,240;300,300}
+\color[tHsb] {233,0.4,0.2} tHsb~with~range
+
+{rgb}{0.15973~0.12~0.2}
+
+}
+
+
+\color[Gray] {12} xxx
+
+
+ {
+   \def\rangeGray{30}
+   \color[Gray] {12} xxx
+ }
+
+\color[RGB] {12,98,254} xxx
+
+{
+   \def\rangeRGB{300}
+   \color[RGB] {12,98,254}
+   tHsb
+}
+
+\color[cmy]{0.5,0.5,1} cmy
+
+\color[Hsb] {180,0.4,0.2} Hsb
+
+ {
+   \def\rangeHsb{400}
+   \color[Hsb] {180,0.4,0.2}
+   Hsb-with-range
+ }
+
+
+\color[HSB] {180,100,240} HSB
+
+ {
+   \def\rangeHSB{400}
+   \color[HSB] {180,100,240}
+   HSB-with-range
+ }
+
+\color[HTML] {FF5733} HTML
+
+\color[cmyk:HTML] {FF5733} Target
+
+\OMIT
+\end{document}
diff --git a/testfiles/github-004.tlg b/testfiles/l3color-setcolor-03.tlg
similarity index 100%
copy from testfiles/github-004.tlg
copy to testfiles/l3color-setcolor-03.tlg
diff --git a/xcolor.dtx b/xcolor.dtx
index 8b35f1c..b48c18c 100644
--- a/xcolor.dtx
+++ b/xcolor.dtx
@@ -5398,6 +5398,7 @@
       \str_case:nnF {#4}
        {
         {&spot}{ \XC at ori@set at color }
+        {tHsb}{ \XC at ori@set at color }
         { cmy }{ \color_select:nn{cmyk}{#5,0} }
        }
        {





More information about the latex3-commits mailing list.