在 Knitr/RMarkdown 中准备的 Beamer 演示文稿中截断的参考文献 [英] References Truncated in Beamer Presentation prepared in Knitr/RMarkdown

查看:27
本文介绍了在 Knitr/RMarkdown 中准备的 Beamer 演示文稿中截断的参考文献的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在 RStudio 中准备一个演示文稿(使用 RMarkdown 和 Knitr,输出到 Beamer 演示文稿),其中有很多参考资料.

I'm currently preparing a presentation in RStudio (using RMarkdown and Knitr, outputting to a Beamer presentation) that has quite a few references.

我正在使用一个非常典型的 YAML 标头:

I'm using a pretty typical YAML header:

---
title: "Title"
author: "Me"
date: "February 27th, 2016"
output: 
  beamer_presentation
csl: ../../apa.csl
bibliography: ../../RefenceDesk.bib 
---

此演示文稿已编译,参考文献按应有的方式显示,但不幸的是,它们都出现在一张幻灯片上(实际上从页面上消失了).有没有办法让参考文献出现在多张幻灯片上?

This presentation compiles and the references appear as they should, but unfortunately they all appear on one slide (and actually run off the page). Is there any way to have the references appear on multiple slides?

推荐答案

正如上面@David 在评论中所说:

As @David above said in the comments:

对我来说,它不适用于 ## References {.allowframebreaks},但它适用于 #References {.allowframebreaks}.

For me it didnt work with ## References {.allowframebreaks} but it worked out with # References {.allowframebreaks}.

我想指出,显然要使参考幻灯片正常工作,您必须创建最后一张幻灯片,其标题级别与 YAML<中 slide_level: __ 设置的标题级别相同/em> 部分.

I would like to point out that, apparently for the reference slide to work you have to create a last slide with the same heading level es set by slide_level: __ at the YAML section.

所以,用户应该设置以下之一:

So, the user should set one of the following:

  • # 引用 {.allowframebreaks}.对于那些使用 slide_level: 1, OR
  • ## 引用 {.allowframebreaks}.对于那些使用 slide_level: 2, OR
  • ### 引用 {.allowframebreaks}.对于那些使用 slide_level: 3 等等...
  • # References {.allowframebreaks}. for those using slide_level: 1, OR
  • ## References {.allowframebreaks}. for those using slide_level: 2, OR
  • ### References {.allowframebreaks}. for those using slide_level: 3 and so on...

这篇关于在 Knitr/RMarkdown 中准备的 Beamer 演示文稿中截断的参考文献的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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