2
1
I just installed auctex and preview-latex on my mac, and now when I open a tex document I see auctex has been loaded, but when I try to generate a preview I get the following error message:
Running `Preview-LaTeX' on `writeup' with ``latex "\nonstopmode\nofiles\PassOptionsToPackage{active,tightpage,auctex}{preview}\AtBeginDocument{\ifx\ifPreview\undefined\RequirePackage[displaymath,floats,graphics,textmath,sections,footnotes]{preview}[2004/11/05]\fi}" "\input" writeup.tex''
/bin/sh: latex: command not found
Preview-LaTeX exited as expected with code 127 at Tue Jan 18 20:01:34
LaTeX: LaTeX found no preview images
What is going wrong here? LaTeX is in my path, at least at the terminal. For Emacs when I run M-x getenv PATH I don't see the LaTeX installation in my path. I created a file ~/.MacOSX/environment.plist with the following lines:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
<plist version="1.0">
<dict>
<key>PATH</key>
<string>/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/texbin</string>
</dict>
</plist>
But that didn't change my PATH variable in Emacs.app at all.
My custom.el just has two calls in it: (custom-set-variables) and (custom-set-faces) But the path I see when I look at exec-path is different from the PATH. – 2daaa – 2011-01-20T19:03:07.537
What happens when you setq exec-path in your Emacs initialisation file? – Charles Stewart – 2011-01-20T19:29:24.697
Actually it seems to be working now. I rebooted my computer and that seems to have caused Emacs.app to start reading the environment.plist file. – 2daaa – 2011-01-20T20:00:53.190