在emacs加载hello.tex时,latex-preview-pane-update找不到“pdflatex”目录

问题描述 投票:0回答:1

我运行我的hello.tex文件。但它始终有警告:

运行计时器'latex-preview-pane-update'时出错:(文件错误“正在搜索程序”“没有这样的文件或目录”“pdflatex”)

我查了.emacs文件。我一直在.emacs中添加脚本。

(setenv "PATH" "/Library/TeX/texbin:$PATH" t)
(latex-preview-pane-enable)

但它仍然无效。我现在该怎么办?

emacs latex-environment executable-path
1个回答
0
投票

你需要更新exec-path。你的解决方案应该与call-process-shell-command一起使用,但是使用call-process。所以,你想要的东西

(cl-pushnew "/Library/TeX/texbin" exec-path :test #'equal)

然后,您可以检查(executable-find "pdflatex")找到的程序。

© www.soinside.com 2019 - 2024. All rights reserved.