Command/molecule

From Wiki
Jump to navigation Jump to search


\molecule

Summary

The command \molecule is used for typesetting chemical molecules.

Settings

\molecule{...}
{...}content

Description

Typeset a chemical molecule. The advantage over \chem is that it parses a "standard TeX" input for the molecule and automatically uses the correct super- and subscript positions for chemical usage.

Examples

Example 1

\molecule{H_2SO^4} + \molecule{H_2O} \Rightarrow\ 2\molecule{H_3O^+} + \molecule{HSO_4^{-}}

Example 2

Super- and subscript curly braces are optional if only digits are involved

\molecule{C_12H_22O_11} is fine, but you need \molecule{SO_4^{2-}}.

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: