I have installed the TeXLive distribution. From emacs running in cygwin mintty, the LaTeX binaries are visible from my PATH environment variable. I installed AucTeX using the built in Emacs package manager with the package from Elpa.

$ which latex
$ which pdflatex
$ latex
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/W32TeX) (preloaded format=latex)
 restricted \write18 enabled.

However, when I try C-c C-c from a LaTeX file, I get the following message:

TeX-command: ERROR: AUCTeX cannot find a working TeX distribution.
Make sure you have one and that TeX binaries are in PATH environment variable

Is there some AucTeX variable I could customize to point it in the right direction to the TeX distribution? I am pretty confident my PATH is set correctly.

1 Answer 1


Turns out, I needed to delete the TeXLive distribution which I had installed manually using the TeXLive Windows installer and reinstall TeXLive with the Cygwin setup.exe. This will place everything in the correct places for emacs to be able to see them.

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.