# .chapter command (Runoff)

The .chapter command ejects a page,
increments the page and chapter counters, and outputs the literal,
Chapter, followed by the optional text, centered between the current
margins. The chapter, page number, and text are accumulated for the
table of contents.

## Syntax

```
.chapter text
```

## Parameter(s)

| text | Accumulated for the table of contents. |
| --- | --- |

## See also

- [.contents command](https://d3codex.com/runoff/dot-contents-command/)
- [.index command (Runoff)](https://d3codex.com/runoff/dot-index-command-runoff/)
- [.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-chapter-command-runoff/ - part of the D3Codex reference.
