[Tex/LaTex] Write conversion factors in LaTeX

amsmathmath-mode

I would like to write the following conversion factor in LaTeX, I've been looking in different manuals and I can't find anything. I hope you can help me.

enter image description here

I have come to the following, but the problem is that I am not able to put spaces between spaces. And, ideally, things that are the same could be crossed out:

30 mL dis \times \frac{0,1 mol NaOH}{10^{3} mL} \times ...

Best Answer

You can use siunitx for the units and numbers, with mhchem for the name of substances.

\documentclass{article}
\usepackage{amsmath}
\usepackage{siunitx}
\usepackage[version=4]{mhchem}

\sisetup{output-decimal-marker={,}}

\begin{document}

\[
\SI{30}{\milli\liter}\,\mathrm{dis.}\cdot
\frac{\SI{0,1}{\mol}\,\ce{NaOH}}{\SI{e3}{\milli\liter}\,\mathrm{dis.}}\cdot
\frac{\SI{1}{\mol}\,\ce{HftK}}{\SI{1}{\mol}\,\ce{NaOH}}\cdot
\frac{\SI{204,23}{\mol}\,\ce{HftK}}{\SI{1}{\mol}\,\ce{HftK}}=
\SI{0,61269}{\gram}\,\ce{HftK}
\]

\end{document}

enter image description here

Related Question