--- name: typst description: 'Typst document creation and package development. Use when: (1) Working with .typ files, (2) User mentions typst, typst.toml, or typst-cli, (3) Creating or using Typst packages, (4) Developing document templates, (5) Converting Markdown/LaTeX to Typst' --- # Typst ## Compilation ```bash typst compile document.typ # compile once → PDF typst compile document.typ output.pdf # explicit output path typst compile document.typ -f png # export as PNG image typst compile src/main.typ --root . # set project root for /path imports typst watch document.typ # recompile on change typst query document.typ "