The following bug report has been fixed, here is screenshot of the question in its original state.
Explicit error values are usually given as an interval with $\pm$. When I try to typeset this with mhchem's \pu{...}
command, it sneaks some undefined markers in there and raises numbers in a funny fashion:
- $\pu{8.001 \pm 0.005 nm}$
\pu{8.001 \pm 0.005 nm}
- $\pu{8.001 +/- 0.005 nm}$
\pu{8.001 +/- 0.005 nm}
(alternative input possibility)
\pu{8.001 +- 0.005 nm}
(even easier)
\pu{8.001+-0.005 nm}
(thinkable, lesser code readability)
I believe it should rather look like
- $8.001 \pm 0.005~\mathrm{nm}$
8.001 \pm 0.005~\mathrm{nm}
Current workaround would be only typesetting the unit in the command, which kind of defeats the automatic spacing feature:
- $8.001 \pm 0.005~\pu{nm}$
8.001 \pm 0.005~\pu{nm}
Similarly exponents break:
- $\pu{10^-10 m}$
\pu{10^-10 m}
- or worse: $\pu{7.8\times10^-10 m}$
\pu{7.8\times10^-10 m}
- still: $\pu{7.8\times10^{-10} m}$
\pu{7.8\times10^{-10} m}
- Scientific notation works though: $\pu{7.8E-10 m}$
\pu{7.8E-10 m}
I don't know to whether there would be other formats like this, that potentially also break. (Please leave a comment.)