#set page(header: [
Hello
#v(-1fr)
#v(1mm)
#line(length: 100%)
])
World
I randomly figured out v(-1fr) conveniently cancels vertical spacing, making layout explicit. But why?
#set page(header: [
Hello
#v(-1fr)
#v(1mm)
#line(length: 100%)
])
World
I randomly figured out v(-1fr) conveniently cancels vertical spacing, making layout explicit. But why?
Turns out Typst automatically clamps negative values to zero. Thanks Raf for the answer.
Project link
is broken ![]()
Updated
The only thing that cancels spacing is weak spacing like v(0pt, weak: true).