我正在尝试使用 Gummi 下面的 tex 命令以 ApJ 风格创建引用和参考书目。
\documentclass[12pt]{article}
\usepackage{ natbib}
\citestyle{aa}
\begin{document}
\section{Introduction}
\cite{texbook}
\section{Conclusion}
\cite{Narendra_1990}
\bibliography{Bib2}{}
\bibliographystyle{apj}
\end{document}
但是,我不断收到以下错误:
/tmp/.LatexEssay.tex.bbl:8: Undefined control sequence.
l.8 {Worthey}, G. 1994, \apjs
, 95, 107
/tmp/.LatexEssay.tex.bbl:8: ==> Fatal error occurred, no output PDF file produced!
Transcript written on /tmp/.LatexEssay.tex.log.
我的 Bibtex 文件是:
@Article{Narendra_1990,
author = {K.S.Narendra and K.Parthsarathy},
title = {Identification and Control of Dynamical System
using Neural Networks},
journal = "IEENN",
year = {1990},
volume = {1},
number = {1},
month = {},
pages = {4-27},
note = {},
annote = {}
@BOOK{texbook,
author = "Donald E. Knuth",
title= "The {{\TeX}book}",
publisher = "Addison-Wesley",
year = 1984
}
@ARTICLE{1994ApJS...95..107W,
author = {{Worthey}, G.},
title = "{Comprehensive stellar population models and the disentanglement of age and metallicity effects}",
journal = {\apjs},
year = 1994,
month = nov,
volume = 95,
pages = {107-149},
doi = {10.1086/192096},
adsurl = {http://adsabs.harvard.edu/abs/1994ApJS...95..107W},
adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}
如果我引用texbook
和Narendra_1990
参考文献,则不会出现问题。只有当我包含1994ApJS...95..107W
参考文献时才会出现错误。
任何帮助都值得感激!
答案1
正如您在给定的错误消息中看到的
/tmp/.LatexEssay.tex.bbl:8: Undefined control sequence.
l.8 {Worthey}, G. 1994, \apjs
, 95, 107
您有一个未定义的控制序列\apjs
导致错误。我猜它应该包含一个日志的名称。因此,将行@string {apjs = {The correct name of the journal}}
(请添加正确的名称)添加到您的bib
文件中。通过一些漂亮的打印,它可能看起来像这样:
@string {apjs = {The correct name of the journal}}
@ARTICLE{1994ApJS...95..107W,
author = {{Worthey}, G.},
title = {{Comprehensive stellar population models and the disentanglement
of age and metallicity effects}},
journal = apjs,
year = {1994},
month = nov,
volume = {95},
pages = {107--149},
doi = {10.1086/192096},
adsurl = {http://adsabs.harvard.edu/abs/1994ApJS...95..107W},
adsnote = {Provided by the SAO/NASA Astrophysics Data System},
}
您认出该--
字段了pages
吗?