I'm not sure you can do it in the not-yet finalised pdf but if you just write out your table of contents pages to the end of the document there are several pdf utilities that can re-order the pages (or just edit it in emacs if the stream isn't compressed:-) such a post process might be quicker than re-running luatex over the document (perhaps?)
David On 1 August 2018 at 13:23, Martin Schröder <[email protected]> wrote: > 2018-08-01 13:37 GMT+02:00 Patrick Gundlach <[email protected]>: >> is there any way to re-order the pages? For example, when I write page #7, >> I'd like it to appear as page #2. This would it make creating table of >> contents much more faster in big documents. >> >> I remember that Hartmut H. had a patch for that but I don't know the status >> of it. > > It was a patch for pdftex and never merged. May be in the pdftex 1.50 > branch... > > Btw: It was inspired by m4. > > Best > Martin
