我正在使用 elsarticle 类并尝试使用 TeX Live 2014 编译文档。前置内容部分每次都会产生相同的错误,我不知道如何纠正它。前置内容直接取自 elsarticle 文档中的示例
\begin{frontmatter}
\title{This is a specimen title\tnoteref{t1,t2}}
\tnotetext[t1]{This document is a collaborative effort.}
\tnotetext[t2]{The second title footnote which is
longer than the first one and with an intention to fill
in up more than one line while formatting.}
\author[rvt]{C.V.~Radhakrishnan\corref{cor1}\fnref{fn1}}
\ead{[email protected]}
\author[rvt,focal]{C.V.~Rajagopal\fnref{fn2}}
\ead{[email protected]}
\author[saya]{G.S. Krishna\corref{cor2}\fnref{fn1,fn3}}
\ead[url]{http://www.sayahna.org}
\cortext[cor1]{Corresponding author}
\cortext[cor2]{Principal corresponding author}
\fntext[fn1]{This is the specimen author footnote.}
\fntext[fn2]{Another author footnote, but a little more longer.}
\fntext[fn3]{Yet another author footnote. Indeed, you can have
any number of author footnotes.}
\address[rvt]{River Valley Technologies, River Valley Campus,
Mepukada, Malayinkil, Trivandrum 695571, India}
\address[focal]{Focal Image (India) Pvt Ltd., River Valley Campus,
Mepukada, Malayinkil, Trivandrum 695571, India}
\address[saya]{JWRA 34, Jagathy, Trivandrum 695014, India}
\end{frontmatter}
当我使用 pdflatex 进行编译时,会产生以下错误:
! Argument of \@author has an extra }.
<inserted text>
\par
l.113 ...f\AB@author{\noexpand\AB@blk@and\@author}
?
Runaway argument?
! Paragraph ended before \@author was complete.
<to be read again>
\par
l.113 ...f\AB@author{\noexpand\AB@blk@and\@author}
如果有帮助的话,我可以添加完整的日志文件,但我认为这可能太多了。
答案1
问题是我在序言中加载了 authblk 包,这显然与 elsarticle 对作者块的处理发生冲突。