Latex 更改section 字体

在使用XeLaTeX和Texmaker排版中文报告时,由于默认的英文部分字体不理想,通过引入titlesec和xcolor包,可以实现对section标题的字体和样式进行完全控制,达到类似MS Word的效果。利用fontspec的 ewfontfamily命令定义不同级别的标题字体。
摘要由CSDN通过智能技术生成

问题

在使用Texmaker自动生成的 xelatex 模板排版中文报告时。由于将主字体设置为楷体

\setmainfont[BoldFont=SimHei]{
   STKaiti}

导致 section 使用英文时,默认字体非常的丑陋,效果如下:

这里写图片描述

解决

在Google latex section font 后意外的发现了下面的问答,完美的解决了我想要更换 section 字体的问题,附带还学到了控制 xelatex 产生类似 MS word 文档的标题效果。

The best way to have total control over the sectioning is the titlesec package. Here’s a quick version of the standard MSWord sectioning for the first three levels. To control colours, you need the xcolor package.

If you are using different fonts for different secti

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值