Skip to content

Commit

Permalink
named model
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcarlisle committed Dec 9, 2023
1 parent eee1fee commit 96e8caf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions pdftex.def
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@
\ProvidesFile{pdftex.def}
[2023/12/09 v1.3a Graphics/color driver for pdftex]
\def\GPT@space{ }
\providecommand\xcolor@[4]{#2}
\def\GPT@xcolor@{\ifx\colorlet\@undefined\noexpand\xcolor@\else\expandafter\xcolor@\fi}
\ifx\xcolor@\@undefined
\protected\def\xcolor@#1#2#3#4{#2}
\fi
\def\GPT@xcolor@{\xcolor@}

\def\c@lor@arg#1{%
\dimen@#1\p@
Expand Down Expand Up @@ -65,7 +67,8 @@
\def\c@lor@@named#1,#2,#3\@@#4{%
\@ifundefined{col@#1}%
{\PackageError{color}{Undefined color `#1'}\@ehd}%
{\edef#4{\csname col@#1\endcsname}}%
{%\expandafter\show\csname col@#1\endcsname
\edef#4{\csname col@#1\endcsname}}%
}
\chardef\main@pdfcolorstack=0 %
\@ifundefined{@pdfcolorstack}
Expand Down
2 changes: 1 addition & 1 deletion testfiles/xc001.lvt
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@
\test{RGB}
\test{cmyk}
\test{gray}
%\test{named}
\test{named}

\END

0 comments on commit 96e8caf

Please sign in to comment.