Rev. | 22ca9caa0cd9ac2bc9ac0eef110c3ad2130bc333 |
---|---|
大小 | 258 字节 |
时间 | 2017-03-27 23:51:47 |
作者 | Lorenzo Isella |
Log Message | A script to compile a tex file with a bibtex file. |
#!/usr/bin/python
import subprocess, sys
commands = [
['pdflatex', sys.argv[1] + '.tex'],
['bibtex', sys.argv[1] + '.aux'],
['pdflatex', sys.argv[1] + '.tex'],
['pdflatex', sys.argv[1] + '.tex']
]
for c in commands:
subprocess.call(c)