I discover how to use a header in table that can be repeat if #pagebreak() is used.
But I would like to know if it is possible to have a header (that is a all table) that can be repeated when page change but without using #pagebreak() function. That automaticly repeat a header if page change.
And in a second time, this header can change too.
An example of the need :
// set page a4
MY HEADER HERE (a table)
Some text... I don't know the size...
(Here according to the amount of text, the page is automaticcly changed)
MY HEADER HERE (I want it repetead here).
...
At a moment HEADER CHANGE
MY_NEW_HEADER for now will be that.
...
have a header (that is a all table) that can be repeated when page change but without using #pagebreak() function. That automaticly repeat a header if page change.
Typst does that out of the box with the repeat parameter of table.header (see documentation):
Thank you for you quick answer. I will test that.
But for the first part, I don’t want to repeat the header of a table.
I want to repeat all the table.
I wonder, if there is a way to have a header and footer for all the page that is repeated and at a moment, we can change it.
Does it have to be a table header or are you just looking for a header and a footer that are repeated on every page? In the latter case, you can use the header and the footer of the Page Function – Typst Documentation. To change the header and the footer after two pages, just call the set rule for the page again. Note that this will automatically create a new page.