typst-eval(1)
β¨ typst-eval(1) β¨
okay bestie, welcome to typst-eval(1) from the General Commands Manual π This is the page for the command that evaluates a piece of Typst code, and it can do it in the context of a document if you feel like it. Lowkey powerful, highkey useful.
π NAME π
typst-eval β evaluates a piece of Typst code, optionally in the context of a document. It's giving tiny evaluator with main-character energy π .
π¦ SYNOPSIS π¦
typst-eval [--in] [--target] [--format] [--pretty] [--root] [--input]
[--font-path] [--ignore-system-fonts] [--ignore-embedded-fonts]
[--package-path] [--package-cache-path] [--creation-timestamp]
[-j|--jobs] [--features] [--diagnostic-format] [-h|--help] <EXPRESSION>
πΈ DESCRIPTION πΈ
typst-eval evaluates a piece of Typst code, and optionally it does that in the context of a document. That's the whole vibe: evaluate now, contextualize if needed β¨.
π OPTIONS π
--in <IN>β a file whose context the code gets evaluated in. You can use it to introspect the document. Set it to-to read input from stdin π«Ά--target <TARGET>β the target to compile for. Default:paged. Possible values:paged: PDF and image formatshtml: HTMLbundle: Bundle
--format <FORMAT>β the format to serialize in. Default:json. Possible values:jsonyaml
--prettyβ whether to pretty-print the serialized output. Only applies to JSON format π--root <DIR>β configures the project root (for absolute paths). You can also set this with theTYPST_ROOTenvironment variable.--input <key=value>β add a string key-value pair visible throughsys.inputsβ¨--font-path <DIR>β adds additional directories that are recursively searched for fonts. If you pass multiple paths, separate them with the system's path separator (:on Unix-like systems and;on Windows). You can also set this with theTYPST_FONT_PATHSenvironment variable.--ignore-system-fontsβ ensures system fonts won't be searched, unless explicitly included via--font-path. You can also set this with theTYPST_IGNORE_SYSTEM_FONTSenvironment variable.--ignore-embedded-fontsβ ensures fonts embedded into Typst won't be considered. You can also set this with theTYPST_IGNORE_EMBEDDED_FONTSenvironment variable.--package-path <DIR>β custom path to local packages, defaults to system-dependent location. You can also set this with theTYPST_PACKAGE_PATHenvironment variable.--package-cache-path <DIR>β custom path to package cache, defaults to system-dependent location. You can also set this with theTYPST_PACKAGE_CACHE_PATHenvironment variable.--creation-timestamp <UNIX_TIMESTAMP>β the document's creation date formatted as a UNIX timestamp π°οΈ For more information, see<https://reproducible-builds.org/specs/source-date-epoch/>. You can also set this with theSOURCE_DATE_EPOCHenvironment variable.-j,--jobs <JOBS>β number of parallel jobs spawned during compilation. Defaults to number of CPUs. Setting it to1disables parallelism β‘--features <FEATURES>β enables in-development features that may be changed or removed at any time. Possible values:htmlbundlea11y-extras
You can also set this with the TYPST_FEATURES environment variable.
bestie, those features are literally in development β they may be changed or removed at any time, so don't treat them as forever-stable, okay? π
--diagnostic-format <DIAGNOSTIC_FORMAT>β the format to emit diagnostics in. Default:human. Possible values:humanshort
-h,--helpβ prints help. And yes, it points you to a summary with-h.<EXPRESSION>β the actual piece of Typst code to evaluate π
xoxo π β typst-eval, page typst-eval(1), from the General Commands Manual. That's the footer vibe; no extra date stamped on this copy, bestie π«Ά
π¦ where this page comes from
- nixpkgs unstable: typst 0.15.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms