From mboxrd@z Thu Jan 1 00:00:00 1970 From: suvayu ali Subject: Re: Export LaTeX file to different directory? Date: Mon, 13 Dec 2010 18:20:50 +0100 Message-ID: References: <20101213104732.GA283@pc201.uni-germanistik.gwdg.de> <20101213113440.GB283@pc201.uni-germanistik.gwdg.de> <20101213154329.GC283@pc201.uni-germanistik.gwdg.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from [140.186.70.92] (port=51169 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PSC5J-0007Qb-8T for emacs-orgmode@gnu.org; Mon, 13 Dec 2010 12:21:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PSC5H-000513-MU for emacs-orgmode@gnu.org; Mon, 13 Dec 2010 12:21:13 -0500 Received: from mail-yx0-f169.google.com ([209.85.213.169]:36802) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PSC5H-00050q-K2 for emacs-orgmode@gnu.org; Mon, 13 Dec 2010 12:21:11 -0500 Received: by yxl31 with SMTP id 31so4099197yxl.0 for ; Mon, 13 Dec 2010 09:21:11 -0800 (PST) In-Reply-To: <20101213154329.GC283@pc201.uni-germanistik.gwdg.de> 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, On Mon, Dec 13, 2010 at 4:43 PM, Joost Kremers wrote: > it works if i export a subtree (C-c C-e 1 l), but not if i export a region (set > mark, highlight region, then C-c C-e l). I think I had missed your earlier comment about exporting regions. > also, it doesn't expand a tilde ~ to my > home directory, so writing > > :EXPORT_FILE_NAME: ~/tmp/temp.tex > > doesn't do what one would expect. (note that i can't write the full path because > i switch between linux and OS X, which expand ~ differently: linux to /home/, > OS X to /Users/.) > On a quick look at the docs, I can't find anything. But it does say if the property EXPORT_FILE_NAME is set, then the exporter will respect it. So if you could set it with some lisp, then you might have a working solution. However you can still make this work but only for sub-trees (not regions) by using relative paths, as in my example. However this does require that your org directory is the same with respect to your $HOME on both systems. So if your org files are in $HOME/org then maybe try "../tmp/file.tex". I know either of these are not exactly what you were looking for, but I am just trying to work around my lack of knowledge about org-mode internals to work out a possible solution. > also, i'd like to be able to specify an export directory for the entire org > file, not just a subtree. Yes this is what I had mentioned in my first post as a feature that I would like too (even more awesome if remote directories are permitted :)). I think right now you can do this by specifying projects in your init files, not sure though. I think I saw a thread related to that within the last few of months, maybe worth a look? -- Suvayu Open source is the future. It sets us free.