How do I set the line spacing like LaTeX?

I see. Have a look at: Wrong leading formatting in Paragraph · Issue #159 · typst/typst · GitHub and What's the equivalent of MS Word's 1.5 line spacing? - #2 by Andrew

A suggested approach:

#let leading = 1.5em // Your line spacing (1, 1.5, 2, etc.)
#let leading = leading - 0.75em // "Normalization"
#set par(leading: leading, spacing: leading)