From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: pdflatex not found? Date: Tue, 27 Oct 2015 16:40:36 +0100 Message-ID: References: <6sw6c7bnbke8ah.fsf@pfdstudio.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53011) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zr6Md-0004vq-UX for emacs-orgmode@gnu.org; Tue, 27 Oct 2015 11:40:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zr6MZ-0002bj-K8 for emacs-orgmode@gnu.org; Tue, 27 Oct 2015 11:40:43 -0400 Received: from mail-wi0-f177.google.com ([209.85.212.177]:38643) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zr6MZ-0002be-9R for emacs-orgmode@gnu.org; Tue, 27 Oct 2015 11:40:39 -0400 Received: by wicll6 with SMTP id ll6so166318263wic.1 for ; Tue, 27 Oct 2015 08:40:38 -0700 (PDT) In-Reply-To: <6sw6c7bnbke8ah.fsf@pfdstudio.com> (Peter Davis's message of "Tue, 27 Oct 2015 09:43:34 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Peter Davis Cc: Nick Dokos , emacs-orgmode@gnu.org, Rainer M Krug --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Peter Davis writes: > Rainer M Krug writes: > >> Envoy=C3=A9 de mon iPhone >> >>> Le 27 oct. 2015 =C3=A0 01:14, Nick Dokos a =C3=A9cri= t : >>>=20 >>> Peter Davis writes: >>>=20 >>>> Nick Dokos writes: >>> ... >>> Yes, probably, but if I can get people to submit backtraces when getting >>> an error, we can cut down the email volume by a factor of 2.43 (making = up >>> fictitious data to bolster my case...) In all seriousness, at least it >>> shows that you are not going down some strange path. > > I think the actual number is more like 2.17, but let's not quibble. > >>>=20 >>> What happens if you say M-x shell-command RET pdflatex RET? > > Not found. > >>> Somebody suggested running "which pdflatex" in your shell - what does >>> that say? > > Still not found. However, adding it to ~/.tcshrc seems to fix the problem= . That makes sense, but leaves two questions: > > 1) Why am I able to run pdflatex (without specifying the path) just from = the shell running in a terminal window? > > 2) What's the point of defining the emacs exec-path, since I needed to de= fine the shell's PATH variable anyway? > >>> And you say it should be in /usr/texbin - what happens if you invoke >>> it with an absolute path: "/usr/texbin/pdflatex" in your shell? >> >> Imiight have missed it - but which OS are you using? > > Sorry. It's OS X 10.10.5, using GNU Emacs 24.5.1 I thought so. OK - you have pdflatex in the terminal? If yes, you have to bring the PATH from the terminal into emacs. I use I use the package exec-path-from-shell for this (and use-package in general= ): =2D-8<---------------cut here---------------start------------->8--- (use-package exec-path-from-shell :ensure t :config=20 (exec-path-from-shell-initialize) (exec-path-from-shell-copy-env "LC_ALL") (exec-path-from-shell-copy-env "LANG") ) =2D-8<---------------cut here---------------end--------------->8--- so =2D-8<---------------cut here---------------start------------->8--- (require 'exec-path-to-shell) (exec-path-from-shell-initialize) =2D-8<---------------cut here---------------end--------------->8--- should do this. Cheers, Rainer > > Thanks! > -pd =2D-=20 Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,= UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D): +49 - (0)3 21 21 25 22 44 email: Rainer@krugs.de Skype: RMkrug PGP: 0x0F52F982 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBCAAGBQJWL5r0AAoJENvXNx4PUvmCMjcIAK82/cG4+PvTybwnku6ThAnl pB027A7MX22kJpSBBGYyF1Hch2yJHK1neOcHENO8M2LIJeUCBklJtCL6NMaQPgDR 66KZptZnUKuuthVqwyHBJ6x58gmrwenvJT5yDpgBUfh5+Jwmf8Gst4rm2Fny8a2G 6K2xPj7EA2ksCdDlfxaumSBeJ8561siscRpKHq2cRAgBbHpBeG0mo0dkRqVAZrpX e+ErGfwq02C+BexkGkFaXQEsEz1xqWGWZYCLVUzbdeQNlB8fImsuhfnTi6/xfuMg Tu0bs7Xm9tPQ8L0b8hobWsQI8VMX1Ch2hEb6eh7ydUKSmS2RCGXRWic68zcPPNw= =r0YI -----END PGP SIGNATURE----- --=-=-=--