Skip to main content
Create professional chemistry documents with LaTeX, including chemical formulas, reaction equations, and molecular structures.

Essential Chemistry Packages

Chemical Formulas with mhchem

Basic Formulas

Rendered Output

Water: \ceH2O\ce{H2O}Carbon dioxide: \ceCO2\ce{CO2}Sulfuric acid: \ceH2SO4\ce{H2SO4}Sodium ion: \ceNa+\ce{Na+}Sulfate ion: \ceSO42\ce{SO4^{2-}}

States and Phases

Chemical Reactions

Basic Reactions

Rendered Output

Simple reaction: \ce2H2+O2>2H2O\ce{2H2 + O2 -> 2H2O}Equilibrium: \ceN2O4<=>2NO2\ce{N2O4 <=> 2NO2}Precipitation: \ceAgClv\ce{AgCl v} (silver chloride precipitate)

Complex Reactions

Molecular Structures with chemfig

Simple Molecules

Rendered Output

Methane: CH4\mathrm{CH_4} - tetrahedral structure with central carbon bonded to four hydrogensBenzene: C6H6\mathrm{C_6H_6} - hexagonal aromatic ring with alternating double bonds

Complex Structures

Rendered Output

Glucose: C6H12O6\mathrm{C_6H_{12}O_6} - six-membered ring structure with hydroxyl groupsAspirin: C9H8O4\mathrm{C_9H_8O_4} - acetylsalicylic acid with benzene ring and ester group

Reaction Mechanisms

Arrow Pushing

Rendered Output

Nucleophilic substitution: R-X+NuSN2R-Nu+X\mathrm{R\text{-}X + Nu^- \xrightarrow{S_N2} R\text{-}Nu + X^-}Elimination reaction: R-CH2-CHX-RE2R-CH=CH-R+HX\mathrm{R\text{-}CH_2\text{-}CHX\text{-}R' \xrightarrow{E2} R\text{-}CH=CH\text{-}R' + HX}

Curved Arrows

Rendered Output

Curved arrow mechanism: Shows electron flow from nucleophile (O\mathrm{O^-}) attacking the electrophilic carbon, with leaving group (Br\mathrm{Br^-}) departure indicated by curved arrows.

Laboratory Equipment

Common Glassware

Chemical Tables

Periodic Table Elements

Thermodynamic Data

Units and Measurements

Using siunitx

Chemical Equations with chemformula

Alternative Syntax

Common Chemistry Symbols

Symbol Reference

Spectroscopy Notation

NMR Spectroscopy

IR Spectroscopy

Best Practices

Consistent Notation

Use the same package throughout your document

Define Abbreviations

Define all chemical abbreviations when first used

Use SI Units

Always use siunitx for measurements

Clear Structures

Keep molecular structures simple and readable

Troubleshooting

Common issues:
  • Package conflicts: Don’t load both mhchem and chemformula
  • Font issues: Some chemistry fonts require special setup
  • Compilation: chemfig structures may need multiple passes

Further Reading

Physics Notation

Physics symbols and equations

Symbol Reference

General symbol reference

Tables Guide

Creating data tables

Mathematics

Mathematical expressions