- 已编辑
yihui 你咋就不让我放弃呢? 在cmd 窗口运行 pdflatex,有 log 文件,里面关于参考文献的信息是:
Package natbib Warning: Citation `R-bookdown' on page 7 undefined on input line
249.
Package natbib Warning: Citation `xie2015' on page 7 undefined on input line 25
0.
这是运行第一遍 pdflatex 的记录。关键是下一步运行 bibtex,就成了 book.bib.bib 了,所以后面第二遍第三遍运行的 pdflatex 就没啥意义了:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
D:\temp\newpkg\test>"pdflatex" -halt-on-error -interaction=batchmode "test.tex"
This is pdfTeX, Version 3.14159265-2.6-1.40.18 (MiKTeX 2.9.6500)
entering extended mode
D:\temp\newpkg\test>bibtex test
This is BibTeX, Version 0.99d (MiKTeX 2.9.6500)
The top-level auxiliary file: test.aux
The style file: apalike.bst
I couldn't open database file book.bib.bib
---line 50 of file test.aux
: \bibdata{book.bib
: ,packages.bib}
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 "R-bookdown"
Warning--I didn't find a database entry for "xie2015"
(There were 2 error messages)