How do I set up two indexes in one document?

A

Andri

I want to create two indexes,one author index and one subject index in one
document in Word. How to I mark the words in the document so as to have two
seperate indexes?
 
J

Jay Freedman

Andri said:
I want to create two indexes,one author index and one subject index
in one document in Word. How to I mark the words in the document so
as to have two seperate indexes?

You need to include an \f switch in each index entry (XE) field, followed by
a value that says which index it belongs to. The values could be "a" and "s"
for author and subject (the whole words would work, but that's too much
typing). For example:

{ XE "King:Stephen" \f "a" }
{ XE "mystery" \f "s" }

Then you need two Index fields, each with one of the \f switches:

{ Index \f "a" }
{ Index \f "s" }

The first index will include only the entries that contain the \f "a"
switch, and the second index will include only the ones with the \f "s"
switch.

Look at the Help topics "Field codes: XE (Index Entry) field" and "Field
codes: Index field" for more.

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

Suzanne S. Barnhill

for author and subject (the whole words would work, but that's too much
typing). For example:

This may well be true, but my gut reaction is that it's not. ISTR that we
established that, although it is not documented anywhere, only single
letters can be used as Type designators. Perhaps I'm remembering something
else, though, since the sample syntax in the Help topic is \f "Type".
 
J

Jay Freedman

I did try using more than one character in the switch, and it works. Word
ignores anything after the first character, though, so both

{ XE "first" \f "author" }

and

{ XE "second" \f "advance" }

would give you entries in any index created by

{ Index \f "author" }

or

{ Index \f "advance" }

or just

{ Index \f "a" }

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

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