emacs-app does not find latex

Harald Hanche-Olsen hanche at math.ntnu.no
Mon Nov 8 05:41:02 PST 2010

+ Andre Massing <massing at simula.no>:

> For some reasons, emacs-app does not find my latex installation
> (Mactex, bin files are located in /usr/texbin).
> I installed emacs-app together with the auctex package (using
> +emacs_app +mactex variants)
> When I run pdflatex via the command menu, I only got the message
> [...]
> "\input" paper.tex''
> /bin/sh: pdflatex: command not found
> [...]
> indicating that pdflatex was not found. But the /usr/texbin is added
> to my PATH variable and I added it as well to the exec-path of emacs.

Exec-path is irrelevant here, as it is sh that can't find pdflatex,
not emacs. PATH is relevant, however. Please run

M-x getenv <RET> PATH <RET>

in emacs and check again that /usr/texbin is in there. If not, maybe
try (setenv "PATH" (concat "/usr/texbin:" (getenv "PATH"))) ?

- Harald

More information about the macports-users mailing list