I run my hello.tex file. But it always has the warning:
Error running timer ‘latex-preview-pane-update’: (file-error "Searching for program" "No such file or directory" "pdflatex")
I've checked .emacs file. I've been adding script in .emacs.
(setenv "PATH" "/Library/TeX/texbin:$PATH" t)
(latex-preview-pane-enable)
But it still dosen't work. How can I do now?
You need to update the
exec-path. Your solution should work withcall-process-shell-command, but that usescall-process. So, you want something likeThen, you can check the program is found with
(executable-find "pdflatex").