19

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 Commented Jun 8, 2018 at 8:28
  • 2
    @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? Commented Nov 12, 2019 at 6:10

2 Answers 2

28
\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

8

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

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.