smarter renumbering of page titles for the TOC