MacTeX 下设置 CTeX 默认中文字体

在尝试编译包含CTeX模版的中文文档时,遇到了[TIMKAI.TTF]和[TIMFANG.TTF]字体找不到的错误。解决方案是修改/usr/local/texlive/2013/texmf-dist/tex/latex/ctex/fontset/ctex-xecjk-winfonts.def文件,将[SIMKAI.TTF]和[SIMFANG.TTF]替换为STKaiti和STFangsong。文章还提到,在Mac下使用LaTeX的中文字体,需要通过fc-list找到正确的字体变量名,例如STSong。建议完整学习CTeX和TeX的相关知识。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1. 遇到问题

这回找到一些report/thesis/开题报告的模版,主要是中文的。

Why can’t I compile the simplest TeX file of only 6 lines?

This combination of packages is attempting to load the xeCJK package twice: once on line 11 of ctex-xecjk-engine.def from the ctex package, and then again on line 43 of xeCJK-listings.sty from the listings package. The clash you are getting is that the options are different in each case (the first one specifies [BoldFont,normalindentfirst] while the second gives no options).

始终遇到如下错误


!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! fontspec error: "font-not-found"
!
! The font "[SIMKAI.TTF]" cannot be found.
!

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值