4 This file is processed by the bin/SConsDoc.py module.
5 See its __doc__ string for a discussion of the format.
9 Attaches the &b-DVI; builder to the
10 construction environment.
20 Builds a <filename>.dvi</filename> file
21 from a <filename>.tex</filename>,
22 <filename>.ltx</filename> or <filename>.latex</filename> input file.
23 If the source file suffix is <filename>.tex</filename>,
25 will examine the contents of the file;
27 <literal>\documentclass</literal>
29 <literal>\documentstyle</literal>
30 is found, the file is assumed to be a LaTeX file and
31 the target is built by invoking the &cv-link-LATEXCOM; command line;
32 otherwise, the &cv-link-TEXCOM; command line is used.
33 If the file is a LaTeX file,
36 builder method will also examine the contents
38 <filename>.aux</filename>
39 file and invoke the &cv-link-BIBTEX; command line
41 <literal>bibdata</literal>
43 start &cv-link-MAKEINDEX; to generate an index if a
44 <filename>.ind</filename>
46 and will examine the contents
47 <filename>.log</filename>
48 file and re-run the &cv-link-LATEXCOM; command
49 if the log file says it is necessary.
51 The suffix <filename>.dvi</filename>
52 (hard-coded within TeX itself)
53 is automatically added to the target
54 if it is not already present.
59 env.DVI(target = 'aaa.dvi', source = 'aaa.tex')
61 env.DVI(target = 'bbb', source = 'bbb.ltx')
62 # builds from ccc.latex
63 env.DVI(target = 'ccc.dvi', source = 'ccc.latex')