[latex3-commits] [git/LaTeX3-latex3-xcolor] testl3color: resolve issue #1 (07db5f3)

Ulrike Fischer fischer at troubleshooting-tex.de
Tue Aug 16 16:24:12 CEST 2022


Repository : https://github.com/latex3/xcolor
On branch  : testl3color
Link       : https://github.com/latex3/xcolor/commit/07db5f34c63e41feb4fe966a30e0ffa3aab3ddd6

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

commit 07db5f34c63e41feb4fe966a30e0ffa3aab3ddd6
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Tue Aug 16 16:24:12 2022 +0200

    resolve issue #1


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

07db5f34c63e41feb4fe966a30e0ffa3aab3ddd6
 xcolor.dtx | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/xcolor.dtx b/xcolor.dtx
index f8979af..127da71 100644
--- a/xcolor.dtx
+++ b/xcolor.dtx
@@ -4978,9 +4978,10 @@
 % Retrieve model position |\XC@@pos|, model |\@@mod|, and target model |\@@Mod| from multiple definitions (up to~8), separated by `|/|'.
 %    \begin{macrocode}
 \def\XC at getmod#1/#2/#3/#4/#5/#6/#7/#8/#9\XC@@
- {\XC at g@tm at d0#1::\XC@@ \XC at getm@d1{#2}\XC at getm@d2{#3}%
+ {\def\XC at dflt@@mod{#1}%
+  \XC at g@tm at d0#1::\XC@@ \XC at getm@d1{#2}\XC at getm@d2{#3}%
   \XC at getm@d3{#4}\XC at getm@d4{#5}\XC at getm@d5{#6}\XC at getm@d6{#7}%
-  \XC at getm@d7{#8}\def\XC@@pos{0}\def\@@mod{#1}\@gobble\@nnil}%
+  \XC at getm@d7{#8}\def\XC@@pos{0}\let\@@mod\XC at dflt@@mod\@gobble\@nnil}%
 %    \end{macrocode}
 %
 %    \begin{macrocode}
@@ -4992,7 +4993,10 @@
 %    \begin{macrocode}
 \def\XC at g@tm at d#1#2:#3:#4\XC@@
  {\@ifxempty{#3}{\let\@@Mod\XC at mod@ignore\XC at getm@d0{#2}}%
-    {\def\@@Mod{#2}\XC at getm@d0{#3}}}%
+    {\def\@@Mod{#2}%
+     \def\XC at tgt@mod##1{#2}%
+     \def\XC at dflt@@mod{#3}%
+     \XC at getm@d0{#3}}}%
 %    \end{macrocode}
 % \end{macro}
 %





More information about the latex3-commits mailing list.