The LaTeX file
\documentclass[12pt]{article}
\begin{document}
$$ a \eqno 1 $$
N\\N
$$ a \eqno 1 $$%
N\N
\end{document}
produces an unwanted space after the first displayed equation under "LaTeX2e <2022-11-01> patch level 1":
Under previous versions of LaTeX such as "LaTeX2e <2021-11-15> patch level 1", the file produced
I tried to obtain the previous behavior by inserting
\setcounter{localmathalphabets}{0}
before the \begin{document} command, following the suggestion in this related question, but that did not change the output. I also tried to obtain the previous behavior by inserting
\RequirePackage[2021/11/15]{latexrelease}
before the \begin{document} command, but that did not change the output either. What can I do so that old documents produce the same output as they did before?
(If one removes \eqno then the unwanted space disappears.)


$$not be used with LaTeX;\begin{equation} ... \end{equation}is recommended instead, and equation numbers are provided automatically. (There's also the problem with$$that, if the equation is very long, an equation number is overprinted. I don't know any automatic fix for that; it isn't a problem withequation.) – barbara beeton Apr 28 '23 at 19:47\RequirePackage[2021-06-01]{latexrelease}before\documentclassas a provisory measure. – user691586 Apr 28 '23 at 20:09\RequirePackage[2021-11-14]{latexrelease}also works. – Gabriel A. Lozada Apr 29 '23 at 23:11\eqno, really?? in any case https://github.com/latex3/latex2e/issues/1059 – David Carlisle Apr 30 '23 at 12:11\eqnoin a latex document in over 30 years supporting latex, but as I say we'll probably fix it – David Carlisle Apr 30 '23 at 16:41\eqno. Indeed it is because I wanted to automatically number complicated equation numbers that I originally used $$...$$ and\eqno. (Well that and to avoid the awful\eqnarray.) – Gabriel A. Lozada May 03 '23 at 23:57\[...\]"? Is it the displayshortskip problem? I can confirm that, as Barbara Beeton observed, the Plain TeX equation alignment commands (which I've been using) don't have that problem. Until this is fixed in amsmath, Plain's $$...$$ constructs seem superior to LaTeX's (given automatic numbering macros). – Gabriel A. Lozada May 04 '23 at 01:01\eqalign,\eqalignno,\leqalignno, and\displaylines; see for example the cjwplain package.) – Gabriel A. Lozada May 05 '23 at 02:00