-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
restrict expansion so \xcolor@ form saved for named color model
- Loading branch information
1 parent
160bb9f
commit ed1b07f
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |