Skip to content

Latest commit

 

History

History
117 lines (88 loc) · 2.53 KB

slidify-example.org

File metadata and controls

117 lines (88 loc) · 2.53 KB

slidify-example.org

Setup for test-deck

  1. Run the new-deck src block once to start.
  2. Go to the test-deck slides subtree, edit as desired, and export with the ravel-markdown backend (C-c C-e C-s r m).
  3. Go to the run-slidify src block and run the code there.
  4. Repeat 2 and 3 as needed.
library(slidify)
author("test-deck",open_rmd=FALSE,use_git=FALSE)

test-deck slides

Setup notes

  • #+BEGIN_EXPORT MD ... #+END_EXPORT block contains yaml header
  • EXPORT_FILE_NAME needs to be in test-deck dir
  • EXPORT_OPTIONS needs toc:nil or html creation will barf
  • #+MD: --- terminates slides (not needed at the very end)
  • ox-ravel.el needs to be loaded
  • export using the ravel-markdown backend, e.g. C-c C-e C-s r m

Square root of 2

sqrt(2)

Square root of 3

sqrt(3)

Mauna Whau Plot - code

Borrowed this code from example(image):

# A prettier display of the volcano
x <- 10*(1:nrow(volcano))
y <- 10*(1:ncol(volcano))
image(x, y, volcano, col = terrain.colors(100), axes = FALSE)
contour(x, y, volcano, levels = seq(90, 200, by = 5),
        add = TRUE, col = "peru")
axis(1, at = seq(100, 800, by = 100))
axis(2, at = seq(100, 600, by = 100))
box()
title(main = "Maunga Whau Volcano", font.main = 4)

Mauna Whau Plot - Displayed

<<image-plot>>

this last slide had no headline

Run it

slidify("my.Rmd")