multiple indexes in one document

F

FloatAdmin

I have a document that lists information in a table. This information has to
be split into two indexes in separate parts of the same document. Trick is
that one index will need to contain all of the information and the other just
certain pieces.

I created the main index and it is fine, however I do not know how to double
mark entries for use in the second index.
 
J

Jay Freedman

There are two separate mechanisms for this, and you can use one or the
other. (I would discourage trying to use both at the same time.)

If all the items for the second index are together in one part of the table,
and that part doesn't contain any items that don't belong in that index,
then you can use the bookmark mechanism. Insert a bookmark that includes
only the part that goes into the second index. For example, let's say you
name the bookmark Select (although you can use any valid bookmark name).
Then when you insert the INDEX field for the second index, include the
switch

\b Select

in the field's code. That index will show only items whose XE fields are
within the bookmark.

The other mechanism doesn't need a bookmark, and the entries don't all have
to be together in one part of the table, but you do have to insert a
separate set of XE fields for the entries that will appear in the second
index. Each of these additional XE fields must contain an \f switch and an
identifier. For example, in addition to the existing marked entry { XE "some
text" } for the first index, an entry for the second index could look like

{ XE "some text" \f "B" }

where "B" is the identifier. That same identifier must be put into an \f
switch in the INDEX field for the second index,

{ INDEX \f "B" }

(By default, the all-inclusive first index acts like it has the switch \f
"I".)

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
S

Stefan Blom

Index entries within a Word document are XE fields. You can make use of the
\f switch to accomplish what you want (a "selective" index).

Show hidden text to display the XE (index entry) fields. Add \f "b" (the
character within the quotation marks can be anything that you choose) to the
field codes for the entries corresponding to your second, smaller index.
Create a new INDEX field using the code { INDEX \f "b" }; such an index will
only include the entries including \f "b". When you are done, update the
INDEX field.

To add field codes manually, use Ctrl+F9; Word inserts field delimiters,
{ }, and you can then type in the field code directly. To see all field
codes, display hidden text and also press Alt+F9. To update fields in the
selection, use F9.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top