BUAAThesis icon indicating copy to clipboard operation
BUAAThesis copied to clipboard

关于表格中宋体加粗的问题

Open Diralpo opened this issue 2 years ago • 3 comments

目前在表格环境里中文无法被加粗

Diralpo avatar Apr 21 '23 15:04 Diralpo

模板中的表2和表3中的标题通过\textbf进行加粗都是有效的啊,你的环境和相关指令是?

weiquanmao avatar May 05 '23 13:05 weiquanmao

模板中的表2和表3中的标题通过\textbf进行加粗都是有效的啊,你的环境和相关指令是?

在如下代码表格第一行的模型两字无法被加粗

\begin{table}[htb]
    \centering
    \caption{\label{tab:abl}
        xx在xx数据集上消融实验结果(\%)
    }
    \begin{tabular}{lcc}
        \Xhline{3\arrayrulewidth}
        {\bf 模型}                 & {p} & {r} \\
        \midrule
        x1                         & 2           & 2       \\
        \hdashline
        x2                         &  \bf 4     & \bf 6    \\
        \Xhline{3\arrayrulewidth}
    \end{tabular}
\end{table}

Diralpo avatar Jul 06 '23 15:07 Diralpo

请使用\textbf 替换\bf

\begin{table}[htb]
    \centering
    \caption{\label{tab:abl}
        xx在xx数据集上消融实验结果(\%)
    }
    \begin{tabular}{lcc}
        \Xhline{3\arrayrulewidth}
        {\textbf {模型}}                 & {p} & {r} \\
        \midrule
        x1                         & 2           & 2       \\
        \hdashline
        x2                         &  \bf 4     & \bf 6    \\
        \Xhline{3\arrayrulewidth}
    \end{tabular}
\end{table}

weiquanmao avatar Jul 07 '23 12:07 weiquanmao