

That’s why in lines 3 and 4 of the example above, the formatting - color or underlining - appears.Ĭharacter styles, however, always get sucked into the TOC, whether you apply them to a letter or the whole paragraph. If you select the whole paragraph and apply the local formatting (like changing color or size), it’s ignored in the TOC.


Strip the FormattingĪny local character formatting applied to a portion of a paragraph gets included in the TOC. But you can remove the undesirable dross relatively quickly, or even set up the headings in a way that they won’t require so much clean-up later. There’s no way to make a TOC and automatically strip out the stuff you don’t want. Unfortunately, these are the facts of life. The third, fourth, and fifth lines have some underlining in it, picked up from local formatting in the document. The first chapter head has a shift-return in it, so it breaks across two lines - we only want it on one line in the TOC. And, worse, if you inserted any forced line breaks (Shift-Return/Enter) in the heading - usually in order to make it look better as it breaks across two or more lines - also come along for the ride! So here’s a perennial problem: You make a long document, like a book, then build a table of contents (Layout > Table of Contents)… and the headings show up in the TOC with extra formatting and characters! Specifically, much of the local formatting or character styles you applied to a heading in the document gets pulled into the TOC, even when you wish it didn’t.
