Skip to content

如何将图表标题改为加粗宋体 #623

Answered by skyzh
skyzh asked this question in 提问
Discussion options

You must be logged in to vote

可以参考 #308#621 (comment) 的解答。SJTUThesis 项目在之前的版本中都使用楷体作为图表标题,这是因为部分平台上中文字体字重不齐全,会导致生成的 pdf 无法显示中文粗体。

如果您的确需要修改,可以编辑 sjtuthesis.cls 的这两行:

\DeclareCaptionFont{sjtu@caption@font}{\zihao{5}\kaishu}
\DeclareCaptionFont{sjtu@subcaption@font}{\zihao{5}\normalfont}

改为:

\DeclareCaptionFont{sjtu@caption@font}{\zihao{5}\bf}
\DeclareCaptionFont{sjtu@subcaption@font}{\zihao{5}\bf}

如果没有效果,说明目前的字体集中文字体本身不包含粗体字重。请参考相关文档修改文档字体集 fontset \documentclass[type=bachelor,fontset=xxxx]{sjtuthesis}#308 中也有更为详细的解答可以参考。

Replies: 2 comments 1 reply

Comment options

skyzh
May 18, 2021
Maintainer Author

You must be logged in to vote
1 reply
@AlexaraWu
Comment options

Answer selected by skyzh
Comment options

skyzh
Jun 12, 2021
Maintainer Author

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
提问
Labels
None yet
2 participants