siunitx が整数の不確実性値を誤って表示する

siunitx が整数の不確実性値を誤って表示する

パッケージを使用すると、整数値の不確実性が正しく表示されませんsiunitx。小数点 1 桁を挿入し、指定した不確実性を 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

関連情報