Page Layoutmultind | Entries not added to the Index

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
mhayes
Posts: 3
Joined: Tue May 01, 2012 12:07 am

multind | Entries not added to the Index

Post by mhayes »

I'm trying to make an index using the multind package. While the indexes both print at the end of the document when I use \printindex, it only prints the titles of the indexes and lacks any entries. Typesetting the sample code produces the same issues as my larger document, so for brevity I'll use that instead:

Code: Select all

\documentclass[11pt]{article}
\usepackage{multind}

\makeindex{pro}
\makeindex{con}

\begin{document}
test text\index{pro}{test}
test text\index{con}{test}

\printindex{pro}{PROF}
\printindex{con}{CON}

\end{document}
Is there any reason why the entries aren't being added? I'm using TeX Live 2011 and updated the packages yesterday, so it shouldn't be an issue of multind being out of date. You guys have been very helpful in the past, so thanks in advance!

Edit: I redid the code using the imakeidx package, and while it didn't work in TeXPad at first, after switching to TeXShop, it rendered correctly. These are both OS X applications. I prefer TeXPad, so would there be a way to solve that particular issue?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

multind | Entries not added to the Index

Post by localghost »

As explained in the CTAN entry of multind, you have to run MakeIndex on every single *.idx file that is produced. In your case you have two of them.

Code: Select all

makeindex pro.idx
makeindex con.idx
Since this package seems to be a relic from the days of old LaTeX2.09, you should think about using a modern package like imakeidx or splitindex instead.

By the way, very good example that allows to test solutions instantly.


Thorsten
Guillaume
Posts: 8
Joined: Mon Aug 29, 2011 1:27 pm

multind | Entries not added to the Index

Post by Guillaume »

I've got a similar problem with this code:

Code: Select all

% !TEX TS-program = xeLaTeX
% !TEX encoding = UTF-8 Unicode
% !TEX spellcheck = en_GB

\documentclass[11pt]{book}
\usepackage{fontspec}
\defaultfontfeatures{Ligatures=TeX}
\setmainfont{Brill}
\newfontfamily\lettrinefont{Brill}
\usepackage{multind} 

\makeindex{nominum}
\makeindex{rerum}
\usepackage[polutonikogreek,english]{babel}
\newcommand*{\tg}[1]{\textgreek{#1}}
\usepackage{ledmac}
\usepackage{fancyhdr}
\usepackage{hanging}
\pagestyle{myheadings}
\textheight = 180.5 mm
\textwidth = 108.5 mm
\pagenumbering{arabic}

\newcommand{\rhet}[2]{\edtext{#1}{\Afootnote{#2}}}
\newcommand{\oed}[2]{\edtext{#1}{\Bfootnote{#2}}}
\footparagraph{A}
\footparagraph{B}
\raggedbottom

\newcommand*{\LeftWidth}{3.0cm}%
\newcommand*{\RightWidth}{\dimexpr\linewidth-\LeftWidth-2em\relax}%
\newcommand{\AlignedBrace}[2]{%
    \medskip\par\noindent%
    \makebox[\LeftWidth][r]{\text{#1}~}%
    $\left\{~\parbox{\RightWidth}{\strut\textit{#2}\strut}\right.$%
}%

\begin{document}
\pend
\endnumbering
\printindex{nominum}{Index nominum}
\printindex{rerum}{Index rerum}
\end{document}
I'm working with Windows, Tex Live 2011 and TeXworks. I run MakeIndex on my .idx files, but nothing happens, what's the problem?
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

multind | Entries not added to the Index

Post by localghost »

Guillaume wrote:I've got a similar problem […] I run MakeIndex on my .idx files, but nothing happens, what's the problem?
Create index entries to get an index. But here also applies what I said in my former post.
localghost wrote:[…] Since this package seems to be a relic from the days of old LaTeX2.09, you should think about using a modern package like imakeidx or splitindex instead. […]
Posted also to {TeX} SX. Such posts have to mentioned.
Post Reply