KScript docs
EN

Documents: KScript.Document

Writing text

Text in Paragraph, Item, captions and titles may use:

Write For
**bold**, *italic* Bold and italic (__bold__ and _italic_ too).
`code` Code.
[text](https://...) A link: a web address, mailto:, or a file or #place with no scheme. Anything else, such as javascript:, stays as text.
\( x^2 \) Maths in the line. \[ ... \] also works.
[@key], [@a; @b] A citation of a source in the bibliography.
[#id] A cross-reference: the number of the section, table, figure or equation with that id.
^[text] A footnote.
--, --- An en dash and an em dash.

A blank line in the text starts a new paragraph. { } puts in a value as anywhere else in KScript, and $name puts in a variable, so maths uses \( \) rather than $. Inside \( \) braces are kept for LaTeX: \( \frac{1}{2} \) is a fraction, not KScript.

Paragraph(lines: true) keeps the line breaks, as in an address or a poem. align: (left, center, right, justify) overrides the document's alignment.

Edit this page on GitHub