Forester markup: mainmatter [007O]
Below we summarize the concrete syntax of the mainmatter in a Forester tree.
| Function | Meaning |
|---|---|
\p{...}
|
creates a paragraph containing ...; unlike Markdown, it is mandatory to annotate paragraphs explicitly |
\em{...}
|
typesets the content in italics |
\strong{...}
|
typesets the content in boldface |
\ol{...}
|
creates an ordered list |
\ul{...}
|
creates an unordered list |
\li{...}
|
creates a list item |
#{...}
|
typesets the content in (inline) math mode using \KaTeX ; note that math mode is idempotent in Forester |
##{...}
|
typesets the content in (display) math mode using \KaTeX |
\transclude{address}
|
transcludes the tree at address address as a subsection |
[title](address)
|
formats the text title as a hyperlink to address address; if address is the address of a tree, the link will point to that tree, and otherwise it is treated as a URL
|
\let\ident[x][y]{body}
|
defines a local function named \ident with two arguments; subsequently, the expression \ident{u}{v} would expand to body with the values of u,v substituted for \x,\y.
|
\code{...}
|
typesets the content in monospace |
\tex{preamble}{body}
|
typesets the body externally using \LaTeX using preamble as preamble code (e.g. to set up tikz packages, etc.). It can be useful to wrap this in your own macro in order to insert your preamble code automatically. |