Making HTML slides & handout notes

by Eric J. Ma (MIT)

14 December 2016

introduction

In this tutorial, I will show you how you can use a single Markdown source file to create HTML notes and Reveal.js versions of your slides.

versions

why? (philosophical)

why? (practical)

prerequisite knowledge

I'm assuming that you:

what you'll be able to do by the end

how?

Let's get setup!

install

git clone

prepare

make slides source


$ touch slides.md

fill in slides' YAML header

Use standard Markdown.

---
title: My Title Goes Here
author:
- name: My Name Here
  affiliation: My Affiliation Here
---

fill in content

# slide 1 title

- Bullet point 1
- Bullet point 2
- Bullet point 3

# sub-slide title

1. Numbered point.
1. Numbered point.

# slide 2 title

Some text. A [url] to somewhere.

[url]: http://myfavoritewebsite.com/

create your build script (ver.1)

$ touch build.sh

write your build script (ver.1)

write your pandoc commands into the build script

# Make revealjs version of slides
pandoc slides.md -o slides.html \
    --section-divs \
    -t revealjs \
    -s \
    --template template.revealjs

open and view your slides!