異なる行に異なる siunitx "S" テーブル形式を使用できますか?

異なる行に異なる siunitx "S" テーブル形式を使用できますか?

この表では、1 行を除くすべての行に位置合わせを使用したいと思います1.2+-1.2。4 行目をプラスマイナス記号で他の行と揃えながら、小数点を無視するにはどうすればよいでしょうか。

のような形式を使用して 4 行目を揃えようとすると、2.2+-2.2スペースが多すぎます。

ここに画像の説明を入力してください

\documentclass{memoir}
\usepackage[separate-uncertainty=true]{siunitx}
\begin{document}
\begin{tabular}{l*{3}{S[table-format=2.2+-2.2]}}
  one row & 1.7(8) & 2.1(11) & 1.9(08) \\
  another row & 1.1(7) & 1.1(07) & 1.2(06) \\
  a third row & 1.4(7) & 1.9(09) & 1.4(07) \\
  a special fourth row & 56(12) & 10(9) & 53(23) \\
  and number five & 0.85(08) & 0.84(0.10) & 0.85(0.08) \\
  and number six & 0.85(08) & 0.84(0.10) & 0.85(0.08) \\
\end{tabular}
\end{document}

答え1

\tablenumこの問題を解決します。機能させるには複数列にラップする必要があり、さらにプラスマイナス記号が他の行と揃うように桁数を選択する必要があります。

\documentclass{memoir}
\usepackage[separate-uncertainty=true]{siunitx}
\begin{document}
\begin{tabular}{l*{3}{S[table-format=1.2+-1.2]}}
  one row & 1.7(8) & 2.1(11) & 1.9(08) \\
  another row & 1.1(7) & 1.1(07) & 1.2(06) \\
  a third row & 1.4(7) & 1.9(09) & 1.4(07) \\
  a special fourth row
    & \multicolumn{1}{c}{\tablenum[table-format=2+-2]{56(12)}}
    & \multicolumn{1}{c}{\tablenum[table-format=2+-2]{10(9)}}
    & \multicolumn{1}{c}{\tablenum[table-format=2+-2]{53(23)}} \\
  and number five & 0.85(08) & 0.84(0.10) & 0.85(0.08) \\
  and number six & 0.85(08) & 0.84(0.10) & 0.85(0.08) \\
\end{tabular}
\end{document}

ここに画像の説明を入力してください

関連情報