#!/usr/bin/env python """Compile and create PDF from LaTeX file Usage: python make_document.py """ from os import system texfiles = ['anuga_validation'] for texfile in texfiles: print 'Processing %s' %texfile # Compile with LaTeX, makeindex etc for i in range(3): #system('pdflatex --interaction=nonstopmode %s.tex' %texfile) system('pdflatex %s.tex' %texfile) system('makeindex %s.idx' %texfile) system('makeindex mod%s.idx' %texfile) system('bibtex %s' %texfile) print 'Document %s created' %(texfile + '.pdf')