AUCTeXAUCTeX can't find PDFLaTeX

Information and discussion about AUCTeX, an integrated LaTeX environment based on GNU Emacs and XEmacs
Post Reply
shva
Posts: 4
Joined: Sun Aug 07, 2011 9:09 pm

AUCTeX can't find PDFLaTeX

Post by shva »

Hi all,

I installed TeX Live 2011 from source in my Ubuntu. The AUCTeX module was also compiled and installed instead of pulling from Ubuntu's repository. However, when I opened a LaTeX file with Emacs, and compiled, it complained
Running `LaTeX' on `jun13' with ``pdflatex -interaction=nonstopmode "\input" jun13.tex''
/bin/sh: pdflatex: not found

LaTeX exited abnormally with code 127 at Sat Oct 15 00:40:58
But PDFLaTeX was already in the PATH. I tried this file with TeXmaker, and it was successful. Could anyone please give me a hint what was going on? Thanks.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics
User avatar
shadgrind
Posts: 140
Joined: Thu Jul 16, 2009 12:39 am

AUCTeX can't find PDFLaTeX

Post by shadgrind »

Try putting this in your ~/.emacs file:

Code: Select all

(setq TeX-PDF-mode t)
That should force it to find and run pdflatex when you go to Command -> LaTeX in the Emacs menu. If it still can't find pdflatex, then do "which pdflatex" in a terminal window to make sure it's in your PATH.
System: TeX Live 2012, Fedora 18 x86_64, GNU Emacs 24.2
Post Reply