Skip to main content
Indexes help readers find concepts quickly in long documents.

Basic Setup

index-basic.tex
\documentclass{book}
\usepackage{imakeidx}
\makeindex

\begin{document}
\chapter{Foundations}
LaTeX\index{LaTeX} supports structured writing.
Bibliography\index{bibliography} workflows are flexible.

\chapter{Methods}
Hyperlinks\index{hyperlinks} improve navigation.

\printindex
\end{document}

Build Steps

  1. Run LaTeX.
  2. Run makeindex <jobname>.
  3. Run LaTeX again.

Subentries

subentries.tex
Neural networks\index{machine learning!neural networks}
Transformers\index{machine learning!transformers}