请教一下各位大佬,如何在ctex中设置标题中文字体为黑体,因为字体为times呀?我的设置如下:
...
\__xx_setmainfont:nn { Times~ New~ Roman } { }
\__xx_setsansfont:nn { Arial } { }
\__xx_setmonofont:nn { Courier~ New } { }
\__xx_setCJKmainfont:n { SimSun }
\__xx_setCJKsansfont:n { SimHei }
\__xx_setCJKmonofont:n { FangSong }
\__xx_set_cjk_font_kai:n { KaiTi }
...
chapter =
{
format+={\sffamily \zihao{-2} \centering},
number=\chinese{chapter},
name={第,章},
beforeskip = 50 pt,
afterskip = 40 pt,
fixskip = true
},
section =
{
format+={\normalfont \sffamily \zihao{-3} \raggedright},
beforeskip = 3.5 ex plus 1.0 ex minus 0.2 ex,
afterskip = 2.7 ex plus 0.5 ex,
fixskip = true
},
subsection =
{
format = \large \normalfont \sffamily \raggedright,
beforeskip = 3.25 ex plus 1.0 ex minus 0.2 ex,
afterskip = 2.5 ex plus 0.3 ex,
fixskip = true
}
谢谢大佬,确实解决了