Is there a native way of using siunitx
to display the confidence interval of a value without using a separate calls of siuntix
separate definition.
I am doing something like this at the moment, which seems verbose, and isn't too readable:
\SI{107205}{meters} (\SI{99}{\% CI} \SIrange{83000}{138400}{meters})
This would result in something like:
107205 meters (99% CI 83000 meters - 1384000 meters)
Best Answer
According to section 5.4 of the
siunitx
package documentation:Of course, you can always set your own macro (see section 4.5 of the package documentation), as stated by egreg... something like this:
Where the output would look:
By all means, please feel comfortable to change whatever you want with your macro. I'm sure this is probably not the best way to do it, but it seems to work just fine. If you have any further questions, please don't hesitate to post another question on the site :)