Files
typst-templates/.cursor/skills/tinymist/SKILL.md

50 lines
1022 B
Markdown

---
name: tinymist
description: >-
Compile and check Typst documents in this project with tinymist, not typst-cli.
Use when compiling .typ files, checking Typst errors, or validating report output.
---
# Use Tinymist for Typst
Always use **tinymist**, never `typst` CLI. Do not download or install typst.
## Binary
```bash
/home/diaco/.local/bin/tinymist
```
Fallback: `tinymist` if on PATH.
## Compile
From project root:
```bash
tinymist compile --font-path template_files main.typ main.pdf
```
Other entry points:
```bash
tinymist compile --font-path template_files main.travel-report-example.typ
tinymist compile --font-path template_files main.product-test-example.typ
```
Always pass `--font-path template_files` (fonts: `IRNazanin`, `IRZar`).
## Check errors
Use `tinymist compile` — errors print to stderr. For a quick pass/fail:
```bash
tinymist test main.typ
```
## Do not
- Run `typst compile`
- Download typst from GitHub releases
- Install typst via cargo unless the user explicitly asks