From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabrice Popineau Subject: Include files and exporter Date: Wed, 18 Sep 2013 08:12:44 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c3d4b0924ffe04e6a2546d Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33328) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMB0d-0000VJ-EQ for emacs-orgmode@gnu.org; Wed, 18 Sep 2013 02:13:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VMB0c-0001Gl-Bt for emacs-orgmode@gnu.org; Wed, 18 Sep 2013 02:13:07 -0400 Received: from mail-ea0-x22d.google.com ([2a00:1450:4013:c01::22d]:35869) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMB0c-0001Gf-4P for emacs-orgmode@gnu.org; Wed, 18 Sep 2013 02:13:06 -0400 Received: by mail-ea0-f173.google.com with SMTP id g10so3207852eak.32 for ; Tue, 17 Sep 2013 23:13:04 -0700 (PDT) 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" --001a11c3d4b0924ffe04e6a2546d Content-Type: text/plain; charset=ISO-8859-1 Hi, Is there anyway to know while exporting what is the relative path of the current node? Let's start with some master org file that includes some other org part from another directory. This org part references some image with a path relative to its own directory. I wonder if there is a way to keep track of the actual location of the image file. I know there is the FILE property, but does it take into account the directory change induced by #include: ? When exporting to latex, there is always the ability to use graphicspath, but when exporting to html, it could be useful to collect all the files and move them to the publish directory. I'm fiddling with o-blog which does this, but does not address this include issue. Thanks for any input / idea about this. -- Fabrice --001a11c3d4b0924ffe04e6a2546d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi,

Is there anyway to know while expor= ting what is the relative path of the current node?
Let's sta= rt with some master org file that includes some other org part from another= directory.
This org part references some image with a path relative to its own di= rectory.
I wonder if there is a way to keep track of the actual l= ocation of the image file.

I know there is the FIL= E property, but does it take into account the directory change induced by #= include: ?

When exporting to latex, there is always the ability to= use graphicspath, but when exporting to html, it could be useful to collec= t all the files and move them to the publish directory. I'm fiddling wi= th o-blog which does this, but does not address this include issue.

Thanks for any input / idea about this.

--
Fabrice
--001a11c3d4b0924ffe04e6a2546d--