latex-mode 里面确实挺烦的,动不动就因为有些包没有而不能预览。
我的想法是这样的:
(defun eli/change-xenops-latex-header (orig &rest args)
(let ( foo
(org-format-latex-header "xxx"))
(apply orig args)))
(advice-add 'xenops-math-latex-make-latex-document :around #'eli/change-xenops-latex-header)
(advice-add 'xenops-math-file-name-static-hash-data :around #'eli/change-xenops-latex-header)
自动根据当前项目设置 latex-header ,不知道会有什么问题。