MarkButler
Programmer
I have a macro I am creating which needs to convert page numbers contained in the Table of Contents (TOC) as "2.5" where "2" is the chapter and "5" is the page within the chapter. If I go to page 2.5 in the manual and get the page number using the command "?Page()" I get "5". Is there a way to get the page number relative to the beginning of the document? Currently I am starting at the top of the document and counting the number of pages until I get to the correct chapter (?ChapterNumber) and adding the page number to it. Is there a better way?