From fedf6da50f2e6f3242488c952f789eea104e5d6d Mon Sep 17 00:00:00 2001 From: Zeping Lee Date: Wed, 31 Jan 2024 18:46:33 +0800 Subject: [PATCH] Fix font path of MS Word on mac (resolve #913) --- CHANGELOG.md | 1 + thuthesis.dtx | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8cdc8105..e1dc6a3a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ - 封面的学科门类的字号改为三号(16bp),同步《指南》2023 年 3 月版的更改([#899](https://github.com/tuna/thuthesis/issues/899))。 - 统一并简化封面的布局([#900](https://github.com/tuna/thuthesis/issues/900))。 - 英文封面的导师姓名居中对齐([#883](https://github.com/tuna/thuthesis/issues/883))。 +- 修正 macOS 的 MS Office 字体名([#913](https://github.com/tuna/thuthesis/issues/913))。 ### Fixed diff --git a/thuthesis.dtx b/thuthesis.dtx index efd46910..5ce6c3d6 100644 --- a/thuthesis.dtx +++ b/thuthesis.dtx @@ -2251,7 +2251,7 @@ \IfFontExistsTF{SimSun}{ \thusetup{fontset = windows} }{ - \IfFileExists{\thu@mac@word@font@path/SimSun.ttf}{ + \IfFileExists{\thu@mac@word@font@path/SimSun.ttc}{ \thusetup{fontset = windows} }{ \ifthu@system@mac @@ -2545,7 +2545,7 @@ \IfFontExistsTF{SimSun}{ \thusetup{cjk-font = windows} }{ - \IfFileExists{\thu@mac@word@font@path/SimSun.ttf}{ + \IfFileExists{\thu@mac@word@font@path/SimSun.ttc}{ \thusetup{cjk-font = mac-word} }{ \thu@error{Cannot find "SimSun" font}