我的症状是:
如您所见,标题文本离最顶部的规则太近了。如何在该规则和标题文本的顶行之间添加一些垂直空间?
我的代码:
\usepackage{boldline}
.
.
.
\begin{table}[!h]
\centering
\begin{tabular}{l|l|l|l}
\hlineB{4}
List size $N$ & Number of fingers $n$ & Finger configuration & $H_1$ \\
\hline
\hline
17 & 5 & \texttt{[0, 1, 2, 3, 16]} & \cellcolor{blue!36} -0.176 \\
.
.
.
\hline
50 & 8 & \texttt{[0, 1, 2, 3, 4, 5, 6, 49]} & -0.540 \\
\vdots & \vdots & \vdots & \vdots \\
\hlineB{4}
\end{tabular}
\end{table}
答案1
像这样?
对于上表用于\setlength\extrarowheight{2pt}
增加行高 2pt:
\begin{table}[!h]
\setlength\extrarowheight{2pt} % <----
\centering
\begin{tabular}{l|l|l|l}
\hlineB{4}
List size $N$ & Number of fingers $n$ & Finger configuration & $H_1$ \\
\hline
\hline
17 & 5 & \texttt{[0, 1, 2, 3, 16]} & \cellcolor{blue!36} -0.176 \\
\hline
50 & 8 & \texttt{[0, 1, 2, 3, 4, 5, 6, 49]} & -0.540 \\
\vdots & \vdots & \vdots & \vdots \\
\hlineB{4}
\end{tabular}
\end{table}