Microsoft KB Archive/260833

= WD2000: How to Create an Index in a Master Document =

Article ID: 260833

Article Last Modified on 12/6/2000

-

APPLIES TO


 * Microsoft Word 2000 Standard Edition

-



This article was previously published under Q260833



SUMMARY
You can create an index in a master document similar to the way that you create an index in a normal Word document. This article describes how to create an index in a master document.



MORE INFORMATION
Before you can build an index, you must mark the text that you want to include in the index by using Index Entry ({XE}) fields. To do this, follow these steps:  On the View menu, click Outline. If the subdocuments are collapsed, expand them. To do this, click Expand Subdocument on the Outlining toolbar. If you see only the headings of the subdocuments, click Show All Headings on the Outlining toolbar. In each subdocument, follow these steps to mark index entries for words or phrases:  To use existing text as an index entry, select the text. If you want to enter your own text as an index entry, click where you want to insert the index entry.

NOTE: Selected text automatically appears in the Main Entry box in the Mark Index Entry dialog box. If you click where you want to insert the index entry, the Main Entry box in the Mark Index Entry dialog box will be blank, and you can type the text that you want to appear in your finished index. On the Insert menu, click Index and Tables. On the Index tab, click Mark Entry to open the Mark Index Entry dialog box.

NOTE: You can also press ALT+SHIFT+X to open the Mark Index Entry dialog box. Type or edit the text in the Main entry box.

If you want to create a subentry, specify the main index entry, and then type the subentry in the Subentry box. To include a third-level entry, type the subentry text followed by a colon and then the text of the third-level entry. To mark the index entry, click Mark. Or, if you want to mark all occurrences of this text in the document, click Mark All.</li></ol>

NOTES

<ul> Mark All is available only if you selected text before you opened the dialog box--not if you typed your own text in the dialog box.</li> Mark All marks the first occurrence in each paragraph of text that exactly matches the uppercase and lowercase letters in the entry.</li> Word inserts each marked index entry as an XE (Index Entry) field in hidden text format. If you do not see the XE field, do one of the following: <ul> Click Show/Hide on the Standard toolbar to turn on Show/Hide.

-or-</li> On the Tools menu, click Options. On the View tab, click to select the Hidden text check box, and then click OK.</li></ul> </li> Because the Mark Index Entry dialog box is a modeless dialog box, you can keep the dialog box open and work on the document at the same time. To create additional index entries, click in the document, select the text or click immediately after it, click in the Mark Index Entry dialog box, and then repeat steps c and d.</li></ul> </li> After you mark all the index entries that you want, click where you want to insert the index, and then follow these steps: <ol style="list-style-type: lower-alpha;"> To make sure that the document is paginated correctly, hide field codes and hidden text. If the Index Entry fields are visible, do one of the following: <ul> Click Show/Hide on the Standard toolbar to turn off Show/Hide.

-or-</li> On the Tools menu, click Options. On the View tab, click to clear the Hidden text check box, and then click OK.</li></ul> </li> On the Insert menu, click Index and Tables, and then click the Index tab.</li> If you are building an index for text in another language, select the language in the Language box.

NOTE: The Language box includes a list of the editing languages that are turned on (enabled). Additional language options may also be available, depending on the language that you selected.</li> Do one of the following: <ul> To use one of the available designs, click a design in the Formats box.

-or-</li> To design a custom index layout, choose the options that you want.</li></ul> </li> <li>Click OK.</li></ol> </li></ol>

How to Edit, Format, or Delete Index Entries
When you mark text with an index entry, Word inserts an XE (Index Entry) field. To change an index entry, you must modify the text in the XE field. To do this, follow these steps:
 * 1) If you do not see the XE field, do one of the following:
 * 2) * Click Show/Hide on the Standard toolbar to turn on Show/Hide.

-or-
 * 1) * On the Tools menu, click Options. On the View tab, click to select the Hidden text check box, and then click OK.
 * 2) Do one of the following:
 * 3) * To edit or format an index entry, change the text inside the quotation marks. For example, {XE &quot;Text&quot;}.

-or-
 * 1) * To delete an index entry, select the entire index entry field, including the braces {}, and then press DELETE.
 * 2) Update the index. To do this, click in the left margin of the document next to the index, and then press F9.

NOTE: Do not modify or delete index entries in the finished index; otherwise, the next time you rebuild the index, your changes will be lost.

How to Create Multiple Indexes in a Document
<ol> <li>Mark the index entries in your document.</li> <li>Create a bookmark for the section that you want to create an index for. To create a bookmark, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>Select the text that you want in the section.</li> <li>On the Insert menu, click Bookmark.</li> <li>Under Bookmark name, type or select a name.</li> <li>Click Add.</li></ol> </li> <li>Click where you want to insert the index.</li> <li>On the Insert menu, click Field.</li> <li>In the Categories box, click Index and Tables. In the Field names box, click Index.</li> <li>Click Options.</li> <li>In the Switches box, click \b. Click Add to Field.</li> <li>In the Field codes box, click after \b and type the name of the bookmark that you created in step 2.

For example, if you created a bookmark named &quot;index1,&quot; the Field codes box should contain the following text:

INDEX \b index1

</li> <li>Click OK twice.</li> <li>Repeat steps 2 through 9 for each index that you want to create.</li></ol>

How to Use a Concordance File and AutoMark Index Entries
Use this method when you know which words you want to index and when you want to index all those words in the document at once. <ol> <li>On the File menu, click New. Click the General tab, select Blank Document, and then click OK.</li> <li>Create a two-column table. To do this, point to Insert on the Table menu, and then click Table. In the Number of Columns box, type or select 2, and then click OK.</li> <li>In the first column, enter the text that you want Word to search for and mark as an index entry. Make sure to enter the text exactly as it appears in the document. Press the TAB key.</li> <li>In the second column, type the index entry for the text in the first column, and then press the TAB key.

NOTE: If you want to create a subentry, type the main entry followed by a colon and then the subentry, similar to this:

Dog:Labrador

</li> <li>Repeat steps 3 and 4 for each index reference and entry.</li> <li>Save and close the concordance file.</li> <li>Use the concordance file to automatically mark the index entries in your document. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>Open the document that you want to index.</li> <li>On the Insert menu, click Index and Tables, and then click the Index tab.</li> <li>Click AutoMark.</li> <li>In the File name box, enter the name of the concordance file that you want to use.</li> <li>Click Open.</li></ol> </li></ol>

Word searches through the document for each exact occurrence of text in the first column of the concordance file, and then Word uses the text in the second column as the index entry. Word marks only the first occurrence of an entry in each paragraph.

NOTES:
 * Word inserts each marked index entry as an XE (Index Entry) field in hidden text format. If you do not see the XE field, click Show/Hide on the Standard toolbar.
 * To make sure that Word marks all the text that you want to index, list all forms of the text that you want to search for. For example, type erupt, erupting, and eruption in three separate cells in the left column, and then type volcanoes in the matching cells in the right column.
 * To speed up the creation of a concordance file, first open both the concordance file and the document that you want to index. To see both documents at once, click Arrange All on the Window menu. Then copy the text that you want to index from the document into the first column of the concordance file.

Troubleshooting
For additional information, click the article number below to view the article in the Microsoft Knowledge Base:

212011 WD2000: TOC or Index Starts with No Number for Heading 1 Style

211333 WD2000: Some Menu Commands Unavailable (Document Protection)

212051 WD2000: Mark All Button Unavailable in Mark Index Entry Box

212083 WD2000: Word Does Not Include Page Ranges in an Index

220425 WD2000: Index Is Updated Incorrectly with Modified Page Numbering

Additional query words: indices indexing indexes indexed creating building making including sub document entry

Keywords: kbinfo KB260833

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.