在Knitr/RMarkdown中编写的Beamer演示文稿中被截断的参考 [英] References Truncated in Beamer Presentation prepared in Knitr/RMarkdown

查看:70
本文介绍了在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:

对我来说,它不适用于##引用{.allowframebreaks},但可以解决##引用{.allowframebreaks}.

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

我想指出的是,显然,要使参考幻灯片正常工作,您必须创建最后一张幻灯片,标题的水平与 YAML 部分设置的标题级别相同.

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天全站免登陆