我从https://www.siam.org/journals/auth-info.php并尝试运行latex ex_article
。这会产生一些错误(见下面的日志)。但是,pdflatex ex_article
运行正常。
什么原因导致出现错误latex
?我该如何修复?
我在 Linux Mint 上使用标准 texlive 发行版。
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian)
restricted \write18 enabled.
entering extended mode
(./ex_article.tex
LaTeX2e <2011/06/27>
Babel <3.9h> and hyphenation patterns for 4 languages loaded.
(./siamart0516.cls
Document Class: siamart0516 2016/05/27 v1.4 LaTeX document e-class
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/usr/share/texlive/texmf-dist/tex/latex/ntheorem/ntheorem.sty
Style `ntheorem', Version 1.33 <2011/08/15>
(/usr/share/texlive/texmf-dist/tex/latex/base/ifthen.sty))
(/usr/share/texlive/texmf-dist/tex/latex/hyperref/xr-hyper.sty)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
(/usr/share/texlive/texmf-dist/tex/latex/hyperref/hyperref.sty
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty))
(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/share/texlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty)
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/auxhook.sty)
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/kvoptions.sty)
(/usr/share/texlive/texmf-dist/tex/latex/hyperref/pd1enc.def)
(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/hyperref.cfg)
(/usr/share/texlive/texmf-dist/tex/latex/url/url.sty))
Package hyperref Message: Driver (default): hdvips.
(/usr/share/texlive/texmf-dist/tex/latex/hyperref/hdvips.def
(/usr/share/texlive/texmf-dist/tex/latex/hyperref/pdfmark.def
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty)))
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/graphics.cfg)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/dvips.def))
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty)
(/usr/share/texlive/texmf-dist/tex/latex/breakurl/breakurl.sty
(/usr/share/texlive/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/usr/share/texlive/texmf-dist/tex/generic/xkeyval/xkeyval.tex)))
(/usr/share/texlive/texmf-dist/tex/latex/hypdvips/hypdvips.sty
(/usr/share/texmf/tex/latex/xcolor/xcolor.sty
(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/color.cfg))
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/bookmark.sty
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/bkm-dvips.def))
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/hypcap.sty)
-------------------------------------------------------------------------------
Package hypdvips Options:
[ ] autoauthor
[ ] autotitle
[ ] detailedbr
[x] emptypagelabels
[ ] evenboxes
[x] fish
[ ] flip
[ ] fullbookmarks
[x] hypertnotes
[x] JavaScript�
[ ] landscape
[ ] loabr
[ ] lofbr
[ ] lotbr
[ ] Mac
[ ] mirror
[x] nlwarning
[x] openmessage
[x] quadpoints
[ ] showdests
[x] smallfootnotes
[ ] tocbr
[ ] twoside
language = english
-------------------------------------------------------------------------------
! LaTeX Error: \listoffigures undefined.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.3209 \renewcommand{\listoffigures}
{%
?
! LaTeX Error: \listoftables undefined.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.3219 \renewcommand{\listoftables}
{%
?
! LaTeX Error: \tableofcontents undefined.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.3229 \renewcommand{\tableofcontents}
{%
?
) (/usr/share/texlive/texmf-dist/tex/latex/algorithms/algorithm.sty
(/usr/share/texlive/texmf-dist/tex/latex/float/float.sty))
(/usr/share/texlive/texmf-dist/tex/latex/cleveref/cleveref.sty)
(/usr/share/texlive/texmf-dist/tex/latex/lineno/lineno.sty)
! LaTeX Error: Command \listoffigures already defined.
Or name \end... illegal, see p.192 of the manual.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.1584 \newcommand{\listoffigures}{}
?
! LaTeX Error: Command \listoftables already defined.
Or name \end... illegal, see p.192 of the manual.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.1585 \newcommand{\listoftables}{}
?
! LaTeX Error: Command \tableofcontents already defined.
Or name \end... illegal, see p.192 of the manual.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.1586 \newcommand{\tableofcontents}{}
?
) (./ex_shared.tex (/usr/share/texlive/texmf-dist/tex/latex/lipsum/lipsum.sty)
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amsfonts.sty)
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/epstopdf.sty
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/grfext.sty)
Package epstopdf Warning: Drivers other than `pdftex.def' are not supported.
)) (/usr/share/texlive/texmf-dist/tex/latex/algorithms/algorithmic.sty))
Package xr Warning:
No file ex_supplement.aux
LABELS NOT IMPORTED.
on input line 23.
(./ex_article.aux)
(/usr/share/texlive/texmf-dist/tex/latex/hyperref/nameref.sty
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/umsa.fd)
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/umsb.fd)
LaTeX Warning: Reference `sec:proof' on page 1 undefined on input line 84.
LaTeX Warning: Citation `GoVa13' on page 1 undefined on input line 86.
[1] [2] (/usr/share/texlive/texmf-dist/tex/latex/base/omscmr.fd)
LaTeX Warning: Reference `tab:foo' on page 1 undefined on input line 181.
<lexample_fig1.eps> [3]
No file ex_article.bbl.
[4] (./ex_article.aux)
LaTeX Warning: There were undefined references.
)
Output written on ex_article.dvi (4 pages, 80796 bytes).
Transcript written on ex_article.log.
答案1
使用当前(texlive 2016)发行版没有错误,但\ifx
某处不匹配会导致警告
(\end occurred when \ifx on line 161 was incomplete)
在提供的示例文件上,但是问题中显示的错误出现在hypdvips
包代码中,并且该[nohypdvips]
选项抑制了该包的加载。