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 Sets construction variables for the Portable Document Format builder.
34 <item>PDFPREFIX</item>
35 <item>PDFSUFFIX</item>
42 Builds a <filename>.pdf</filename> file
43 from a <filename>.dvi</filename> input file
44 (or, by extension, a <filename>.tex</filename>,
45 <filename>.ltx</filename>,
47 <filename>.latex</filename> input file).
48 The suffix specified by the &cv-link-PDFSUFFIX; construction variable
49 (<filename>.pdf</filename> by default)
50 is added automatically to the target
51 if it is not already present.
52 &b-PDF; is a single-source builder.
56 <programlisting language="python">
58 env.PDF(target = 'aaa.pdf', source = 'aaa.tex')
59 # builds bbb.pdf from bbb.dvi
60 env.PDF(target = 'bbb', source = 'bbb.dvi')
65 <cvar name="PDFPREFIX">
68 The prefix used for PDF file names.
73 <cvar name="PDFSUFFIX">
76 The suffix used for PDF file names.