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

Code, edit and compile here:
\documentclass[12pt,latexsym]{book}
\usepackage{makeidx}
\begin{document}
I want to build\index{build} an index.
\printindex
\end{document}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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

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

Stefan Kottwitz
Site Admin
Posts: 10330
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

Code, edit and compile here:
\documentclass[12pt,latexsym]{book}
\usepackage{imakeidx}
\makeindex
\begin{document}
I want to build\index{build} an index.
\printindex
\end{document}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Stefan
LaTeX.org admin
Post Reply