jsinglet / latex-preview-pane

Makes LaTeX editing less painful by providing a updatable preview pane
130 stars 24 forks source link

pdflatex not found despite setting PATH #29

Closed aNaravi closed 8 years ago

aNaravi commented 8 years ago

I get "Searching for program: No such file or directory, pdflatex" when I try loading/refreshing the pane. I've set the PATH variable in .emacs to include the latex directory (it exists in /home). This works fine with AUCTeX.

jsinglet commented 8 years ago

A few responses:

  1. What OS?
  2. The PATH environment variable in .emacs is not what you want to set (if you set something). You want exec-path.
  3. I highly suggest adding the package: https://github.com/purcell/exec-path-from-shell

It will make the emacs exec-path the same as your shell. Make sure you can execute the command pdflatex from the command line and all should work in emacs.

Best, JLS

aNaravi commented 8 years ago
  1. Ubuntu
  2. Setting exec-path worked. Thanks.