[texhax] Setting up multiple indexes for book formats

Axel E. Retif axretif at igo.com.mx
Fri Jun 30 23:50:59 CEST 2006


El 6/30/06 8:40 AM, "Henry,Robert" <Robert.D.Henry at drexel.edu> escribió:

> Hi,
>  
> I am working on a book for a professor and we are not able to set up multiple
> indexes.  I was able to do a normal index, but was wondering if there is a
> sample file that I can used to see how this is done?  For example we want to
> set up an author index, a notation index, and a list of contacts. Any
> information that you can send would greatly be appreciated.  I am using MiTex
> with Winedit.
> 
I work on Mac OS X; therefore, I use Terminal for the following; I don¹t
know how to do it in Windows.

1) In the preamble, for example:

\usepackage{makeidx}
\usepackage{index}
\newindex{aut}{aidx}{aind}{\uppercase{Author index}}
\newcommand{\indexa}[1]{\index[aut]{#1}}
\newindex{not}{nidx}{nind}{\uppercase{Notation index}}
\newcommand{\indexn}[1]{\index[not]{#1}}
\newindex{cont}{cidx}{cind}{\uppercase{Contacts index}}
\newcommand{\indexc}[1]{\index[cont]{#1}}
\makeindex

2) Then, in your text:

This is a reference to Knuth\indexa{Knuth, D. E.}, where I have a
notation\indexn{my notation}, and the contact\indexc{my contact} data.

3) And then, in Terminal (or the like, I hope) the following commands:

makeindex -o my_Book.aind my_Book.aidx

makeindex -o my_Book.nind my_Book.nidx

makeindex -o my_Book.cind my_Book.cidx

PLEASE, back up your data before attempting this ---once I lost a whole book
because of a wrong command.

4) Finally, where you want your indices to appear:

\printindex[aut]

\cleardoublepage

\printindex[not]

\cleardoublepage

\printindex[cont]


Hope this works for you.

Best

Axel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/texhax/attachments/20060630/eecc948b/attachment.htm 


More information about the texhax mailing list