> ## Documentation Index
> Fetch the complete documentation index at: https://resources.latex-cloud-studio.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Creating Indexes in LaTeX

> Add an alphabetical index to books and theses with imakeidx, index entries, and makeindex workflows.

Indexes help readers find concepts quickly in long documents.

## Basic Setup

```latex index-basic.tex theme={null}
\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

```latex subentries.tex theme={null}
Neural networks\index{machine learning!neural networks}
Transformers\index{machine learning!transformers}
```

## Related Pages

* [Glossaries](/learn/latex/document-structure/glossaries)
* [Table of contents](/learn/latex/document-structure/table-of-contents)
