Search code examples
rr-markdownpandocbeamerbibliography

How do I get a long (more than 1 page) bibliography to print in an R markdown beamer?


I have an issue rendering bibliographies covering more than one page as only the first one is printed using RMarkdown and beamer output.

The same question has been posted at http://rmarkdown.rstudio.com/authoring_bibliographies_and_citations.html#comment-2398115545 but without any help.

---
title: "Sample Document"
output: beamer_presentation
bibliography: bibliography.bib
---

Solution

  • You can force a slide to be continued on the next one by setting its class to allowframebreaks. Just do this for your last slide. From the pandoc mailing-list:

    ## References {.allowframebreaks} 
    

    Edit: knitr has a setting that prevents this solution from working out of the box with rmarkdown. See this question for a solution.