Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Diralpo opened this issue Apr 21, 2023 · 3 comments
Open

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

Diralpo opened this issue Apr 21, 2023 · 3 comments

Comments

@Diralpo
Copy link

Diralpo commented Apr 21, 2023

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

@weiquanmao
Copy link
Member

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

@Diralpo
Copy link
Author

Diralpo commented Jul 6, 2023

模板中的表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}

@weiquanmao
Copy link
Member

请使用\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}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants