Skip to content

Instantly share code, notes, and snippets.

@jckantor
Created April 29, 2014 13:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jckantor/11400556 to your computer and use it in GitHub Desktop.
Save jckantor/11400556 to your computer and use it in GitHub Desktop.
Texpad tpbuild script for latex standalone class to produce .png file. Useful for creating tikz figures.
#!/bin/bash
# Texpad build (.tpbuild) for standalone
pdflatex "$TEXPAD_ROOTFILE"
convert -density 300 "$TEXPAD_ROOTFILE_NO_EXT".pdf "$TEXPAD_ROOTFILE_NO_EXT".png
rm "$TEXPAD_ROOTFILE_NO_EXT".aux
rm "$TEXPAD_ROOTFILE_NO_EXT".log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment