Comments (9)
Have you installed the required fonts correctly?
from buaathesis.
Yes, I think there are all need fonts on my macos.
current env
macOS Monterey 12.1
MacTex2021
VSCode with LaTex Workshop plugin
issue
When I compile sample-master.tex
by xelatex, but error, there's 9+ errors, just like Package fontspec: The font "SimHei" cannot be found.
, Font TU/SimHei(0)/b/n/10.53937=SimHei/OT:embolden=2.17; at 10.53937pt not loadable: Metric (TFM) file or installed font not found.
, Font shape
U/rsfs/m/n' in size <22.3999> not available` and so on.
figure
from buaathesis.
I test it in a new test.tex by \documentclass{ctexart}
and type Chinese words, run well.
from buaathesis.
I change'd two lines of buaathesis.cls
like this, then it work.
\setCJKfamilyfont{songti}[AutoFakeBold = {2.17}]{STSongti-SC-Regular}
\setCJKfamilyfont{heiti}[AutoFakeBold = {2.17}]{STHeitiSC-Light}
Maybe caused by different os has different font name. On Windows it named SimSun, but STSongti-SC-Regular on macOS.
So you guys should consider how to fix this problem between different os, especially macOS.
Thanks!
from buaathesis.
@RayKr Could you help to try whether removing those \setCJKfamilyfont
commands helps to resolve the problem?
I suppose it might be better to follow the usage of ctex toolkit [1][2] rather than those old hackings.
[1] https://github.com/CTeX-org/ctex-kit
[2] https://ctan.org/tex-archive/language/chinese/ctex
from buaathesis.
Removing those two \setCJKfamilyfont
lines , it also worked, but it lost the bold style.
from buaathesis.
Removing those two
\setCJKfamilyfont
lines , it also worked, but it lost the bold style.
Please try to add AutoFakeBold
in the documentclass
options as mentioned here [1]
[1] https://zhuanlan.zhihu.com/p/111368138 (the last part)
from buaathesis.
Yes, I think there are all need fonts on my macos.
current env
macOS Monterey 12.1 MacTex2021 VSCode with LaTex Workshop plugin
issue
When I compile
sample-master.tex
by xelatex, but error, there's 9+ errors, just likePackage fontspec: The font "SimHei" cannot be found.
,Font TU/SimHei(0)/b/n/10.53937=SimHei/OT:embolden=2.17; at 10.53937pt not loadable: Metric (TFM) file or installed font not found.
,Font shape
U/rsfs/m/n' in size <22.3999> not available` and so on.
Hi @RayKr 对于Mac上这个报错,按照 #307 安装SimSun和SimHei这两个字体之后可以解决。
from buaathesis.
Yes, I think there are all need fonts on my macos.
current env
macOS Monterey 12.1 MacTex2021 VSCode with LaTex Workshop plugin
issue
When I compile
sample-master.tex
by xelatex, but error, there's 9+ errors, just likePackage fontspec: The font "SimHei" cannot be found.
,Font TU/SimHei(0)/b/n/10.53937=SimHei/OT:embolden=2.17; at 10.53937pt not loadable: Metric (TFM) file or installed font not found.
,Font shape
U/rsfs/m/n' in size <22.3999> not available` and so on.
Thanks, it's work!
from buaathesis.
Related Issues (20)
- After recompiling, there is an extra blank line below the figure HOT 3
- 开题报告封面姓名问题 HOT 3
- Incorrect layout for reference in MacOS HOT 8
- 话说现在如何才能联系到《北航开源俱乐部》呢 HOT 10
- 长表格正文内容字号不是小五,要如何设置? HOT 3
- Bachelor thesis seems no longer need to be converted from pdf to docx format HOT 4
- 请问如何取消参考文献中的大小写锁定 HOT 1
- Why not using the package nomencl for the 主要符号对照表 section
- 不同页面段落间距不同 HOT 4
- 内容会向上溢出 HOT 2
- 更好的PDF转Word工具 HOT 1
- 无法正常生成参考文献章节和文献列表 HOT 4
- 伪代码的包algorithm2e和lstlisting不兼容吗 HOT 1
- 请问如何删掉每章后边空白页,导师让全删掉 HOT 2
- ntheorem.sty 报错 Environment equation* undefined
- 会议论文参考文献引用格式问题 HOT 5
- 公式的字体问题 HOT 1
- Conditions in algorithm are underlined automatically using algorithm2e package and TeXLive 2022
- 请问为啥我编译出来参考文献引用时会出现作者的名字,而且引用采用的是圆括号(1)而不是方括号[1]
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 buaathesis.