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}