Re: How to tell Auctex where Latex is?

David Kastrup <[email protected]> Sat, 12 Mar 2005 12:28:14 +0100
Newsgroups gmane.emacs.auc-tex
Message-ID <[email protected]>
Jörg Eschenfelder <[email protected]> writes:

> I am a total newbie to Emacs and Auctex and I have a silly question but
> though I looked at the faq and the manual I cannot figure out, how to tell
> Auctex where my TeX is.
>
> To your information:
> I am running the Carbon Emacs 21.3.5 on an iBook G4 Mac OSX 10.3 and have a
> Latex-installation in /Users/Applications/TexLive2004....
>
> But whenever I try to run Latex I get the message that the process ended
> without writing a page.
> If I run the same file in TexShop everything is fine and the process ends
> without any error.

Put it in your PATH.  I don't know your shells and the MacOSX
organization of files, but as long as you are running only from within
Emacs, something like

(unless (string-match ":/Users/Applications/TexLive2004/bin/macos:"
           (concat ":" (getenv "PATH") ":"))
  (setenv "PATH" (concat "/Users/Applications/TexLive2004/bin/macos:"
     (getenv "PATH"))))

in ~/.emacs should do the trick.  The binary directory will likely be
called something different than "macos".

In the long run, it might be more sensible to do this on startup.  If
you have a .profile file in your home directory, something like

case ":$PATH:" in *:/Users/Applications/TexLive2004/bin/macos:*) ;;
*) PATH="/Users/Applications/TexLive2004/bin/macos:$PATH" ;;
esac

should to the trick there.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum