typst-watch(1)

NAME
typst-watch - Watches an input file and recompiles on changes

SYNOPSIS
typst-watch [--root] [--font-path] [--diagnostic-format] [-f|--format] [--open] [--ppi] [--flamegraph] [-h|--help] <INPUT> [OUTPUT]

DESCRIPTION
Watches an input file and recompiles on changes

OPTIONS

--root=DIR
    Configures the project root (for absolute paths)
    May also be specified with the TYPST_ROOT environment variable.

--font-path=DIR
    Adds additional directories to search for fonts
    May also be specified with the TYPST_FONT_PATHS environment variable.

--diagnostic-format=DIAGNOSTIC_FORMAT [default: human]
    The format to emit diagnostics in
    [possible values: human, short]

-f, --format=FORMAT
    The format of the output file, inferred from the extension by default
    [possible values: pdf, png, svg]

--open=OPEN
    Opens the output file using the default viewer after compilation

--ppi=PPI [default: 144]
    The PPI (pixels per inch) to use for PNG export

--flamegraph=OUTPUT_SVG
    Produces a flamegraph of the compilation process

-h, --help
    Print help

<INPUT>
    Path to input Typst file

[OUTPUT]
    Path to output file (PDF, PNG, or SVG)