New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mac下找不到字体 #45
Comments
然而在 \setmainfont{XITS}[
Extension=.otf,
UprightFont=*-Regular,
BoldFont=*-Bold,
ItalicFont=*-Italic,
BoldItalicFont=*-BoldItalic]
\setsansfont{texgyreheros}[
Extension=.otf,
UprightFont=*-regular,
BoldFont=*-bold,
ItalicFont=*-italic,
BoldItalicFont=*-bolditalic]
\setmonofont{texgyrecursor}[
Extension=.otf,
UprightFont=*-regular,
BoldFont=*-bold,
ItalicFont=*-italic,
BoldItalicFont=*-bolditalic] 这边以 |
字体配置可能近段时间需要大改,这个 issue 先留这里了。 |
mac 上 texmf 的字体只能通过文件名调用,另外 XITS 字体在去年 10 改过一次文件名,如果考虑兼容性最好判断一下,参考 |
实验了一下,大概是这样:
反正 XeLaTeX 必有一个会炸 😂。 @zepinglee 你看看还有没有其他问题? |
应该没问题 |
mac下终于搞好了,耗时2小时。。步骤如下:
按@jinyu121的方法解决max下字体问题:
其中 /usr/local/texlive/2010/texmf-dist/路径根据textlive版本各有不同,我的是 /usr/local/texlive/2018/texmf-dist/fonts/opentype 回到fduthesis路径执行:
前者安装模板,后者生成一堆logo文件,复制一个到fduthesis文件夹:
更改thesis/fduthesis-template.tex中的logo = {../logo/pdf/fudan-name-black.pdf},将其注释掉,然后反注释logo = {fudan-name.pdf} 编译两次:
就可以了。。。配latex环境真的是精神伤害。。 |
@hzy46 嗯这样可以让 xelatex 通过字体名识别。稍微改进一下的方法是
这样就可以让字体跟随 tlmgr 进行更新了。 当然,最好还是等 @stone-zeng 把模板改得更通用一点吧 |
目前,在 working 分支下已基本兼容 macOS 平台,欢迎测试。 |
Mac下找不到字体。有几个:
Package fontspec Error: The font "XITS" cannot be found. \documentclass{fduthesis} \begin{document}
Font TU/XITS(0)/m/n/12.045=XITS at 12.045pt not loadable: Metric (TFM) file or installed font not found. \documentclass{fduthesis} \begin{document}
Package fontspec Error: The font "TeX Gyre Heros" cannot be found. \documentclass{fduthesis} \begin{document}
Package fontspec Error: The font "XITS Math" cannot be found. \documentclass{fduthesis} \begin{document}
Package fontspec Error: The font "FandolSong" cannot be found. \documentclass{fduthesis} \begin{document}
Package fontspec Error: The font "FandolKai" cannot be found. \documentclass{fduthesis} \begin{document}
The text was updated successfully, but these errors were encountered: