# docname

    .docname name:{String? = null} -> Any

Content copied to clipboard

If name is specified, sets the document name to that value. The document name affects the name of the output file.

    .docname {My document}

Content copied to clipboard

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

    The current document name is .docname

Content copied to clipboard

#### Return

the current document name if name is unset, nothing otherwise

#### Parameters

name

- Optional

optional non-blank name to assign to the document

#### Throws

IllegalArgumentException

if name is blank

#### Wiki page

document-metadata