3

This is closely related to my previous question on two-column layouts, but I've narrowed my expectations a bit. For the moment I'll skip the "everything and a pony too" request (multiple output formats, etc.), and just focus on getting a flexible two-column layout in ioslides format ...

  • The rmarkdown documentation states

    Note that content will flow across the columns so if you want to have an image on one side and text on the other you should make sure that the image has sufficient height to force the text to the other side of the slide.

A comment from Sep 2015 on the same page suggests that two-column breaking is available in the (otherwise inferior, and more or less frozen) .Rpres format, but that otherwise

we have to wait until RStudio incorporates adjustable columns into ioslides

  • This question comes close, but the accepted answer is about how to tweak the content size until the columns line up as desired.

I'm not a CSS expert, unfortunately ... what would be involved in creating a new layout? I managed to find the source code here, but it's almost completely opaque to me:

/* line 468, ../scss/default.scss */
.columns-2 {
  -webkit-column-count: 2;
  -moz-column-count: 2;
  -ms-column-count: 2;
  -o-column-count: 2;
  column-count: 2;
}

This and this look useful, but it could be a deep rabbit hole ...

Community
  • 1
  • 1
Ben Bolker
  • 211,554
  • 25
  • 370
  • 453

0 Answers0