Are the relatives length scaled with page size?

Hello,
When creating a template for a student song book, i found out that the size in cm are not actually the size displayed when printing a page.
For example :

#v(0.5cm) // 1cm when printed on a4 or a6 format

I’m kind of new in the Typst / LateX, and even thought i think it migth be a scaling issue with my pages, i wonder if there’s concept that i don’t under like maybe a special margin around the text inducing more spacing.

You can check an example here in the file “format.typ”:
https://typst.app/project/rxJdkxQZb6FrIuv59NVJxS

Thank you in advance for your help

That vertical spacing of 0.5cm gets added to the default paragraph spacing (or block spacing), which is automatically put below the above text. The paragraph spacing by default is 1.2em, which translates to around 0.5cm, so the total spacing in fact becomes 1cm.

The vertical spacing element has a weak parameter though, which you can use to collapse any surrounding spacings. Then, only the explicit v(0.5cm, weak: true) remains.

1 Like