From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Lawrence Subject: Re: Export LaTeX file to different directory? Date: Mon, 13 Dec 2010 10:34:29 -0800 Message-ID: <87aak9h68a.fsf@berkeley.edu> References: <20101213104732.GA283@pc201.uni-germanistik.gwdg.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=57707 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PSDBs-0006Lf-Qu for emacs-orgmode@gnu.org; Mon, 13 Dec 2010 13:32:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PSDBj-0003BR-8u for emacs-orgmode@gnu.org; Mon, 13 Dec 2010 13:32:04 -0500 Received: from lo.gmane.org ([80.91.229.12]:59928) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PSDBi-0003B2-UD for emacs-orgmode@gnu.org; Mon, 13 Dec 2010 13:31:55 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PSDBh-0003HH-7S for emacs-orgmode@gnu.org; Mon, 13 Dec 2010 19:31:53 +0100 Received: from c-67-164-33-170.hsd1.ca.comcast.net ([67.164.33.170]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 13 Dec 2010 19:31:53 +0100 Received: from richard.lawrence by c-67-164-33-170.hsd1.ca.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 13 Dec 2010 19:31:53 +0100 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: emacs-orgmode@gnu.org Hi Joost, > If I export (part of) an org-mode file to LaTeX, the LaTeX file is created in > the same directory as the org-mode file. Is there a way to specify the file > should go somewhere else? Googling and looking through the manual didn't give me > anything concrete. There is apparently a property EXPORT_FILE_NAME, but setting > this doesn't seem to have any effect. (Though I may be using it wrong, there > wasn't any description or example of it in the manual... Plus, I'd like to be > able to specify just the export directory, not necessarily the file name as well.) As far as I know (though others may know better) this isn't possible using per-file configuration with the simple export functions (C-c C-e l and friends). It *is* possible through the publishing framework, though. When you define a publishing target in org-publish-project-alist, you can specify both the :base-directory and :publishing-directory options. For example: (setq org-publish-project-alist '(("orgfiles" :base-directory "~/org" :publishing-directory "~/tmp" :publishing-function org-publish-org-to-html :base-extension "org$"))) See the documentation for "Publishing." This approach, however, requires you to do some Elisp customization, and it requires you to statically define your source and destination directories. You may need something more flexible or configurable on a per-file (or per-export, even) basis. The only solution I know of there is to export to a temporary buffer, then save that buffer in the location you want -- though of course this requires interaction from you. If others know of a middle road between using the publishing framework and just doing C-c C-e L C-x C-s every time, I would be interested in hearing about it too. (If there isn't a middle road, consider this my +1 on adding this feature.) Best, Richard