1
votes

I have a bookdown document that cites other documents using a bibtex bibliography file. It appears to no process at all, since the output (both gitbook format and pdf) don't translate the actual citation to a reference. The output always copies the plain text of the citation, not the actual reference, like this:

enter image description here

Here's a minimal reproducing example, which I build using:

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()
```

test:bib:

@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
1

1 Answers

2
votes

It turns out to be due to the too low version of Pandoc. A version 1.19.x or higher should fix the problem.