Microsoft KB Archive/110335

{|
 * width="100%"|

WordPerfect TOC Loses Numbering and Indentation

 * }

Q110335

-

The information in this article applies to:


 * Microsoft Word for Windows, version 6.0

-

SYMPTOMS
When you open a WordPerfect file that contains a table of contents in Word 6.0 for Windows, the heading numbers display as they were originally created in WordPerfect. However, once you update the table of contents, the heading numbers may be lost, along with any paragraph indentation, and all table of contents text becomes left justified.

CAUSE
In WordPerfect, text to be included in a table of contents must be marked first. To mark text for a table of contents, you insert the table of contents entry code [Mark:ToC,#] before the text, and you insert [End Mark:ToC,#] after the text. The # symbol represents the level number for the marked text.

In WordPerfect, when you number heading paragraphs using the Paragraph Numbers (ALT+F5) feature, paragraph numbering codes [ParNum:Auto] (automatic numbering) or [ParNum:#] (manual numbering) are inserted but are not included as text marked for a table of contents and are, thus, not included as a part of the Word table of contents entry or TC field. Only the text found immediately following the [Mark:ToC,#] code is included in the Word TC field. In the following example, only the text "Introduction" would be included in the Word TC field.

[ParNum:Auto][Mark:ToC,#]Introduction[End Mark:ToC,#] As a result, "Introduction" is the only text marked for the table of contents.

In Word for Windows, any text placed within a TC field and enclosed in quotation marks, for example {tc "Introduction"}, will be displayed when you update the table of contents. In the following example, the table of contents pulls the text in quotation marks from the TC field:

Introduction........................2 Note: Automatically numbered field codes placed within a TC field will not display a number, for example {tc "{AutoNumOut} Introduction"}.

WORKAROUND
In WordPerfect, if paragraph numbers are typed as text within the [Mark:ToC,#] code, as in the following example, they will be included in a Word TC field:

[Mark:ToC,#]I. Introduction[End Mark:Toc,#]. In this example, the Word TC field would look like {tc "I. Introduction"} and the table of contents would look like:

I. Introduction....................2

MORE INFORMATION
In Word for Windows, table of contents items that are created with the TC field are formatted with the TOC 1 style and are thus left justified.

To create indentation for table of contents entries created with the TC field, you can apply TOC styles that include indent formatting to the text.

Inserting tabs or spaces into the TC field will not indent the table of contents entry; for example, {tc " I. Introduction"} or {tc "  I. Introduction"}.