如何获得长(超过 1 页)的参考书目以在 R markdown 投影仪中打印? [英] How do I get a long (more than 1 page) bibliography to print in an R markdown beamer?

查看:60
本文介绍了如何获得长(超过 1 页)的参考书目以在 R markdown 投影仪中打印?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在渲染超过一页的参考书目时遇到问题,因为只有第一页是使用 RMarkdown 和 beamer 输出打印的.

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

同样的问题已发布在 http://rmarkdown.rstudio.com/authoring_bibliographies_and_citations.html#comment-2398115545 但没有任何帮助.

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

推荐答案

您可以通过将幻灯片的类设置为 allowframebreaks 来强制在下一张幻灯片上继续播放.只需为您的最后一张幻灯片执行此操作.来自 pandoc 邮件列表:

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} 

knitr 有一个设置,可防止此解决方案与 rmarkdown 一起开箱即用.有关解决方案,请参阅此问题.

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

这篇关于如何获得长(超过 1 页)的参考书目以在 R markdown 投影仪中打印?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆