RMarkdown ioslides演示文稿中的“引用"页面被截断 [英] References page truncated in RMarkdown ioslides presentation

查看:104
本文介绍了RMarkdown ioslides演示文稿中的“引用"页面被截断的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过RStudio在RMarkdown中准备了一个ioslides演示文稿.由于演示文稿包含很多参考,因此它们被截断了: 使用{.allowframebraks}似乎是beamer演示文稿的一种快速解决方案,例如

I prepare a ioslides presentation in RMarkdown via RStudio. As the presentation contains a lot of references they are truncated: With {.allowframebraks}there seems to be a quick solution for beamer presentations as this answer shows. Is there one for ioslides, too?

推荐答案

这并不是您所要的,但这可能是您可以做的最好的事情.在文档末尾(即,在将要插入引用的位置之前)插入以下嵌入式CSS,而不是将其截断,而是添加滚动条(第一部分)并取消页码(第二部分)

This isn't exactly what you're asking for, but it might be the best you can do. Insert the following inline CSS at the end of your document (i.e. just before where the references will be inserted), and instead of truncating them, it will add a scroll bar (the first part) and suppress the page number (the second part).

<style>
slides > slide { overflow: scroll; }
slides > slide:not(.nobackground):after {
  content: '';
}
</style>

您将无法一次看到所有参考,但至少可以滚动浏览它们. (您可以将其添加到任何长幻灯片的标题后面,以达到相同的效果.)

You won't be able to see all references at once, but at least you can scroll through them. (You can add this after the header on any long slide for the same effect.)

编辑后添加:

要隐藏徽标,这应该可行:

To suppress the logo, this should work:

<style>
slides > slide:not(.nobackground):before {
  background: none;
}
</style>

通常要弄清楚这种情况,请使用Firefox(或其他浏览器?),指向感兴趣的事物,右键单击并选择检查元素".这样可以告诉您它的来源,您也许可以猜测如何抑制它.

Generally to figure things like this out, use Firefox (or another browser?), point at the thing of interest, right click and choose Inspect Element. That will tell you where it came from, and you might be able to guess how to suppress it.

这篇关于RMarkdown ioslides演示文稿中的“引用"页面被截断的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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