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

Framemaker Total Page Count with DITA

Guest
May 13, 2014 May 13, 2014

I am evaluating Framemaker 12 to use with DITA. I have a bookmap and want the footer on each resulting page in all the chapters and the index to include the Total Page Count of the book. I have attempted to follow the instructions in

Including the total page count of a book in a header or footer

However, the last document is my Index, which is only a single page. I am getting the total page count as 1. Do I need to do something extra in the dita-output.ini file or ...?

434
Translate
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 ,
May 13, 2014 May 13, 2014

You might get more help in the Structured FM forum – this one’s for unstructured FM

Translate
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 ,
May 14, 2014 May 14, 2014
LATEST

> ... want the footer on each resulting page in all the chapters and the index to include the Total Page Count of the book.

There is no variable for the total page count of a Book. The apparent "Page Count" variable <$lastpagenum> only delivers the page count of the current book component file, and is thus generally useless for anything but monolithic files.

In unstructured FM, the usual work-around is:

  • Put a Cross-Reference marker in some Body flow on the last page of the book, perhaps in an empty paragraph or in some meta paragraph using invisible or non-printing text color.
  • On the Master Pages of all book component files, in the background header or footer frame, construct the page number string, typically:
    Page X of Y
    where X is the variable "Current Page #" <$curpagenum> and
    Y is a Cross-Reference to that End-of-Book Marker, format <$pagenum>

As pages are added and deleted, run an Update Book to revise all the footers.

Now, as to how easy this is to implement in Structured Frame, that I couldn't say.

Translate
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