typst

    Typst typesetting command for MoonX.

    Download zip
    Author
    Version
    0.1.2
    License
    Apache-2.0
    Last updated
    8 hours ago
    Downloads
    38

    #typst

    Compile and inspect Typst documents through MoonX.

    #Usage

    moonx cli/typst compile input.typ output.pdf moonx cli/typst compile --pages=1 input.typ output.svg moonx cli/typst eval '1 + 2'

    Compile PDF, PNG, SVG, HTML or bundles; watch inputs, evaluate expressions, query elements and inspect fonts/configuration. Use help COMMAND for subcommand options.

    #Common options

    OptionDescription
    --root DIRConfigures the project root (for absolute paths)
    --input key=value, -i key=valueAdd a string key-value pair visible through sys.inputs
    --font-path DIRAdds additional directories that are recursively searched for fonts
    --ignore-system-fontsEnsures system fonts won't be searched, unless explicitly included via --font-path
    --features FEATURESEnables in-development features that may be changed or removed at any time
    --format FORMAT, -f FORMATThe format of the output file, inferred from the extension by default
    --pages PAGESWhich pages to export. When unspecified, all pages are exported
    --helpShow help.
    --versionShow the version.

    Use --help for the complete option list.

    #Notes

    • Packages and templates must already be installed locally. Network downloads, self-update, viewer opening, completion generation and timing traces are unsupported.
    • HTML needs --features html; HTML watch also needs --no-serve. Compilation is single-threaded and watch performs full recompilation.
    • Inputs, fonts and output may remain in memory. Canonicalization is lexical, local time defaults to UTC and full Rust Typst parity is not claimed. See LICENSE and NOTICE for upstream attribution.

    See the compatibility guide for the supported profile.

    Source Files