Using the notation we were taught, 0.0010 plus or minus 0.0001, for example, would be:
(1.0 +/- 0.1)*10^{-3}s
Is there a way to print this in LaTeX using the siunitx
package?
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 communityUsing the notation we were taught, 0.0010 plus or minus 0.0001, for example, would be:
(1.0 +/- 0.1)*10^{-3}s
Is there a way to print this in LaTeX using the siunitx
package?
\documentclass[a4paper]{memoir}
\usepackage{siunitx}
\begin{document}
%(1.0 +/- 0.1)*10^-3s
\[
\SI[separate-uncertainty = true]{1.0(1)e-3}{\second}
\]
\end{document}
See the manual for the various methods of inputting the uncertainty.
Here is the solution if you want to set this plus-minus notation document-wide:
\documentclass[a4paper]{memoir}
\usepackage{siunitx}
\sisetup{separate-uncertainty=true}
\begin{document}
\SI{1.0(1)e-3}{\second}
\end{document}
\usepackage[separate-uncertainty=true]{siunitx}
.