paulgorman.org/technical

Presentation Slides from Markdown and Pandoc

Pandoc generates slides from markdown, using any one of several engines to produce HTML or PDF output.

Pandoc breaks the markdown into slides according to several rules. Note that “slide level” is determined by the first header level to be followed by non-header content.

Generate html slides from test.md like:

% pandoc -t revealjs -s test.md -o test.html

(This will render as a simple one-page HTML file, unless we’ve done something like git clone https://github.com/hakimel/reveal.js/.)

The valid types options are:

Sample markdown of a slide deck:

% My Slide Deck
% Paul Gorman
% August 2016

# Part I #

## The First thing ##

Remember to include some stuff:

```
%  dig +noall +answer example.com
example.com.            15313   IN      A       93.184.216.34
```

## A Second slide ##

- A list item
- and another
- Cool

---

> - Next list item after slide break
> - This is an incremental list
> - Last incremental item

# Part II #

## A Picture ##

![Alt text](https://upload.wikimedia.org/wikipedia/en/f/f7/RickRoll.png)

---

This is a paragraph. Stuff.

. . .

Because of the three dots above, there will be a "pause" before display of this paragraph.

LaTeX

The LaTeX package for slides is Beamer.

Even in our markdown, we may want to add notes using LaTeX markup (which Pandoc will happily ignore):

\note{Tell joke about chicken.}

In our LaTeX preamble:

\setbeameroption{show notes}
\setbeamertemplate{note page}[plain]

We probably want to print the notes output four-up (two slides with two notes pages shrunk to fit).

http://pandoc.org/MANUAL.html#producing-slide-shows-with-pandoc https://andrewgoldstone.com/blog/2014/12/24/slides/ http://pages.stat.wisc.edu/~yandell/statgen/ucla/Help/Producing%20slide%20shows%20with%20Pandoc.html http://tex.stackexchange.com/questions/48402/personal-notes-when-preparing-a-talk-with-latex-beamer-class