Difference between revisions of "Command/molecule"
< Command
Jump to navigation
Jump to search
(Created page with "Documentation for \molecule") |
(No difference)
|
Latest revision as of 12:54, 5 November 2021
Contents
\molecule
Summary
The command \molecule is used for typesetting chemical molecules.
Settings
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-}}.