Is it possible to include a bibliography in a revealjs presentation using rmarkdown?
Asked Answered
K

1

8

I am trying to include a bibliography into a revealjs presentation using rmarkdown. However, despite the apparent inclusion of the bibliography in the pandoc processing (the pandoc command generated by rmarkdown includes the bib file and the citeproc filter), the generated html does not include the references. Using a different slide presentation generator and rmarkdown, such as ioslides, correctly includes the references. I was not able to find any obvious statement abuot supporting bibliography processing with rmarkdown and revealjs. Is it possible?

Kantos answered 12/9, 2017 at 8:20 Comment(2)
This works now out of the box, with up-to-date packages.Showplace
I had this issue with pandoc 2.3.1 and resolved it by installing 2.7.2.Nebulous
P
3

As a workaround you can try the following:

  1. create a separate Rmd-file and adapt the following:

    ---
    output: html_document
    bibliography: pathtomybibfile.bib
    nocite: | 
      @cite, @all, @your, @references
    ---
    
  2. generate html-version of this file (e.g. name it bib.html)

  3. include html within your revealjs-presentation via:

    # {data-background-iframe="bib.html"}
    
Pelag answered 30/1, 2018 at 17:12 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.