Skip to content
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

中文转化失败 kpathsea:make_tex: Invalid filename `[FandolSong-Regular.otf]/OT', contains '[' #1

Open
blackboxer123 opened this issue Feb 20, 2019 · 3 comments

Comments

@blackboxer123
Copy link

按照前述的步骤安装好软件后,执行命令:
pandoc 'README.md' -o '/workspace/magao.xwj/Markdown2PdfTest/demo-batch-markdown-to-pdf-master/pdf/profile_readme_sample.pdf' --pdf-engine=xelatex -V mainfont='PingFang SC' --template=template.tex

报错:

kpathsea:make_tex: Invalid filename `[FandolSong-Regular.otf]/OT', contains '['
kpathsea:make_tex: Invalid filename `[FandolSong-Regular.otf]/OT', contains '['
Error producing PDF.
! Package fontspec Error: The font "FandolSong-Regular" cannot be found.

For immediate help type H <return>.
 ...                                              
                                                  
l.113   }
@morty6688
Copy link

把之前装的tex都卸载了,重新装一下

@appdev
Copy link

appdev commented Dec 17, 2019

如何卸载

@alexanderzjs
Copy link

这个东西是xelatex的字体问题,下载一下然后刷新字体缓存就好了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants