Rheo

PDF

Typst, the programming language and compilation toolchain that underwrites Rheo, natively and fully supports PDF.

What Rheo adds

Where Rheo goes beyond the standard Typst CLI by ‘reticulating’ multiple source files into a single, unified PDF. This is useful when you want to separate sections of your book into individual files – for example, so that each section can also appear as its own web page in the HTML output – while still producing a unified document for print.

The PDF format always produces a single combined document: every source file in its spine is merged into one output PDF, in directory-scan order. Give the combined document a title, and narrow which files are included with exclude:

[pdf.spine]
title = "My book"
exclude = ["drafts/**"]

Because the source files are combined, relative links between them are automatically resolved to internal document links that point to the relevant section in the output PDF.

Rheo also copies any assets matched by your copy patterns into the PDF build directory.