场景
如下所示:
可以发现每一列始终贴着上面,无法实现垂直居中。网上的解决办法如\centering
和\renewcommand{\arraystretch}{1.5}
等都不起作用。
解决办法
检查表格中每一行是否由\hline
定义,如下所示:
\begin{table}
\caption{.}
\label{tab1}
%\renewcommand{\arraystretch}{1.0}
\centering
\scalebox{0.8}{
\begin{tabular}{cccccccccccc}
\toprule[1.5pt]
x & x & x & x & x \\
\hline
\multirow{2}{*}{BuzzFeed}
将所有\hline
替换为\midrule[0.5pt]
即可解决,如下所示:
\begin{table}
\caption{.}
\label{tab1}
%\renewcommand{\arraystretch}{1.0}
\centering
\scalebox{0.8}{
\begin{tabular}{cccccccccccc}
\toprule[1.5pt]
x & x & x & x & x \\
\midrule[0.5pt]
\multirow{2}{*}{BuzzFeed}
改正后: