Common formulae
Every block on this page is rendered at build time by invoking the
asciichem gem. Source on the left; MathML output on the right. If you
view the page source, you’ll see the same is what you’d type.
Water and simple molecules
Section titled “Water and simple molecules”
Source
Rendered
H_2OCO_2NaClCH_4Acids and bases
Section titled “Acids and bases”
Source
Rendered
HClH_2SO_4HNO_3H_3PO_4NaOHCa(OH)_2Ionic compounds
Section titled “Ionic compounds”
Source
Rendered
Na^+Cl^-SO_4^2-NO_3^-Ca^2+Isotopes — the headline semantic fix
Section titled “Isotopes — the headline semantic fix”
Source
Rendered
^14C^131I^238U^3HThe prefix isotope binds to the atom. See Atoms for the full story.
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.
[PtCl_4]^2-
Install the
asciichem gem to see this rendered.
Stoichiometric coefficients
Section titled “Stoichiometric coefficients”
Source
Rendered
2H_2O3H_2C_6H_12O_6Reactions
Section titled “Reactions”
Source
Rendered
2H_2 + O_2 -> 2H_2ON_2 + 3H_2 <=>[Fe][400°C] 2NH_3CH_4 + 2O_2 -> CO_2 + 2H_2OBonds in linear notation
Section titled “Bonds in linear notation”
Source
Rendered
H-O-HH_2C=CH_2HC#CHElectron configurations
Section titled “Electron configurations”
Source
Rendered
1s^2 2s^2 2p^61s^2 2s^2 2p^6 3s^2 3p^6 4s^2 3d^10Verify locally
Section titled “Verify locally”gem install asciichemasciichem convert -i "2H_2 + O_2 -> 2H_2O" -t mathmlasciichem convert -i "2H_2 + O_2 -> 2H_2O" -t latexasciichem roundtrip -i "2H_2 + O_2 -> 2H_2O"