-
-
Notifications
You must be signed in to change notification settings - Fork 189
Document metadata
Information about the document can be set via functions. These functions should conventionally be called at the beginning of a Quarkdown source.
Name | Accepts | Default |
---|---|---|
.docname |
The name of the document. | Untitled Quarkdown Document |
.docauthors |
The authors of the document. | (empty) |
.doctype |
Type of output document: plain , slides , paged . |
plain |
.doclang |
Language of the document: either a case-insensitive English full name (e.g. This defines:
See Localization for more. |
(none) |
All these functions have a 'modify or echo' behavior: if the value is not passed as an argument, then they return the previously set value. Example:
.docname {Quarkdown}
This document is called **.docname**!
This document is called Quarkdown!
.docauthors
sets the document's authors.
.docauthors
- John Doe
- Jane Doe
The function takes a Dictionary as its value, where each key is the author's name, while values are nested dictionaries which represent the author's information. No constraints are set and any information entry can be used.
.docauthors
- John Doe
- email: [email protected]
- website: example.com
- Jane Doe
- email: [email protected]
- company: GitHub
Calling the same function with no arguments returns the dictionary itself, which may for example be iterated on to automatically display the authors according to a certain layout. The following example takes advantage of pair destructuring:
.foreach {.docauthors}
name info:
.row gap:{1cm}
**.name**
.get {email} from:{.info}

If the document has just one author and no further information is needed, the .docauthor {name}
function is a valid shorthand.
Be the author defined via .docauthors
or .docauthor
, calling .docauthor
with no arguments returns the only author's name.
- Figures
- Image size
- TeX formulas
- Table caption
- Decorative headings
- Alerts (quote types)
- Quotation source
- Page breaks
- Text symbols (text replacement)
- Syntax of a function call
- Declaring functions
- Dynamic typing
- Including other Quarkdown files
- Importing external libraries
- Localization
- Document metadata
- Theme
- CSS
- Fonts
- Page format
- Page margin content
- Page counter
- Automatic page break
- Numbering
- Paragraph style
- Caption position
- Table of contents
- Bibliography
- Stacks (row, column, grid)
- Container
- Align
- Float
- Figure
- Clip
- Box
- Collapsible
- Whitespace
- Variables
- Optionality
- Math
- Conditional statements
- Loops
- Let
- Destructuring
- String manipulation
- Table manipulation: sorting, computing, and more
- Generators
- String
- Number
- Markdown content
- Boolean
- None
- Enumeration entry
- Iterable
- Dictionary
- Range
- Lambda
- Size(s)
- Color
- Dynamic
- Paper: abstract, definitions, theorems, and more