这个可以这样设置:
;; 使用xelatex一步生成PDF,不是org-latex-to-pdf-process这个命令
(setq org-latex-pdf-process
'(
"xelatex -shell-escape -interaction nonstopmode -output-directory %o %f"
"xelatex -shell-escape -interaction nonstopmode -output-directory %o %f"
"xelatex -shell-escape -interaction nonstopmode -output-directory %o %f"
"rm -fr %b.out %b.log %b.tex auto"
))
;; 设置默认后端为 `xelatex'
(setq org-latex-compiler "xelatex")
如果在windows上,我估计装好对应软件,然后设置好xelatex就可以了。如果是在linux上,可能还会遇到字体的问题。我之前做了一个小的总结: