4

This code

\documentclass[a4paper]{article}
\usepackage[separate-uncertainty=true,multi-part-units=single,list-units=repeat]{siunitx}


\begin{document}

\[\SI{339\pm14}{\meter\per\second}\]

\end{document}

outputs

enter image description here

But I want

enter image description here

\[v_s= (339   \pm 14)\, \si{\meter\per\second}\]
5

From page 42 of the manual https://ctan.org/pkg/siunitx:

\documentclass[a4paper]{article}
\usepackage[separate-uncertainty=true,list-units=repeat,multi-part-units=brackets]{siunitx}

\begin{document}

\[\SI{339\pm14}{\meter\per\second}, \SI{339}{\meter\per\second}\]
\end{document}

enter image description here

I am not an expert on that package but I guess the global option does not do any harm, anyway: Please read the fine manual (RTFM).

  • 2
    You may want to rewrite the answer so that multi-part-units=brackets replaces multi-part-units=single in the list of arguments of the \usepackage{siunitx}. – Mico Mar 23 at 10:27
  • @Mico Indeed. Thank you very much. Didn't your answer utilized a different way to achieve the same effect? Why was it deleted? You were even faster than me. – CampanIgnis Mar 23 at 10:33
  • 1
    I deleted my answer because your's is a lot better. :-) – Mico Mar 23 at 10:35
  • 1
    @Mico I feel honored to read such a statement from you, Mico, a more experienced, more knowledgable, always friendly and helpful member of the community, and author of the great and useful package ctan.org/pkg/selnolig. – CampanIgnis Mar 23 at 10:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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