Package-level declarations

Functions

Link copied to clipboard
.autopagebreak maxdepth:{Int} -> Void

Sets a new automatic page break threshold when a heading is found: if a heading's depth value (the amount of leading #s) is equal to or less than maxdepth, a page break is forced before the heading.

Link copied to clipboard
.captionposition default:{CaptionPosition? = null}
figures:{CaptionPosition? = null}
tables:{CaptionPosition? = null}
-> Void

Sets the position of captions, relative to the content they describe.

Link copied to clipboard
.currentpage -> Node

Displays the index (starting from 1) of the page this element lies in.

Link copied to clipboard
.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.

Link copied to clipboard
.docauthors authors:{Map<String, Dictionary<Any>>? = null} -> Any

If authors is specified, sets the document authors to that value. Compared to docauthor, this function allows for multiple authors and additional information.

Link copied to clipboard
.doclang locale:{String? = null} -> Any

If locale is specified, sets the document language to that value. The document language affects localization (localization, localize), hyphenation and other locale-specific properties.

Link copied to clipboard
.docname name:{String? = null} -> Any

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

Link copied to clipboard
.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.

Link copied to clipboard
.font main:{String? = null}
heading:{String? = null}
code:{String? = null}
size:{Size? = null}
-> Void

Updates the global font configuration of the document.

Link copied to clipboard
.footer content:{MarkdownContent} -> Node

Displays content on the bottom center of each page of a document.

Link copied to clipboard
.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.

Link copied to clipboard
.noautopagebreak -> Void

Disables automatic page breaks when a heading is found.

Link copied to clipboard
.nonumbering -> Void

Disables numbering across the document, in case a default numbering is set by either numbering or the document type default.

Link copied to clipboard
.numbering formats:{Map<String, Any>} -> Void

Sets the global numbering format across the document. Numbering is applied to elements that support it, such as headings and figures.

Link copied to clipboard
.pageformat size:{PageSizeFormat? = null}
orientation:{PageOrientation = context.documentInfo.type.preferredOrientation}
width:{Size? = null}
height:{Size? = null}
margin:{Sizes? = null}
bordertop:{Size? = null}
borderright:{Size? = null}
borderbottom:{Size? = null}
borderleft:{Size? = null}
bordercolor:{Color? = null}
columns:{Int? = null}
alignment:{Container.TextAlignment? = null}
-> Void

Sets the page layout format of the document. If a value is unset, the default value supplied by the underlying renderer is used.

Link copied to clipboard
.pagemargin position:{PageMarginPosition} content:{MarkdownContent} -> Node

Displays content on each page of a document.

Link copied to clipboard
.paragraphstyle lineheight:{Number? = null}
letterspacing:{Number? = null}
spacing:{Number? = null}
indent:{Number? = null}
-> Void

Sets the global style of paragraphs in the document. If a value is unset, the default value supplied by the underlying renderer is used.

Link copied to clipboard
.tableofcontents title:{InlineMarkdownContent? = null}
maxdepth:{Int = 3}
focus:{InlineMarkdownContent? = null}
-> Node

Generates a table of contents, based on the headings in the document, organized in a hierarchical structure defined by each heading's depth.

Link copied to clipboard
.texmacro name:{String} macro:{String} -> Void

Creates a new global TeX macro that can be accessed within math blocks.

Link copied to clipboard
.theme color:{String? = null} layout:{String? = null} -> Void

Sets the document theme.

Link copied to clipboard
.totalpages -> Node

Displays the total amount of pages in the document.