Package-level declarations
Functions
.currentpage -> Node
Displays the index (beginning from 1) of the page this element lies in. In case the current document type does not support page counting (e.g. plain document), a placeholder is used.
.doctype type:{DocumentType? = null} -> Any
If type is not null
, it sets the document type to its value. The document type affects its final output style. If it's null
, the name of the current document type is returned.
.footer content:{MarkdownContent} -> Node
Displays text content on the bottom center of each page of a document. Shortcut for pagemargin with PageMarginPosition.BOTTOM_CENTER as its position.
.marker name:{InlineMarkdownContent} -> Node
Creates an invisible marker that points to a specific location in the document, and can be referenced by other elements as would happen with a regular heading. It can be particularly useful when using a table of contents.
.noautopagebreak -> Void
Disables automatic page breaks when a heading is found.
.nonumbering -> Void
Disables numbering across the document, in case a default numbering is set.
.pageformat size:{PageSizeFormat? = null}
orientation:{PageOrientation = context.documentInfo.type.preferredOrientation}
width:{Size? = null}
height:{Size? = null}
margin:{Sizes? = null}
columns:{Int? = null}
alignment:{Container.Alignment? = null}
-> Void
.pagemargin position:{PageMarginPosition = PageMarginPosition.TOP_CENTER} content:{MarkdownContent} -> Node
Displays text content on each page of a document.
.tableofcontents title:{InlineMarkdownContent? = null}
maxdepth:{Int = 3}
focus:{InlineMarkdownContent? = null}
-> Node
Generates a table of contents for the document.
.totalpages -> Node
Displays the total amount of pages in the document. In case the current document type does not support page counting (e.g. plain document), a placeholder is used.