Welcome to MSDN Blogs Sign in | Join | Help

The Microsoft Office Word Team's Blog

All things Microsoft Office Word, from the Word team.
Taking Control of Your Table of Contents or Document Map

As discussed in this previous post, table of contents and the Document Map are designed to work best with documents that use styles. Styles not only apply a look and feel to a document, but also provide semantic structure. For example, applying a Heading 2 style to some content that exists under a Heading 1 style implies hierarchy within a document.

Technically speaking, this hierarchy is represented as Outline Levels within paragraphs. In the case of heading styles, each heading level is formatted with the appropriate built-in heading style. For example, Heading 3 applies an outline level of Level 3. This hierarchy is easily represented within a Document Map or table of contents because Word will indent content based on outline levels. In other words, Heading 2 appears indented compared to Heading 1.

What happens if you want to apply one of these styles, say Heading 1, to a paragraph for the look, but don't want that paragraph to show in your document hierarchy (via the Document Map or table of contents? What do you do?

Well, I was asked this question recently and thought it would make for a good post on our blog.

To illustrate the scenario, let's say I want to make this document below (notice the table of contents and Document Map):

Look like this document below (notice the change in the table of contents and Document Map, but not the look of the document):

There are several ways you can accomplish this scenario, but here is one way:

  1. Open up your Word document that you want to modify
  2. Place your insertion point (IP; it's the blinking cursor you see when you click anywhere in a document) in any text that has a Heading 1 style applied
  3. Right click
  4. Click on Styles | Save Selection as a New Quick Style as shown below:

  5. At this point you are creating a new style that looks the same as Heading 1. You can call this new style anything you would like
  6. At this point you will see this new style appear in the Quick Styles gallery on the Home tab. In the Quick Styles gallery right click your new style that you created
  7. Click modify

  8. In the Modify Style dialog, click on Format | Paragraph, which is at the bottom left of the dialog

  9. In the Paragraph dialog, change Outline Level to Body Text

  10. Click OK to get out of the Paragraph dialog
  11. Click Ok to get out of the Modify Style dialog

At this point you have a new style that looks like Heading 1, but will not be seen in the table of contents or Document Map. Apply this new style to all text that you do not want to show up in the Table of contents or Document Map. Do not forget to update your table of contents to see changes take effect.

Thanks,

Zeyad Rajabi

Posted: Tuesday, December 02, 2008 4:11 PM by wrdblog

Comments

mktgwrks@gmail.com said:

three tries to get access is not convenient. fix your site.

# December 8, 2008 6:39 PM

Clueless said:

In previous word versions I found the automatic glossary function really useful. Writing legal texts most of the time I have to use long expressions (e.g.: "hereinafter referred to as") continuously. Instead of having to type it all these expressions appeared from my glossary, after 4 characters I pressed enter and went on with my writing.

I'm really curious to know why this function was axed and would be most grateful for a suggestion on what to replace it with. This is probably not the place to ask a question like this, I know, but I couldn't find anywhere else and maybe I'll get lucky and someone will offer some help.

# December 10, 2008 8:12 PM

Francis said:

What a germane post! I recently had to find a way to get chapter-end action items (one-line diagnoses, prognoses, and prescriptions) from a long report repeated in an "action item appendix" at the report's end, sort of as a to-do list. After much thinking, I did it this way:

1. give every diagnosis heading level 7, every prognosis level 8, and every prescription 9

2. insert a secondary table of contents at the end of the document

3. set the TOC to show heading levels 7, 8, and 9 only

4. modify TOC 7, 8, and 9 styles not to indent, show leading periods, or page numbers

Strange use of the TOC field, eh?

# December 12, 2008 1:47 AM

Chris said:

Why won't Document Map show numbering on a heading that immediately follows a hard page break?

# December 21, 2008 10:20 PM

Learn MS Office said:

This is a great tool to use in MS Office.  Thanks!

# January 26, 2009 7:12 PM
New Comments to this post are disabled
Page view tracker