# .save contents command

The .save contents command saves the
table of contents to a defined item-ID. The item is saved in the same
file as the current document. After saving, the item can be formatted
and edited to create a customized table of contents.

**Synonyms:** .sc

## Syntax

```
.save contents item-ID
```

## Example(s)

```
.chapter
.save contents
```

## See also

- [Output processor commands](https://d3codex.com/output-processor/output-processor-commands/)
- [Output processor overview](https://d3codex.com/output-processor/output-processor-overview/)
- [Runoff commands](https://d3codex.com/runoff/runoff-commands/)

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