\begin{table}
\setlength\tabcolsep{0pt}
\caption{\textbf{Organizational Association}}
\begin{tabular*}{\linewidth}{@{\extracolsep{\fill}}
1
*{2}{S[table-format=2.0]
S[table-format=2.2]
S[table-format=2.0]}
}
\toprule
\multicolumn{1}{c}{\textbf{} }
& \multicolumn{2}{c}{\textbf{Jagatsinghpur}}
& \multicolumn{2}{c}{\textbf{Baripada} } \\
\cmidrule{2-3}\cmidrule{4-5}
& {{BJD}}
& {{Congress}}
& {{BJD}}
& {{BJP}}
\\
\midrule
\midrule
1-4 Year& 3.9 &12.7& 16.7& 8.9\\
5-10 Year &18.9& 21.1& 42.2& 32.2\\
11-15 year& 22.8 &24.4 &20 &24.4\\
16- 20 year& 54.4& 41.8 &21.1& 34.4\\
\midrule
\midrule
\end{tabular*}
\\
{\raggedright \textit{Note: f= Figure in parentheses are in percentage.} \par}
{\raggedright \textit{ N= 90 From each party .} \par}
\end{table}
答案1
除了修正明显的拼写错误(使用l
(“ell”)而不是1
(“one”)作为左对齐列的符号)并将其用作S[table-format=2.1]
所有四个数据列的通用列类型之外,您可能还希望在第一列的字符串中使用半破折号而不是短破折号。
单独的评论:你似乎很喜欢使用大胆的和斜体“装饰”桌子的各个部分。我的建议是:不要过度装饰。事实上,请考虑从桌子上移除这两种装饰——你会惊讶地发现桌子看起来会更加简洁和有吸引力。
\documentclass{article}
\usepackage{booktabs,siunitx}
\usepackage[textfont=bf,skip=0.333\baselineskip]{caption}
\begin{document}
\begin{table}
\setlength\tabcolsep{0pt}
\caption{Organizational Association}
\begin{tabular*}{\linewidth}{@{\extracolsep{\fill}} l *{4}{S[table-format=2.1]} }
\toprule
& \multicolumn{2}{c}{\textbf{Jagatsinghpur}}
& \multicolumn{2}{c@{}}{\textbf{Baripada}} \\
\cmidrule{2-3}\cmidrule{4-5}
& {BJD} & {Congress} & {BJD} & {BJP} \\
\midrule
1--4 year & 3.9 & 12.7 & 16.7 & 8.9 \\
5--10 year & 18.9 & 21.1 & 42.2 & 32.2 \\
11--15 year & 22.8 & 24.4 & 20 & 24.4 \\
16--20 year & 54.4 & 41.8 & 21.1 & 34.4 \\
\bottomrule
\end{tabular*}
\medskip
\textit{Note: Figures in parentheses are in percentage.} \par
\textit{$N= 90$ from each party.}
\end{table}
\end{document}