mvuorre / quarto-preprint

A Quarto extension for preprints using Typst
https://mvuorre.github.io/quarto-preprint/index.pdf
Creative Commons Attribution 4.0 International
34 stars 2 forks source link

Set paragraph spacing properly #13

Closed mvuorre closed 2 weeks ago

mvuorre commented 1 month ago

https://github.com/mvuorre/quarto-preprint/blob/2280fd88ad24e5b0eb4826078f2a923b7597f4b9/_extensions/preprint/typst-template.typ#L120

https://staging.typst.app/docs/reference/model/par/#parameters-spacing

danieltomasz commented 2 weeks ago

How I set this between versions

//show par: set block(spacing: spacing)

if sys.version >= version(0,12,0) {
  set par(spacing: spacing)
} else {
  show par: set block(spacing: spacing)
}

A relevant reference from typst forum https://forum.typst.app/t/how-to-change-text-spacing/1121/2