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 ...

  • 1
    What is “HftK”? – egreg Dec 6 at 16:05
  • What have you been able to do so far? Most of this isn't too difficult and would only take a little bit of TeX knowledge. The units (see siunitx) and chemistry (possibly chemfig) would be a little more challenging, but if you can give us a starting point, that'd be nice. – Teepeemm Dec 6 at 16:10
  • It's an abbreviation I use so I don't have to write potassium hydrogen phthalate – aprendiendo-a-programar Dec 6 at 16:11
  • @Teepeemm I just edited it so I can see what I've done. – aprendiendo-a-programar Dec 6 at 16:14
  • It would be best if you typed in the Minimal Working Example from \documentclass through \end{document} that gives the above equation. – Teepeemm Dec 6 at 16:21
up vote 4 down vote accepted

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

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.