Incorrect TOC Numbering If TC Precedes SEQ FieldLast reviewed: February 5, 1998Article ID: Q119127 |
The information in this article applies to:
SYMPTOMSA 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 CAUSEBy 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.
RESOLUTIONPosition 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
|
KBCategory: kbusage
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |