Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 292
seandavi Avatar asked Sep 12 '17 08:09

seandavi


1 Answers

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"}
    
like image 168
sachserf Avatar answered Oct 02 '22 02:10

sachserf