リビジョン | 22ca9caa0cd9ac2bc9ac0eef110c3ad2130bc333 (tree) |
---|---|
日時 | 2017-03-27 23:51:47 |
作者 | Lorenzo Isella <lorenzo.isella@gmai...> |
コミッター | Lorenzo Isella |
A script to compile a tex file with a bibtex file.
@@ -0,0 +1,13 @@ | ||
1 | +#!/usr/bin/python | |
2 | + | |
3 | +import subprocess, sys | |
4 | + | |
5 | +commands = [ | |
6 | + ['pdflatex', sys.argv[1] + '.tex'], | |
7 | + ['bibtex', sys.argv[1] + '.aux'], | |
8 | + ['pdflatex', sys.argv[1] + '.tex'], | |
9 | + ['pdflatex', sys.argv[1] + '.tex'] | |
10 | +] | |
11 | + | |
12 | +for c in commands: | |
13 | + subprocess.call(c) |