MakeIndex, Nomenclature, Glossaries and AcronymsUsing \makeindex \printindex

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

Using \makeindex \printindex

Post by jerryf »

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:

Code: Select all

\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.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Using \makeindex \printindex

Post by Stefan Kottwitz »

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:

Code: Select all

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