wshuyi / demo-batch-markdown-to-pdf

208 stars 52 forks source link

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

Open blackboxer123 opened 5 years ago

blackboxer123 commented 5 years ago

按照前述的步骤安装好软件后,执行命令: 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 commented 5 years ago

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

appdev commented 4 years ago

如何卸载

alexanderzjs commented 3 years ago

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