## LaTeX forum ⇒ MakeIndex, Nomenclature, Glossaries and Acronyms ⇒ error using multiple indexes with multind package

Information and discussion about MakeIndex - the tool to generate subject indices for LaTeX documents.
Turkurz
Posts: 31
Joined: Fri Jul 23, 2010 6:36 am
Location: Ljubljana, Slovenia, Europe

### error using multiple indexes with multind package

Hello,

I am having problems when I try to create 4 different indexes. I followed the instructions on http://en.wikibooks.org/wiki/LaTeX/Indexing, but I get the error "Missing \begin{document}".

Here is my code:
\documentclass[a4paper,twoside, final]{memoir}\usepackage[english]{babel}\usepackage[top=2cm, bottom=2cm, left=2cm, right=2cm]{geometry}\usepackage{bookman} \usepackage{hyperref}\usepackage{longtable}\usepackage{graphicx}\usepackage{caption}\usepackage{verbatim}\usepackage{color}\usepackage{tabularx}\usepackage{multirow}\usepackage{wrapfig}\usepackage{fancybox}\usepackage{framed}\usepackage{lettrine}\usepackage{tocloft} \usepackage{multind}\makeindex{Persons, Beasts and Monsters}\makeindex{Things} \begin{document}     \par \emph{The Hobbit} is a tale of high adventure, undertaken by a company of dwarves in search of a dragon-guarded gold. A reluctant partner in this perilous quest is Bilbo Baggins, a comfort-loving, unambitious hobbit, who surprises even himself by his resourcefulness and his skill as a burglar.     \par Encounters with \index{Persons, Beasts and Monsters}{trolls}, goblins, dwarves, elves and giant spiders, conversations with the dragon, Smaug the Magnificent, and a rather unwilling presence at the \index{Things}{Battle of Five Armies} are some of the adventures that befall Bilbo. But there are lighter moments as well: good fellowship, welcome meals, laughter and song.     \par Bilbo Baggins has taken his place among the ranks of the immortals of children's fiction. Written for Professor Tolkien's own children, \emph{The Hobbit} met with instant acclaim when published. It is a complete and marvellous tale in itself, but it also forms a prelude to \emph{The Lord of the Rings}.\appendix     \printindex{Persons, Beasts and Monsters}     \printindex{Things}\end{document}

nlct
Posts: 266
Joined: Thu Nov 06, 2008 11:15 am
Contact:
I think you need to use a short tag for the argument to \makeindex. This is just used to identify it and is not the title. You need to use this identifier as the first argument to \index and \printindex. The multind package is very old and uses the old font commands, such as \bf, so you also need to use the memoir class option oldfontcommands. Example:

\documentclass[a4paper,twoside, final,oldfontcommands]{memoir} \usepackage{multind} \makeindex{people}\makeindex{things} \begin{document}     \emph{The Hobbit} is a tale of high adventure, undertakenby a company of dwarves in search of a dragon-guarded gold. Areluctant partner in this perilous quest is Bilbo Baggins, acomfort-loving, unambitious hobbit, who surprises even himself byhis resourcefulness and his skill as a burglar.      Encounters with \index{people}{Persons, Beasts andMonsters}{trolls}, goblins, dwarves, elves and giant spiders,conversations with the dragon, Smaug the Magnificent, and a ratherunwilling presence at the \index{things}{Things}{Battle of Five Armies} are some of the adventures that befall Bilbo. But there arelighter moments as well: good fellowship, welcome meals, laughterand song.      Bilbo Baggins has taken his place among the ranks of theimmortals of children's fiction. Written for Professor Tolkien's ownchildren, \emph{The Hobbit} met with instant acclaim when published.It is a complete and marvellous tale in itself, but it also forms aprelude to \emph{The Lord of the Rings}. \appendix     \printindex{people}{Persons, Beasts and Monsters}     \printindex{things}{Things}\end{document}

It may be worth looking at a modern package, such as imakeidx

Regards
Nicola Talbot

Turkurz
Posts: 31
Joined: Fri Jul 23, 2010 6:36 am
Location: Ljubljana, Slovenia, Europe
Thanks for the reply. In the following days I'll study the imakeidx package and try to make things work. If I fail, I will post more questions here.

I hope the imakeidx is the ultimate, most versatile package for creating indexes.

Zoran S
Posts: 9
Joined: Thu Dec 11, 2014 6:20 am
I have the same problem. When I compile the file given in the above example (by nlct) I am getting an empty list.