# Dimensional analysis with chemistry equations on stack exchange?

I know we use Mathjax/mhchem.

What I would like to know, is if its possible to cross out units as part of dimensional analysis.

Here is an example of the desirable effect:

## 1 Answer

MathJax includes \cancel{} and \bcancel{}; however, this extension is not loaded by default on Chemistry.SE. It can be manually loaded using \require{cancel}.

## Test

$$\require{cancel}y=\frac{(x+1)\cancel{(x+2)}}{3\cancel{(x+2)}}$$ $$\require{cancel}y=\frac{(x+1)\cancel{(x+2)}}{3\cancel{(x+2)}}$$

$$\require{cancel}m=n\cdot M=2.50\ \mathrm{mol}\times60.05\ \mathrm{g/mol}=150\ \frac{\mathrm{\cancel{mol}\ g}}{\cancel{\mathrm{mol}}}=150\ \mathrm{g}$$ $$\require{cancel}m=n\cdot M=2.50\ \mathrm{mol}\times60.05\ \mathrm{g/mol}=150\ \frac{\mathrm{\cancel{mol}\ g}}{\cancel{\mathrm{mol}}}=150\ \mathrm{g}$$

• Are there other LaTeX packages &c that can be loaded with that \require command? Jan 31 '17 at 15:04
• Above comment converted to a question, here. Jan 31 '17 at 15:20