texΒΆ

TeX/LaTeX/PDFLaTeX/XeLaTeX support

Example:

def configure(conf):
        conf.load('tex')
        if not conf.env.LATEX:
                conf.fatal('The program LaTex is required')

def build(bld):
        bld(
                features = 'tex',
                type     = 'latex', # pdflatex or xelatex
                source   = 'document.ltx', # mandatory, the source
                outs     = 'ps', # 'pdf' or 'ps pdf'
                deps     = 'crossreferencing.lst', # to give dependencies directly
                prompt   = 1, # 0 for the batch mode
        )

Notes:

  • To configure with a special program, use:

    $ PDFLATEX=luatex waf configure
    
  • This tool does not use the target attribute of the task generator (bld(target=...)); the target file name is built from the source base name and the output type(s)

Features defined in this module: