docauthor

fun docauthor(author: String? = null): Any

If author is specified, sets the document author to that value. This is a shortcut for docauthors when there's only one author without additional information.

.docauthor {John Doe}

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

If the authors were set via docauthors, only the name of the first author is returned. If you are looking forward to iterating over all authors, use foreach over docauthors instead.

The current document author is .docauthor

Return

the current document author if author is unset, nothing otherwise

Parameters

author
  • Optional

optional author name to assign to the document

Wiki page

Document metadata