Copy link to clipboard
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
Copy link to clipboard
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.
The banner is in the master page as not "live".
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.
Running H/F 13Where "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.
What I mean by "not live" is that it is not editable on the body pages.
I think this merits a more precise description...
The banner is a table that consists of 6 rows and 1 column. It is used in place of the header and because of that the program sees the margin as 2.1 in. instead of the usual 0.5 or 1.0.
I really like the way you think, but unfortunately there is nothing that is unique to each page. It appears that the method you described will not work on anything that comes from the master page. I eventried making the paragraph 2 pt and putting it at the top of each of the body text boxes in the master pages. I am only designing the template and have no control over content except to suggest that they do certain things or not.
I think that was a pretty good idea, can you think of any others?
If you don't mind pasting a small object (invisible in final render) on each page, anchored to any arbitrary text, I have another hack to suggest.
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.
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.
Yes, that is precisely what I did. Worked like a charm.
Thank you for all your suggestions. Could not have done it without you.
Copy link to clipboard
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
A scripting solution was not what I was looking for, but thank you for taking the time to reply.