#! /usr/bin/env python # encoding: utf-8 # Thomas Nagy, 2006 (ita) def build(bld): # we can modify the way tex files are scanned #import re, tex #tex.tex_regexp = re.compile('^\\\\bringin{(?P<file>.*)}', re.M) # now create your tex object for compiling the files obj = bld.new_task_gen( features = 'tex', type='latex', # default is pdflatex source = 'document.ltx' # mandatory, the source ) # optional parameters obj.outs = 'ps' # we want a postscript output too - 'ps pdf' works too obj.prompt = 1 # put 0 for the batchmode (conceals the debug output) obj.deps = 'crossreferencing.ltx' # use this to give dependencies directly