# doctype

    .doctype type:{DocumentType? = null} -> Any

Content copied to clipboard

If type is specified, sets the document type to that value. The document type affects its final output style, numbering format and several other properties.

    .doctype {paged}

Content copied to clipboard

If it's unset, the lowercase name of the current document type is returned.

    The current document type is .doctype

Content copied to clipboard

#### Return

the lowercase name of the current document type if type is unset, nothing otherwise

#### Parameters

type

- Optional

optional type to assign to the document

#### Values

- `plain`
- `paged`
- `slides`
- `docs`

#### Wiki page

document-types