From mboxrd@z Thu Jan 1 00:00:00 1970 From: Noorul Islam Subject: [PATCH] Re: Problem when exporting to PDF to a different directory Date: Sat, 7 Aug 2010 14:30:49 +0530 Message-ID: References: <20100803195602.GW1712@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=000e0cd34c7817e08f048d3805e3 Return-path: Received: from [140.186.70.92] (port=56159 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oi9g5-0003vj-Ac for emacs-orgmode@gnu.org; Sun, 08 Aug 2010 13:29:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OhfGt-0007HJ-KC for emacs-orgmode@gnu.org; Sat, 07 Aug 2010 05:00:52 -0400 Received: from mail-yw0-f41.google.com ([209.85.213.41]:65510) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OhfGt-0007HC-EN for emacs-orgmode@gnu.org; Sat, 07 Aug 2010 05:00:51 -0400 Received: by ywg8 with SMTP id 8so4134457ywg.0 for ; Sat, 07 Aug 2010 02:00:50 -0700 (PDT) In-Reply-To: <20100803195602.GW1712@gmail.com> 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: Manuel Amador Cc: emacs-orgmode@gnu.org --000e0cd34c7817e08f048d3805e3 Content-Type: multipart/alternative; boundary=000e0cd34c7817e082048d3805e1 --000e0cd34c7817e082048d3805e1 Content-Type: text/plain; charset=ISO-8859-1 On Wed, Aug 4, 2010 at 1:26 AM, Manuel Amador wrote: > Hi everybody, > > I am running into the following issue. > > I would like to export certain subtrees of an org file to a particular > directory. I set the export property as follows: > > * Test 1 > :PROPERTIES: > :EXPORT_FILE_NAME: some_directory/some_name > :END: > > > When I try exporting the above subtree as a pdf (say for example, by > running > C-c C-e 1 d), the .tex file is created in the appropriate target directory, > but > the .pdf file is created in the current directory (while emacs mistakenly > reports that the pdf was not created). Is there a way to get this to work > correctly? > > The following patch solves this problem. Actually html export has no issues with this. * lisp/org-latex.el: + Modify the custom variable org-latex-to-pdf-process to include -output-directory option for the command pdflatex. + org-export-as-pdf() Give some respect to EXPORT_FILE_NAME if it has path elements. Modified some of the messages to include the file name. Thanks and Regards Noorul --000e0cd34c7817e082048d3805e1 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Wed, Aug 4, 2010 at 1:26 AM, Manuel A= mador <amad= or.manuel@gmail.com> wrote: