【问题标题】:bibtext references not processing in bookdownbibtex 引用未在 bookdown 中处理
【发布时间】:2018-05-04 18:59:17
【问题描述】:

我有一个使用 bibtex 参考书目文件引用其他文档的 bookdown 文档。它似乎根本没有任何过程,因为输出(gitbook 格式和 pdf)不会将实际引用转换为参考。输出总是复制引文的纯文本,而不是实际的参考,如下所示:

这是一个最小的复制示例,我使用它构建:

Rscript -e 'bookdown::render_book("index.Rmd", "bookdown::gitbook")'

index.Rmd:

---
title: "test"
site: "bookdown::bookdown_site"
documentclass: book
bibliography: test.bib
biblio-style: apalike
link-citations: true
# toc: yes
# toc_depth: 2
---

# Introduction {#ch:intro}

Conference publication takes the lead role in describing innovative research,
while journals are often delegated to archival purposes [@vrettas15:conferences].


```{r echo=FALSE}
sessionInfo()
```

测试:围兜:

@article{vrettas15:conferences,
  title =    {Conferences versus journals in computer science},
  author =   {Vrettas, George and Sanderson, Mark},
  journal =  {Journal of the Association for Information Science and Technology},
  volume =   66,
  number =   12,
  pages =    {2674--2684},
  year =     2015,
  publisher =    {Wiley Online Library}
}

_bookdown.yml:

rmd_files: [
  "index.Rmd",
]
new_session: no
bookdown::gitbook:
  split_bib: no

【问题讨论】:

    标签: r-markdown bibtex bookdown


    【解决方案1】:

    原来是因为Pandoc版本太低。 1.19.x 或更高版本应该可以解决此问题。

    【讨论】:

    • 谢谢一辉。即使消除了第一个块,结果也是一样的。
    • 你的rmarkdown::pandoc_version() 是什么?我怀疑它太低了。 RStudio 目前捆绑了 Pandoc 1.19.x。如果你不使用 RStudio 并且你的系统的 Pandoc 版本低于此,你可以考虑升级 Pandoc。我在 RStudio 中测试了您的示例,但无法重现该问题。
    • 你是对的!我的发行版(Mint 18.2)的最新版本是 pandoc 1.16.0.2。我下载并安装了最新的软件包(pandoc 2.2.0),现在它可以工作了。非常感谢!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-03-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-03-19
    相关资源
    最近更新 更多