[latex3-commits] [git/LaTeX3-latex3-latex2e] gh901: Minor fixes (c04dbe2c)

PhelypeOleinik phelype.oleinik at latex-project.org
Tue Jul 26 04:20:30 CEST 2022


Repository : https://github.com/latex3/latex2e
On branch  : gh901
Link       : https://github.com/latex3/latex2e/commit/c04dbe2ca3c63915ca1c40cc72e48f85df43ead6

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

commit c04dbe2ca3c63915ca1c40cc72e48f85df43ead6
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Mon Jul 25 23:20:30 2022 -0300

    Minor fixes


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

c04dbe2ca3c63915ca1c40cc72e48f85df43ead6
 required/graphics/mathcolor.dtx | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/required/graphics/mathcolor.dtx b/required/graphics/mathcolor.dtx
index e5df5518..5dc482e3 100644
--- a/required/graphics/mathcolor.dtx
+++ b/required/graphics/mathcolor.dtx
@@ -229,9 +229,10 @@
 \cs_new_protected:Npn \@@_scan_for_scripts:w
   {
 %    \end{macrocode}
-%    We first parse for a \cs{c_math_subscript_token}
-%    ignoring (and dropping) any spaces and \cs{relax} as \TeX{} would
-%    do. We do this with expansion so that hidden sub or superscripts
+%    We need to look at what follows \cs{mathcolor}, and we need to do
+%    that ignoring (and dropping) any spaces and \cs{relax} as \TeX{}
+%    would do in normal math processing (for example before a subscript
+%    token). We do this with expansion so that hidden sub or superscripts
 %    in macros are still found as long as the macros are expandable.
 %    \begin{macrocode}
     \peek_remove_filler:n
@@ -250,7 +251,7 @@
 % \item
 %    followed by an unbraced sub/superscript;
 % \item
-%    followed by one of the \cs{limit}s primitives.
+%    followed by one of the \cs{limits} primitives.
 % \end{enumerate}
 %    In each case we have to end the align safe group and we mark the
 %    points below in the code for easy reference.
@@ -299,7 +300,7 @@
 %    \begin{macrocode}
               {
                 \group_align_safe_end:                          % case 4
-                \@@_scan_for_scripts:w  \use_none:n
+                \@@_scan_for_scripts:w \use_none:n
               }
 %    \end{macrocode}
 %    If it was not one of these we look for a \texttt{'} and if found remove it and
@@ -323,7 +324,7 @@
                   {
                     \group_align_safe_end:                      % case 1
                     \reset at color
-                    \seq_gpop:NN \g__mathcolor_seq \current at color
+                    \seq_gpop:NN \g_@@_seq \current at color
                   }
               }
           }
@@ -368,7 +369,7 @@
 %\begin{verbatim}
 %      \reset at color } \@@_scan_for_scripts:w
 %\end{verbatim}
-%    The \cs{_@@_scan_for_scripts:w} then retakes control and initiates
+%    The \cs{@@_scan_for_scripts:w} then retakes control and initiates
 %    parsing for another sub or superscript.
 %    \begin{macrocode}
     \group_insert_after:N \c_group_end_token





More information about the latex3-commits mailing list.