Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
PhelypeOleinik committed Jul 26, 2022
1 parent 8522fc3 commit c04dbe2
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions required/graphics/mathcolor.dtx
Expand Up @@ -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
Expand All @@ -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.
Expand Down Expand Up @@ -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
Expand All @@ -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
}
}
}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c04dbe2

Please sign in to comment.