Last change
on this file since 6495 was
5230,
checked in by ole, 17 years ago
|
Work on validation paper:
Figures
Compilation script: make_document.py
Citations
|
-
Property svn:executable set to
*
|
File size:
590 bytes
|
Rev | Line | |
---|
[5230] | 1 | #!/usr/bin/env python |
---|
| 2 | |
---|
| 3 | """Compile and create PDF from LaTeX file |
---|
| 4 | |
---|
| 5 | Usage: |
---|
| 6 | python make_document.py |
---|
| 7 | |
---|
| 8 | """ |
---|
| 9 | |
---|
| 10 | from os import system |
---|
| 11 | |
---|
| 12 | texfiles = ['anuga_validation'] |
---|
| 13 | |
---|
| 14 | for texfile in texfiles: |
---|
| 15 | print 'Processing %s' %texfile |
---|
| 16 | # Compile with LaTeX, makeindex etc |
---|
| 17 | for i in range(3): |
---|
| 18 | #system('pdflatex --interaction=nonstopmode %s.tex' %texfile) |
---|
| 19 | system('pdflatex %s.tex' %texfile) |
---|
| 20 | system('makeindex %s.idx' %texfile) |
---|
| 21 | system('makeindex mod%s.idx' %texfile) |
---|
| 22 | system('bibtex %s' %texfile) |
---|
| 23 | |
---|
| 24 | print 'Document %s created' %(texfile + '.pdf') |
---|
| 25 | |
---|
Note: See
TracBrowser
for help on using the repository browser.