How to change the margin depending on the page number being even or odd?

You can’t have arbitrary margins per page since Typst’s layout currently requires that all continuous containers have the same size (continuous: not divided by a page break) but if you just need to switch back-and-forth to account for binding, there’s a tool specifically for that: margin dicts can contain inside and outside keys that automatically flip each page.

I think that would be sufficient for you; if not let me know what’s missing :)

2 Likes