使用rmarkdown在revealjs演示文稿中包含参考文献是否可行?

7
我试图使用rmarkdown将参考文献包含到revealjs演示中。然而,尽管在pandoc处理过程中明确包含了参考文献(由rmarkdown生成的pandoc命令包括bib文件和引用程序过滤器),但生成的html文件不包括参考文献。使用其他幻灯片演示生成器和rmarkdown,例如ioslides,可以正确地包含参考文献。我没有找到任何关于支持rmarkdown和revealjs进行参考文献处理的明显声明。这是否可能?

2
现在这个可以直接使用,而且包都是最新的。 - Steve Powell
1
我曾经遇到过 pandoc 2.3.1 的问题,后来通过安装 2.7.2 版本解决了它。 - Paul
1个回答

3

作为解决方法,您可以尝试以下操作:

  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"}
    

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接