我有一个书面记录文档,引用其他文档使用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
答案 0 :(得分:1)
原来是由于Pandoc的版本太低了。 1.19.x或更高版本应该可以解决问题。