## LaTeX forum ⇒ MakeIndex, Nomenclature, Glossaries and Acronyms ⇒ Using \makeindex \printindex

Information and discussion about MakeIndex - the tool to generate subject indices for LaTeX documents.
jerryf
Posts: 3
Joined: Sun Sep 08, 2013 12:30 am

### Using \makeindex \printindex

I am using TeXworks, which I think uses LaTeX2e.
I am working on a book, but can't seem to make the index show up in the PDF.
A simple program I use would look like:

\documentclass[12pt,latexsym]{book}\usepackage{makeidx}\begin{document}I want to build\index{build} an index.\printindex\end{document}

I get a file: Ntext.idf, which shows: \indexentry{build}, but how do I get the actual index to show up at the end of the PDF of the book?
Last edited by cgnieder on Fri Jul 22, 2016 3:36 pm, edited 1 time in total.

Tags:

Stefan Kottwitz
Posts: 8207
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:
You need to write also \makeindex in the document header. And you need to run the Makeindex tool, you can click it in the TeXworks typeset list box of available engines.

But imakeindex makes it much easier - no extra Makeindex run needed.

Try:

\documentclass[12pt,latexsym]{book}\usepackage{imakeidx}\makeindex\begin{document}I want to build\index{build} an index.\printindex\end{document}

Stefan

### Who is online

Users browsing this forum: No registered users and 1 guest