Comments (5)
求助 @zepinglee 大佬。
此外我们看到 Liam大佬的博客 :CTeX 2.4.14:macOS 字体配置升级,感觉改为fontset=macnew
问题不大。
from hfut_thesis.
这里改不改 macnew
都不是关键,ctex 宏集会自动检测。
from hfut_thesis.
找不到字体估计是 mac 的问题。
但比较疑虑 会不会对模板预设字体造成影响
从
%<*macold>
\setCJKmainfont { STSong }
[ BoldFont = STHeiti, ItalicFont = STKaiti ]
\setCJKsansfont { STXihei } [ BoldFont = STHeiti ]
\setCJKmonofont { STFangsong }
\setCJKfamilyfont { zhsong } { STSong }
\setCJKfamilyfont { zhhei } { STHeiti }
\setCJKfamilyfont { zhfs } { STFangsong }
\setCJKfamilyfont { zhkai } { STKaiti }
%</macold>
%<*macnew>
\setCJKmainfont { Songti~SC~Light }
[
BoldFont = Songti~SC~Bold,
ItalicFont = Kaiti~SC,
BoldItalicFont = Kaiti~SC~Bold
]
\setCJKsansfont { PingFang~SC }
\setCJKmonofont { STFangsong }
\setCJKfamilyfont { zhsong } { Songti~SC~Light } [ BoldFont = Songti~SC~Bold ]
\setCJKfamilyfont { zhhei } { Heiti~SC~Light } [ BoldFont = Heiti~SC~Medium ]
\setCJKfamilyfont { zhpf } { PingFang~SC }
\setCJKfamilyfont { zhfs } { STFangsong }
\setCJKfamilyfont { zhkai } { Kaiti~SC } [ BoldFont = Kaiti~SC~Bold ]
\setCJKfamilyfont { zhli } { Baoli~SC }
\setCJKfamilyfont { zhyou } { Yuanti~SC~Light } [ BoldFont = Yuanti~SC~Regular ]
%</macnew>
1可以看出,old 和 new 相对于你现在模板里的设置是有影响的,所以这里建议手动设置一下字体
\cs_new_protected:Npn \__gdut_load_cjk_font_mac:
{
\__gdut_setCJKmainfont:nn { STSongti-SC }
{
UprightFont = *-Light,
BoldFont = *-Bold,
ItalicFont = *-Light,
BoldItalicFont = *-Bold
}
\__gdut_setCJKsansfont:nn { STHeitiSC }
{
UprightFont = *-Medium,
AutoFakeBold = true,
ItalicFont = *-Medium,
BoldItalicFont = *-Medium
}
\__gdut_setCJKmonofont:n { STFangsong }
\__gdut_set_cjk_font_kai:nn { STKaitiSC }
{
UprightFont = *-Regular,
BoldFont = *-Bold,
ItalicFont = *-Regular,
BoldItalicFont = *-Bold
}
}
Footnotes
from hfut_thesis.
这个问题应该是因为 github action 的 macOS 系统中没有 Kaiti SC 导致的。
设置 fontset = macnew
不能解决问题。用户设置的 fontset
是在模板中处理的,并没有 macnew
的选项,也没有传递给 ctex
。这是因为有段时间 ctex-kit
更新不及时,导致在当时最新的 macOS 10.15 无法配置正确的字体,同时也是为了在 Overleaf 平台自动调用 Noto CJK 字体(见 tuna/thuthesis#498)。实际上传给 ctex 的总是 fontset = none
。
Line 405 in f3319fa
个人建议没必要配置 macOS 的 CI。模板在不同平台编译只有字体的差异,而 github action 的 Windows 和 macOS 又没有对应的中文字体,所以 CI 的意义不大。
from hfut_thesis.
Thanks for the valuable advice, we decide deprecate ci testing on macOS
.
Close this issue.
from hfut_thesis.
Related Issues (20)
- 如何将封面系名称改为学院名称呢 HOT 8
- 如何加入作者签名和导师签名图片 HOT 1
- 目录的缩进问题
- 全部数学符号的命令参考的网站无法访问了 HOT 1
- 博士论文致谢位置问题 HOT 1
- 二级标题到底要不要加粗 HOT 1
- 关于图标题多长,导致不居中显示 HOT 1
- 如何给封面添加页码? HOT 3
- 硕士使用学术类型专业报错 HOT 2
- documentclass 在添加 pdf 模式下,会导致页眉的偶数页无法出现 ”合肥工业大学研究生学位论文“。 HOT 1
- 附录中图表题注在插图清单和表格清单中显示不正确
- 建议可以增加控制语句,手动调整是双面打印还是单面打印,在单面打印时取消所有的空白页 HOT 1
- 插图清单和表格清单如何消除各章节之间的空行 HOT 1
- overleaf版本和最新版区别 HOT 2
- overleaf平台设置fontset时报错 HOT 6
- 2023届本科的页眉新标准 HOT 1
- 正文中奇数页和偶数页的页眉不符合学校的要求。
- ./hfutthesis.cls:1844行: “学术硕士” 四字 错打成 “学历硕士”
- 参考文献格式需要与源更新 HOT 2
- 图录清单中不同章节的图片图录之间存在多余的间距 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hfut_thesis.