Skip to main content
robertf65853221
Known Participant
February 3, 2020
解決済み

Can I number pages one way within a document and another way in the footer?

  • February 3, 2020
  • 返信数 2.
  • 975 ビュー

Hi everyone,

I have a problem: I have several individual short (less than 20 pages) docs each of which are numbered within a banner at the top of the doc:

Page x of y pages (using <$curpagenum> and <$lastpagenum>).

They are to be included in a book (with a few other longer chapters) that has continuous page numbering in the footer from the beginning of the book to the end, (as well as a TOC) .

It might kook like this:

Page 1 of 7, 2 of 7, 3 of 7 etc. but with page 234, 235, 236 etc in the footer. What ends up hapenning is the banners in the docs reflect the master book's page numbers instead.

This is a very large book, with hundreds of individual files totaling anywhere from 500 to 1500 pages.

Is there a way to create a book with this kind of double numbering scheme (as well as a generated TOC) without having to hard code it? I've tried turning the variables in the banner to text, but they get turned back to variables when I update the book, which results in the numbering getting screwed up. 

 

I'm working in FM 2019

 

Thanks,

 

Robert

 

このトピックへの返信は締め切られました。
解決に役立った回答 Bob_Niland

You're idea got my creative juices flowing...

 

First, I followed your instructions on creating the "Invisible" paragraph tag and the variable that uses it. Then I placed text boxes with another text flow [B] in the lower right corner of each page. I then connected the boxes in the order the pages go. Then I put the invisible paragraphs in the text flow and hit return until each had the appropriate page number.

 

Success!

 

Now we have to figure out the y in x of y pages without using the $lastpagenum variable

 

 


I've been using small Anchored Frames (Outside Column) , containing Text Frames, with ¶formats later set invisible, for other purposes.

re: …y in x of y pages…

If the final instance of your object can be cross-referenced, just create an Xref format of <$pagenum>, perhaps named PageNumOnly, and add " of  " and an Xref to that final instance.

返信数 2

frameexpert
Community Expert
Community Expert
February 4, 2020

You will probably need a scripting solution for double-numbering like this. If you want to explore this, please contact me offlist and we can schedule a web meeting. Thanks. rick at frameexpert dot com

www.frameexpert.com
robertf65853221
Known Participant
February 5, 2020

Hi Rick,

 

A scripting solution was not what I was looking for, but thank you for taking the time to reply.

Bob_Niland
Community Expert
Community Expert
February 3, 2020

Where does the banner reside? (e.g. Body page or Master Page(s))

I can probably suggest one or more approaches, but the implementation would be highly dependent on the answer.

robertf65853221
Known Participant
February 3, 2020

Hi Bob,

The banner is in the master page as not "live". 

Bob_Niland
Community Expert
Community Expert
February 4, 2020

re: not "live" is new to me

Anyway, Master Pages can pick up content unique to the current Body page, by use of RunningH/F system variables, which are user-editable, and several of which are set aside with that expectation. One of the things that can be picked up is Autonumbers.

Which leads to me to the next question, is there, or can there be, any Body content that is always on every page, but is unique to each page? If so, there are a number of ways to implement this, and here's one I tried.

Let's suppose that each of the short-run document pages leads off with a HeadingP, and for the purposes of example, let's assume that ¶HP doesn't normally have any numbering. It might even be defined to be TopOfPage.

  1. Create a new Character Format, arbitrarily named Invisible, which is As-Is except for color, which can be any catalog color (inclouding a new one) that isn't used for any other purpose.
  2. In View » Color Views, move this color to Invisible for whatever Color View is used for final rendering.
  3. For ¶Heading1, in Paragraph Designer » Numbering, elect:
    ☑ Autonumber
    Format: <n+>
    Postion: End of Paragraph
    Character Format: Invisible
  4. In Master Page view, pick an RHF variable to use, perhaps
    Running H/F 13
    Edit it to: <$paranumonly[HeadingP]>
  5. In the MasterPage frame for the banner, insert:
    Page Running H/F 13 Where "Page " is typed by you, and the RHF part is inserted as that System Variable.

The AN will increment page-by-page, becoming a fake page number, and appearing in the banner. Using Color Views it will not also be visible in the HeadingPs at final render.

 

If that works for you, we can then hack how to automagically do the "…of 7" bit. Since this is FM, there are likely 42 ways to do it all.