From cff30550f55648a1bfa2c2bd977750518b968528 Mon Sep 17 00:00:00 2001 From: Tony Xiang <33901373+T0nyX1ang@users.noreply.github.com> Date: Tue, 31 Mar 2020 15:42:15 +0800 Subject: [PATCH] Set caption font in figure to bold --- WHUBachelor.cls | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/WHUBachelor.cls b/WHUBachelor.cls index 23ee354..384de8c 100644 --- a/WHUBachelor.cls +++ b/WHUBachelor.cls @@ -98,8 +98,10 @@ %%% ---- 图表标题设置 ----- %%% \RequirePackage[labelsep=quad]{caption} % 序号之后空一格写标题 -\captionsetup[table]{textfont=bf} % 设置表格标题字体为黑体 -\renewcommand\figurename{\zihao{-4} 图} +% 设置表格标题字体为黑体, 设置图片标题字体为黑体 +\captionsetup[table]{textfont=bf} +\captionsetup[figure]{textfont=bf} +\renewcommand\figurename{\bf\zihao{-4} 图} \renewcommand\tablename{\bf\zihao{-4} 表} % 使用tabularx创建占满宽度的表格