3 SPDX-FileCopyrightText: Copyright The SCons Foundation (https://scons.org)
4 SPDX-License-Identifier: MIT
5 SPDX-FileType: DOCUMENTATION
7 This file is processed by the bin/SConsDoc.py module.
11 <!ENTITY % scons SYSTEM '../../doc/scons.mod'>
13 <!ENTITY % builders-mod SYSTEM '../../doc/generated/builders.mod'>
15 <!ENTITY % functions-mod SYSTEM '../../doc/generated/functions.mod'>
17 <!ENTITY % tools-mod SYSTEM '../../doc/generated/tools.mod'>
19 <!ENTITY % variables-mod SYSTEM '../../doc/generated/variables.mod'>
23 <sconsdoc xmlns="http://www.scons.org/dbxsd/v1.0"
24 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
25 xsi:schemaLocation="http://www.scons.org/dbxsd/v1.0 http://www.scons.org/dbxsd/v1.0/scons.xsd">
30 Attaches the &b-link-DVI; builder to the
31 construction environment.
43 Builds a <filename>.dvi</filename> file
44 from a <filename>.tex</filename>,
45 <filename>.ltx</filename> or <filename>.latex</filename> input file.
46 If the source file suffix is <filename>.tex</filename>,
48 will examine the contents of the file;
50 <literal>\documentclass</literal>
52 <literal>\documentstyle</literal>
53 is found, the file is assumed to be a LaTeX file and
54 the target is built by invoking the &cv-link-LATEXCOM; command line;
55 otherwise, the &cv-link-TEXCOM; command line is used.
56 If the file is a LaTeX file,
59 builder method will also examine the contents
61 <filename>.aux</filename>
62 file and invoke the &cv-link-BIBTEX; command line
64 <literal>bibdata</literal>
66 start &cv-link-MAKEINDEX; to generate an index if a
67 <filename>.ind</filename>
69 and will examine the contents
70 <filename>.log</filename>
71 file and re-run the &cv-link-LATEXCOM; command
72 if the log file says it is necessary.
76 The suffix <filename>.dvi</filename>
77 (hard-coded within TeX itself)
78 is automatically added to the target
79 if it is not already present.
85 env.DVI(target = 'aaa.dvi', source = 'aaa.tex')
87 env.DVI(target = 'bbb', source = 'bbb.ltx')
88 # builds from ccc.latex
89 env.DVI(target = 'ccc.dvi', source = 'ccc.latex')