Examples
Real chemistry, real AsciiChem. Each example shows the source, the model, and the rendered MathML.
Water and hydration
Section titled “Water and hydration”
Source
Rendered
H_2OCuSO_4 · 5H_2O
Install the
asciichem gem to see this rendered.
Isotopes
Section titled “Isotopes”
Source
Rendered
^14C^131I^238UCarbon-14 for radiodating, iodine-131 for medical imaging, uranium-238 for the decay series.
Coordination complexes
Section titled “Coordination complexes”
Source
Rendered
[Fe(CN)_6]^4-
Install the
asciichem gem to see this rendered.
[Co(NH_3)_6]^3+
Install the
asciichem gem to see this rendered.
Acid–base equilibria
Section titled “Acid–base equilibria”
Source
Rendered
HAc <=> Ac^- + H^+For the K_a expression, see embedded math.
Source
Rendered
2Na + Cl_2 -> 2NaClMnO_4^- + 8H^+ + 5e^- -> Mn^2+ + 4H_2O
Install the
asciichem gem to see this rendered.
Organic
Section titled “Organic”
Source
Rendered
CH_4 + 2O_2 -> CO_2 + 2H_2OCH_2=CH_2Electron configurations
Section titled “Electron configurations”
Source
Rendered
1s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10Ground state of zinc.
Industrial chemistry
Section titled “Industrial chemistry”
Source
Rendered
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"