latex \toprule表格横线加粗导致竖线截断的问题
解决方法:把命令\toprule和\bottomrule的位置互换一下。示例如下:
原来的latex代码:
\begin{table}[th] \label{statistic_table} \tbl{Statistics.} {\begin{tabular}{r|c|c} \toprule & Type & Sub-type \\ \hline Training set & 1960 & 1054 \\ Test set & 1895 & 1052 \\ Total & 3855 & 2106 \\ \bottomrule \end{tabular}} \end{table}
效果:
把命令\toprule和\bottomrule的位置互换一下,latex代码如下:
\begin{table}[th] \label{statistic_table} \tbl{Statistics.} {\begin{tabular}{r|c|c} \bottomrule & Type & Sub-type \\ \hline Training set & 1960 & 1054 \\ Test set & 1895 & 1052 \\ Total & 3855 & 2106 \\ \toprule \end{tabular}} \end{table}
效果:
参考资料:LaTeX Q&A | \toprule命令與表格豎線斷線問題