LaTeX rookie here.
I'm running OS X 10.7 with Emacs 24, Auctex 11.86 and TexLive 2011 via MacTex.
When i run LaTeX through Emacs in the terminal it outputs my test.tex
as test.pdf
just fine.
However, when i run the same file through Auctex in Emacs.app it fails and i'm given:
LaTex: problems after [0] pages'
and the output reads
Running `LaTeX' on `test2' with ``pdflatex -synctex=1 -interaction=nonstopmode "\input" test2.tex''
/bin/sh: pdflatex: command not found
I've been googling this and know this is a fairly common problem, but for the life of me I haven't been able to implement a fix. From what i've read it seems Emacs has a different PATH
than terminal, no? Can someone please explain to me how to fix the PATH
or environment variable
(i'm not sure which) so that Emacs can find pdflatex. Is there something I need to change in my ~/.emacs
?
thanks, any help is appreciated.
environment.plist
solutions, as they can interfere with other applications. The "quick and ugly" solution seems the best; you need to change the path accordingly (the path there assume Darwin Ports). For MacTeX you want to make sure that/usr/texbin/
is early in the path. (You also might want to try Aquamacs.) – Alan Munn Jul 30 '11 at 23:20