How to change text spacing?

I would like to increase the spacing in between lines of text. How do I do that?

This is called the paragraph “leading”. You can do #set par(leading: ...) to change it. You might also want to adjust the spacing between paragraphs, currently this is done with show par: set block(spacing: ...) but in typst 0.12 it will be simply set par(spacing: ...).

But this changes the spacing for all text, also in headings. Can I just change it for flow text?

You mean for headings that extend to several lines? I think to avoid that, you’ll need to add a second rule to override the setting just for heading: #show heading: set par(leading: ...)

And just to add it here: The default leading is 0.65em. (You will need this value to reset it for headings.)

2 Likes