我正在尝试使用 BibTeX 来包含参考文献,当我编译时test.tex
,一切顺利,但是当我在 WinEdt 7.0 中单击 Bibtex 时,它说
“读取文件 test.aux 时未找到数据库文件”。
该.bib
文件与 位于同一文件夹中test.tex
。
\documentclass{book}
\usepackage{natbib}
\begin{document}
Test citation: \citep{Jag08}
\bibliographystyle{plainnat}
\bibliography{article}
\end{document}
我用的是Windows 10,然后修改名称为article.bib
。
以下是我的 的内容.bib
。路径是C:\Users\wisp\Documents\temp
。
@article{Jag08,
author = {{de Jager}, O.~C. and {Djannati-Ata{\"i}}, A.},
title = "{Implications of H.E.S.S. observations of pulsar wind nebulae}",
journal = {ArXiv e-prints},
archivePrefix = "arXiv",
eprint = {0803.0116},
keywords = {Astrophysics},
year = 2008,
month = mar,
adsurl = {http://adsabs.harvard.edu/abs/2008arXiv0803.0116D},
adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}
我运行pdflatex test.tex,test.aux的内容是
\relax
\citation{Jag08}
\bibstyle{plainnat}
\bibdata{article}
以下是test.blg的内容(使用winedt)
This is BibTeX, Version 0.99dThe top-level auxiliary file: test.aux
The style file: plainnat.bst
I couldn't open database file article.bib
---line 4 of file test.aux
: \bibdata{article
: }
I'm skipping whatever remains of this command
I found no database files---while reading file test.aux
Warning--I didn't find a database entry for "Jag08"
(There were 2 error messages)