使用 Elsevier 文章分类中的 cite

使用 Elsevier 文章分类中的 cite

我正在尝试使用文档cite中的包在我的文本中插入引文elsarticle

Classical downscaling algorithms \cite {cubic_interp, cubic_conv, lanczos} have been signal-theory based.

参考文献如下:

\begin{thebibliography}{60}
\bibitem{cubic_interp}
H. S. Hou and H. C. Andrews, 
Cubic splines for image interpolation and digital filtering, IEEE Trans. Acoust., Speech, Signal Processing, vol. ASSP-26, Dec. 1978.

\bibitem{cubic_conv}
R. Keys, 
"Cubic convolution interpolation for digital image processing," in IEEE Transactions on Acoustics, Speech, and Signal Processing, vol. 29, no. 6, pp. 1153-1160, December 1981.

\bibitem{lanczos}
Duchon, C. E. 1979. 
Lanczos filtering in one and two dimensions. Journal of Applied Meteorology 18, 8.
\end{thebibliography}

但我无法编译该文档。错误如下:

Runaway argument?       
]{cubic_interp, cubic_conv, lanczos} \@safe@activesfalse have been si\ETC. 
./myFile.tex:775: Paragraph ended before \org@@citex was complete 
<to be read again> \par
l.775

只要我写下那行代码而不引用,它就会起作用。我不确定为什么会发生这种情况。

答案1

文档elsarticle类会自动加载natbib引文管理包。不是加载cite引文管理包。你确实应该使用 BibTeX 并让软件创建格式化的参考书目。

但是,如果您绝对、肯定必须手动创建参考书目,则需要为每个参考书目提供格式合适的可选参数,\bibitem以便\citet\citep正常工作。下面的代码给出了一个示例。

在此处输入图片描述

我不得不指出,这三个条目的格式非常不一致。例如,(1) 在一些条目中,作者的首字母在姓氏之前;而在另一些条目中,作者的首字母在姓氏之后。(2) 在一些条目中,年份列在作者姓名之后,而在其他条目中,年份列在条目末尾。(3) 在一个条目中,标题用引号括起来;在另外两个条目中,没有使用引号。为了避免这种明显的格式不一致,您应该花时间学习如何设置 BibTeX 数据库以及如何运行 BibTeX 来创建格式一致的参考书目。

\documentclass{elsarticle}
\bibliographystyle{elsarticle-num} % numeric-style citation call-outs
\begin{document}
Classical downscaling algorithms \cite{cubic_interp, cubic_conv, lanczos} 
have been signal-theory based.

\begin{thebibliography}{9}
\bibitem[Hou and Andrews(1978)]{cubic_interp}
H. S. Hou and H. C. Andrews, Cubic splines for image interpolation and 
digital filtering, IEEE Trans. Acoust., Speech, Signal Processing, 
vol.\ ASSP-26, Dec.\ 1978.

\bibitem[Keys(1981)]{cubic_conv}
R. Keys, ``Cubic convolution interpolation for digital image processing,'' 
IEEE Transactions on Acoustics, Speech, and Signal Processing, vol.\ 29, 
no.\ 6, pp.\ 1153--1160, December 1981.

\bibitem[Duchon(1979)]{lanczos}
Duchon, C. E. 1979. Lanczos filtering in one and two dimensions. 
Journal of Applied Meteorology 18, 8.
\end{thebibliography}
\end{document}

答案2

避免使用cite包。elsarticle已经使用了natbib包。此外,建议使用\citep而不是\cite,如模板用于 Elsevier 文章。

相关内容