Hey I'm trying to display the fraction of:
But I'm not sure how to do it with the siunitx
package.
This is what I got so far:
\SI[quotient-mode=fraction]{16 2/3}{\metre\per\second}
But the result is not correct:
What am I missing?
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityThe parser in siunitx
does not attempt to 'read' fractions in the way you want: it ignores spaces so parses as 162/3
. If you want manual formatting, you'll need to turn off the parser
\SI[quotient-mode=fraction,parse-numbers=false]{16\frac{2}{3}}{\metre\per\second}
0.666...
to some precision ...
2
either. Only 2.000…
(or 1.999…
) to some precision. 🧐
16+\frac23
, I guess.