LaTeX forum ⇒ AUCTeXAUCTeX can't find PDFLaTeX

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

AUCTeX can't find PDFLaTeX

Postby shva » Sat Oct 15, 2011 6:51 am

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 2021: • •
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics
User avatar
Posts: 140
Joined: Thu Jul 16, 2009 12:39 am

AUCTeX can't find PDFLaTeX

Postby shadgrind » Thu Oct 20, 2011 4:20 pm

Try putting this in your ~/.emacs file:

(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

Return to “AUCTeX”

Who is online

Users browsing this forum: No registered users and 3 guests