# .index command (Runoff)

The .index command places the text and
the current page number into the document’s index.

Note: Once a .save-index command is encountered,
index references are written into a file and not saved in memory.

## Syntax

```
.index text
```

## Parameter(s)

| text | Must be enclosed in double quotation marks if it contains embedded spaces. |
| --- | --- |

## See also

- [.chapter command (Runoff)](https://d3codex.com/runoff/dot-chapter-command-runoff/)
- [.print index command (Runoff)](https://d3codex.com/runoff/dot-print-index-command-runoff/)
- [.save index command (Runoff)](https://d3codex.com/runoff/dot-save-index-command-runoff/)
- [Runoff commands](https://d3codex.com/runoff/runoff-commands/)

---
Source: https://d3codex.com/runoff/dot-index-command-runoff/ - part of the D3Codex reference.
