r bookdown :: pdf_book无法使用natbib

时间:2016-12-09 13:50:25

标签: r knitr tex bookdown

我们正在尝试撰写一份在https://github.com/guilhermejacob/context/

主持的减记出版物

我尝试从book.bib删除不同的条目,每次都会收到以下错误。 bookdown::tufte_html_book命令没有问题,只有bookdown::pdf_book为我而死,尽管我的book.bib引文文件看起来没什么问题?

https://github.com/guilhermejacob/context/blob/master/book.bib

我已经用Google搜索了所有tex问题,指的是丢失author=year=title=标签,而我的每个条目都包含所有这些标记。

当我有一个空的book.bib文件时,我得到同样的错误,所以文件夹中的其他内容必须配置不正确?但我不知道在哪里看,因为natbib似乎与book.bib有问题?我很感激任何关于尝试什么的指示......谢谢

Latexmk, John Collins, 5 Sep. 2016. Version 4.48
! Package natbib Error: Bibliography not compatible with author-year citations.

Error: Failed to compile context.tex. See context.log for more info.
In addition: Warning messages:
1: running command '"C:\Users\AnthonyD\AppData\Local\Programs\MIKTEX~1.9\miktex\bin\latexmk.exe" -v' had status 1 
2: The LaTeX package latexmk was not correctly installed. 
3: running command '"C:\Users\AnthonyD\AppData\Local\Programs\MIKTEX~1.9\miktex\bin\latexmk.exe" -v' had status 1 
4: running command '"xelatex" -halt-on-error -interaction=batchmode "context.tex"' had status 1 
Execution halted

1 个答案:

答案 0 :(得分:0)

我按照此处的建议删除了.aux文件。解决了这个问题。不知道为什么。

http://arhetoric.blogspot.com/2011/10/natlibs-usage-fixing-some-errors.html?showComment=1338381839988