Versions Compared

Key

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

...

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

...