Incorrect TOC Numbering If TC Precedes SEQ Field |
Q119127
The information in this article applies to:
- Microsoft Word for Windows, versions 2.0, 2.0a, 2.0a-CD, 2.0b, 2.0c, 6.0, 6.0a
SYMPTOMS
A table of contents based on TC fields displays and prints incorrect chapter numbers when the TC fields precede the SEQ fields. For example, the following combination of fields produces a table of contents in which the chapter number begins at 0 (zero), even though the chapters number correctly in the body of the document:
{TOC \f \s chap}
{tc "One"}{Seq chap} This is chapter 1
{tc "Two"}{Seq chap} This is chapter 2
{tc "Three"}{Seq chap} This is chapter 3
The table of contents will appear as:
One..................................................0-1 Two..................................................1-1 Three................................................2-1
CAUSE
By design, the TC fields are picking up the current sequence number. The sequence number is not set or reset until the SEQ field is updated. The 0 appears in the table of contents because the number sequence is not set to 1 until the first occurrence of the SEQ field.
RESOLUTION
Position the SEQ fields before the TC fields. The following example will produce a correct table of contents:
{TOC \f \s chap}
{Seq chap}{tc "One"} This is chapter 1
{Seq chap}{tc "Two"} This is chapter 2
{Seq chap}{tc "Three"} This is chapter 3
Additional query words: winword2 2.0 2.0a-cd 6.0 word6 6.0c toc tc seq table of contents entry sequence chapter numbering incorrect winword
Keywords : kbfield
Issue type :
Technology :
Last Reviewed: November 4, 2000 |