Skip to main content
Known Participant
January 27, 2022
Answered

Challenge Numbering Pagination

  • January 27, 2022
  • 2 replies
  • 391 views

Hello Folks,

 

So! I'm going through a challenge!

 

I have a TOC for each chapter and more than 10 chapter. I would like that all TOC pages have the pagination number has: Chapter.TOC.PageTOCNumber and the chapter have Chapter.PageNumber both starting in page 1.

 

Any suggestion?

    This topic has been closed for replies.
    Correct answer Bob_Niland

    re: … have TOC for each chapter BUT not in the same file. So in the end I want to create a TOC for each chapter but out of the chapter …

    I've never done it, preferring instead to have manually maintained mini-TOCs (where overall book fairly stable), or consider the FM MiniTOC feature (which I've yet to need), but what you want sounds do-able.

    You'd need to create multiple Generated TOCs, and the trick would be having per-chapter Para styles so that the re-Gen only picks up the chapter content for that chapter's TOC.

    Perhaps:

    1. Spin off & apply chapter-specific Para Catalog defs for TOC-index Paras, e.g.
      Heading1 → Heading1.Ch01
      Heading2 → Heading2.Ch01
    2. Create TOC via normal process in .book file.
    3. Import formats from existing TOC for which that's been worked out.
    4. Have it gather only the Ch##-specific Para info.
    5. Rename TOC.fm to TOC.Ch01.fm
    6. Move it in the .book to just before the Chapter.
    7. Revise the numbering for that Chapter to continue-from-previous for Chapter & probably page numbering.
    8. … repeat #2-7 for all chapters …

    2 replies

    Known Participant
    January 31, 2022

    Let me make it easier...

     

    Lets say that I want to have TOC for each chapter BUT not in the same file. So in the end I want to create a TOC for each chapter but out of the chapter

     

    Make sense?

    LinSims
    Community Expert
    Community Expert
    January 31, 2022

    Do you want a single table of contents that has information for all the files in it, like in a book, or do you want multiple, separate table of contents files, one for each chapter? The first is very easy, the second will be ... interesting, and I at least would have to think about it when I'm not banging my head against reading data communication standards.

    Bob_Niland
    Community Expert
    Community Expert
    January 27, 2022

    Can you show some examples of what you'd like to see in the TOC and on a typical page, perhaps for:
    Chapter 3 page 7

    I'm a bit unclear based on your initial question.
    And is this just about what appears on pages, or does the PDF page metadata have to match?

     

    In general, TOC RefPage numbering expressions are completely independent of page header/footer number expressions.