![siunitx: 테이블에서 굵게, 정렬 및 분리하는 방법은 무엇입니까?](https://rvso.com/image/330750/siunitx%3A%20%ED%85%8C%EC%9D%B4%EB%B8%94%EC%97%90%EC%84%9C%20%EA%B5%B5%EA%B2%8C%2C%20%EC%A0%95%EB%A0%AC%20%EB%B0%8F%20%EB%B6%84%EB%A6%AC%ED%95%98%EB%8A%94%20%EB%B0%A9%EB%B2%95%EC%9D%80%20%EB%AC%B4%EC%97%87%EC%9E%85%EB%8B%88%EA%B9%8C%3F%20.png)
다음 siunitxtable이 있습니다.
\sisetup{separate-uncertainty=true}
\begin{tabular}{
l
S[table-format=6.0, table-figures-uncertainty=5]
S[table-format=6.0, table-figures-uncertainty=5, detect-weight]
S[table-format=2.0]
S[table-format=1.2, detect-weight]
}
\toprule
{algorithm} & {$1$-ply} & {$3$-ply} & {\# $n$-tuples} & {time [days]}\\
\midrule
42-33 (baseline) & 265435\pm8511 & 393289\pm26496 & 5 & 2.35 \\
42-33, CS & 258616\pm5784 & 432701\pm13005 & 5 & 2.78 \\
42-33-4-22, CS & 263156\pm27722 & 464836\pm15941 & 10 & \bfseries 4.63 \\
42-33-4-22-3 & 319433\pm2708 & 469779\pm10920 & 12 & 5.06 \\
42-33-4-22-3, CS & 314013\pm7587 & 491398\pm19458 & 12 & 5.47 \\
\bottomrule
\end{tabular}
4.63을 굵게 만들어 정렬할 수 있었는데, 두 번째나 세 번째 열의 일부 셀도 굵게 만들어 정렬하고 싶습니다. \bfseries
그들에게는 작동하지 않습니다. 어떻게 하나요?
답변1
설명된 대로 명령을 \robustify
수행 해야 합니다 .\bfseries
여기. 그런 다음 모든 열에서 작동합니다 S
.
\documentclass[border=2mm]{standalone}
\usepackage{etoolbox}
\usepackage{booktabs}
\usepackage{siunitx}
\sisetup{separate-uncertainty=true}
\begin{document}
\robustify\bfseries
\begin{tabular}{
l
S[table-format=6.0,table-figures-uncertainty=5]
S[table-format=6.0,table-figures-uncertainty=5, detect-weight]
S[table-format=2.0]
S[table-format=1.2,detect-weight]
}
\toprule
{algorithm} & {$1$-ply} & {$3$-ply} & {\# $n$-tuples} & {time [days]}\\
\midrule
42-33 (baseline) & 265435(8511) & 393289(26496) & 5 & 2.35 \\
42-33, CS & 258616(5784) & \bfseries 432701(13005) & 5 & 2.78 \\
42-33-4-22, CS & 263156(27722) & 464836(15941) & 10 & \bfseries 4.63 \\
42-33-4-22-3 & 319433(2708) & 469779(10920) & 12 & 5.06 \\
42-33-4-22-3, CS & 314013(7587) & 491398(19458) & 12 & 5.47 \\
\bottomrule
\end{tabular}
\end{document}