MakeIndex, Nomenclature, Glossaries and Acronymserror using multiple indexes with multind package

Information and discussion about MakeIndex - the tool to generate subject indices for LaTeX documents.
Post Reply
User avatar
Turkurz
Posts: 31
Joined: Fri Jul 23, 2010 6:36 am

error using multiple indexes with multind package

Post by Turkurz »

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:

Code: Select all

\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}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
nlct
Posts: 276
Joined: Thu Nov 06, 2008 11:15 am

error using multiple indexes with multind package

Post by nlct »

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:

Code: Select all

\documentclass[a4paper,twoside, final,oldfontcommands]{memoir}

\usepackage{multind}

\makeindex{people}
\makeindex{things}

\begin{document}
    \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.

    Encounters with \index{people}{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}{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.

    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{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
User avatar
Turkurz
Posts: 31
Joined: Fri Jul 23, 2010 6:36 am

Re: error using multiple indexes with multind package

Post by Turkurz »

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

Re: error using multiple indexes with multind package

Post by Zoran S »

I have the same problem. When I compile the file given in the above example (by nlct) I am getting an empty list.
Post Reply