答案1
我会将表格设置为使用传统表格书签规则,没有垂直线。此外,下划线用于打字机,斜体用于强调文本。由于所有数字(除一个外)小数点后面都有两位数字,因此普通的右对齐列效果很好。\multicolumn{1}{c}{1}
更改包含标题的三个单元格的对齐方式。
如果您坚持要使用丑陋的“类似 Word”的表格,我已在下面的示例 2 中包含了代码。\setlength{\extrarowheight}{2pt}
水平线和单元格内容之间留出一些空间很重要:
示例 1 –书签样式表格`
\documentclass{scrartcl}
\usepackage{lmodern}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{array, booktabs}
\begin{document}
\noindent\begin{tabular}{@{}lcrrr@{}}
\toprule
&&\multicolumn{3}{c}{ROUGE}\\
\cmidrule(l){3-5}
Model&Type&\multicolumn{1}{c}{1}&\multicolumn{1}{c}{2}&\multicolumn{1}{c}{3}\\
\midrule
\multicolumn{5}{c}{\bfseries Previous work}\\
\midrule
SumBasix & Ext &29.47 & 6.95 & 2.36\\
LexRank & Ext & 33.85 & 10.73 & 4.54\\
LSA & Ext & 29.91 & 7,42 & 3.12\\
\addlinespace[4pt]
Seq2Seq & Abs & 29.30 & 6.00 & 1.77\\
Pointer-gen& Mix & 32.06 & 9.04 & 2.15 \\
Discourse & Mix & 35.80 & 11.05 & 3.62 \\
\midrule
\multicolumn{5}{c}{\bfseries Our Models}\\
\midrule
Lead-10 & Ext & 35.52& 10.33 & 3.74\\
Sent-CLF & Ext & 34.01 & 8.71 & 2.99\\
Sent-PTR & Ext & \itshape 42.32 & \itshape 15.63 & \itshape 7.49\\
\addlinespace[4pt]
TLM-I & Abs & 39.80 & 12.20 & 4.42\\
TLM-I+E (M,M) & Mix & 41.59 & 14.26 & 5.94 \\
TLM-I+E (G,M) & Mix & \bfseries 42.43 & \bfseries 15.24 & \bfseries 6.68 \\
\midrule
\multicolumn{5}{c}{\bfseries Oracle}\\
\midrule
Gold-Ext & Orac & 44.25 & 18.07 & 9.14 \\
TLM-I+E (G,G) & Orac& 46.52 & 18.19 & 8.73 \\
\bottomrule
\end{tabular}
\end{document}
示例 2 – 丑陋且错误的“类似 Word”表格
\documentclass{scrartcl}
\usepackage{lmodern}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{array}
\setlength{\extrarowheight}{2pt}
\begin{document}
\noindent\begin{tabular}{|l|c|r|r|r|}
\hline
&&\multicolumn{3}{c|}{ROUGE}\\
Model&Type&\multicolumn{1}{c}{1}&\multicolumn{1}{c}{2}&\multicolumn{1}{c|}{3}\\
\hline
\multicolumn{5}{|c|}{\bfseries Previous work}\\
\hline
SumBasix & Ext &29.47 & 6.95 & 2.36\\
LexRank & Ext & 33.85 & 10.73 & 4.54\\
LSA & Ext & 29.91 & 7,42 & 3.12\\
\hline
Seq2Seq & Abs & 29.30 & 6.00 & 1.77\\
Pointer-gen& Mix & 32.06 & 9.04 & 2.15 \\
Discourse & Mix & 35.80 & 11.05 & 3.62 \\
\hline
\multicolumn{5}{|c|}{\bfseries Our Models}\\
\hline
Lead-10 & Ext & 35.52& 10.33 & 3.74\\
Sent-CLF & Ext & 34.01 & 8.71 & 2.99\\
Sent-PTR & Ext & \itshape 42.32 & \itshape 15.63 & \itshape 7.49\\
\hline
TLM-I & Abs & 39.80 & 12.20 & 4.42\\
TLM-I+E (M,M) & Mix & 41.59 & 14.26 & 5.94 \\
TLM-I+E (G,M) & Mix & \bfseries 42.43 & \bfseries 15.24 & \bfseries 6.68 \\
\hline
\multicolumn{5}{|c|}{\bfseries Oracle}\\
\hline
Gold-Ext & Orac & 44.25 & 18.07 & 9.14 \\
TLM-I+E (G,G) & Orac& 46.52 & 18.19 & 8.73 \\
\hline
\end{tabular}
\end{document}