2026-08-25
MathEditor Team
LaTeX for Chemistry: Writing Chemical Equations and Formulas
chemistry
tutorial
intermediate
Writing chemistry in LaTeX requires combining math mode with specialized packages. This guide covers the essential techniques.
Chemical Formulas
Simple formulas use subscripts: H_2O, CO_2, Na_2SO_4. For more complex formulas: (NH_4)_2SO_4.
Chemical Equations
Use \rightarrow for reaction arrows: 2H_2 + O_2 \rightarrow 2H_2O. For equilibrium: \rightleftharpoons.
Reaction Conditions
Use \xrightarrow[]{heat} or \xrightarrow[]{catalyst} for conditions above the arrow. Use \xrightarrow[\text{pressure}]{\text{temperature}} for conditions above and below.
Isotopes and Charges
Isotopes: ^{235}_{92}U. Charges: Na^+, SO_4^{2-}. Ions: H_3O^+.