[latex3-commits] [latex3/graphics-def] XC-color: restrict expansion so \xcolor@ form saved for named color model (ed1b07f)

github at latex-project.org github at latex-project.org
Mon Dec 11 01:06:16 CET 2023


Repository : https://github.com/latex3/graphics-def
On branch  : XC-color
Link       : https://github.com/latex3/graphics-def/commit/ed1b07f452e1655795f08cfd3d751e66a0482131

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

commit ed1b07f452e1655795f08cfd3d751e66a0482131
Author: David Carlisle <d.p.carlisle at gmail.com>
Date:   Mon Dec 11 00:06:16 2023 +0000

    restrict expansion so \xcolor@ form saved for named color model


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

ed1b07f452e1655795f08cfd3d751e66a0482131
 testfiles/xc002.lvt | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/testfiles/xc002.lvt b/testfiles/xc002.lvt
new file mode 100644
index 0000000..002b902
--- /dev/null
+++ b/testfiles/xc002.lvt
@@ -0,0 +1,35 @@
+% testing loading just color
+\documentclass{article}
+\input{regression-test}
+
+\usepackage[dvipsnames]{color}
+
+
+
+\definecolor{crgb}{rgb}{0,0.5,0}
+\definecolor{cRGB}{RGB}{0,128,0}
+\definecolor{ccmyk}{cmyk}{0,0.5,0.7,0.1}
+\definecolor{cgray}{gray}{0.8}
+\definecolor{cnamed}{named}{Blue}
+
+\START
+
+% color def
+\immediate\write500{ color: \csname\string\color @ccmyk\endcsname}
+\expandafter\show\csname col at Blue\endcsname
+
+\ExplSyntaxOn
+\cs_generate_variant:Nn \tl_analysis_show:N {c}
+
+\def\test#1{%
+\typeout{#1:~ \expandafter\meaning\csname\string\color @c#1\endcsname}
+}
+\ExplSyntaxOff
+
+\test{rgb}
+\test{RGB}
+\test{cmyk}
+\test{gray}
+\test{named}
+
+\END
\ No newline at end of file





More information about the latex3-commits mailing list.