Document Automation documentation

Document builder reference

Document Automation 2.0.0 builder arguments, source forms, book structures and built-in styles.

Builders

Choose the structure of each output

BuilderDefault targetUse
Article()paper.pdfPapers, reports, and article-style documents
Slides()slides.pdfPresentation slides, including standard and widescreen layouts
Book()book.pdfBooks with chapters, parts, front matter, appendices, and back matter
Diary()note.pdfDate-organized notes read from a source directory

Article, Slides, Book, and Diary accept the common arguments target, source, option, title, subtitle, proceedings, maketitle, author, institute, email, address, date, package, bib, and preamble.

Article and Slides enable maketitle=True by default. Supply a title, or set maketitle=False for title-free output. A title declared inside the content file is too late for the automatic title block. Book and Diary always generate their title pages, so provide a title for each.

Source definitions

Use one file, several files, or source directories

An Article or Slides source can be expressed in several equivalent forms. Each call below is an alternative definition for the same target:

# One source file
Article('paper.pdf', 'paper.tex', title='Experiment report')

# The matching paper.tex is inferred from paper.pdf
Article('paper.pdf', title='Experiment report')

# The default target and source are paper.pdf and paper.tex
Article(title='Experiment report')

# Several files
Article('paper.pdf', [
    'section1/paper.tex',
    'section2/paper.tex'
], title='Experiment report')

# A space-separated source string
Article('paper.pdf',
        'section1/paper.tex section2/paper.tex',
        title='Experiment report')

# A trailing slash selects paper.tex in each directory
Article('paper.pdf', 'section1/ section2/',
        title='Experiment report')

Slides supports the same source forms. Book also accepts these forms and can use dictionaries to define document structure. Diary is different: its source is a directory containing date-organized TeX notes.

Books

Define chapters, parts, and front or back matter

Use a dictionary when chapter titles should be supplied by the build definition:

chapters = {
    'Introduction': 'intro/paper.tex',
    'Methods': 'methods/',
    'Results': [
        'results-a/paper.tex',
        'results-b/paper.tex'
    ]
}

Book('research-book.pdf', {'mainmatter': chapters},
     title='Research handbook')

A key with a None value introduces a Part before the following chapters:

chapters = {
    'Background': None,
    'Introduction': 'intro/',
    'Implementation': None,
    'Methods': 'methods/'
}

Pass this chapter dictionary under mainmatter, as in the preceding Book call.

For a complete book, group content under the recognized copyright, frontmatter, mainmatter, appendix, and backmatter keys:

book = {
    'copyright': 'copyright.tex',
    'frontmatter': {
        'Preface': 'preface.tex',
        'Acknowledgements': 'acknowledgements.tex'
    },
    'mainmatter': {
        'Introduction': 'intro/',
        'Data management': 'data/'
    },
    'appendix': {
        'Reference tables': 'appendix/'
    },
    'backmatter': {
        'About the authors': 'authors.tex'
    }
}

Book('book.pdf', book, title='Research handbook')

Options and metadata

Control review output, page size, and presentation ratio

BuilderDocumented options
Articlereview, a4paper, a5paper, b5paper, kindle2, iphone7, and standard article-class options such as letterpaper
Slides4x3, 16x9, twocolumn, and beamer options such as handout
Bookreview, a4paper, a5paper, b5paper, kindle2, iphone7, listfigs
Article('paper-a5.pdf', 'paper.tex', option='a5paper',
        title='Experiment report')
Slides('slides-wide.pdf', 'slides.tex', option='16x9',
       title='Experiment results')
Book('book-with-figures.pdf', 'chapters.tex', option='listfigs',
     title='Research handbook')

Use builder arguments for metadata that should be controlled by the output definition:

Article(
    'paper.pdf',
    'paper.tex',
    title='Measurement analysis',
    subtitle='Final report',
    author='A. Researcher',
    institute='Example Laboratory',
    email='researcher@example.org',
    date='September 2026',
    bib='references.bib',
    maketitle=True
)

Content interface

Write with a focused set of TeX commands

Content authors can use the standard structural commands supported across SIGCLEAR document outputs:

TypeSupported interface
Document information\proceedings, \title, \subtitle, \author, \cauthor, \institute, \email, \address, \keyword
Structure\section, \subsection, \subsubsection
Environmentabstract
Build definitionSet bib for the bibliography and maketitle for Article or Slides title generation.

With option='review' in Article, Book or Diary, wrap removed content in \old{...} and added content in \new{...}. Normal output hides old content and retains new content; review output marks both for comparison. Article review uses a single column with double spacing and retains author information.

Keep output-specific commands out of shared content

Put package selection, document options, output metadata, and specialized preamble material in SConstruct whenever possible. This keeps the TeX source reusable across styles.

Templates and package options

Choose one template per output using organization/type. Omit package to use the builder’s default layout. Book and Diary use their own layouts and accept utility packages.

OrganizationArticle templatesSlides templates
SIGCLEARsigclear/resumesigclear/slides
SPEspe/journal, spe/conference—
SPWLAspwla/journal, spwla/conferencespwla/slides
SEGseg/journal, seg/conference—
EAGEeage/journal, eage/conference—
IEEEieee/journal, ieee/conference—

SEG and EAGE conference templates are for expanded abstracts. Check the target venue’s current submission requirements before using a supplied template.

Set options after the package name

Article('journal.pdf', 'paper.tex', title='Experiment report',
        package='ieee/journal[nopagenumbers]',
        option='review', bib='references.bib')

nopagenumbers hides page numbers. IEEE templates use biblatex-ieee with biber. Separate additional utility packages with spaces, as in spwla/conference hyperref[colorlinks, urlcolor=blue], or pass a list of entries.

The optional selectors spwla/journal[journal=petrophysics], seg/journal[journal=geophysics], and eage/journal[journal=geophysical-prospecting] name each template’s current default journal.

Choose a venue logo

Slides('talk.pdf', 'slides.tex', title='Experiment report',
       package='spwla/slides[logo=assets/venue.pdf]')

Templates that place a logo look for organization/logo.pdf by default. The package includes SIGCLEAR artwork. If an optional default is missing, the logo is omitted. Use logo=none to hide it, or specify a PDF, PNG or JPEG path relative to the calling workflow script. A missing file named explicitly produces an error. Changing a selected logo triggers a rebuild.

Changelog

2.0.0

Update existing build definitions to use the new template names and suffix options. The 1.1 forms below are shown for migration.

1.12.0
sigclear/basicOmit the package for the default layout.
sigclear/slides-sigclearsigclear/slides
spe/spe, [conference]spespe/journal, spe/conference
spwla/spwla, spwla/petrophysics, spwla/slides-spwlaspwla/conference, spwla/journal, spwla/slides
seg/segabs, seg/geophysicsseg/conference, seg/journal
eage/eageabs, eage/gpeage/conference, eage/journal
ieee, [submission]ieeeieee/journal, ieee/journal[nopagenumbers]
[review]ieeepackage='ieee/journal', option='review'
[colorlinks]hyperrefhyperref[colorlinks]
  • Added ieee/conference and configurable organization logos. Move custom venue images to a logo= option.
  • Fixed SPWLA heading overlap and bibliography punctuation. IEEE tables use Roman numerals and third-level headings run into the paragraph.
  • Changed document sources trigger rebuilds even when their timestamps are preserved. The standard TeX Live comment package replaces the bundled copy.