Macro Support
Last modified by Vincent Massol on 2026/08/30 19:43
Reference
These macros are given a LaTeX equivalent of their own when a page is exported. Any other macro is exported as the content it renders to, unless an extension supplies a LaTeX template for it — see Add Support for a Macro.
| Macro | What the export produces |
|---|---|
| toc | A table of contents. With scope="local", the table of contents of the section it sits in. |
| code | A syntax-coloured code block, typeset with the minted LaTeX package. |
| info, warning, error, success | A coloured box carrying the macro's title parameter, one colour per macro. Used inline, the four produce styled text instead of a box. |
| formula | A LaTeX formula, provided the LaTeX Template for the Formula macro extension is installed. The LaTeX extension itself does not carry that template. |
| id | A LaTeX label, which a cross-reference elsewhere in the document can point to. |
| footnote | A LaTeX footnote. LaTeX places the footnotes itself, so the putFootnotes macro that goes with it produces nothing. |
| container | A multiple-column layout, for layoutStyle="columns". A container with any other layout style exports as its plain content. |
Table of Contents
= Heading1 =
{{toc scope=local/}}
== Heading2 ==
=== Heading3 ===
{{toc/}}
Code
{{code language='java'}}
public class HelloWorld
{
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
{{/code}}
Message Boxes
{{info}}info{{/info}}
{{warning}}info{{/warning}}
{{error}}info{{/error}}
{{success}}info{{/success}}
Multiple Columns
Each group of the container becomes a column. The paragraphs are cut short here; the compiled result below is the one the full paragraphs produce.
Hello world
{{container layoutStyle="columns"}}
(((
Lorem ipsum dolor sit amet, consectetur adipiscing elit. [...]
)))
(((
Lorem ipsum dolor sit amet, consectetur adipiscing elit. [...]
)))
{{/container}}