Introduction
LaTeX provides specialized packages for chemistry documents, enabling precise typesetting of chemical formulas, reaction schemes, and molecular structures.
This guide covers chemistry typesetting in LaTeX.
Chemical Formulas
mhchem Package
\usepackage{mhchem}
\ce{H2O}
\ce{CO2}
\ce{2H2 + O2 -> 2H2O}
\ce{A ->[catalyst] B}
\ce{pH = -log[H+]}
\ce{Fe^{3+} + e- -> Fe^{2+}}
Reaction Equations
\begin ัะตะฐะบัะธั}
\ce{ N2 + 3H2 <=> 2NH3 }
\end{reaction}
\ce{CH4 + 2O2 -> CO2 + 2H2O}
Molecular Structures
chemfig Package
\usepackage{chemfig}
\chemfig{H-C(-[2]H)(-[6]H)-C(=O)OH}
\chemfig{*6((-H)=(-H)-(-H)=(-H)-(-H)=)}
Chemical Rings
\chemfig{*6(=-=(-OH)-=-=)}
\chemfig{*5(-(-H)=-(-H)=(-H)-(-H)=)}
Spectroscopy
NMR Shifts
\usepackage{mhchem}
\ce{^{1}H NMR}: \delta = 7.2 \text{ ppm (m, 5H)}
\ce{^{13}C NMR}: \delta = 128.5 \text{ ppm}
Conclusion
LaTeX chemistry packages create professional chemical documents. Use mhchem for formulas and chemfig for structures.
Comments