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 ∑𝑛𝑘=1𝑘=𝑛(𝑛+1)2, an integral is ∫10𝑥2d𝑥=13, and a map between objects is 𝑓:𝐴→𝐵. Greek letters are spelled out: 𝛼, 𝛽, 𝜀, 𝒞.

Display

∑𝑛𝑘=1𝑘2=𝑛(𝑛+1)(2𝑛+1)6 (𝑎𝑐𝑏𝑑)(𝑥𝑦)=(𝑎𝑥+𝑏𝑦𝑐𝑥+𝑑𝑦) limℎ→0𝑓(𝑥+ℎ)−𝑓(𝑥)ℎ=𝑓′(𝑥)

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.