Skip to content

Commit

Permalink
add tests for color definitions with and without xcolor
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcarlisle committed Dec 10, 2023
1 parent 6ed4823 commit 8ef7369
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
15 changes: 14 additions & 1 deletion testfiles/xc001.lvt
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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}

Expand Down
3 changes: 3 additions & 0 deletions testfiles/xc001.tlg
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 8ef7369

Please sign in to comment.