Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm trying to create an index of manually-added words in memoir. I've looked up instructions in the documentation, and came up with the following MWE. It compiles, but why is the index not showing up?

\documentclass{memoir}

\makeindex
\indexintoc

\begin{document}

\frontmatter
\tableofcontents*

\mainmatter
\chapter{My chapter}
\noindent This is some text.
\index{text}

\backmatter
\printindex

\end{document}
share|improve this question
3  
Did you run makeindex, and then rerun pdflatex? –  Peter Grill Apr 4 '12 at 2:33
    
@PeterGrill I put the \makeindex command in the document, if that's what you mean...? –  jamaicanworm Apr 4 '12 at 2:34
1  
No. There is a separate executable you need to invoke. First run pdflatex (which produces the .idx file), then MakeIndex which generates the .ind file, which is read by the subsequent run of pdflatex which produces the index. –  Peter Grill Apr 4 '12 at 2:41
1  
Yet again a great chance to mention latexmk which will take care of all this by itself. That is, you have to take care of the code, and latexmk will take care of the compilation in terms of the different executables that have to be run, the order etc. –  Dror Apr 4 '12 at 6:40
1  
Just for fun, and to rule out the editor, try running Peters solution, i.e. pdflatex, makeindex, pdflatex, in a terminal, that is by not using an editor. Or try using TeXMaker instead (I'm not a big fan of TeXnicCenter) –  daleif Apr 4 '12 at 7:46

1 Answer 1

up vote 6 down vote accepted

To generate an index, you need to:

  1. Run pdflatex which produces the .idx file
  2. Run MakeIndex which generated the .ind file
  3. Run pdflatex which will then incorporate the .ind file and produce the index page.

For issues related specifically to TeXnicCenter, see Makeindex in TeXnicCenter

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.