Skip to main content
Known Participant
Jan 27, 2022 4:51 PM UTC
Answered

Challenge Numbering Pagination

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 is closed to new replies. Start a new post to keep the conversation going.
    Bob_Niland
    Bob_NilandCorrect answer
    Community Expert
    Jan 31, 2022 8:36 PM UTC

    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 …

    8 replies

    Known Participant
    Jan 31, 2022 7:49 PM UTC

    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?

    Translate
    LinSims
    Community Expert
    Community Expert
    Jan 31, 2022 8:29 PM UTC

    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.

    Translate
    Bob_Niland
    Community Expert
    Community Expert
    Jan 27, 2022 6:24 PM UTC

    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.

    Translate