如何增加表格中水平线的长度?
以下是我们现在的表格:
但我们希望线条更长,如下表所示:
这是我们为表格编写的代码:
\begin{table}[H]
\centering
\begin{tabular}{@{}ccccc@{}} \Xhline{2\arrayrulewidth}
Feature & Mean & Standard Deviation & Max & Min \\ \hline
e25\_20 & 40.355 & 19.815 & 87.36 & 0.0 \\
e25\_60 & 59.556 & 17.55 & 80.39 & 24.74 \\
ec\_20 & 17.668 & 14.704 & 200.3 & 0.1 \\
ec\_60 & 75.23 & 54.485 & 207.5 & 0.2 \\
leak & 0.0 & 0.0 & 0 & 0 \\
temp\_20 & 11.482 & 8.862 & 59.7 & -5.68 \\
temp\_60 & 10.369 & 6.124 & 22.37 & 0.82 \\
valv & 0.0 & 0.0 & 0 & 0 \\
vwc\_20 & 46.593 & 21.342 & 116 & 0 \\
vwc\_60 & 68.768 & 16.141 & 97 & 39 \\ \Xhline{2\arrayrulewidth}
\end{tabular}
\caption{Caption}
\end{table}
答案1
喜欢这个吗?请注意,我借助以下工具为表格单元格添加了一些垂直填充:makecell
\documentclass[]{article}
\usepackage{float}
\usepackage{makecell}
\begin{document}
\begin{table}[H]
\centering\setcellgapes{6pt}\makegapedcells
\begin{tabular}{!{\qquad}ccccc!{\qquad}} \Xhline{2\arrayrulewidth}
Feature & Mean & Standard Deviation & Max & Min \\ \hline
e25\_20 & 40.355 & 19.815 & 87.36 & 0.0 \\
e25\_60 & 59.556 & 17.55 & 80.39 & 24.74 \\
ec\_20 & 17.668 & 14.704 & 200.3 & 0.1 \\
ec\_60 & 75.23 & 54.485 & 207.5 & 0.2 \\
leak & 0.0 & 0.0 & 0 & 0 \\
temp\_20 & 11.482 & 8.862 & 59.7 & -5.68 \\
temp\_60 & 10.369 & 6.124 & 22.37 & 0.82 \\
valv & 0.0 & 0.0 & 0 & 0 \\
vwc\_20 & 46.593 & 21.342 & 116 & 0 \\
vwc\_60 & 68.768 & 16.141 & 97 & 39 \\ \Xhline{2\arrayrulewidth}
\end{tabular}
\caption{Caption}
\end{table}
\end{document}