请问为什么我的表格字号与正文中一样?
#1019
|
我的表格中字体的字号与正文一样,但是表格题目的字号是正常的。我在表格中没有添加任何类似于\small这种修改表格字体大小的代码,并且.cls中的字号代码也是正确的。搜了一晚上也没找到原因,求求大神帮忙! 附:表格代码 \begin{table}
\centering
\renewcommand\arraystretch{0.95}
\caption{实验参数设定}
\label{tab:parameters_cs}
\begin{tabular}{cccc}
\toprule
参数符号 & 参数取值 & 参数符号 & 参数取值\\ \midrule
$D_{\rm all}$ & \SI{500}{m} & $a_{\rm max}$ & \SI{6}{m.s^{-2}}\\
$D$ & $\SI{260}{m}$ & $a_{\rm min}$ & \SI{-6}{m.s^{-2}}\\
\bottomrule
\end{tabular}
\end{table}附:查找thuthesis.cls文件中的\thu@set@table@font相关代码 \newcommand\thu@set@table@font{
\ifthu@language@chinese
\def\thu@table@font{%
\fontsize{11bp}{14.3bp}\selectfont
\renewcommand\arraystretch{1.42}%
}%
\else
\def\thu@table@font{%
\fontsize{11bp}{12.65bp}\selectfont
\renewcommand\arraystretch{1.47}%
}%
\fi
} |
Answered by
zepinglee
May 14, 2025
Replies: 3 comments 4 replies
|
研究生还是本科生模板? |
1 reply
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment




如果你使用上面示例在最新模板能复现问题,大概率是没有正确载入最新的模板,也可能在哪里错误地设置,建议排查一下。
你要是觉得手动设置不嫌麻烦我没意见,但正确的是
\fontsize{11bp}{14.3bp}\selectfont,注意使用 bp,中文的「单倍行距」是字号的 1.3 倍,需要添加\selectfont。