Skip to main content
New Participant
August 19, 2023
Answered

Page numbering to restart on every subsection start

  • August 19, 2023
  • 5 replies
  • 590 views

Hello everyone!

is there a way out to get it right
1. Chapter

1.1. Subsection

1.2. Subsection 

...

And I'm trying to make page numbers like
1.1 - 1, 1.1 - 2 ...

1.2 - 1, 1.2 - 2 ...
Thank you for any tries to help ) 

    This topic has been closed for replies.
    Correct answer frameexpert

    The <$curpagenum> variable always numbers consecutively within a document. For your scenario, you would need to have separate FrameMaker documents for each one where you want the page numbers to restart.

    5 replies

    Barb Binder
    Community Expert
    August 19, 2023

    I see. So Rick immediately grasped the situation, while I was still flailing around.

     

    You can't start page numbering over in the middle of a FrameMaker document, so his initial answer was correct. You will need a new file each time you want to set the page numbering back to one.

     

    ~Barb

    ~Barb at Rocky Mountain Training
    Barb Binder
    Community Expert
    August 19, 2023

    ah, OK. I thought you were asking about both. 

     

    Let's focus on the page numbering. 1.1–1.

    I recognize that the first one is the chapter number and  the last one is the page number – what does the .1 represent after the chapter number?

     

    ~Barb 

    ~Barb at Rocky Mountain Training
    basilchikAuthor
    New Participant
    August 19, 2023

    Oh, 1.1 - 1 [running heading 2] - [currentpagenum]

    I can not figure out how to reset page numbering on the page where heading 2 is present within one file document.

    Community Expert
    August 19, 2023

    Hi,

    Rick said that the <$curpagenum> variable cannot be reset in a file. That's correct. That means that the variable either continues the page numbers from the last file or starts at the page number which you set in document numbering properties.

    Best would be that your heading2 starts a new file.

    If you really need that the page number restarts inside of a file, you could do it this way (still manually, but easy):

    Create two paragraph formats for the page numbers, e.g. page1 and page2. They will be emptly. And both should have only autonumbering activated:

    page1: <n=1>

    page2: <n+>

    For page1 and page2 also set Next Paragraph Tag to page2.

    Then go to the master page view and add another text frame for the page number. In Graphics | Object Properties assign a label, e.g. B and activate Autoconnect. Assign page1 to the paragraph in this text frame.

    Then go back to the Body pages. Check that Autoconnect is still activated. If not, activated it also on the Body page.

    Now put the insertion mark in the B text frame (check, that page1 is set) and just press ENTER until all pages are filled with page numbers. When you want to change it, assign page1.

    You can easily automate this with ExtendScript.

    Best regards, Winfried

    Barb Binder
    Community Expert
    August 19, 2023

    Did you watch the one on numbering? I explain how to set up these numbered paragraphs in the second half, IIRC.

    https://www.youtube.com/watch?v=PtPQ7fZM564

     

    ~Barb

    ~Barb at Rocky Mountain Training
    basilchikAuthor
    New Participant
    August 19, 2023

    Sure, I've absorbed it, and in my very case its the page numbering not letting me sleep at night :).

     

    Barb Binder
    Community Expert
    August 19, 2023
    basilchikAuthor
    New Participant
    August 19, 2023

    Thank you, Barb

    i' be already watched and triple rewatched you latest YouTube FrameMaker  classes

    frameexpert
    frameexpertCorrect answer
    Community Expert
    August 19, 2023

    The <$curpagenum> variable always numbers consecutively within a document. For your scenario, you would need to have separate FrameMaker documents for each one where you want the page numbers to restart.

    basilchikAuthor
    New Participant
    August 19, 2023

    Thank you for reply. I couldn't even realize that FrameMaker unable to do what ms word does 

    Bob_Niland
    Community Expert
    August 19, 2023

    Depending on output workflow (specifically, having PDF page numbers match what's visible on page) … what's visible on page doesn't have to be the FM system variable for that ‹$curpagenum›.

    It could be a user-defined autoumbered para, consisting of just the number.