From c04dbe2ca3c63915ca1c40cc72e48f85df43ead6 Mon Sep 17 00:00:00 2001 From: PhelypeOleinik Date: Mon, 25 Jul 2022 23:20:30 -0300 Subject: [PATCH] Minor fixes --- 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 e5df5518a..5dc482e38 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@color - \seq_gpop:NN \g__mathcolor_seq \current@color + \seq_gpop:NN \g_@@_seq \current@color } } } @@ -368,7 +369,7 @@ %\begin{verbatim} % \reset@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