If you haven't yet output the file, there might be a way to rearrange the page ordering. However, I think it would be a lot easier to insert front end matter pages (such as TOC) before page 1 (regular content). Internally, that may very well be shuffling the page order, but you don't have to see the dirty internals. See examples/012_pages as an example. If you want to insert multiple pages, I don't know offhand whether you just use page() after page(1), or if you have to do page(2), page(3), etc. -- I will think about expanding the example.