Created
October 14, 2016 12:06
-
-
Save Qumeric/c3140349f3436a411e83bab87b6c1f32 to your computer and use it in GitHub Desktop.
A small script to build one latex file without garbage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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