Skip to main content
Inspiring
May 6, 2012
Question

Is it possible to add static text to a TOC?

  • May 6, 2012
  • 2 replies
  • 996 views

Hi, Gang!

My editor has suggested that I create an annotated TOC by adding a few sentences of descriptive text under each chapter title entry in the TOC. This static text would fall between the chapter title entry and the listing of subheadings within the chapter.

While I could create this static text as a final step, manually formatting the TOC around it, I would much prefer to create this text so that it survives updating the book (and TOC).

Is this possible? The only thing I can think of is creating some markers of some sort and storing the static text as marker variables and then somehow having the TOC pick up that marker and display the text in the appropriate place, but I'm not sure if that would work, nor how I'd do it.

I welcome any suggestions for accomplishing this.

Many thanks!

    This topic has been closed for replies.

    2 replies

    Van Kurtz
    Inspiring
    May 7, 2012

    If you have the content in markers, you can do a list of markers. Be sure to create a custom marker type.

    However, I do not believe one can create a list of paragraphs (a TOC) and markers together in one list. If you did both, your last step would be to move the marker entries into the TOC list. Of course, this is not preserved during book updates, but you would not have to rewrite the inserted text.

    Inspiring
    May 7, 2012

    I'll try both of these and see which fits the workflow best. Thanks!

    David_Crowe
    Inspiring
    May 7, 2012

    Not tested, but …

    Conditional text following headings in the chapters (hide condition) could be reproduced in the TOC. If it comes through to TOC still as conditional, show conditional text in TOC only.