Skip to content

Commit

Permalink
restrict expansion so \xcolor@ form saved for named color model
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcarlisle committed Dec 11, 2023
1 parent 160bb9f commit ed1b07f
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions testfiles/xc002.lvt
Original file line number Diff line number Diff line change
@@ -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@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

0 comments on commit ed1b07f

Please sign in to comment.