LaTeX forum ⇒ 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.
User avatar
Turkurz
Posts: 31
Joined: Fri Jul 23, 2010 6:36 am
Location: Ljubljana, Slovenia, Europe

error using multiple indexes with multind package

Postby Turkurz » Fri Jul 23, 2010 7:38 pm

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:
  1. \documentclass[a4paper,twoside, final]{memoir}
  2. \usepackage[english]{babel}
  3. \usepackage[top=2cm, bottom=2cm, left=2cm, right=2cm]{geometry}
  4. \usepackage{bookman}
  5.  
  6. \usepackage{hyperref}
  7. \usepackage{longtable}
  8. \usepackage{graphicx}
  9. \usepackage{caption}
  10. \usepackage{verbatim}
  11. \usepackage{color}
  12. \usepackage{tabularx}
  13. \usepackage{multirow}
  14. \usepackage{wrapfig}
  15. \usepackage{fancybox}
  16. \usepackage{framed}
  17. \usepackage{lettrine}
  18. \usepackage{tocloft}
  19.  
  20. \usepackage{multind}
  21. \makeindex{Persons, Beasts and Monsters}
  22. \makeindex{Things}
  23.  
  24. \begin{document}
  25. \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.
  26. \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.
  27. \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}.
  28. \appendix
  29. \printindex{Persons, Beasts and Monsters}
  30. \printindex{Things}
  31. \end{document}

User avatar
nlct
Posts: 266
Joined: Thu Nov 06, 2008 11:15 am
Contact:

Postby nlct » Sun Jul 25, 2010 12:28 pm

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:

  1. \documentclass[a4paper,twoside, final,oldfontcommands]{memoir}
  2.  
  3. \usepackage{multind}
  4.  
  5. \makeindex{people}
  6. \makeindex{things}
  7.  
  8. \begin{document}
  9. \emph{The Hobbit} is a tale of high adventure, undertaken
  10. by a company of dwarves in search of a dragon-guarded gold. A
  11. reluctant partner in this perilous quest is Bilbo Baggins, a
  12. comfort-loving, unambitious hobbit, who surprises even himself by
  13. his resourcefulness and his skill as a burglar.
  14.  
  15. Encounters with \index{people}{Persons, Beasts and
  16. Monsters}{trolls}, goblins, dwarves, elves and giant spiders,
  17. conversations with the dragon, Smaug the Magnificent, and a rather
  18. unwilling presence at the \index{things}{Things}{Battle of Five
  19. Armies} are some of the adventures that befall Bilbo. But there are
  20. lighter moments as well: good fellowship, welcome meals, laughter
  21. and song.
  22.  
  23. Bilbo Baggins has taken his place among the ranks of the
  24. immortals of children's fiction. Written for Professor Tolkien's own
  25. children, \emph{The Hobbit} met with instant acclaim when published.
  26. It is a complete and marvellous tale in itself, but it also forms a
  27. prelude to \emph{The Lord of the Rings}.
  28.  
  29. \appendix
  30. \printindex{people}{Persons, Beasts and Monsters}
  31. \printindex{things}{Things}
  32. \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
Location: Ljubljana, Slovenia, Europe

Postby Turkurz » Mon Jul 26, 2010 8:03 pm

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

Postby Zoran S » Tue Jan 06, 2015 7:16 pm

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


Return to “MakeIndex, Nomenclature, Glossaries and Acronyms”

Who is online

Users browsing this forum: No registered users and 3 guests