[BugFix] The font "Arial" cannot be found

阅读 21

2023-05-04


pandoc 转换 md 到 pdf 时,出现下面的错误。


$ pandoc test.md -o test.pdf -t beamer --latex-engine=xelatex --template=beamer-template.tex
pandoc: Error producing PDF from TeX source.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! fontspec error: "font-not-found"
!
! The font "Arial" cannot be found.
!
! See the fontspec documentation for further information.
!
! For immediate help type H <return>.
!...............................................


解决方法:

ubuntu 下执行下面命令:

apt-get install ttf-mscorefonts-installer

精彩评论(0)

0 0 举报