Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#79607 - Compatibility clash between new LaTeX binaries and old amsmath version

Attached to Project: Arch Linux
Opened by David Gustavsson (gustaphe) - Thursday, 07 September 2023, 14:37 GMT
Last edited by Christian Heusel (gromit) - Saturday, 09 September 2023, 13:29 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

`amsmath` broken in `extra/texlive-latex` and `extra/texlive-latexextra` with latest LaTeX version. `\eqno` and `\leqno` stopped being primitives in LaTeX, and the `amsmath` update from May 2023 (`v2.17o`) removed an assumption that they were. Without this update, throws a compile error (`Unable to define \@@leqno; primitive \leqno no longer primitive`)

Versions:

```
$ xelatex -v
XeTeX 3.141592653-2.6.0.999995 (TeX Live 2023/Arch Linux)
```
```
\ProvidesPackage{amsmath}[2022/04/08 v2.17n AMS math features]
```

Steps to reproduce:

`file.tex`:
```
\documentclass{article}
\usepackage{amsmath}
\begin{document}
Nothing here
\end{document}
```
```
$ xelatex file.tex
```
This task depends upon

Closed by  Christian Heusel (gromit)
Saturday, 09 September 2023, 13:29 GMT
Reason for closing:  Not a bug
Additional comments about closing:  See comments
Comment by Antonio Rojas (arojas) - Thursday, 07 September 2023, 17:00 GMT
Works fine here. Are you sure you're using the system LaTeX and not some local installation?
Comment by David Gustavsson (gustaphe) - Saturday, 09 September 2023, 07:41 GMT
I can't be entirely certain but
```
$ pacman -Qo $(which xelatex)
/usr/bin/xelatex is owned by texlive-bin 2023.66984-16

$ pacman -Qo $(kpsewhich amsmath.sty)
/usr/share/texmf-dist/tex/latex/amsmath/amsmath.sty is owned by texlive-latex 2023.66594-19
```

What versions of latex and amsmath are on your system? (`xelatex -v`, `less $(kpsewhich amsmath.sty)`) Perhaps I've accidentally upgraded amsmath at some point, but I would have hoped that was more difficult than that I could forget doing it.
Comment by David Gustavsson (gustaphe) - Saturday, 09 September 2023, 07:50 GMT
No wait, that's the wrong way around. It's LaTeX that's ahead. Every other `texlive-*` package seems to be 2023.66594-19, but `texlive-bin` is 2023.66984-16. Perhaps that's alright, but it seems suspicious in context.
Comment by Antonio Rojas (arojas) - Saturday, 09 September 2023, 08:33 GMT
texlive-bin 66984 contains a single additional commit related to luatex so it's not a problem

```
$ pacman -Qo $(which xelatex)
/usr/bin/xelatex is owned by texlive-bin 2023.66984-16

$ pacman -Qo $(kpsewhich amsmath.sty)
/usr/share/texmf-dist/tex/latex/amsmath/amsmath.sty is owned by texlive-latex 2023.66594-19
```
This doesn't mean anything. If you had some local texlive install in /usr/local/texmf or ~/.texmf it would override the system one regardless of the version number reported by pacman.
Comment by David Gustavsson (gustaphe) - Saturday, 09 September 2023, 09:29 GMT
But the amsmath.sty owned by texlive-latex, which is also the one returned by kpsewhich, is the older version (n). I can edit it and see that it has the primitive versions of the commands. The only thing a local install could change is to *fix* this.

That's why I asked about your versions of these files, I want to know if it's the package or the compiler that has changed on my system.
Comment by Antonio Rojas (arojas) - Saturday, 09 September 2023, 11:49 GMT
I am using the versions from the Arch repos, which are the ones you reported. The \leqno changes were committed upstream in revision 67314 [1], and we are shipping revision 66594, so there is no way our packages can be affected. Additionaly, texlive hasn't been updated in a long time and amsmath is a very popular format, so I'm pretty sure we would have had many reports already if this were the case. I suggest you run a global search on your system for a custom 'latex.ltx' file.

[1] https://tug.org/svn/texlive/trunk/Master/texmf-dist/tex/latex/base/latex.ltx?pathrev=67314&r1=67314&r2=67313&limit_changes=0#content
Comment by David Gustavsson (gustaphe) - Saturday, 09 September 2023, 13:26 GMT
Thanks. I didn't find any other ltx files, but knowing the timeline I just completely uninstalled and reinstalled all texlive-* packages, which did the trick. Sorry for the noise.

Loading...