Skip to content

Instantly share code, notes, and snippets.

@ats
Created January 19, 2014 03:04
Show Gist options
  • Save ats/8499989 to your computer and use it in GitHub Desktop.
Save ats/8499989 to your computer and use it in GitHub Desktop.
Bare-bones TextMate command to run the current markdown file through pandoc with a hardcoded LaTeX template.
#!/bin/bash
name="$TM_FILENAME"
barename="${name%.*}"
pandoc --read=markdown -s $TM_FILEPATH --output=$TM_DIRECTORY/$barename.pdf --template=$TM_DIRECTORY/template-tufte.tex --latex-engine=xelatex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment