Word Doesn't Include Page Ranges in IndexLast reviewed: February 3, 1998Article ID: Q119861 |
The information in this article applies to:
SYMPTOMSWhen an item to be indexed appears on consecutive pages, Word represents those pages individually in the index, rather than showing them as a range. This happens even when you use the \g switch to gather ranges. For instance, if the word "Apple" appears on pages 4, 5, 6, and 7, Word lists each page separately in the index
Apple, 4, 5, 6, 7rather than showing a range:
Apple, 4-7Using the \g switch without also using bookmarks and XE fields will not change the way the index appears.
CAUSEBy design in Word, when you compile an index in a document that contains multiple XE fields for identical index entries, Word lists a page number for each index entry (for example, Apple, 4, 5, 6, 7). In contrast, when the range of pages is bookmarked, Word compiles the index showing this range (for example, Apple, 4-7).
WORKAROUNDUse bookmarks and a special XE field to tell Word to show a range for certain words.
Word Versions 6.x, 7.x, 97, and Word 98 Maintosh Edition
Word Version 2.x
MORE INFORMATIONBy default, Word uses an en dash to separate the beginning and ending pages in an indexed range. You can specify a different separation character by using the \g switch. To specify a different separator, add the \g switch and the separator character, with the separator in quotation marks.
This field Yields this result -------------------------------------------------------- { INDEX \g " to " } Apples, 4 to 7 { INDEX \g ":" } Apples, 4:7 |
Additional query words: index entry xe bookmark range page pages switch
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |