答案1
该模板包含标准包和标准字体的私有副本,这没什么意义,如果你将它与 texlive 2023 一起使用,它会停止
) (./listings.sty
(/usr/local/texlive/2023/texmf-dist/tex/latex/listings/lstmisc.sty
***
*** This file requires `listings.sty' version 1.9.
*** You have a serious problem, so I'm exiting ...
***
如果删除listings.sty
模板中的版本,则所提供的版本wileyNJDv5_AMA.tex
在 pdflatex 和 lualatex 中均能顺利运行,但会出现几个警告,并以
(\end occurred when \iftrue on line 4824 was incomplete)
(\end occurred when \if on line 4812 was incomplete)
(\end occurred when \if on line 4800 was incomplete)
(\end occurred when \if on line 4788 was incomplete)
(\end occurred when \if on line 4776 was incomplete)
(\end occurred when \if on line 4764 was incomplete)
(\end occurred when \if on line 4752 was incomplete)
(\end occurred when \if on line 4740 was incomplete)
(\end occurred when \if on line 2 was incomplete)
但是,作为一个商业支持的课程,对其进行调试是不合理的,如果他们要求的话,我会按原样使用它,但向出版商投诉并要求他们提供一个在没有警告的情况下运行的示例文档。
答案2
答案3
就我而言,它有助于在 listings.sty 文件中将版本设置为 1.9:
\def\filedate{2020/03/24} \def\fileversion{1.9}%之前为 1.8d
这将启用 TeXlive 2023,它还允许您将其提交到 arXiv。