From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: Re: BUG(?): #+BINDing org-export-publishing-directory only affects HTML output, not PDF or Babel results Date: Thu, 08 Mar 2012 21:09:01 +0100 Message-ID: <4F5911DD.6050805@christianmoe.com> References: <87aa3s1jff.fsf@gmail.com> <4F579B2A.6030104@christianmoe.com> Reply-To: mail@christianmoe.com Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------030701080700060201090709" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36484) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S5jf0-0003Vb-QN for emacs-orgmode@gnu.org; Thu, 08 Mar 2012 15:10:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S5jew-0005ua-2m for emacs-orgmode@gnu.org; Thu, 08 Mar 2012 15:10:02 -0500 Received: from b1.hitrost.net ([91.185.211.67]:58634) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S5jev-0005tP-Ox for emacs-orgmode@gnu.org; Thu, 08 Mar 2012 15:09:58 -0500 In-Reply-To: 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 This is a multi-part message in MIME format. --------------030701080700060201090709 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 3/8/12 7:38 AM, A. Major wrote: > Thanks, but the "dir" PROPERTY appears to affect the target directory for > babel's results, neither the HTML nor the PDF output are influenced that way. Yes, that's why I said "this part of the problem". > Combining BIND and the "dir" PROPERTY, I can get HTML and babel files in the > right place, but not the PDF. > > Any other suggestions? :) Yep. Change three characters in org-latex.el. Problem solved. Maybe. :) The attached patch addresses a difference between the latex and html exporters, enabling the user to choose a different output directory for latex/PDF export by binding org-export-publishing directory, just as was already possible for html export. If there's a latex user following this thread who understands the ways of the latex exporter, could you have a look to see that it doesn't screw up anything else before I submit a properly formatted patch? Yours, Christian diff --git a/lisp/org-latex.el b/lisp/org-latex.el index 03664b4..759fad4 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -870,7 +870,7 @@ when PUB-DIR is set, use this as the publishing directory." (concat (file-name-as-directory (or pub-dir - (org-export-directory :LaTeX ext-plist))) + (org-export-directory :LaTeX opt-plist))) (file-name-sans-extension (or (and subtree-p (org-entry-get rbeg "EXPORT_FILE_NAME" t)) --------------030701080700060201090709 Content-Type: text/plain; x-mac-type="0"; x-mac-creator="0"; name="org-latex.el.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="org-latex.el.diff" diff --git a/lisp/org-latex.el b/lisp/org-latex.el index 03664b4..759fad4 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -870,7 +870,7 @@ when PUB-DIR is set, use this as the publishing directory." (concat (file-name-as-directory (or pub-dir - (org-export-directory :LaTeX ext-plist))) + (org-export-directory :LaTeX opt-plist))) (file-name-sans-extension (or (and subtree-p (org-entry-get rbeg "EXPORT_FILE_NAME" t)) --------------030701080700060201090709--