[latex3-commits] [git/LaTeX3-latex3-latex2e] gh744: guard \nolimits@ for issue #744 (359a0f71)
David Carlisle
d.p.carlisle at gmail.com
Wed Jan 5 22:12:19 CET 2022
Repository : https://github.com/latex3/latex2e
On branch : gh744
Link : https://github.com/latex3/latex2e/commit/359a0f719793df744ac7a810b4fcadcefdbe6060
>---------------------------------------------------------------
commit 359a0f719793df744ac7a810b4fcadcefdbe6060
Author: David Carlisle <d.p.carlisle at gmail.com>
Date: Wed Jan 5 21:12:19 2022 +0000
guard \nolimits@ for issue #744
>---------------------------------------------------------------
359a0f719793df744ac7a810b4fcadcefdbe6060
required/tools/bm.dtx | 9 ++++++---
required/tools/changes.txt | 4 ++++
required/tools/testfiles/github-0744.lvt | 18 ++++++++++++++++++
required/tools/testfiles/github-0744.tlg | 24 ++++++++++++++++++++++++
4 files changed, 52 insertions(+), 3 deletions(-)
diff --git a/required/tools/bm.dtx b/required/tools/bm.dtx
index 9606300a..daf4dce6 100644
--- a/required/tools/bm.dtx
+++ b/required/tools/bm.dtx
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
-% Copyright (C) 1993-2021
+% Copyright (C) 1993-2022
%
% The LaTeX Project and any individual authors listed elsewhere
% in this file.
@@ -22,7 +22,7 @@
% \fi
%
% \iffalse
-%% Copyright 1996 1997 1998 1999 2002 2003 2004 2016 2017 2019
+%% Copyright 1996 1997 1998 1999 2002 2003 2004 2016 2017 2019 2021 2022
%% David Carlisle Frank Mittelbach
%%
%% Development of this package was commissioned by Y&Y Inc.
@@ -36,7 +36,7 @@
%<driver>\ProvidesFile{bm.drv}
% \fi
% \ProvidesFile{bm.dtx}
- [2021/11/14 v1.2e Bold Symbol Support (DPC/FMi)]
+ [2022/01/05 v1.2f Bold Symbol Support (DPC/FMi)]
%
% \iffalse
%<*driver>
@@ -839,9 +839,12 @@
\unvcopy{\GenericError{##1}{##2}{##3}{##4}}}%
% \end{macrocode}
% For AMS definitions.
+% \changes{v1.2f}{2022/01/05}
+% {Guard \cs{nolimits@}, gh/744}
% \begin{macrocode}
\let\DN@\copy
\let\FN@\copy
+ \let\nolimits@\copy
\let\next@\copy
\global\let\bm at first\@empty
% \end{macrocode}
diff --git a/required/tools/changes.txt b/required/tools/changes.txt
index 9c090901..db7a495a 100644
--- a/required/tools/changes.txt
+++ b/required/tools/changes.txt
@@ -5,6 +5,10 @@ completeness or accuracy and it contains some references to files that
are not part of the distribution.
=======================================================================
+2022-01-05 David Carlisle <David.Carlisle at latex-project.org>
+
+ * bm.dtx: Guard \nolimits@ for gh issue 744
+
2021-12-05 Frank Mittelbach <Frank.Mittelbach at latex-project.org>
* multicol.dtx (subsection{Manual column breaking} \label{sec:colbreak}):
diff --git a/required/tools/testfiles/github-0744.lvt b/required/tools/testfiles/github-0744.lvt
new file mode 100644
index 00000000..c013aedf
--- /dev/null
+++ b/required/tools/testfiles/github-0744.lvt
@@ -0,0 +1,18 @@
+\documentclass{article}
+\input{test2e}
+\let\@@end\@@@end % test2e incompatibilty with bm....
+
+\usepackage{bm,amsmath}
+
+
+% issue #744 bm incorrectly expands amsmath \qopname lookahead
+
+\begin{document}
+
+\START
+
+% this should not error
+\sbox0{$\bm{\sin\left(x\right)}$}
+\showbox0
+
+\END
\ No newline at end of file
diff --git a/required/tools/testfiles/github-0744.tlg b/required/tools/testfiles/github-0744.tlg
new file mode 100644
index 00000000..8f57dedc
--- /dev/null
+++ b/required/tools/testfiles/github-0744.tlg
@@ -0,0 +1,24 @@
+This is a generated file for the LaTeX2e validation system.
+Don't change this file in any respect.
+> \box...=
+\hbox(7.5+2.5)x31.32065
+.\mathon
+.\hbox(6.94444+0.0)x14.11935
+..\hbox(6.94444+0.0)x14.11935
+...\mathon
+...\hbox(6.94444+0.0)x14.11935
+....\kern 0.0
+....\OT1/cmr/bx/n/10 s
+....\OT1/cmr/bx/n/10 i
+....\OT1/cmr/bx/n/10 n
+...\mathoff
+.\glue(\thinmuskip) 1.66663
+.\hbox(7.5+2.5)x15.53467
+..\hbox(7.5+2.5)x4.4722
+...\OT1/cmr/bx/n/10 (
+..\OML/cmm/b/it/10 x
+..\hbox(7.5+2.5)x4.4722
+...\OT1/cmr/bx/n/10 )
+.\mathoff
+! OK.
+l. ...\showbox0
More information about the latex3-commits
mailing list.