Skip to content

Instantly share code, notes, and snippets.

@agdphd
Created December 3, 2013 01:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agdphd/7762253 to your computer and use it in GitHub Desktop.
Save agdphd/7762253 to your computer and use it in GitHub Desktop.
Shell script to de-interleave the output from Beamer's [notes=show] mode and project it using Slider
#!/usr/bin/env bash
# Project a PDF presentation from a file with interleaved slides and notes
tempdir=`mktemp -d --tmpdir`
pres="${1}"
pdftk ${1} cat odd output ${tempdir}/slides.pdf
pdftk ${1} cat even output ${tempdir}/notes.pdf
slider ${tempdir}/slides.pdf ${tempdir}/notes.pdf
rm -rf ${tempdir}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment