excluding levels from the document TOC

Everything related to our flagship word processor.
Post Reply
shmuel
Posts: 8
Joined: 2019-10-18 06:55:45

excluding levels from the document TOC

Post by shmuel » 2019-12-04 01:32:45

My document has 6 levels of headings, and each of them is included in the Table of Contents. So far, so good: in the Navigator, it's nice to see all levels and be able to collapse and expand them as needed.

Now in the printed TOC (i.e., the one I'll insert at the beginning of the document), I'd like to be able to exclude certain levels of headings shown, e.g. levels 4 to 6, so that only levels 1 to 3 will be shown. At the same time, however, I'd like to keep the Navigator TOC complete.

Is it possible to have both sets of TOC – one to insert in the document, one for the Navigator?

User avatar
phspaelti
Posts: 1043
Joined: 2007-02-07 00:58:12
Location: Japan

Re: excluding levels from the document TOC

Post by phspaelti » 2019-12-04 06:46:57

As far as I can see, this does not seem to be possible.

A possible workaround is as follows:
  1. Save the styles relevant for the TOC in a style sheet called "Full TOC".
  2. Remove the "include in TOC" from levels 4-6.
  3. Save the relevant styles in a style sheet called "Short TOC".
  4. Now you can switch between the two types of TOC easily by using import from style sheet, and then overwriting the styles
Note also that since the TOC does not update automatically, if you insert the TOC using the "Short TOC" styles and then switch back to the "Full TOC" styles you will in fact have what you want until you need to update the TOC again.
philip

shmuel
Posts: 8
Joined: 2019-10-18 06:55:45

Re: excluding levels from the document TOC

Post by shmuel » 2019-12-04 11:26:39

Thank you Philip, that is clever and makes sense!

Shmuel

Post Reply