page count won't count total number of pages in all chapters.

Enthusiast ,
Aug 19, 2021 Aug 19, 2021

Copy link to clipboard

Copied

I have a weird problem with a book in FrameMaker 2020. It is a book with multiple chapters, and the footer in each chapter has a "<$curpagenum> of <$lastpagenum>" ("5 of 20" for instance).

While the counter works ok on the first page of the last chapter counting "5 of 20", the first page in the first chapter which should count "1 of 20", counts 1 of 5

The chapters numbering properties seem to be correct in the book with the first files page numbering starting at 1 and the following chapters/page numbers being set to "continue". For some reason the first chapters <$lastpagenum> does not reflect the books total number of pages even if I have updated the book.

I must be overlooking something... but what?

Views

102

Likes

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

correct answers 1 Correct answer

Adobe Community Professional , Aug 19, 2021 Aug 19, 2021
The <$lastpagenum> variable only works at the document level, not the book level. I used to have a plug-in called BookPageCount which worked at the book level, but it is long since retired. If you need this at the book level, I may be able to code something in ExtendScript. Please let me know if you are interested. Thanks. -Rick

Likes

Translate

Translate
Adobe Community Professional ,
Aug 19, 2021 Aug 19, 2021

Copy link to clipboard

Copied

The <$lastpagenum> variable only works at the document level, not the book level. I used to have a plug-in called BookPageCount which worked at the book level, but it is long since retired. If you need this at the book level, I may be able to code something in ExtendScript. Please let me know if you are interested. Thanks. -Rick

Likes

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
Enthusiast ,
Aug 19, 2021 Aug 19, 2021

Copy link to clipboard

Copied

That was a fast answer! Thank you. I have rarely used that function and never realised it was document wide only. Kind of strange actually. I guess I'll have to make it using cross references then. Thanks for the offer of a script!

Likes

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
Adobe Community Professional ,
Aug 22, 2021 Aug 22, 2021

Copy link to clipboard

Copied

StudioSm: I guess I'll have to make it using cross references then.

If it comes to that, as you might already know, you'll only be able to xref to a last chapter file page with Flow A content. Any empty pages auto-created, due to file-level page layout options, won't have any Flow A content on them to xref.

 

…now if FM had an option for Paragraph Pagination of: Bottom of left page
then we could create a small invisible Para type with which to end every chapter.

Likes

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
Adobe Community Professional ,
Aug 19, 2021 Aug 19, 2021

Copy link to clipboard

Copied

You do have something! You wrote one called SetSelectedComponentsPageCount for me a couple years ago that should work just as well for @StudioSm.

Likes

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
Adobe Community Professional ,
Aug 19, 2021 Aug 19, 2021

Copy link to clipboard

Copied

I forgot about that one :-).

Likes

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
Enthusiast ,
Aug 22, 2021 Aug 22, 2021

Copy link to clipboard

Copied

@frameexpert The script "SetSelectedComponentsPageCount".... is it for sale?

 

 

Likes

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
Adobe Community Professional ,
Aug 23, 2021 Aug 23, 2021

Copy link to clipboard

Copied

LATEST

Hi Bjørn, I sent you an email off list. Thanks. -Rick

Likes

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