conflict between lineno and amsmath packages in TeXLive 2022? Some environments (like \gather) are already defined
Christopher W. Ryan
cryan at binghamton.edu
Thu Jan 5 19:16:26 CET 2023
Thanks for the link. Unfortunately, even when I hack the publisher's
.sty file to change the loading order, the problem still occurs with my
manuscript.
The publisher provides a template.tex file. With my correction made to
the publisher's .sty file, it seems to compile--as long as it sits in my
C:\texlive\texmf-local\tex\latex\this_publisher directory. If I move it
to the directory where I store all my documents, on my E:\drive, the
error again occurs.
--Chris Ryan
Ulrike Fischer wrote:
> 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.
>
>
>
More information about the texhax
mailing list.