【问题标题】:How can i add a bibliography with knitr如何使用 knitr 添加参考书目
【发布时间】:2016-04-23 11:07:04
【问题描述】:

我正在尝试使用 RStudio 中的 knitr/pandoc 从 rmd 生成一个 .docx 文件。但是我收到了以下错误消息状态 83 并且我无法解决状态消息。任何建议或帮助都会很好。非常感谢。塞巴斯蒂安

system(paste0("pandoc -o ", name, ".docx ", name, ".md --bibliography sukstorf.bib"))
pandoc-citeproc: "stdin" (line 421, column 2):
unexpected "O"
expecting "c", "C", "p", "P", "s" or "S"
pandoc.exe: Error running filter pandoc-citeproc
Warning message:
running command 'pandoc -o hr-statistik-mit-r.docx hr-statistik-mit-r.md --bibliography sukstorf.bib' had status 83

【问题讨论】:

    标签: r knitr pandoc


    【解决方案1】:

    我刚刚遇到了同样的问题“参考书目......状态为 83”:事实证明这是 .bib 文件中的一个条目中的语法错误。我通过一次从 .bib 中删除一个条目并重新编织直到遇到产生错误的条目来找到它。

    【讨论】:

      【解决方案2】:

      很确定你需要--bibliography sukstorf.bib 成为--bibliography=sukstorf.bib

      【讨论】:

      • 您好,谢谢您的提示。问题已经解决了。在我的一个 BibTex-Keys 中它是一个“'”。更改密钥后一切正常。
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-09-23
      • 1970-01-01
      • 1970-01-01
      • 2016-01-24
      • 2020-08-10
      • 2019-03-24
      • 1970-01-01
      相关资源
      最近更新 更多