Writing chemical formulas
The presentation of chemical formulas and equations differs from mathematical ones in several ways:
- Atomic symbols are represented by upright letters, distinct from italicized mathematical variables
- Numbers are often employed as subscripts, signifying the count of atoms.
- The alignment of numerous subscripts and superscripts is essential for a good formula layout
- Left subscripts and superscripts are also required in some cases
- Special symbols for bonds and arrows are necessary for chemical equations
However, accomplishing such requirements is challenging with basic LaTeX. Let’s find a more effective solution.
How to do it...
We’ll utilize the chemformula package that Clemens Niederberger wrote to practice chemical notation in LaTeX. Let’s start:
- Choose a document class, such as scrartcl of the KOMA-Script bundle, and the chemformula package and begin with the document:
\documentclass{scrartcl...