Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Using the siunitx package, if I specify an error with the \pm symbol then it automatically converts it to a form using parenthesis. I would like it to not do this and keep the \pm symbol, but still space the elements of the quantity and symbol in a good way.

e.g. \SI{10 \pm 2}{\kelvin} would produce 10(1) k

I would like it to produce: 10\pm1 k or something similar with spacing taken care of.

share|improve this question
add comment

2 Answers 2

up vote 8 down vote accepted

You want the separate-uncertainty switch, p.30 of the documentation.

\usepackage[separate-uncertainty=true]{siunitx}

sets this format for every number, or

\SI[separate-uncertainty=true]{whatever}

just for one.

share|improve this answer
    
Ant, you're a star, just the correct option. I'm surprised I didn't find it myself as I thought I did a search for "uncertainty" in the manual. No matter. Thanks very much –  aghsmith Sep 6 '11 at 21:45
add comment

I've just come across the same problem and this is how I solved it to my satisfaction:

in the preamble:

\usepackage[separate-uncertainty = true,multi-part-units=single]{siunitx}

in the text:

(\SI{284(10)}{\ampere})

Produces the following output: 284 ± 10 A

If multi-part-units=single option isn't given, the result will look like: ((284 ± 10) A) which, in my opinion, is less than optimal.

HTH

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.