From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: pdflatex not found? Date: Tue, 27 Oct 2015 17:40:00 +0100 Message-ID: References: <6sw6c7vb9scmug.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]:43477) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zr7IH-0004GC-Hv for emacs-orgmode@gnu.org; Tue, 27 Oct 2015 12:40:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zr7IE-0003DU-Qu for emacs-orgmode@gnu.org; Tue, 27 Oct 2015 12:40:17 -0400 Received: from mail-wi0-f172.google.com ([209.85.212.172]:34310) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zr7IE-0003DQ-Jw for emacs-orgmode@gnu.org; Tue, 27 Oct 2015 12:40:14 -0400 Received: by wikq8 with SMTP id q8so220191432wik.1 for ; Tue, 27 Oct 2015 09:40:14 -0700 (PDT) In-Reply-To: <6sw6c7vb9scmug.fsf@pfdstudio.com> (Peter Davis's message of "Tue, 27 Oct 2015 12:12:07 -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 Content-Transfer-Encoding: quoted-printable Peter Davis writes: > Rainer M Krug writes: > >>> >>> 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 gene= ral): >> >> (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") >> ) >> >> so >> (require 'exec-path-to-shell) >> (exec-path-from-shell-initialize) >> >> should do this. >> > > Thanks, Rainer. This also raises a question: > > If I run emacs from Finder, which shell governs its behavior? I use both = zsh and tcsh in iTerm 2. ( To quote from the website [[https://github.com/purcell/exec-path-from-shell]]: ,---- | Motivation |=20 | Ever find that a command works in your shell, but not in Emacs? |=20 | This happens a lot on OS X, where an Emacs instance started from the GUI | inherits a default set of environment variables. |=20 | This library works solves this problem by copying important environment | variables from the user's shell: it works by asking your shell to print | out the variables of interest, then copying them into the Emacs | environment. |=20 | Compatibility |=20 | If you use a non-POSIX-standard shell such as tcsh or fish, your shell | will be asked to execute sh as a subshell in order to print out the | variables in a format which can be reliably parsed. sh must be a | POSIX-compliant shell in this case. |=20 | Note that shell variables which have not been exported as environment | variables (e.g. using the "export" keyword) may not be visible to | `exec-path-from-shell'. `---- Maybe this helps you? I have never used anything different than bash and never Ruby - so I can't help you there. Cheers, Rainer > > I think I have tcsh set as my default, but I haven't figured out how > to get Ruby/Rails, etc. running from there, so I still use zsh > for some development.) > > 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----- iQEcBAEBCAAGBQJWL6jqAAoJENvXNx4PUvmCYtUH/ia8sLBktOfttam9r+GBgeNU 4Kf7LKeLZioGyXTQh1IMpjjaDTtHK+Bmy14C7vNDUBLVUCXbF0gQrdHOmjMhyHQ+ gfcvbElD6X23k1QsPTcuRjrUTLLiVezclB6gc4rgtu9dkeuKsb/3A2+SCdRUMrpS 1NtHs1r9mR3OjfUoZBz2kDsiMAm7ZSVH0bnSh1W8ZvdDP24QfhLkcTNUgzUMx4Mw aQbQyCH+m5frYdLtutkoRQLNCRCtDOYzYLyAXP1oiM2Astc4Q/YdgCoz3CP/qK+3 6avzxppU2GCY6kqfhzh9sgEY1T2vLAam8beR8NjfTQ1kPeu++X7mo3rQFwb70dY= =5BO4 -----END PGP SIGNATURE----- --=-=-=--