Why Typst?
LaTeX is a 40-year-old toolchain held together by duct tape and prayer. Typst compiles in milliseconds, has sane syntax, and its math notation is actually readable. This entire post is a .typ file compiled to HTML at build time.
The dispersion relation
For a chalcogenide waveguide, the propagation constant expands as:
where is the group-velocity dispersion parameter, usually quoted in ps^2/m.
Generalized nonlinear Schrödinger equation
Supercontinuum evolution obeys (broken across lines for readability):
Yes, that fits on one line. Try that in Word.
A quick table
| Material | @ 1550 nm | Nonlinear index |
| SiO2 | +0.026 ps^2/m | m^2/W |
| As2S3 | −0.010 ps^2/m | m^2/W |
| As2Se3 | −0.049 ps^2/m | m^2/W |
And code blocks work too
import numpy as np
def gvd(beta2: float, L: float) -> float:
"""Accumulated GVD over length L."""
return beta2 * LClosing thought
Expect more equation-dense posts in this format. The markdown pipeline isn’t going anywhere. Now there are simply two ways to write here.