View Single Post
 
Old 03-20-2018, 02:16 PM
slaycock slaycock is offline Windows 7 64bit Office 2016
Expert
 
Join Date: Sep 2013
Posts: 255
slaycock is on a distinguished road
Default

It is well worth exploring the switches for the TOC field, particularly the \b and \t switches.

The \b switch restricts the headings included in the toc to the defined bookmark.

The \t switch allows a comma separated list of styles names and outline level.

I have documents with many toc in them which are managed quite well with appropriate use of the \t and \b switches. I've included a selection below.

Overall table of contents

{toc \b TOC_ALL \t "Heading 1,1,Heading 2,2,S Heading 1,1,P Heading 1,1,A Heading 1,1,A Heading 2,2,R Heading 1,1, R Heading 2,2,TOC Heading,2,TOF Heading,2,2, Title,1, ,TOC Heading, 1, TOF Heading,1" \h }

Module 1 TOC

{toc \b TOC_API1 \z \t "S Heading 1,1,S Heading 2,2,S Heading 3,3, S Heading 4,4, TOC Heading,1,TOF Heading,1, Title,1" \h }

TOC of a section within Module 1

{toc \b TOC_32s22 \z \t "S Heading 4,1,S Heading 5,2,S Heading 6,3, S Heading 7,4, TOC Heading,1,TOF Heading,1, Title,1" \h }

The link for the switches for the TOC field is below

https://support.office.com/en-ie/art...rs=en-IE&ad=IE
Reply With Quote