Latex三线表设置第一行的行高
问题:
- 现有网上资料设置行高要么把三线表的行高全部设置(
\renewcommand{\arraystretch}{1}
),要么对第一行不管作用(
\rule{0pt}{16pt}
设置内容不知如何垂直对齐;
\specialrule{0em}{1pt}{1pt}
对第一行不管用,内容无法垂直居中)
解决方法:
- 取巧,设置两行的行高
\begin{table}[]
\centering
\caption{Relevant Parameters}
\label{tab:param-tab}
\renewcommand{\arraystretch}{1}
\resizebox{0.8\columnwidth}{!}{%
\begin{tabular}{ll}
\hline
\multirow{2}*{Notation} & \multirow{2}*{Description} \\
& \\
\hline
1 & a \\
2 & b \\
3 & c \\
4 & d \\
5 & e \\ \hline
\end{tabular}%
}
\end{table}
但需要注意导入multirow宏包
\usepackage{multirow}
效果(第一行比其他行高一些):