[texhax] printing multiple indices

Herbert Voss Herbert.Voss at FU-Berlin.DE
Thu Jan 23 23:02:17 CET 2014


Am 23.01.2014 21:14, schrieb A Emery:

> In the default index I get all of the entries plus a last entry of
> names,  1
>
> and where I expect the names index to appear I get the single line
> namestitle=Names
>
>
> \documentclass{book}
>
> \usepackage{index}
> \makeindex
> \newindex{names}{idx}{ind}{Name Index}

should be

\newindex{names}{adx}{and}{Name Index}

> \begin{document}
> this is a test of using multi indices
> \index{1st entry into default index=Book 1}
> \index{names}{1st entry into names index=Author 1}

should be

\index[names]{1st entry into names index=Author 1}

and also for the other names entries.

> \index{2nd entry into default index=Book 2}
> \index{names}{2nd entry into names index=Author 2}
>
> Two entries have been added, 1 to each index
>
> \index{3rd entry into default index=Book 2}
> \index{names}{3rd entry into names index=Author 2}
>
> \index{names}{test of adding a name}
> \index{double check}
>
> \printindex
> \printindex{names}{title=Names}

should be

\printindex[names]% Title is already defined!

> \end{document}

you have to run:

pdflatex <file>
makeindex <file>
makeindex <file>.adx -o <file>.and
pdflatex <file>
pdflatex <file>


Herbert



More information about the texhax mailing list