This page has math: typst in its frontmatter, which pins it to Typst: every
$…$ below is compiled by Typst, and anything Typst cannot parse is flagged as
an error instead of quietly being reinterpreted as LaTeX. That is the point of
pinning — it keeps a page that has been cleaned up clean.
Pages without a math: key are the relaxed case: they mix both freely. See
the mixed note for that.
Inline
A sum is , an integral is , and a map between objects is . Greek letters are spelled out: , , , .
Display
Why Typst and not LaTeX
Typst’s math syntax is closer to how the formula is read aloud. Compare a fraction of two sums:
| source | |
|---|---|
| Typst | (sum_i a_i)/(sum_i b_i) |
| LaTeX | \frac{\sum_i a_i}{\sum_i b_i} |
Neither is better; they suit different hands. The point is that you do not have to agree with your co-authors — the choice is per page.
Switching back
Drop the math: typst line and the page goes back to the default: Typst first,
LaTeX for anything Typst rejects. Use math: latex to pin it the other way. If
you only need one Typst formula in an otherwise-LaTeX page, a fenced ```typst
block always works; see the previous
post.
Obsidian's Wypst plugin is global
Wypst renders all
$…$in the vault as Typst, so LaTeX formulas look wrong in Obsidian while Wypst is on. The built site is not affected — it decides formula by formula.