[latex3-commits] [latex3/graphics-def] XC-color: add tests for color definitions with and without xcolor (8ef7369)
github at latex-project.org
github at latex-project.org
Sun Dec 10 10:44:35 CET 2023
Repository : https://github.com/latex3/graphics-def
On branch : XC-color
Link : https://github.com/latex3/graphics-def/commit/8ef73697ef1cddbfddc89b54febf2dca9b99908b
>---------------------------------------------------------------
commit 8ef73697ef1cddbfddc89b54febf2dca9b99908b
Author: David Carlisle <d.p.carlisle at gmail.com>
Date: Sun Dec 10 09:44:35 2023 +0000
add tests for color definitions with and without xcolor
>---------------------------------------------------------------
8ef73697ef1cddbfddc89b54febf2dca9b99908b
testfiles/xc001.lvt | 15 ++++++++++++++-
testfiles/xc001.tlg | 3 +++
2 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/testfiles/xc001.lvt b/testfiles/xc001.lvt
index b1f1b8d..15f8d3c 100644
--- a/testfiles/xc001.lvt
+++ b/testfiles/xc001.lvt
@@ -11,7 +11,17 @@
\definecolor{cgray}{gray}{0.8}
\definecolor{cnamed}{named}{Blue}
+\START
+
+% color def
+\immediate\write500{ color: \csname\string\color @ccmyk\endcsname}
+
+\OMIT
\usepackage[dvipsnames]{xcolor}
+\TIMO
+
+% color def after xcolor
+\immediate\write500{.color: \csname\string\color @ccmyk\endcsname}
\definecolor{xcrgb}{rgb}{0,0.5,0}
@@ -20,7 +30,10 @@
\definecolor{xcgray}{gray}{0.8}
\definecolor{xcnamed}{named}{Blue}
-\START
+% xcolor def
+\immediate\write500{xcolor: \csname\string\color @xccmyk\expandafter\endcsname}
+
+
\ExplSyntaxOn
\cs_generate_variant:Nn \tl_analysis_show:N {c}
diff --git a/testfiles/xc001.tlg b/testfiles/xc001.tlg
index df55a22..7375a11 100644
--- a/testfiles/xc001.tlg
+++ b/testfiles/xc001.tlg
@@ -1,5 +1,8 @@
This is a generated file for the l3build validation system.
Don't change this file in any respect.
+ color: 0 0.5 0.7 0.1 k 0 0.5 0.7 0.1 K
+.color: 0 0.5 0.7 0.1 k 0 0.5 0.7 0.1 K
+xcolor: 0 0.5 0.7 0.1 k 0 0.5 0.7 0.1 K
PASS: rgb
PASS: RGB
PASS: cmyk
More information about the latex3-commits
mailing list.