3

I want to have \num{1.4 \pm .7 e5} look more like

1.4 * 10^5 +- 0.7 * 10^5

Instead of like

(1.4 +- 0.7) * 10^5

I couldn't find a switch for this in the SIunitx documentation. Is it possible to make SIunitx typeset numbers like this?

MWE:

\documentclass{article}
\usepackage{siunitx}
\sisetup{separate-uncertainty = true}
\begin{document}
  \num{1.4 \pm 0.7 e5}
\end{document}
2
  • 1
    I am not sure that your requested style is very popular/frequent and I doubt that siunitx supports this, but maybe I am wrong in this
    – user31729
    Dec 12, 2015 at 21:32
  • 1
    You can't find it as it's not there: the uncertainty will be out and out misleading if the exponent is different from the main value (plus I can't find an input form I feel would work at all).
    – Joseph Wright
    Dec 12, 2015 at 22:12

1 Answer 1

4

Summarizing the comments from above: there is no such option in siunitx. If you want to use this syntax, you will have to write your own command. E.g. like:

% arara: pdflatex

\documentclass{article}
\usepackage{siunitx}
\sisetup{separate-uncertainty = true}
\newcommand*{\mynum}[3]{$\num{#1}\times\num{#3}\pm\num{#2}\times\num{#3}$}

\begin{document}
\num{1.4 \pm .7 e5}

\mynum{1.4}{.7}{e5}
\end{document}

enter image description here

1
  • Using this inside math mode will lead to interesting results. :-) I'd recommend leaving the dollar signs out of the definition and requiring the user to enter/exit math mode as needed. Mar 15, 2016 at 18:21

You must log in to answer this question.

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