Skip to content

Instantly share code, notes, and snippets.

View arvearve's full-sized avatar

Arve Nygård arvearve

View GitHub Profile
@arvearve
arvearve / gist:9622831
Last active August 29, 2015 13:57
Pandoc markdown -> pdf macro
# Put in ~/.bashrc or similar
# requires pandoc and xelatex
#
# usage:
# $ mdpdf myfile.md
# outputs myfile.pdf in same directory
#
# Additional flags are passed:
# $ mdpdf myfile.md --toc
# outputs myfile.pdf with table of contents.