Many academic texts have different page numbers. Usually the pre-textual part is listed with Roman numerals and starts on the second page. After the pre-textual part, immediately start the text with a Arabic numbering . Starting from 1 .
For example, the pre-textual part could end on page 17 but we would see it printed in the footer xvi ( 17-1=16
, since the cover was not numbered) then the part was started textual on page 18, however the value printed in the footer is 1 . At the end of the document, the number 120 is printed in the footnote, but the total number of pages is 120 + 17 = 137, since those pages were not counted in the final section.
My intention is to create a catalog sheet automatic for this I need a field with the page number present at the end of each section (understand the number that appears printed on the sheet). Following the example:
Campo 1 = xvi
Campo 2 = 120
To create the campo 2
try the following code {NUMPAGE}
but return the value 137. You could type {={NUMPAGE}-17}
but this would not work if the number of pages in the pre-textual part grows.
If anyone has a solution in VBA, it also helps me.