View Single Post
  #24   Report Post  
Posted to microsoft.public.word.docmanagement
Suzanne S. Barnhill Suzanne S. Barnhill is offline
external usenet poster
 
Posts: 33,624
Default Unwanted text in TOC

What confuses me is what you are doing when you remove the number from a
style or add a number to a style in the TOC Options dialog. This doesn't
actually change the outline level of the style, nor does it apply that
outline level to those paragraphs as direct formatting; all it does is tell
Word to include the style at the specified level; as noted in
http://sbarnhill.mvps.org/WordFAQs/T...mitPageNumbers, you can swap
heading levels this way (resulting in a TOC field such as { TOC \o "3-3" \n
2-3 \h \z \t "Heading 1,2,Heading 2,1" }, which results in using TOC 1 for
Heading 2 and TOC 2 for Heading 1), though you do have to clear the check
box for "Outline levels," which removes the \u switch. So that adds another
layer of complexity to the whole subject.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org

"Pamelia Caswell via OfficeKB.com" u43222@uwe wrote in message
news:a60d228091390@uwe...
One of the most misleading is this from Word 2003 help:

\o "Headings"
Builds a table of contents from paragraphs formatted with built-in
heading styles (heading style: Formatting applied to a heading. ... For
example, { TOC \o "1-3" } lists only headings formatted with the styles
Heading 1 through Heading 3. ...

I learned 6 or 7 years ago, I think in one of the other Word forums I
attend
(Word-PC maybe), that styles with paragraph outline levels other than body
text could be picked up by the TOC. That, to me meant that \o probably
stands for paragraph outline level instead of heading level. But I have
only
seen one or two people say that. And MS never corrected its help text for
W2003.

Pam

Suzanne S. Barnhill wrote:
No, and even the TOC switches article tells little more than the Help file
because I was not really familiar with those switches when I wrote the
article. Since then I've done a lot more playing around with TOCs, but not
with the \o and \u switches.

Thanks for the reminder about the DM article; I'll read that before I
proceed.

Note that a (brief) description of the \u switch is included in the
article

[quoted text clipped - 41 lines]

Thanks.


--
Message posted via http://www.officekb.com