.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.TH typst-watch 1  "typst-watch " 
.SH NAME
typst\-watch \- Watches an input file and recompiles on changes
.SH SYNOPSIS
\fBtypst\-watch\fR [\fB\-\-root\fR] [\fB\-\-font\-path\fR] [\fB\-\-diagnostic\-format\fR] [\fB\-f\fR|\fB\-\-format\fR] [\fB\-\-open\fR] [\fB\-\-ppi\fR] [\fB\-\-flamegraph\fR] [\fB\-h\fR|\fB\-\-help\fR] <\fIINPUT\fR> [\fIOUTPUT\fR] 
.SH DESCRIPTION
Watches an input file and recompiles on changes
.SH OPTIONS
.TP
\fB\-\-root\fR=\fIDIR\fR
Configures the project root (for absolute paths)
.RS
May also be specified with the \fBTYPST_ROOT\fR environment variable. 
.RE
.TP
\fB\-\-font\-path\fR=\fIDIR\fR
Adds additional directories to search for fonts
.RS
May also be specified with the \fBTYPST_FONT_PATHS\fR environment variable. 
.RE
.TP
\fB\-\-diagnostic\-format\fR=\fIDIAGNOSTIC_FORMAT\fR [default: human]
The format to emit diagnostics in
.br

.br
[\fIpossible values: \fRhuman, short]
.TP
\fB\-f\fR, \fB\-\-format\fR=\fIFORMAT\fR
The format of the output file, inferred from the extension by default
.br

.br
[\fIpossible values: \fRpdf, png, svg]
.TP
\fB\-\-open\fR=\fIOPEN\fR
Opens the output file using the default viewer after compilation
.TP
\fB\-\-ppi\fR=\fIPPI\fR [default: 144]
The PPI (pixels per inch) to use for PNG export
.TP
\fB\-\-flamegraph\fR=\fIOUTPUT_SVG\fR
Produces a flamegraph of the compilation process
.TP
\fB\-h\fR, \fB\-\-help\fR
Print help
.TP
<\fIINPUT\fR>
Path to input Typst file
.TP
[\fIOUTPUT\fR]
Path to output file (PDF, PNG, or SVG)
