Forum Discussion

marcvsantonivs's avatar
marcvsantonivs
Copper Contributor
Sep 18, 2023
Solved

Section page number and total page number

Hi, 

I wanted to add page numbering in all my sections with the total number to see where I am in each individual section. (for example Section II, page 3 of 7). I succeeded in that. But I also want the page number of the whole document on each page, and I could not find a way to achieve that as well.

 

Can somebody help?

5 Replies

  • John_Bloggs1800's avatar
    John_Bloggs1800
    Copper Contributor

    1st Page belongs to Section 1, Numbering that would show is: Page 1,  Page 1 of 2 in Section 1

    2nd Page belongs to Section 1, Numbering that would show is: Page 2,  Page 2 of 2 in Section 1

    3rd Page belongs to Section 2, Numbering that would show is: Page 3, Page 1 of 1 in Section 2

    4th Page belongs to Section 3, Numbering that would show is: Page 4, Page 1 of 3 in Section 3

    5th Page belongs to Section 3, Numbering that would show is: Page 5, Page 1 of 3 in Section 3

    6th Page belongs to Section 3, Numbering that would show is: Page 6, Page 1 of 3 in Section 3

    • Charles_Kenyon's avatar
      Charles_Kenyon
      Bronze Contributor
      Look at Greg's article. It tells how to do this.
      It is not simple, but can be done.
  • Charles_Kenyon's avatar
    Charles_Kenyon
    Bronze Contributor

    marcvsantonivs 

    First, section page numbering is an anachronism from printed manuals where individual sections are expected to be updated by people who believe they have better things to do.. This can lead to major trouble, because people just don't do that. See I want to include the chapter number with the page number in the Header - how can I do this? by John McGhie, MVP.

     

    That said, you need the SectionPages and NumPages fields.

    • Pagination Fields is my writing on the various fields involved with pagination of documents.
    • marcvsantonivs's avatar
      marcvsantonivs
      Copper Contributor

      Charles_Kenyon Thanks for your answer! Maybe I am not understanding it correctly, but I still am not able to number the document in the two ways I want to.

      I want to number the pages through the whole document from 1 to {numpages}

      Additionally, I want to have the section page number and the {sectionpages} on each page as well.

      I seem to be only able to use {pages} for one of the two, but not for both in a document.

       

      An Example with a few pages.

      1st Page belongs to Section 1, Numbering that would show is: Page 1,  Page 1 of 2 in Section 1

      2nd Page belongs to Section 1, Numbering that would show is: Page 2,  Page 2 of 2 in Section 1

      3rd Page belongs to Section 2, Numbering that would show is: Page 3, Page 1 of 1 in Section 2

      4th Page belongs to Section 3, Numbering that would show is: Page 4, Page 1 of 3 in Section 3

      5th Page belongs to Section 3, Numbering that would show is: Page 5, Page 1 of 3 in Section 3

      6th Page belongs to Section 3, Numbering that would show is: Page 6, Page 1 of 3 in Section 3

       

Resources