You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Shengqi Chen edited this page Mar 21, 2024
·
8 revisions
为何编译出的文档中字体跟官方 Word 模板中的不一样?
ThuThesis 为了实现跨平台编译,会自动调用该对应台下的字体,所以与 Word 模板中的 Times New Roman、中易宋体、中易黑体可能不同。建议提交终稿时选择:
在系统中装有 Windows 字体的环境中编译,模板将会自动检测并设置 fontset=windows(亦可手工在 \documentclass 中设置)。
如果使用 Overleaf 等平台,在本地上传 Windows 的对应字体文件到 fonts 目录中,并设置在 \documentclass 中设置 windows-font-dir=./fonts。
数学公式的字体为何不是 LaTeX 默认的 Computer Modern?
《写作指南》中要求西文字体使用 Times New Roman,而 Computer Modern 的字形比 Times 要细很多,所以两者并不搭配。其次,《写作指南》还要求数学符号遵守 GB/T 3102.11—1993(虽然在实际中可能要求并不严格),Computer Modern 的字形无法满足该标准,比如正体的 $\pi$ 和正体的积分号。所以模板中使用了 unicode-math 宏包配置数学字体,用户可以选择 XITS(默认)、STIX2。