Overview
The document module supplies SCons builders for maintained TeX content. This guide describes version 2.0.0.
Main capabilities
- Build several PDF editions from shared sources.
- Keep content, output metadata and style selection separate.
- Generate review editions and structured books.
- Rebuild affected outputs when content or definitions change.
Builders
Choose the structure of each output
| Builder | Default target | Use |
|---|---|---|
Article() | paper.pdf | Papers, reports, and article-style documents |
Slides() | slides.pdf | Presentation slides, including standard and widescreen layouts |
Book() | book.pdf | Books with chapters, parts, front matter, appendices, and back matter |
Diary() | note.pdf | Date-organized notes read from a source directory |
Supply a title for each output. For title-free articles or slides, use maketitle=False. See the builder reference for the full argument list.
Quick example
from document import *
Slides('results.pdf', 'slides.tex',
title='Experiment results', option='16x9',
package='sigclear/slides')Create slides.tex with your presentation content, then run scons to generate results.pdf. Select a template with package, and set document options such as aspect ratio with option. Start with the product quick start for a complete first document.
Requirements and further reading
Install the package's TeX dependencies and SCons, and activate Document Automation. Keep source content compatible with the selected output structure. Supplied publisher styles should be checked against current submission requirements.
The builder reference covers source forms, book structure, options, metadata and style names. If you are upgrading an existing build, see the changelog for renamed templates and updated syntax.