Skip to content

Commit

Permalink
Convert named colors correctly in (x)dvipdfmx
Browse files Browse the repository at this point in the history
  • Loading branch information
josephwright committed Mar 2, 2021
1 parent e607253 commit 67a559a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dvipdfmx.def
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,10 @@
\def\convert@color@cmyk#1{#1 k #1 K}
\def\convert@color@gray#1{#1 g #1 G}
\def\convert@color@rgb#1{#1 rg #1 RG}
\def\convert@color@#1{%
\expandafter\expandafter\expandafter\convert@@color
\expandafter\expandafter\expandafter{\csname col@#1\endcsname}%
}
% Deal with named colors
\def\define@color@named#1#2{\expandafter\edef\csname col@#1\endcsname{#2}}
% Change the specials to use the stack
Expand Down
4 changes: 4 additions & 0 deletions xetex.def
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,10 @@
\def\convert@color@cmyk#1{#1 k #1 K}
\def\convert@color@gray#1{#1 g #1 G}
\def\convert@color@rgb#1{#1 rg #1 RG}
\def\convert@color@#1{%
\expandafter\expandafter\expandafter\convert@@color
\expandafter\expandafter\expandafter{\csname col@#1\endcsname}%
}
% Deal with named colors
\def\define@color@named#1#2{\expandafter\edef\csname col@#1\endcsname{#2}}
% Change the specials to use the stack
Expand Down

0 comments on commit 67a559a

Please sign in to comment.