Skip to main content
Inspiring
August 5, 2013
Question

TOC for hierarchical book using child book TOCs?

  • August 5, 2013
  • 1 reply
  • 1431 views

(My first hiearchical book in FM11. Win7x64.)

I've created a book of two child books.

Each child book has:

  1. A generated TOC as its first file. Its first paragraph in the primary flow has the paratag dtc-ChapTitle.
  2. Content as its second file, with tags such as h1-Head1, h2-Head2, and other paratags.

(Side note: that child book design implements the idea of a chapter TOC without using a text inset. That's how this adventure started.)

dtc-ChapTitle appears only in the (generated) TOCs of the child books (1's above), not in the content files (2's above).

The parent book has two child books and a generated TOC. The generated TOC of the parent book is to include dtc-ChapTitle, h1-Head1, and other paratags.

The parent TOC does generate with h1-Head1, and other paratags, but not dtc-ChapTitle.

Maybe I don't know how to think about hierarchical books and am clinging to flat-book thinking.

Am I being gently nudged toward using the <$chaptertitlename> variable somehow?  Section "cover pages" ?  But how do I make a "chapter TOC" the first file in the child book -- or otherwise make the chapter TOC appear before the chapter that it describes?

Best regards,

This topic has been closed for replies.

1 reply

Arnis Gubins
Inspiring
August 5, 2013

IIRC, you need to manually update/regenerate child books first when working with a hierarchical book. Also, you have to follow standard FM rules where the first file in the parent book needs to contain all of the tags used (that you need in your master TOC) in all of the child books in order to properly build the master TOC.

Inspiring
August 5, 2013

@Arnis,

Thanks.

I believe the parent book meets both of those conditions: child books updated first, and the first parent file has all tags.

Moving the first child book to be the first "file" in the parent book does not change the result.

It's as if the parent TOC cannot find a non-TOC paratag in the child TOC.

Arnis Gubins
Inspiring
August 6, 2013

Have you tried inserting some sort of "cover page" file (containing all of the tags) as the very first file before the child books?

The hierarchical books were designed for structured FM. There are a few blogs on these that might provide some more clues (I haven't needed to use this functionality):

http://blogs.adobe.com/techcomm/2009/05/xml_authoring_projects_using_hierarchical_books.html

http://blogs.adobe.com/techcomm/2009/06/numbering_in_hierarchical_books.html

http://blogs.adobe.com/techcomm/2009/09/fm9_hierarchical_books_new_variable.html