# .section command (Output processor)

The .section command produces automatic
section numbering and formatting.

**Synonyms:** .sec

## Syntax

```
section {sec.number} title.text
```

## Parameter(s)

| sec.number | Indicates the section number. If not specified, the default is 1. Section numbers are sequentially incremented within levels. |
| --- | --- |
| title.text | Title of the section. |
When a section number is encountered, the section number
and title text are output. The section number and title text are recorded
in the table of contents.

Note: Section numbering can be suppressed
using the .set section command.

## See also

- [.print ptoc command](https://d3codex.com/output-processor/dot-print-ptoc-command/)
- [.print toc](https://d3codex.com/output-processor/dot-print-toc/)
- [.set section](https://d3codex.com/output-processor/dot-set-section/)
- [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-section-command-output-processor/ - part of the D3Codex reference.
