Skip to content

Instantly share code, notes, and snippets.

@Qumeric
Created October 14, 2016 12:06
Show Gist options
  • Select an option

  • Save Qumeric/c3140349f3436a411e83bab87b6c1f32 to your computer and use it in GitHub Desktop.

Select an option

Save Qumeric/c3140349f3436a411e83bab87b6c1f32 to your computer and use it in GitHub Desktop.
A small script to build one latex file without garbage
#!/usr/bin/python3
from sys import argv
from subprocess import call
from os.path import splitext
if len(argv) != 2:
print("Usage: ./make.py <filename>.tex")
exit()
base_name = splitext(argv[1])[0]
call(['pdflatex', argv[1]])
call(['rm', base_name + '.aux', base_name + '.log'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment