From mboxrd@z Thu Jan 1 00:00:00 1970 From: A. Major Subject: BUG(?): #+BINDing org-export-publishing-directory only affects HTML output, not PDF or Babel results Date: Wed, 7 Mar 2012 12:38:48 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:58104) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S5G9X-0008GM-PS for emacs-orgmode@gnu.org; Wed, 07 Mar 2012 07:40:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S5G93-0000qE-44 for emacs-orgmode@gnu.org; Wed, 07 Mar 2012 07:39:35 -0500 Received: from plane.gmane.org ([80.91.229.3]:44427) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S5G92-0000q5-TF for emacs-orgmode@gnu.org; Wed, 07 Mar 2012 07:39:05 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1S5G8w-0007K0-Jx for emacs-orgmode@gnu.org; Wed, 07 Mar 2012 13:38:58 +0100 Received: from dslb-094-218-217-123.pools.arcor-ip.net ([94.218.217.123]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 07 Mar 2012 13:38:58 +0100 Received: from andras.g.major by dslb-094-218-217-123.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 07 Mar 2012 13:38:58 +0100 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: emacs-orgmode@gnu.org 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. 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Ă¡s