# .index heading command

The .index heading command substitutes
the heading text as the header for index pages. The heading text is
output on the top of each index page.

**Synonyms:** .ixh

## Syntax

```
.index heading text
```

## Example(s)

```
.index heading Topics covered
.index ’Topic 1’ ’Topic 2’
.index ’Topic 3’
.index ’Topic 4’
.xindex
.print index
```
Produces this output:

```
Topics covered
Topic 1,1
Topic 2,1
Topic 3,1
Topic 4,1
```

## See also

- [.index command (Output processor)](https://d3codex.com/output-processor/dot-index-command-output-processor/)
- [Output processor commands](https://d3codex.com/output-processor/output-processor-commands/)
- [Output processor overview](https://d3codex.com/output-processor/output-processor-overview/)

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