# .contents command

The .contents command outputs the current
table of contents, as defined by the previous .chapter and .section commands.

## Syntax

```
.contents
```

## Example(s)

```
.chapter
Runoff
.chapter
OP
.contents
```
The output of this example is:

```
Chapter 1
Runoff

(page eject)

Chapter 2
OP

(page eject)
```

```
Table of Contents
section page
1 Runoff 1
2 OP 2
```

## See also

- [.chapter command (Runoff)](https://d3codex.com/runoff/dot-chapter-command-runoff/)
- [.pfile command](https://d3codex.com/runoff/dot-pfile-command/)
- [.section command (Runoff)](https://d3codex.com/runoff/dot-section-command-runoff/)
- [Runoff commands](https://d3codex.com/runoff/runoff-commands/)

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