Removing autonumbering from headings in TOC but keep numbering in

C

cecij22

I have a document with two levels of heading styles:

A. Heading 1
1. Heading 2

I have them set up as heading styles within my document. I want them to
remain as heading styles with the appropriate heading numbering in my
document but I want my TOC to look like this:

A. Heading 1...........................page #
Heading 2...........................page #

Is there any way to make to keep the heading numbering in my document intact
but suppress ONLY the Heading 2 autonumbering in the TOC?
 
P

Pesach Shelnitz

Hi,

Place your cursor anywhere within your table of contents and press Alt+F9.
You should see something like the following instead of your TOC.

{ TOC \o "1-2" \h \z \u }

Add \n "2-2". In the case of my example, the result would be as follows.

{ TOC \o "1-2" \h \z \u \n "2-2"}

Then press F9, select the option to update the entire TOC, press Enter, and
finally press Alt+F9.
 
P

Pesach Shelnitz

Hi,

I'm sorry. The method that I described will hide the page number, not the
outline number.

Pesach
 
S

Stefan Blom

You will have to use a separate style for the *text* of Heading 2, and
format the paragraph mark (¶) between the two paragraphs as hidden, to
create the appearence of one paragraph:

1 Heading 1 text here¶
1.1 ¶ <-- Heading 2; format the paragraph mark as hidden text
This is my custom style applied¶

When you hide nonprinting marks (use Ctrl+Shift+8 as a toggle) the last two
paragraphs in the above example will appear to be in the same line.

Exclude Heading 2 from your table of contents, and add your custom style
instead. For example, change { TOC \o "1-2" \h } to { TOC \o "1-1" \t "My
custom style,2" \h }.

To show/hide field codes, use Alt+F9. Press F9 to update fields.

For more, see http://sbarnhill.mvps.org/WordFAQs/RunInSidehead.htm.
 
S

Suzanne S. Barnhill

A caveat, though: I believe that formatting the paragraph mark of a numbered
paragraph as Hidden sometimes results in the number itself being Hidden, at
least in some versions of Word.

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

Stefan Blom

And I bet that those versions don't support the style separator, either.
:-(
 
S

Suzanne S. Barnhill

IIRC, there may even have been an issue with the style separator in the
first version in which it appeared, but I'm quite vague on this since I
almost never use numbered headings.

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

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