Several Tables of Contents (sort of like sub tables?) in one docum

G

Guest

I have a document that I expect will end up being around 60-75 pages. It's a
cookbook divided into sections. I want a TOC for each section but can't
figure out how to do it. When I insert a TOC it goes through the entire
document and I want TOCs for each section.

There are real sections with headers, footers, etc. Any help would be
appreciated.
 
G

Guest

Thanks to both of you, but I must be doing something wrong. I found other
posts that said to use the \b after defining a bookmark but I can't seem to
get it to work. I get the error:

ERROR! NOT A VALID HEADING LEVEL RANGE.

Here is my code:

{TOC \B APPETIZERS \O "RECIPEHEADING,1"}

I also tried these and they don't work either as it pulls entries from the
entire document

{TOC \h \z \t \b"RecipeHeading,1" }

{TOC \h \z \t \b Appetizers "RecipeHeading,1" }

"Appetizers" is the bookmark and "RecipeHeading" is the name of the style.
 
S

Suzanne S. Barnhill

Well, the bookmark name must follow the \b switch and the style name the \t
switch. The \o switch is valid only for numbers of built-in headings. So
what should work is this:

{TOC \h \z \t "RecipeHeading,1" \b Appetizers }

or

{TOC \h \z \b Appetizers \t "RecipeHeading,1" }

For more on TOC switches, see the Help topic "Field codes: TOC (Table of
Contents) field" and/or the article at
http://word.mvps.org/FAQs/Formatting/TOCSwitches.htm.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
S

Suzanne S. Barnhill

Glad I could help, and interesting that the order of the switches matters,
given that in many fields it doesn't. I certainly consider the latter field
more logical, though.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 

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