Skip to content

Instantly share code, notes, and snippets.

@petrelharp
Created February 1, 2016 02:48
Show Gist options
  • Save petrelharp/88a2bef2e40ce50d343f to your computer and use it in GitHub Desktop.
Save petrelharp/88a2bef2e40ce50d343f to your computer and use it in GitHub Desktop.
make a quick html slideshow of a bunch of images (with pandoc + slidy)
#!/bin/bash
usage="
Make a reveal.js slideshow, e.g. of the contents of directory
$0 (files to put on slides) > (output html document)
for instance,
make-slideshow.sh *png > index.html
"
PANDOC_OPTS="-t slidy --standalone"
(
for fname in "$@"
do
echo "--------------------"
echo ""
echo "![${fname}](${fname}){width=100% height=100%}"
echo ""
done
echo "--------------------"
) | pandoc $PANDOC_OPTS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment