Test Include Several Images in Revealjs and Generate PDF

Fan Wang (fanwangecon.github.io)

February 4th, 2020

Rmd RevealJS and Decktape

To produce very low cost, easy to compile, easy to produce presentations, use these:

  1. revealjs
  2. revealjs_presentation
  3. decktape

Use the revealjs r package to write revealjs documents in r markdown and knit to html. Then use decktape to conver html to pdf.

revealjs and r

See the rmd file that generated this presentation.

revealjs and r

Once the HTML file is created, we can use decktape to convert it to pdf:

  • install decktape: install nodejs, npm install -g decktape
  • to save results as image slides individually:
    • decktape reveal –screenshots test_img.html test_img.pdf
  • to save results as a single pdf

Image Group One

Image One JPG

  • small jpg profile photo
  • Equation: \(1+2=3\)

Two JPGs Together

  • Two Images Together Same Page
  • Equation: \(1+2=3\)

Image Group Two

pDF and SVG

  • svg and then pdf