From mboxrd@z Thu Jan 1 00:00:00 1970 From: Myles English Subject: Re: BUG(?): #+BINDing org-export-publishing-directory only affects HTML output, not PDF or Babel results Date: Wed, 07 Mar 2012 16:10:12 +0000 Message-ID: <87aa3s1jff.fsf@gmail.com> References: Reply-To: emacs-orgmode@gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:56781) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S5JNX-0006Xf-ML for emacs-orgmode@gnu.org; Wed, 07 Mar 2012 11:06:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S5JNS-0006G8-Ix for emacs-orgmode@gnu.org; Wed, 07 Mar 2012 11:06:15 -0500 Received: from mail-we0-f169.google.com ([74.125.82.169]:58168) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S5JNS-0006Fs-9r for emacs-orgmode@gnu.org; Wed, 07 Mar 2012 11:06:10 -0500 Received: by werj55 with SMTP id j55so5051880wer.0 for ; Wed, 07 Mar 2012 08:06:07 -0800 (PST) In-Reply-To: (A. Major's message of "Wed, 7 Mar 2012 12:38:48 +0000 (UTC)") 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: "A. Major" Cc: emacs-orgmode@gnu.org >> On Wed, 7 Mar 2012 12:38:48 +0000 (UTC), A Major said: > Hi, I'm trying to set up my .org file such that export commands > create all results in a certain directory rather than the directory > containing the .org file. So I've added the option > #+BIND: org-export-publishing-directory "/tmp/export-test" > at the beginning of the file, which seems to work fine for a simple > test file with HTML export. > If I try to export the .org file as a PDF document, however, the > result still resides in the directory containing the .org file -- > which isn't what I want and is also counterintuitive given the name > of the variable set in the BIND option. Hi Andr=C3=A1s, For pdf export, I have ended up using cmake to do an out-of-source build [1] so all the files that latex produces go in one, expendable directory and the original directory (under git management) remains free of clutter. It is a little complicated though. I dream that one day maybe org will be able to tangle its own CMakeLists.txt on export. > Even worse, if the .org file uses Babel to create files (say, in PNG > format) as a result (via ditaa, graphviz, etc.), then these files > end up in the directory containing the .org file, not in > /tmp/export-test, where the HTML file is placed. This leaves the > HTML output completely broken. > Is there a proper way of doing this (short of "publishing", which > isn't what I want because I find it too complex in my case), and am > I doing something very wrong here? > Thanks, > Andr=C3=A1s Myles Footnotes:=20 [1] http://www.cmake.org/Wiki/CMakeUserUseLATEX