conflict between lineno and amsmath packages in TeXLive 2022? Some environments (like \gather) are already defined

Ulrike Fischer news3 at nililand.de
Thu Jan 5 18:57:04 CET 2023


Am Thu, 5 Jan 2023 12:43:27 -0500 schrieb Christopher W. Ryan via
texhax:

> 
> I'm now encountering significant problems compiling a manuscript with a
> journal publisher's template. The template loads a *ton* of packages and
> seems rather complex, at least to me.  Based on some investigation
> online, I believe the problem stems from the sequence of loading the
> amsmath and lineno packages. The publisher's template loads lineno first.
> 
> For simplicity, below is a MWE that reproduces the error message I get.
> As written, it compiles properly. But switch the order of the two
> packages and I get this error:
> 
> ERROR: LaTeX Error: Command \gather already defined.

That is known 

https://github.com/latex-lineno/lineno/issues/5

It will hopefully be resolved in the near future but for now you
will have to ensure the right loading order.



-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/



More information about the texhax mailing list.