doctype

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

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}

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

The current document type is .doctype

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

Wiki page

Document types