Skip to content

Commit 6d79ad8

Browse files
revert to 066ad1d and re-apply 3c68c56 (#1543)
* revert to 066ad1d and re-apply 3c68c56 * remove test file for #1448 * today's date and changes.txt entry * Update date/version --------- Co-authored-by: Joseph Wright <[email protected]>
1 parent 57700bd commit 6d79ad8

File tree

5 files changed

+10
-421
lines changed

5 files changed

+10
-421
lines changed

required/amsmath/amsmath.dtx

+5-61
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@ Bug reports can be opened (category \texttt{#1}) at\\%
8181
% \begin{macrocode}
8282
\DeclareRelease{}{1994-06-01}{amsmath-2018-12-01.sty}
8383
\DeclareRelease{}{2018-12-01}{amsmath-2018-12-01.sty}
84-
\DeclareCurrentRelease{}{2024-10-30}
84+
\DeclareCurrentRelease{}{2019-04-01}
8585
% \end{macrocode}
8686
%
8787
% \begin{macrocode}
88-
\ProvidesPackage{amsmath}[2024/10/30 v2.17s AMS math features]
88+
\ProvidesPackage{amsmath}[2024/11/05 v2.17t AMS math features]
8989
% \end{macrocode}
9090
%
9191
% \section{Catcode defenses}
@@ -1002,10 +1002,6 @@ Foreign command \@backslashchar#1;\MessageBreak
10021002
\let\DOTSI\relax
10031003
\let\DOTSB\relax
10041004
\let\DOTSX\relax
1005-
% \end{macrocode}
1006-
% In the definitions below, special \cs{uccode}s are used to generate macros
1007-
% with arguments delimited by catcode 12 letters as returned by \cs{meaning}.
1008-
% \begin{macrocode}
10091005
{\uccode`7=`\\ \uccode`8=`m \uccode`9=`a \uccode`0=`t \uccode`!=`h
10101006
\uppercase{%
10111007
\gdef\math@#1#2#3#4#5#6\math@{\gtest@false\ifx 7#1\ifx 8#2%
@@ -1043,13 +1039,6 @@ Foreign command \@backslashchar#1;\MessageBreak
10431039
}
10441040
\fi
10451041
% \end{macrocode}
1046-
% \changes{v2.17s}{2024/10/30}{guard against primitive if (gh/1448)}
1047-
% \begin{macrocode}
1048-
{\uccode`7=`\\ \uccode`(=`i \uccode`)=`f
1049-
\uppercase{\gdef\testif@#1#2#3#4\testif@{%
1050-
\ifx7#1\ifx(#2\ifx)#3\@tempswafalse\fi\fi\fi}
1051-
}}
1052-
% \end{macrocode}
10531042
% \begin{macrocode}
10541043
\newcount\classnum@
10551044
\def\getmathch@#1.#2\getmathch@{\classnum@#1 \divide\classnum@4096
@@ -1098,14 +1087,6 @@ Foreign command \@backslashchar#1;\MessageBreak
10981087
\ifx9#2 \@xp\@xp\@xp\zap@to@space\fi}}}
10991088
\def\zap@to@space#1 {}
11001089
% \end{macrocode}
1101-
%
1102-
% \changes{v2.17r}{2024/06/29}{macro added to strip \cs{protected} (gh/1265)}
1103-
% \begin{macrocode}
1104-
{\uccode`9=`\p %
1105-
\uppercase{\gdef\stripprotected@#1#2#3\relax{%
1106-
\ifx9#2 \@xp\@xp\@xp\zap@to@space\fi}}}
1107-
% \end{macrocode}
1108-
%
11091090
% \begin{macrocode}
11101091
\def\keybin@{\gtest@true
11111092
\ifx\@let@token+\else\ifx\@let@token=\else
@@ -1158,43 +1139,15 @@ Foreign command \@backslashchar#1;\MessageBreak
11581139
\gdef\thedots@{\dotsb@}%
11591140
\else
11601141
% \end{macrocode}
1161-
% In case \cs{@let@token} is a robust \LaTeXe{} command, i.e.,
1162-
% expands to \cs{protect}
1163-
% \verb*=\somename =, we save the \cs{meaning} of
1164-
% \verb*=\somename = in \cs{meaning@} (possibly followed by some dots that have
1165-
% not been consumed as arguments during the expansion).
1166-
% Otherwise, we save the
1167-
% \cs{meaning} of \cs{@let@token} in \cs{meaning@}. The dots at the end
1168-
% as well as the space are
1169-
% used in later parts of the checking (this could probably be cleaned up a bit).
1170-
% \changes{v2.15d}{2016/06/28}{Add space token to prevent runaway
1171-
% argument error}
1172-
% \changes{v2.17r}{2024/06/29}{Drop \cs{protect} if present (gh/1265)}
1173-
% \changes{v2.17s}{2024/10/30}{skip protect testif detect primitive if (gh/1448)}
1142+
% \changes{v2.15d}{2016/06/28}{Add space token to prevent runaway argument error}
11741143
% \begin{macrocode}
11751144
\xdef\meaning@{\meaning\@let@token. .........}%
1176-
\@tempswatrue
1177-
\@xp\testif@\meaning@....\testif@
1178-
\if@tempswa
1179-
\begingroup
1180-
\def\protect{\protect}% % make it a quark
1181-
\xdef\meaning@{\@xp\stripprotect@\@let@token.........\stripprotect@. .........}%
1182-
\endgroup
1183-
\fi
1184-
% \end{macrocode}
1185-
% In previous versions \verb|\long| macros were not seen by the lookahead.
1145+
% \end{macrocode}
1146+
% In previous versions \verb|\long| macros were not seen by the lokkahead.
11861147
% That was bad as this file uses \verb|\(re)newcommand| for \verb|\implies| etc.
11871148
% \begin{macrocode}
11881149
\xdef\meaning@@{\@xp\striplong@\meaning@\relax\meaning@}%
11891150
% \end{macrocode}
1190-
% Until now \cs{protected} macros also stopped the lookahead, e.g.,
1191-
% $\cong$ wasn't recognized correctly for that reason.
1192-
%
1193-
% \changes{v2.17r}{2024/06/29}{Handle \cs{protected} macros in
1194-
% lookahead for dots (gh/1265)}
1195-
% \begin{macrocode}
1196-
\xdef\meaning@@{\@xp\stripprotected@\meaning@@\relax\meaning@@}%
1197-
% \end{macrocode}
11981151
% \begin{macrocode}
11991152
\@xp\math@\meaning@\math@
12001153
\ifgtest@ % if \mathxxx test
@@ -1255,15 +1208,6 @@ Foreign command \@backslashchar#1;\MessageBreak
12551208
\thedots@}
12561209
% \end{macrocode}
12571210
%
1258-
% The helper to generate the meaning of \cs{\@let@token}, or of its
1259-
% first-level expansion with \cs{protect} removed.
1260-
% \changes{v2.17r}{2024/06/29}{Drop \cs{protect} if present (gh/1265)}
1261-
% \begin{macrocode}
1262-
\def\stripprotect@#1#2\stripprotect@{\ifx#1\protect
1263-
\meaning#2\else \meaning\@let@token \fi}
1264-
1265-
% \end{macrocode}
1266-
%
12671211
% The \qc{\=} character is necessary in the two \cs{let} assignments
12681212
% in \cs{boldsymboldots@}, because the symbol we are making
12691213
% bold might be an \qc{\=} sign.

required/amsmath/changes.txt

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2024-11-05 David Carlisle <[email protected]>
2+
3+
* amsmath.dtx
4+
Revert last \dots change (gh/1448)
5+
16
================================================================================
27
All changes above are only part of the development branch for the next release.
38
================================================================================

required/amsmath/testfiles/github-1448.luatex.tlg

-178
This file was deleted.

required/amsmath/testfiles/github-1448.lvt

-34
This file was deleted.

0 commit comments

Comments
 (0)