【问题标题】:r bookdown::pdf_book fails to parse book.bib file with natbibr bookdown::pdf_book 无法使用 natbib 解析 book.bib 文件
【发布时间】:2016-12-09 13:50:25
【问题描述】:

我们正在尝试编写一个在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

我用谷歌搜索,所有的 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

【问题讨论】:

    标签: r knitr tex bookdown


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 2023-02-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-06-21
      • 1970-01-01
      • 2020-07-01
      • 1970-01-01
      • 2010-09-25
      相关资源
      最近更新 更多