다른 행에 대해 다른 siunitx "S" 테이블 형식을 사용할 수 있습니까?

다른 행에 대해 다른 siunitx "S" 테이블 형식을 사용할 수 있습니까?

1.2+-1.2이 테이블에서는 한 행을 제외한 모든 행에 정렬을 사용하고 싶습니다 . 네 번째 행을 더하기-빼기 기호로 다른 행과 정렬하되 소수점은 무시하려면 어떻게 해야 합니까?

같은 형식을 사용하여 네 번째 행을 정렬하려고 하면 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}

여기에 이미지 설명을 입력하세요

관련 정보