bibtex 引用未在 bookdown 中处理

bibtext references not processing in bookdown

我有一个 bookdown 文档,它使用 bibtex 书目文件引用了其他文档。它似乎根本没有过程,因为输出(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

原来是Pandoc版本太低的缘故。版本 1.19.x 或更高版本应该可以解决问题。