I'm trying to come up with a good system for generating slides and accompanying handouts. The ideal system would have the following properties:
pandoc
slide separator format (automatically generate a new slide after headers of a specified level) is preferredsed
), but would prefer not to write a huge infrastructureHere's what I've discovered so far about the various options:
pandoc
slide separator format, although there is a workaroundpsnup
...)RStudio
presentations (.Rpres
files):
pandoc
slide separator format rmarkdown
. It addresses many of the above issues with the .Rpres
format.pandoc
: may be the only markdown-translator that has features such as footnotes, bibliography support, etc.. I can also use pandoc
to generate LaTeX using the tufte-handout class, which meets my criteria of beauty.
pandoc -s -S -i -t dzslides --mathjax knitr-slides.md -o knitr-slides.html
, but it doesn't seem to be ...Rnw
(knitr-dialect Sweave) rather than R markdown to begin with. This would give me ultimate flexibility ...
After all that, my specific question is: what's the best (easiest) way to generate a two-column layout for HTML output?
Any other advice will also be appreciated.
I now have what I think is a reasonable solution that should apply at least to ioslides
-based solutions, and maybe (?) to other HTML5-based formats. Starting here, I added
<style>
div#before-column p.forceBreak {
break-before: column;
}
div#after-column p.forceBreak {
break-after: column;
}
</style>
to the beginning of my document; then putting <p class="forceBreak"></p>
within a slide with {.columns-2}
breaks the column at that point, e.g.
## Latin hypercube sampling {.columns-2}
- sample evenly, randomly across (potentially many) uncertain parameters
<p class="forceBreak"></p>
![](LHScrop.png)
[User:Saittam, Wikipedia](https://commons.wikimedia.org/wiki/File:LHSsampling.png#/media/File:LHSsampling.png)
There may be an even better way, but this isn't too painful.
@ChrisMerkord points out in comments that
.forceBreak { -webkit-column-break-after: always; break-after: column; }
worked instead (I haven't tested ...)