From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Wittern Subject: Re: latex export on mac os x with xelatex Date: Mon, 22 Feb 2010 20:49:26 +0900 Message-ID: <4B826F46.5080306@gmail.com> References: <4B82337A.6090201@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NjWnB-0000Ki-E0 for emacs-orgmode@gnu.org; Mon, 22 Feb 2010 06:49:37 -0500 Received: from [140.186.70.92] (port=55536 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NjWn9-0000Ju-SA for emacs-orgmode@gnu.org; Mon, 22 Feb 2010 06:49:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NjWn8-0005JM-G7 for emacs-orgmode@gnu.org; Mon, 22 Feb 2010 06:49:35 -0500 Received: from mail-yx0-f175.google.com ([209.85.210.175]:42357) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NjWn8-0005JD-Cx for emacs-orgmode@gnu.org; Mon, 22 Feb 2010 06:49:34 -0500 Received: by yxe5 with SMTP id 5so3131655yxe.24 for ; Mon, 22 Feb 2010 03:49:33 -0800 (PST) In-Reply-To: <4B82337A.6090201@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org Mode Mailing List Hi there, For the benefit of later visitors, here is how I worked around the problem for the moment: orgmode seems to ignore the exec-path, so I looked at the result of (getenv "PATH"), which was very little. Saying (setenv "PATH" (concat "/usr/local/texlive/2009/bin/universal-darwin:" (getenv "PATH"))) in my .emacs solved the problem, the latex export now happily works its way to the texlive programs and does what it needs to do. So I suspect this is some kind of setup problem that might be specific to my installation. I will see if I can find out more once I have a little time. Thanks for your time:-) All the best, Christian On 2010-02-22 16:34, Christian Wittern wrote: > Dear Orgmode users, > > I am trying to get Latex export working on a Mac OS X system. I have > installed MacTex with the whole texlive tree. I added the path to these > binaries to exec-path like so: > > (if (eq window-system 'mac) > (add-to-list 'exec-path "/usr/local/texlive/2009/bin/universal-darwin") > ) > > and can confirm that it is indeed picked up and existing in the exec-path. > > However, org-export-as-pdf does not manage to produce a pdf. > > Next I customized the variable to include the path so that I have > > "/usr/local/texlive/2009/bin/universal-darwin/xelatex -interaction > nonstopmode %s" (on one line) as the value of org-latex-to-pdf-process. > > Now the xelatex command runs, but the next step fails, since xelatex can not > convert its intermediate file to a pdf, so I get as the first line in the > buffer *Org PDF Latex Output* : > > sh: xdvipdfmx: command not found > > But now I have no idea where to go to tell orgmode how to find the command > -- someting seems to be seriously wrong (or I am misunderstanding how stuff > is supposed to work) so any help would be appreciated. > > All the best, > > Christian -- Christian Wittern Institute for Research in Humanities, Kyoto University 47 Higashiogura-cho, Kitashirakawa, Sakyo-ku, Kyoto 606-8265, JAPAN