# Live Markdown, LaTeX, and Typst without losing scroll.

> Write equations in one split (or let your coding agent edit them) and inspect the real typeset output beside you with zero jump back to page one.

- Canonical URL: https://hoja.crafter.run/docs/watch
- Version: 0.2.1

## Four live-reload modes.

```sh
hoja notes.md --watch      # Typst + cmarker + mitex (~100 ms warm)
hoja paper.tex --watch     # LaTeX via tectonic (incremental)
hoja notes.typ --watch     # Typst compile --root on save
hoja document.pdf --watch  # Immediate reload of an external PDF build
```

| File type | Compiler | Notes |
| --- | --- | --- |
| .md with $...$ / $$...$$ | typst + cmarker + mitex | Renders New Computer Modern math in ~100 ms warm; ideal for study derivations |
| .tex | tectonic | Incremental TeX builds; scroll position stays intact across reloads |
| .typ | typst compile --root | Compiles directly against project root so relative images and imports resolve |
| .pdf | None (direct reload) | Pairs cleanly with make, latexmk, or custom build scripts |

## Verify compilers with hoja doctor.

```sh
hoja doctor
```

hoja doctor prints exact versions for typst and tectonic on your PATH. In Rex, the Cmd+Shift+P palette includes Hoja: Watch File (Live LaTeX / Markdown) to open a live watch split beside your editor.
