Examples
Real chemistry, real AsciiChem. Each example shows the source, the model, and the rendered MathML.
Water and hydration
Section titled “Water and hydration”H_2O
CuSO_4(Hydrate notation — the middle-dot separator — is not yet in the grammar; carry the water of crystallisation as a separate term or an annotation.)
Isotopes
Section titled “Isotopes”^14C
^131I
^238UCarbon-14 for radiodating, iodine-131 for medical imaging, uranium-238 for the decay series.
Coordination complexes
Section titled “Coordination complexes”[Fe(CN)_6]
[Fe(CN)_6]_3(Charges outside a bracket group don’t parse in v1 — see Molecules.)
Acid–base equilibria
Section titled “Acid–base equilibria”HAc <=> Ac^- + H^+For the K_a expression, see embedded math.
2Na + Cl_2 -> 2NaCl
MnO_4^- + 8H^+ -> Mn^2+ + 4H_2O(Electrons as e^- are not yet in the grammar — no pseudo-element
for the electron; balance the half-reaction without it or carry the
electron count in prose.)
Organic
Section titled “Organic”CH_4 + 2O_2 -> CO_2 + 2H_2O
CH_2=CH_2Electron configurations
Section titled “Electron configurations”1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10Ground state of zinc.
Industrial chemistry
Section titled “Industrial chemistry”N_2 + 3H_2 <=>[Fe][400°C] 2NH_3
2SO_2 + O_2 <=>[V_2O_5] 2SO_3The Haber process and the contact process — both with catalysts and conditions on the equilibrium arrow.
Round-trip
Section titled “Round-trip”Every example on this page round-trips through the parser. Verify locally:
bundle exec asciichem roundtrip -i "N_2 + 3H_2 <=>[Fe][400°C] 2NH_3"