emacs-app does not find latex

Harald Hanche-Olsen hanche at math.ntnu.no
Mon Nov 8 08:19:00 PST 2010


+ Andre Massing <massing at simula.no>:

> (setenv "PATH" (concat "/opt/local/bin:" (getenv "PATH"))) because of
> gs
> (setenv "PATH" (concat "/usr/texbin:" (getenv "PATH"))) because of
> latex and pdflatex

You could combine the two into
  (setenv "PATH" (concat "/usr/texbin:/opt/local/bin:" (getenv "PATH")))
or even
  (setenv "PATH" (concat "/usr/texbin:" "/opt/local/bin:" (getenv "PATH")))

> But somehow it seems strange me that I have to explicitly add them,
> isn't?

Depends how you start emacs. If you start it from the command line
that should not be necessary, but if you start it from the dock or
finder, things are trickier. Check out

  http://developer.apple.com/library/mac/#qa/qa2001/qa1067.html

or do a google search for ".MacOSX/enviroment.plist" for how to set
the environment in those cases.

I am sorry I can't help you with your latest problem, as I don't (yet)
use auc-tex, and neither do I use the macports version of emacs.

- Harald


More information about the macports-users mailing list