TOC limiting heading range

G

GavinS

I have a TOC written like this;

{TOC\o "2-2\ z \ f \ t "Heading1,1" \ n 1-1}

So it includes
outline 2
Style Heading 1 but not page numbers for this level
All TC.


I would like to add style "Heading 3 but only from chapters 14 to 16.

Can this be done?

Thanks
 
S

Stefan Blom

Since you only want three of the Heading 3 paragraphs, you can create a new
style for those paragraphs (you can base it on Heading 3 to have it inherit
any properties, including numbering). Then edit the field code like this:

{ TOC \o "2-2" \z \f \t "Heading 1,1,My Custom Style Name Here,3" \ n
"1-1" }

Alternatively, use TC fields to add page number entries for the specific
Heading 3 paragraphs; if you choose this method, you don't have to modify
the TOC field code since it already contains the \f switch.

To add TC fields, you can use the Mark Table of Contents Entry dialog box,
which you can display by pressing Alt+Shift+O. See also
http://sbarnhill.mvps.org/WordFAQs/TOCTips.htm.

Of course, no matter which method you choose you will have to update the TOC
after changing the code.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top