[…] \frac{n(n+1)}{2} in latex turns into (n(n + 1)) / 2 in typst […]
Note that one can also write that as frac(n(n+1), 2) ^[1][4]^.
References
- Type: Webpage. Title: “frac”. Publisher: “Typst”. Location: “Documentation”>“Reference”>“Math”>“Fraction”. Location (URI): https://typst.app/docs/reference/math/frac/. Accessed: 2026-03-18T05:34Z.
- Type: Anecdote. Published: 2026-03-19T07:51Z.
-
echo "#set page(width: auto, height: auto, margin: 0pt); $ (n(n + 1)) / 2 $" | typst compile - o.png
-
- Type: Anecdote. Published: 2026-03-19T07:51Z.
-
echo "#set page(width: auto, height: auto, margin: 0pt); $ frac(n(n+1), 2) $" | typst compile - o.png
-
- Type: Meta. Published: 2026-03-19T07:53Z.
- Both
(n(n + 1)) / 2, andfrac(n(n+1), 2)result in
in Typst ^[2][3]^
- Both