Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

References page truncated in RMarkdown ioslides presentation

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

like image 469
sammerk Avatar asked Jul 08 '16 07:07

sammerk


1 Answers

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.

like image 108
user2554330 Avatar answered Oct 19 '22 23:10

user2554330