[latex3-commits] [git/LaTeX3-latex3-latex3] mathcolor: Use a common auxiliary (cede49936)
Joseph Wright
joseph.wright at morningstar2.co.uk
Wed Jan 26 18:14:12 CET 2022
Repository : https://github.com/latex3/latex3
On branch : mathcolor
Link : https://github.com/latex3/latex3/commit/cede49936d97452cd052c728cee1560fd0464819
>---------------------------------------------------------------
commit cede49936d97452cd052c728cee1560fd0464819
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Wed Jan 26 17:14:12 2022 +0000
Use a common auxiliary
>---------------------------------------------------------------
cede49936d97452cd052c728cee1560fd0464819
l3kernel/l3color.dtx | 20 +++++++++++---------
1 file changed, 11 insertions(+), 9 deletions(-)
diff --git a/l3kernel/l3color.dtx b/l3kernel/l3color.dtx
index 4913acb56..b177a478a 100644
--- a/l3kernel/l3color.dtx
+++ b/l3kernel/l3color.dtx
@@ -1420,7 +1420,7 @@
%
% \begin{macro}{\color_math:nn}
% \begin{macro}{\color_math:nnn}
-% \begin{macro}{\@@_math:n}
+% \begin{macro}{\@@_math:nn}
% The basic set up here is relatively simple: store the current color,
% parse the new color as-normal, then switch color before inserting the
% tokens we are asked to change. The tricky part is right at the end,
@@ -1428,19 +1428,21 @@
% \begin{macrocode}
\cs_new_protected:Npn \color_math:nn #1#2
{
- \seq_gpush:NV \g_@@_math_seq \l_@@_current_tl
- \@@_parse:nN {#1} \l_@@_current_tl
- \@@_math:n {#2}
+ \@@_math:nn {#2}
+ { \@@_parse:nN {#1} \l_@@_current_tl }
}
\cs_new_protected:Npn \color_math:nnn #1#2#3
{
- \seq_gpush:NV \g_@@_math_seq \l_@@_current_tl
- \@@_select_main:Nw \l_@@_current_tl
- #1 / / \s_@@_mark #2 / / \s_@@_stop
- \@@_math:n {#3}
+ \@@_math:nn {#3}
+ {
+ \@@_select_main:Nw \l_@@_current_tl
+ #1 / / \s_@@_mark #2 / / \s_@@_stop
+ }
}
-\cs_new_protected:Npn \@@_math:n #1
+\cs_new_protected:Npn \@@_math:nn #1#2
{
+ \seq_gpush:NV \g_@@_math_seq \l_@@_current_tl
+ #2
\@@_select_math:N \l_@@_current_tl
#1
\@@_math_scan:w
More information about the latex3-commits
mailing list.