4 ms·
I use Plain TeX instead of LaTeX, although whichever system you use, these would be the same problems, and there are some possibilities: - Use separate page nu
by zzo38computer 6y ago
I use Plain TeX instead of LaTeX, although whichever system you use, these would be the same problems, and there are some possibilities:
- Use separate page numbering for the table of contents.
- Since the number of table of contents entries will not change, just use two passes; you don't need a separate page numbering for the table of contents.
- Never reference page numbers within the main text; use section numbers instead. This avoids problems with their size changed.
Anyways, when I need to do this, I do it purely in TeX rather than using a separate build system. (There is a way to use insertions containing alternating marks and penalties to extract the information needed without shipping out the page.)