我正在尝试制作一个主要显示数字的大表格。当我制作下面的表格时,它会出现致命错误。你能帮我吗?谢谢!
\begin{table}[H]
\centering
\begin{tabularx}{\linewidth}{bssssssssss}
\hline
\multicolumn{2}{c}{\textbf{Network characteristics}} & \multicolumn{3}{c}{\textbf{Burundi}} & \multicolumn{3}{c}{\textbf{DRC}} & \multicolumn{3}{c}{\textbf{Rwanda}}\\ \cline{3-11}
& & \textbf{T1} & \textbf{T2} & \textbf{\$Delta} & \textbf{T1} & \textbf{T2} &
\textbf{$\Delta} & \textbf{T1} & \textbf{T2} & \textbf{$\Delta} \\ \hline
\multirow{4}{=}{\textbf{Collaboration}} & \textbf{Size} & 120 & 100 & -17\% &
246 & 147 & -40\% &103 & 76 & -26\% \\\cline{2-11}
& \textbf{Ties} & 202 & 183 & -9\% &
844 & 314 & -63\% &153 & 188 & 23\% \\\cline{2-11}
& \textbf{With 1} & 183 & 129 & -30\% &
701 & 256 & -63\% &27 & 139 & 9\% \\\cline{2-11}
& \textbf{With 2 or more} & 19 & 54 & 184\% &
143 & 58 & -59\% &26 & 4 & 88\% \\\cline{2-11}
\multirow{4}{=}{\textbf{Knowledge exchange}}
& \textbf{Size} & 31 & 36 & 16\%
&34 & 24 & -29\% &23 & 25 & 9\% \\\cline{2-11}
& \textbf{Ties} & 71 & 77 & 8\% &
189 & 69 & -63\% &43 & 79 & 84\% \\\cline{2-11}
& \textbf{With 1} & 58 & 60 & -3\% &
152 & 60 & -61\% &37 & 55 & 49\% \\\cline{2-11}
& \textbf{With 2+} & 13 & 17 & 31\% &
37 & 9 & -76\% &6 & 24 & 300\% \\\cline{2-11}
\multirow{4}{=}{\textbf{Influence spread}} & \textbf{Size} & 27 & 39 & 44\%
&41 & 15 & -63\% &22 & 21 & -5\% \\\cline{2-11}
& \textbf{Ties} & 50 & 83 & 66\% &
207 & 51 & -75\% &43 & 67 & 56\% \\\cline{2-11}
& \textbf{With 1} & 50 & 64 & 28\% &
170 & 47 & -72\% & 37 & 56 & 51\% \\\cline{2-11}
& \textbf{With 2+} & 0 & 19 & N.A. &
37 & 4 & -89\% & 6 & 11 & 83 \\\cline{2-11}
\end{tabularx}
\caption{Changes in the collaboration, knowledge exchange, and influence spread
characteristics of multi-stakeholder networks in Burundi, DRC, and Rwanda}
\label{cha4:tab:chanceStatistics}
\end{table}
答案1
我将如何排版你的表格:
\documentclass[]{article}
\usepackage{siunitx}
\usepackage{booktabs}
\begin{document}
\begin{table}
\centering
\footnotesize
\begin{tabular}{ll*3{*2{S[table-format=3]}S[table-format=-2]}}
\toprule
\multicolumn{2}{c}{Network characteristics} &
\multicolumn{3}{c}{Burundi} &
\multicolumn{3}{c}{DRC} &
\multicolumn{3}{c}{Rwanda}\\
\cmidrule(lr){3-5}
\cmidrule(lr){6-8}
\cmidrule(lr){9-11}
& & {T1} & {T2} & {$\Delta/\%$}
& {T1} & {T2} & {$\Delta/\%$}
& {T1} & {T2} & {$\Delta/\%$} \\
\midrule
Collabora- & Size & 120 & 100 & -17 & 246 & 147 & -40 & 103 & 76 & -26 \\
tion & Ties & 202 & 183 & -9 & 844 & 314 & -63 & 153 & 188 & 23 \\
& With 1 & 183 & 129 & -30 & 701 & 256 & -63 & 27 & 139 & 9 \\
& With 2+ & 19 & 54 & 184 & 143 & 58 & -59 & 26 & 4 & 88 \\
[1ex]
Knowledge & Size & 31 & 36 & 16 & 34 & 24 & -29 & 23 & 25 & 9 \\
exchange & Ties & 71 & 77 & 8 & 189 & 69 & -63 & 43 & 79 & 84 \\
& With 1 & 58 & 60 & -3 & 152 & 60 & -61 & 37 & 55 & 49 \\
& With 2+ & 13 & 17 & 31 & 37 & 9 & -76 & 6 & 24 & 300 \\
[1ex]
Influence & Size & 27 & 39 & 44 & 41 & 15 & -63 & 22 & 21 & -5 \\
spread & Ties & 50 & 83 & 66 & 207 & 51 & -75 & 43 & 67 & 56 \\
& With 1 & 50 & 64 & 28 & 170 & 47 & -72 & 37 & 56 & 51 \\
& With 2+ & 0 & 19 & {N.A.} & 31 & 4 & -89 & 6 & 11 & 83 \\
\bottomrule
\end{tabular}
\caption{Changes in the collaboration, knowledge exchange, and influence spread
characteristics of multi-stakeholder networks in Burundi, DRC, and Rwanda}
\label{cha4:tab:chanceStatistics}
\end{table}
\end{document}