Skip to main content

Module typst

Module typst 

Source
Expand description

Typst backend — compiles the composed main.typ to PDF in-process using the typst + typst-pdf crates (the default WISP renderer; pure Rust, no external toolchain).

The operator’s template directory is the import root: #import "theme.typ" and image("logo.svg") in the partials resolve to files there. The body fonts (Inter + JetBrains Mono) are bundled into the binary and loaded into the Typst font book so output is identical on every machine.

With --no-default-features (no pdf feature) the heavy typst dependency is dropped and this backend just writes the composed .typ beside the intended output.

Functions§

render