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_2OCuSO_4 · 5H_2OIsotopes
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]^4-[Co(NH_3)_6]^3+
Install the
asciichem gem to see this rendered.
Acid–base equilibria
Section titled “Acid–base equilibria”HAc <=> Ac^- + H^+For the K_a expression, see embedded math.
2Na + Cl_2 -> 2NaClMnO_4^- + 8H^+ + 5e^- -> Mn^2+ + 4H_2O
Install the
asciichem gem to see this rendered.
Organic
Section titled “Organic”CH_4 + 2O_2 -> CO_2 + 2H_2OCH_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_32SO_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"