[latex3-commits] [git/LaTeX3-latex3-latex2e] color: Store colors for l3color manipulation (7ecb3bfe)

Joseph Wright joseph.wright at morningstar2.co.uk
Fri May 29 12:49:12 CEST 2020


Repository : https://github.com/latex3/latex2e
On branch  : color
Link       : https://github.com/latex3/latex2e/commit/7ecb3bfe0afcd6a4a9b1543a69dbb0f5367c2907

>---------------------------------------------------------------

commit 7ecb3bfe0afcd6a4a9b1543a69dbb0f5367c2907
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Fri May 29 11:49:12 2020 +0100

    Store colors for l3color manipulation


>---------------------------------------------------------------

7ecb3bfe0afcd6a4a9b1543a69dbb0f5367c2907
 required/graphics/color.dtx | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/required/graphics/color.dtx b/required/graphics/color.dtx
index cdc2dbe5..dbea376a 100644
--- a/required/graphics/color.dtx
+++ b/required/graphics/color.dtx
@@ -19,7 +19,7 @@
 %<driver> \ProvidesFile{color.drv}
 % \fi
 %         \ProvidesFile{color.dtx}
-          [2020/02/24 v1.2b Standard LaTeX Color (DPC)]
+          [2020/05/24 v1.2c Standard LaTeX Color (DPC)]
 %
 % \iffalse
 %<*driver>
@@ -539,6 +539,8 @@
 %     {Give info about redefinitions}
 % \changes{v1.2a}{2019/11/23}
 %      {Add \cs{protected} gh/208}
+% \changes{v1.2c}{2020/05/29}
+%      {Add support for \pkg{l3color}}
 %    \begin{macrocode}
 \protected\def\definecolor#1#2#3{%
   \@ifundefined{color@#2}%
@@ -546,7 +548,11 @@
     {\@ifundefined{\string\color @#1}{}%
       {\PackageInfo{color}{Redefining color #1}}%
      \csname color@#2\expandafter\endcsname
-         \csname\string\color @#1\endcsname{#3}}}
+         \csname\string\color @#1\endcsname{#3}}%
+    \ifcsname\detokenize{color_set:nnn}\endcsname
+      \csname\detokenize{color_set:nnn}\endcsname{#1}{#2}{#3}%
+    \fi
+  }
 %    \end{macrocode}
 %  \end{macro}
 %
@@ -560,6 +566,8 @@
 %     {Give info about redefinitions}
 % \changes{v1.2b}{2020/02/24}
 %     {corrected test, see https://www.latex-project.org/cgi-bin/ltxbugs2html?pr=graphics/3635}
+% \changes{v1.2c}{2020/05/29}
+%      {Add support for \pkg{l3color}}
 %
 % Driver files may opt to define a `named' colour model.
 % Placing colour names rather than numeric specifications into the dvi
@@ -608,6 +616,9 @@
       {\@ifundefined{col@#2}{}%
         {\PackageInfo{color}{Redefining color #2 in named color model}}%
       \csname color@#3\endcsname\@tempa{#4}%
+    \ifcsname\detokenize{color_set:nnn}\endcsname
+      \csname\detokenize{color_set:nnn}\endcsname{#1}{#2}{#3}%
+    \fi
       \csname define at color@#1\endcsname{#2}\@tempa
       \c at lor@usename{#2}}}}
 \@onlypreamble\DefineNamedColor





More information about the latex3-commits mailing list.