Skip to main content
Inspiring
June 21, 2011
Question

TOC in a book

  • June 21, 2011
  • 1 reply
  • 864 views

Hi there,

I have structured documents and I declared my book and my chapter element in the edd as top level elements. So far my book looks fine. Now I want to insert a TOC in the book. What is the best way to do that? Can I use the TOC that I can create over the FrameMaker menu and do I have to declare the TOC element in my EDD as well? I don't want to write a script or something like that.

Thanks.

Greetings.

This topic has been closed for replies.

1 reply

Inspiring
June 21, 2011

There are probably several different ways to add a TOC to a structured book, but this is the simplest to my knowledge.

As in an unstructured book, you add a standard TOC from the FrameMaker menu (Add > Table of Contents). Note that the table of contents is text; it is not structured. Generally, there is no need to have a structured TOC. I am guessing that most people enclose the TOC content with an element; however, it is not necessary.

If you DO want to have a TOC element, you need to declare it in the EDD as a container with only TEXT content. You also need to edit your root book element to show where the TOC element is to be.

If you DO NOT want to have a TOC element, you need to edit your root book element to allow TEXT content, along with the other elements it contains.

Dokuteam1Author
Inspiring
June 21, 2011

Hi,

thanks so far. I get a step closer. I created a TOC element in my EDD. When I now Add the TOC from the menu it is in my book as book component. How do I tell my book, that this is the Element "TOC" I specified in my EDD or how to I wrap this in my TOC element so it will not destroy my structure?

Greetings.

Legend
June 21, 2011

Dokuteam,

While possible, wrapping an entire flow in a single element can cause unpredictable results with formatting. Is there a reason that you want your TOC to be structured at all? Normally, TOCs (and other generatable files) remain unstructured, even in a book that is otherwise fully structured.

Russ