多列表格中的垂直线不完整

多列表格中的垂直线不完整

尽管在多列命令中指定了垂直分隔符,但我的第一行的垂直线没有连接到 \toprule。请帮忙!

\begin{table*}[!h]\centering 
    \ra{0.8} 
    \begin{tabular}{|c|  c  c  c  c  c   c  c | c  c  c| }
        \toprule
        & \multicolumn{7}{|c|}{Blast facing side} & \multicolumn{3}{c|}{Rear face of plate}\\ 
        Plate & \multicolumn{4}{|c}{Deposition of burned material} & \multicolumn{3}{c|}{Dome inner surface} & Darkened & Ring around & Lines next \\ 
        & None & Fine & Moderate & Dense & Smooth & Dimples & Cross hatch & dome & dome & to dome \\ 
        \midrule
        BC50SOD & $\checkmark$ &  &  &  & $\checkmark$ &  &  &  &  &  \\ 
        BC60SOD &  & $\checkmark$ &  &  & $\checkmark$ &  &  &  &  &  \\ 
        BC75SOD &  & $\checkmark$ &  &  & $\checkmark$ &  &  &  &  &  \\ 
        36C50SOD &  &  & $\checkmark$ &  &  &  &  &  &  &  \\ 
        36C60SOD &  &  & $\checkmark$  &   &  & $\checkmark$ & $\checkmark$ &  & $\checkmark$  & $\checkmark$ \\ 
        36C75SOD &  &  & $\checkmark$ &  &  &  & $\checkmark$  & $\checkmark$ &  & $\checkmark$  \\ 
        36C80SOD & &  & $\checkmark$ &  &  &  &  &  & $\checkmark$ & $\checkmark$ \\ 
        36C90SOD & &  & $\checkmark$ &  &  &  & $\checkmark$ & $\checkmark$ &  & $\checkmark$ \\ 
        36C100SOD & &  & $\checkmark$ &  &  &  &  & $\checkmark$ &  & $\checkmark$ \\ 
        36C120SOD & &  & $\checkmark$ &  &  &  & $\checkmark$ &  & $\checkmark$ &  \\ 
        \bottomrule
    \end{tabular} 
    \caption{caption} 
    \label{tab:restults} 
\end{table*}

在此处输入图片描述

答案1

您正在使用书形标签,如果您想要具有专业外观的表格,则不应将其与垂直规则一起使用。

出现这种情况的原因是这些规则在其周围添加了一些垂直填充,从而破坏了垂直规则。如果你想要有完整的垂直规则,你必须删除这些填充,添加

\setlength{\aboverulesep}{0pt}
\setlength{\belowrulesep}{0pt}

但你失去了一个主要利益booktabs

您可以替换此填充加载cellspace,它允许定义一个最小 单元格顶部和底部的垂直间距,或makecell允许添加单元格顶部和底部的间距是固定的,并且顺便还定义了可变粗细的线条。

答案2

使用\hline而不是\toprule\midrule干脆根本不使用垂直线!

\def\arraystretch{0.8}
    \begin{tabular}{|c|  c  c  c  c  c   c  c | c  c  c| }
        \hline
        & \multicolumn{7}{|c|}{Blast facing side} & \multicolumn{3}{c|}{Rear face of plate}\\ 
        Plate & \multicolumn{4}{|c}{Deposition of burned material} & \multicolumn{3}{c|}{Dome inner surface} & Darkened & Ring around & Lines next \\ 
        & None & Fine & Moderate & Dense & Smooth & Dimples & Cross hatch & dome & dome & to dome \\ 
        \hline
        BC50SOD & $\checkmark$ &  &  &  & $\checkmark$ &  &  &  &  &  \\ 
        BC60SOD &  & $\checkmark$ &  &  & $\checkmark$ &  &  &  &  &  \\ 
        BC75SOD &  & $\checkmark$ &  &  & $\checkmark$ &  &  &  &  &  \\ 
        36C50SOD &  &  & $\checkmark$ &  &  &  &  &  &  &  \\ 
        36C60SOD &  &  & $\checkmark$  &   &  & $\checkmark$ & $\checkmark$ &  & $\checkmark$  & $\checkmark$ \\ 
        36C75SOD &  &  & $\checkmark$ &  &  &  & $\checkmark$  & $\checkmark$ &  & $\checkmark$  \\ 
        36C80SOD & &  & $\checkmark$ &  &  &  &  &  & $\checkmark$ & $\checkmark$ \\ 
        36C90SOD & &  & $\checkmark$ &  &  &  & $\checkmark$ & $\checkmark$ &  & $\checkmark$ \\ 
        36C100SOD & &  & $\checkmark$ &  &  &  &  & $\checkmark$ &  & $\checkmark$ \\ 
        36C120SOD & &  & $\checkmark$ &  &  &  & $\checkmark$ &  & $\checkmark$ &  \\ 
        \hline
    \end{tabular}   

在此处输入图片描述

答案3

如果您确实想使用与 规则兼容的垂直规则booktabs(即使这不符合 的精神booktabs),您可以使用{NiceTabular}nicematrix请注意,在该环境中,您必须不是将垂直标尺(带有|)放回说明书中\multicolumn

\documentclass[landscape]{article}
\usepackage{nicematrix}
\usepackage{booktabs}
\usepackage{amsfonts}

\begin{document}

\begin{table*}[!h]\centering 
\renewcommand{\arraystretch}{0.8}
\begin{NiceTabular}{|c|  c  c  c  c  c   c  c | c  c  c| }
    \toprule
    & \multicolumn{7}{c}{Blast facing side} & \multicolumn{3}{c}{Rear face of plate}\\ 
    Plate & \multicolumn{4}{c}{Deposition of burned material} & \multicolumn{3}{c}{Dome inner surface} & Darkened & Ring around & Lines next \\ 
    & None & Fine & Moderate & Dense & Smooth & Dimples & Cross hatch & dome & dome & to dome \\ 
    \midrule
    BC50SOD & $\checkmark$ &  &  &  & $\checkmark$ &  &  &  &  &  \\ 
    BC60SOD &  & $\checkmark$ &  &  & $\checkmark$ &  &  &  &  &  \\ 
    BC75SOD &  & $\checkmark$ &  &  & $\checkmark$ &  &  &  &  &  \\ 
    36C50SOD &  &  & $\checkmark$ &  &  &  &  &  &  &  \\ 
    36C60SOD &  &  & $\checkmark$  &   &  & $\checkmark$ & $\checkmark$ &  & $\checkmark$  & $\checkmark$ \\ 
    36C75SOD &  &  & $\checkmark$ &  &  &  & $\checkmark$  & $\checkmark$ &  & $\checkmark$  \\ 
    36C80SOD & &  & $\checkmark$ &  &  &  &  &  & $\checkmark$ & $\checkmark$ \\ 
    36C90SOD & &  & $\checkmark$ &  &  &  & $\checkmark$ & $\checkmark$ &  & $\checkmark$ \\ 
    36C100SOD & &  & $\checkmark$ &  &  &  &  & $\checkmark$ &  & $\checkmark$ \\ 
    36C120SOD & &  & $\checkmark$ &  &  &  & $\checkmark$ &  & $\checkmark$ &  \\ 
    \bottomrule
\end{NiceTabular} 
\caption{caption} 
\end{table*}

\end{document}

上述代码的输出

相关内容