I am using the memoir class and would like to create two indexes: One for general terms and one for names. Following the documentation in "The Memoir Class for Configurable Typesetting" by Peter Wilson, p. 310 I included
\usepackage{makeidx}
\makeindex
\makeindex[names]
in my preamble.
\index{Wisdom} \index[names]{Alfonso}
in the body and
\printindex
\printindex[names]
\end{document}
at the end. This gave me no errors, but it only produced one index.
I also tried the imkindex package but this gave me an error about incompatible versions of luatex being used.
What am I doing wrong?
MWE follows
Main file:
\documentclass{memoir}
\title{Great quotations}
\author{Peter Flom}
% \usepackage{hyperref}
\usepackage[marginpar]{todo}
\usepackage{url}
\usepackage{varioref}
\usepackage{titlesec}
\usepackage{makeidx}
\titleformat*{\section}{\LARGE\bfseries}
\titleformat*{\subsection}{\large\bfseries}
\epigraphwidth 6in
\makeindex
\makeindex[names]
\begin{document}
\include{AtoC}
\printindex
\printindex[names]
\end{document}
A to C file
\chapter{A to C}
\section*{Alfonso el Sabio}
\subsection{On simplicity}\label{Alfonso1} \index{Wisdom} \index[names]{Alfonso}
\epigraph{%
Had I been present at the creation, I would have recommended something simpler}{%
Alfonso el Sabio (Alfonso X) of Castille \\ 1221 -- 1284}
\subsection{Who was Alfonso?}
EDIT: Following the suggestions, I went to the command prompt and entered
makeindex [c:\writing\nonfiction\quotes\names.idx]
I got the following
Input index file [c:\writing\nonfiction\quotes\names.idx] not found.
Usage: makeindex [-ilqrcgLT] [-s sty] [-o ind] [-t log] [-p num] [idx0 idx1 ...]
but when I look, I see names.idx in the specified spot.
I don't understand the usage note. Are all the things in [] brackets optional?
[]
and why are you using a full path? Change to the folder wherenames.idx
lives and runmakeindex names.idx