I have a document with legal numbering. I would like to get the Table of Contents (TOC) shown below. The key point is that all of the level 1 paragraphs but only some of the level 2 paragraphs are to appear in the TOC.
(I do know how to generate a TOC with all Level 1 paragraphs, or all Level 1 and 2 paragraphs.)
My requirement is that not all of the level 2 paragraphs are to be shown in the TOC, only the ones described as ‘sub-headings’. I can’t find an way to define the second level “headings” differently from the second level “paragraphs”, so that only the former appear in the TOC, yet both continue with the legal numbering in the body of the document.
I feel sure its to do with Style definitions, but I can’t seem to figure it out.
Document Body with legal numbering
1. First Heading
1.1 A paragraph with some text
1.2 A paragraph with some other text
1.3 Another paragraph about something
2. Second Heading
2.1 A sub-heading
2.1.1 A paragraph about something
2.1.2 Another paragraph about something
2.2 Another sub-heading
2.2.1 This paragraph describes something
2.2.2 Another paragraph describing something
3. Third Heading
3.1 A paragraph of text
3.2 Another paragraph of text
Table of Contents (desired)
1. First Heading
2. Second Heading
2.1 A sub-heading
2.2 Another sub-heading
3. Third Heading