Render
Typstry.render — Functionrender(::TypstContext, value; parameters...)
render(value; parameters..., context...)Render the value to a document.
This supports using the julia_mono typeface.
See also TypstContext.
Typst requires the output path to contain a page number template {p} when compiling documents with multiple pages to either PNG or SVG format. In this case, use open = false to prevent an error from the Typst command-line interface. See also Typst #7182.
Parameters
input::AbstractString = "input.typ"- Write the 
preambleand formatted value to this Typst source file. 
- Write the 
 output::AbstractString = "output.pdf"- Compile the document in the format specified by the file extension 
pdf,png, orsvg. 
- Compile the document in the format specified by the file extension 
 open::Bool = true- Whether to preview the document with the default viewer, if available.
 
ignorestatus::Bool = true- Whether to throw a 
TypstCommandErrorif the command errors. 
- Whether to throw a 
 
Examples
julia> render(Any[true 1; 1.2 1 // 2]);