我跑的时候:
pandoc --filter pandoc-crossref --filter pandoc-citeproc --biblio reference.bib --csl chinese-gb7714-2005-numeric.csl --latex-engine=xelatex --template=cqu.latex main.md -o main.pdf
终端显示:
! fontspec error: "font-not-found"
!
! The font "[simfang]" cannot be found.
!
! See the fontspec documentation for further information.
!
! For immediate help type H <return>.
!...............................................
l.68 ...bold\zhttfont{[simfang.ttf]}{[simkai.ttf]}
但我已经安装了这个字体。
我搜索并发现有人说我应该转到/usr/local/texlive/2013/texmf-dist/tex/latex/ctex/fontset/ctex-xecjk-winfonts.def
并将[SIMKAI.TTF]
,[SIMFANG.TTF]
更改为KaiTi
,FangSong
。
但是2017年有一个textlive,ctex-fontset-mac.def,ctex-fontset-windows.def
中有ctex-fontset-windowsnew.def
,ctex-fontset-windowsold.def
,fontset
。当我打开它们时,没有[SIMKAI.TTF]
或[SIMFANG.TTF]
。