siunitx 顯示錯誤的整數不確定性值

siunitx 顯示錯誤的整數不確定性值

我使用該包為整數值顯示了不正確的不確定性siunitx。它似乎插入一位小數並將我指定的不確定性除以 10。

這是升級到2014-09-29軟體包版本後出現的新問題。

在此輸入影像描述

\documentclass{article}

\usepackage{siunitx} 
\sisetup{separate-uncertainty = true} % use +/- symbol for uncertainty values

\begin{document}

Using integers, 

\verb+\num{30 \pm 2}+ gives \num{30 \pm 2}

but I want the value to appear as \num{30} 

and the uncertainty should be \num{\pm 2} with no decimal parts.

Same problem happens using \verb+\SI+ and in tables using S-columns.

Things seem to work fine if the base value is not an integer:

\verb+\num{30.5 \pm 2}+ gives \num{30.5 \pm 2}

\end{document}

答案1

試試一下:

\num{30(2)}

如果我只改變命令中的不確定性,這對我有用\num

相關內容