chemmacros
Developer(s)Clemens Niederberger
Initial release2012
Written inLaTeX
Operating systemCross-platform
PlatformTeX
TypeTypesetting, Scientific publishing
LicenseLaTeX Project Public License
Websitectan.org/pkg/chemmacros

Chemmacros is a LaTeX package used to simplify and enhance the typesetting of computational chemistry, such as chemical equations, reactions, formulas, and mechanisms. It provides a comprehensive interface for working with chemical notation, and is designed to integrate well with other LaTeX packages like mhchem and siunitx.[1]

Overview

edit

chemmacros allows users to write chemical expressions with clearer syntax and better typographic results than raw LaTeX or math mode. The package is modular and extensible, allowing users to load only the features they need, such as reaction arrows, oxidation states, isotope notation, and physical quantities.

Features

edit
  • Easy input of chemical formulas and reactions
  • Predefined macros for oxidation states, charges, and isotopes
  • Reaction schemes with support for reagents and conditions
  • Support for IUPAC-style nomenclature
  • Integration with packages like mhchem and siunitx

Example

edit

A basic example using chemmacros:

\documentclass{article}
\usepackage{chemmacros}
\chemsetup{modules = reactions}

\begin{document}
\ch{2H2 + O2 -> 2H2O}
\end{document}
Would render as:
2H2 + O2 → 2H2O

Example 2

edit
\setchemfig{atom sep=2em}
\chemfig{-[@{op,.75}]CH_2-CH(-[6]Cl)-[@{cl,0.25}]}
\makepolymerdelims{5pt}[27pt]{op}{cl}
\chemfig{-[@{op,.75}]CH_2-CH(-[6]Cl)-[@{cl,0.25}]}
\makepolymerdelims[delimiters=()]{5pt}[27pt]{op}{cl}
Would render as:
 
Example 2 output

Modules

edit

chemmacros is organized into modules, such as:

Use cases

edit

The package is widely used in:

See also

edit

References

edit
edit