16

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?

2
  • 1
    The package siunitx has a good manual that gives you this and also further examples of possible applications. Read first the manual before asking. All latex manuals can be found at www.ctan.org
    – strpeter
    Jun 8, 2018 at 8:28
  • 1
    @strpeter Almost all the questions asked here have an answer that can be found in the manual of a package. Should we stop asking questions?
    – AndréC
    Nov 12, 2019 at 6:10

2 Answers 2

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

enter image description here

5

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}
1
  • 3
    Putting it as an optional argument when loading the package works as well: \usepackage[separate-uncertainty=true]{siunitx}.
    – Betohaku
    Jan 31, 2020 at 17:30

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .