I'm running Orgmode 8.2.10 on a Mac (El Capitan) and I'm trying to use C-c C-x C-l to preview some latex formulas. However, using the mentioned shortcut produces the error:

Can't find "latex" (needed to convert LaTeX fragments to images)

I have the following on my .emacs:

(setenv "PATH" (concat (getenv "PATH") ":/usr/local/bin/gs:/Library/TeX/texbin/"))

and I even tried adding :/Library/TeX/texbin/latex, which is where my "latex" is.

  • It may be a symbolic link that is broken due to an upgrade or something. Try locating the actual location and use that instead. For example, mine is at: ...texlive/2012/bin/x86_64-darwin
    – lawlist
    Commented Dec 1, 2015 at 21:45
  • If you've installed LaTex via Macports recently, then latex is probably located at /opt/local/libexec/texlive/texbin/latex
    – Emacs User
    Commented Dec 17, 2015 at 11:57

1 Answer 1


I have the same problem with you on my Mac(El Capitan), and the colon ":" maybe affects.
After I delete the colon ":", the preview works in my Emacs. Here is my code on my .emacs:

(setenv "PATH" (concat "/Library/TeX/texbin" (getenv "PATH")))
(setq exec-path (append '("/Library/TeX/texbin") exec-path))

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.