References page truncated in RMarkdown ioslides presentation

六眼飞鱼酱① 提交于 2019-12-22 05:01:14

问题


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?


回答1:


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

Edited to add:

To suppress the logo, this should work:

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

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.



来源:https://stackoverflow.com/questions/38260799/references-page-truncated-in-rmarkdown-ioslides-presentation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!