...
LaTeX (Block) for block level equations
LaTeX (Inline) for inline equations
These macros are only available in the commercial cloud version of the app – available December 2023.
How to Use
In the Confluence editor, type /latex and select LaTeX (Block) or LaTeX (Inline).
Add your LaTeX formula or chemical equation in mhchem format into the macro body screen.
Save the Confluence page.
Your mathematical formula or chemical equation will be displayed.
Example syntax
Mathematics – LaTeX syntax
...
Status | ||||
---|---|---|---|---|
|
Example 1 - Pythagorean theorem
Macro body
Code Block |
---|
x^2 + y^2 = z^2 |
Output:
...
Example 2 - Mass-energy equivalence
Macro body
Code Block |
---|
E=mc^2 |
Output:
...
Example 2 - Binomial coefficient
Macro body:
Code Block |
---|
\binom{n}{k} = \frac{n!}{k!(n-k)!} |
Output:
...
Example 4 - Reference
Description | Syntax | Output |
---|---|---|
Greek letters |
| |
Binary operators |
| |
Relation operators |
| |
Others |
|
Chemistry – mhchem syntax
Comprehensive mhchem syntax documentation is available here.
...
Example 9.
Macro body:
Code Block |
---|
\ce{A ->[{text above}][{text below}] B} |
...
Use parentheses ( )
and brackets [ ]
normally. Write braces as \{ \}
.
Example
...
1.
Macro body:
Code Block |
---|
\ce{(NH4)2S} |
Output:
...
Example
...
2.
Macro body:
Code Block |
---|
\ce{[\{(X2)3\}2]^3+} |
...
For large parentheses, \left
and \right
macros need to be in the same math environment, so you might have to put \ce
into $
into \ce
, but that’s fine.
Example
...
3.
Macro body:
Code Block |
---|
\ce{CH4 + 2 $\left( \ce{O2 + 79/21 N2} \right)$} |
...