From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.help Subject: Re: Problem with AucTeX and Path Date: Fri, 23 Mar 2007 22:56:48 +0100 Organization: Organization?!? Message-ID: <85zm63d3of.fsf@lola.goethe.zz> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1174689507 25835 80.91.229.12 (23 Mar 2007 22:38:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 23 Mar 2007 22:38:27 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 23 23:38:26 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HUsOt-0002zd-RL for geh-help-gnu-emacs@m.gmane.org; Fri, 23 Mar 2007 23:38:24 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HUsQq-0004cM-E7 for geh-help-gnu-emacs@m.gmane.org; Fri, 23 Mar 2007 17:40:24 -0500 Original-Path: shelby.stanford.edu!newshub.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewsinpeer00.lnd.ops.eu.uu.net!bnewsinpeer00.bru.ops.eu.uu.net!emea.uu.net!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.96 (gnu/linux) Cancel-Lock: sha1:S9jOFA3pWsWYTjEUiHGoASbVrjk= Original-Lines: 56 Original-NNTP-Posting-Date: 23 Mar 2007 22:56:53 CET Original-NNTP-Posting-Host: b118ef57.newsspool4.arcor-online.net Original-X-Trace: DXC=_PN9N3m`1OJAa; :RKVJ>LE4IUK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:42149 Archived-At: Alberto Simões writes: > I am trying to use AucTeX and compile directly a latex file using PdfLaTeX. > > After calling pdflatex, I get: > Running `LaTeX' on `NATools' with ``pdflatex > "\nonstopmode\input{NATools.tex}"'' > /bin/sh: line 1: pdflatex: command not found > > In my shell: > [ambs@Diabelli ACL2007]$ which pdflatex > /usr/texbin/pdflatex > > And in my .emacs: > > (custom-set-variables > ;; custom-set-variables was added by Custom. > ;; If you edit it by hand, you could mess it up, so be careful. > ;; Your init file should contain only one such instance. > ;; If there is more than one, they won't work right. > '(TeX-PDF-mode t) > '(c-default-style "stroustrup") > '(cperl-electric-parens-mark nil) > '(exec-path (quote ("/sw/bin" "/usr/bin" "/bin" "/usr/sbin" "/sbin" > "/opt/libexec/emacs/22.0.50/powerpc-apple-darwin8.1.0" > "/usr/texbin"))) > [...] > > What am I doing wrong? exec-path is useless here, since pdflatex is called through a shell. Use PATH. >>From INSTALL.windows: If the configuration script failed to find all required programs, make sure that these programs are in your system path and add directories containing the programs to the `PATH' environment variable if necessary. Here is how to do that in W2000/XP: 1. On the desktop, right click "My Computer" and select properties. 2. Click on "Advanced" in the "System Properties" window. 3. Select "Environment Variables". 4. Select "path" in "System Variables" and click "edit". Move to the front in the line (this might require scrolling) and add the missing path including drive letter, ended with a semicolon. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum