I always want an even number of pages for my document. To do that, I add a pagebreak when the last page number is odd. The problem is that, since I change the page parity in a context block where I check the page parity, I get a warning.
#lorem(100)
#context if calc.odd(here().page()) { pagebreak() }
Layout did not converge within 5 attempts (warning)
How to get rid of that?
I think that pagebreak(to: "even")
cannot help in this case, since I don’t want any pagebreak when the page ends on an even page.