我运行我的hello.tex文件。但它始终有警告:
运行计时器'latex-preview-pane-update'时出错:(文件错误“正在搜索程序”“没有这样的文件或目录”“pdflatex”)
我查了.emacs文件。我一直在.emacs中添加脚本。
(setenv "PATH" "/Library/TeX/texbin:$PATH" t)
(latex-preview-pane-enable)
但它仍然无效。我现在该怎么办?
你需要更新exec-path
。你的解决方案应该与call-process-shell-command
一起使用,但是使用call-process
。所以,你想要的东西
(cl-pushnew "/Library/TeX/texbin" exec-path :test #'equal)
然后,您可以检查(executable-find "pdflatex")
找到的程序。