Hello,
I am trying to create such a header but I can't seem to be able to achieve this.
set page(
paper: "a4",
margin: (x: 2.5cm, y: yPageMargin),
header: locate(loc => {
rect(fill: red,
"Foo"
" "
[#counterInt]
rect(fill: red)
}),
header-ascent: 0%
)
Even then it doesn't seem to stack like in the normal page flow and I am clueless how to achieve it.