• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Using a heading to restart page numbering

New Here ,
Jul 14, 2021 Jul 14, 2021

Copy link to clipboard

Copied

Working on a document for a client that they want the pages to be numbered based on the heading.  When a new heading starts 

Basically:

Section Title 1 - 1

Section Title 1 - 2

Section Title 1 - 3

Section Title 2 - 1

Section Title 2 - 2

Section Title 2 - 3...

 

I work off of a template and it is currently set up that the writer has to manually type in the section title and page number.  With page shifting and the vast number of documents that this will be applied to, is there a way to put this numbering on the master page and automate everything?  I can set up a variable for the section title easially, but having the numbering reset every time I create a new section title is where I am stuck.

 

TIA

TOPICS
Formatting and numbering

Views

728

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 14, 2021 Jul 14, 2021

Copy link to clipboard

Copied

You need to set up autonumbering in the paragraph tag. @Barb Binder has an excellent how-to guide here. It's a little out of date, but numbering hasn't changed since then.

 

She also describes how to automate restarting lists, something you'll want for the subsection numbering each time a new one starts.

 

And if you search in this forum, there are a number of posts describing how to set up autonumbering. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 14, 2021 Jul 14, 2021

Copy link to clipboard

Copied

OK, rereading I see you're not talking about the actual heading tags but the page numbers. If you want the section number to be part of the page number, you still need to add autonumbering to your heading paragraph tags for this to work, so do that first. 

 

On your master page, you have to use one of the Running Header/Footer variables. The format should be (I think):

<$paranum[paragraph tag name]> - <$curpagenum>

 

If you want to use the actual section title as the first part, change your Running Header/Footer to:

<$paratext[paragraph tag name]> - <$curpagenum>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 14, 2021 Jul 14, 2021

Copy link to clipboard

Copied

Somewhat.  I have a <$paratext[paragraph tag name]> variable set up, but I need the <$curpagenum> to reset to 1 when I use the paragraph tag again.  I've been trying to set it up like autonumbering, but setting it up as an autonumbered paragraph doesn't allow it to be centered (I think?). 

 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 16, 2021 Jul 16, 2021

Copy link to clipboard

Copied

[EDIT] Hah! Saw Barb recommended this in a different part of this thread. Consider it a "Like" of her reply!

If the example you provided:

Section Title 1 - 1

Section Title 1 - 2

Section Title 1 - 3

Section Title 2 - 1

Section Title 2 - 2

Section Title 2 - 3...

 

means that each section title will be at the top of a page, you could break each section into its own FrameMaker file, add them all to a book, and then set the footer to display the <$chapnum> and Current Page Number variable. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 23, 2021 Jul 23, 2021

Copy link to clipboard

Copied

Sorry for the delayed response.

 

For our purposes, seperating things into seperate sections isn't really feasible.  Reason being the documents we are creating are only about 10 pages long max, but there will be hundreds, if not thousands, that will all follow the naming format.  What I'm trying to do is avoid having to manually tipe the "page name" in a box on each page and would prefer to automate it based on the heading.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 14, 2021 Jul 14, 2021

Copy link to clipboard

Copied

@Jordan Skok:

 

FrameMaker doesn't let you reset the page numbering in the middle of a file. If you want the page number to reset to 1, each section will need to be its own document. 

 

~Barb

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 14, 2021 Jul 14, 2021

Copy link to clipboard

Copied

BB: If you want the page number to reset to 1, each section will need to be its own document.

Or what appear to be visible page numbers in the document, implemented on the Master Page(s), need to be user-controlled autonumbered objects, and not just <$curpagenum>. For print-only, or where the PDF page number doesn't matter, this can work.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 14, 2021 Jul 14, 2021

Copy link to clipboard

Copied

Is this what you need? Thinking through @Bob_Niland's comment, maybe this works? I'll explain if it will work for you, but the heads have to change on each page because I'm calling the heading numbers in the footer. And to clarify—we can't use actual page numbers because you can't restart page numbers in the middle of a FrameMaker file. So as Bob pointed out, this would not number like this in a PDF. It would be consecutive numbers 1–8 in a PDF.

 

~Barb 

 

numbers.png

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 14, 2021 Jul 14, 2021

Copy link to clipboard

Copied

Are we back to maybe using Groups again? Although I suppose it wouldn't matter in this case since you're not trying to carry the chapter/section/volume number through all the files in the group.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 15, 2021 Jul 15, 2021

Copy link to clipboard

Copied

Are you asking me that @LinSims? I was looking for an option to number the pages consecutively, based on the heading auto-numbers.

 

If the sections are separate files, no groups are needed. Just <$chapnum> for the sections and <#curpagenum> for the page numbers. 

 

At this point, I really don't know what the OP needs so I guess we need to wait for clarification from them.  

 

~Barb 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 23, 2021 Jul 23, 2021

Copy link to clipboard

Copied

I need the page numbers to reset like the example you've provided, but why I am asking this question is to see if it is possible to do it in a single frame file.  The content I am producing is seperate documents at about 10 pages max, so making sepeate chapters is more work than it is worth; but there are hundreds of them, so I'm trying to avoid having to type each page name/number manually.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 23, 2021 Jul 23, 2021

Copy link to clipboard

Copied

As Barb said, it is not possible to reset the auto-page numbering in the middle of a file, especially if you are using FM's system variables so that the page number could increment.

 

You might be able to script something that will find the nearest section heading, pull the text into the footer, and manually enter the appropriate page # (either 1 or +1), as in, IF this tag is on the same page, set page # = 1; if tag is on previous page, set page # =2 and so on. I'm not a scripter, though, so I don't know if it's doable. There are quite a few scripters who hang out here, though, so if you started a thread asking for help with or someone you'd pay to write a script, I expect you'll find people. 

 

You could maybe set up multiple master pages, one for each page number as 1, 2, 3 ... (however many pages you typically have) and apply the appropriate master pages as you go? Or maybe a script that triggers the appropriate master page. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 23, 2021 Jul 23, 2021

Copy link to clipboard

Copied

LATEST

Pseudo page numbers in a single file can be problematic with cross-references and generated files because they generally use real page numbers. Another way to look at this as far as a scripting solution: continue to develop the content in a single document and then use a script to split the single document into multiple documents to get the page numbering correctly restarting for each section. The mutiple document book could just be used at publish time, while you continue to edit and update the single document. If you are interested in exploring this further, please contact me offlist. rick at frameexpert dot com

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines