diff options
Diffstat (limited to 'Master/texmf-dist/tex/generic/pgf/utilities/pgfutil-latex.def')
-rw-r--r-- | Master/texmf-dist/tex/generic/pgf/utilities/pgfutil-latex.def | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/generic/pgf/utilities/pgfutil-latex.def b/Master/texmf-dist/tex/generic/pgf/utilities/pgfutil-latex.def index 6c740514bba..aad781a60ef 100644 --- a/Master/texmf-dist/tex/generic/pgf/utilities/pgfutil-latex.def +++ b/Master/texmf-dist/tex/generic/pgf/utilities/pgfutil-latex.def @@ -28,7 +28,17 @@ \def\pgfutil@definecolor{\definecolor} \def\pgfutil@color{\color} -\def\pgfutil@colorlet{\colorlet} +\def\pgfutil@colorlet#1#2{% + % If the color is a defined named color, we have to use the [named] + % option for colorlet to force xcolor to perform color model + % conversion. + \expandafter\ifx\csname\expandafter\string\csname color@#2\endcsname\endcsname\relax + \colorlet{#1}{#2}% + \else + \colorlet[named]{#1}{#2}% + \fi +} + \def\pgfutil@extractcolorspec{\extractcolorspec} \def\pgfutil@convertcolorspec{\convertcolorspec} |