Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • 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

  1. In the Confluence editor, type /latex and select LaTeX (Block) or LaTeX (Inline).

    Image Added
  2. Add your LaTeX formula or chemical equation in mhchem format into the macro body screen.

  3. Save the Confluence page.

Your mathematical formula or chemical equation will be displayed.

Example syntax

Mathematics – LaTeX syntax

...

Status
colourRed
titletodo

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

\alpha \beta \gamma \rho \sigma \delta \epsilon

Image Added

Binary operators

\times \otimes \oplus \cup \cap

Image Added

Relation operators

< > \subset \supset \subseteq \supseteq

Image Added

Others

\int \oint \sum \prod

Image Added

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)$}

...