From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Tait Subject: Images in included files Date: Fri, 8 Apr 2011 12:12:26 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001636c5c18409a17104a0664d21 Return-path: Received: from [140.186.70.92] (port=55994 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q89c5-00054A-Ar for emacs-orgmode@gnu.org; Fri, 08 Apr 2011 07:12:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q89c4-0003Q6-0M for emacs-orgmode@gnu.org; Fri, 08 Apr 2011 07:12:29 -0400 Received: from mail-ey0-f169.google.com ([209.85.215.169]:60236) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q89c3-0003PV-RL for emacs-orgmode@gnu.org; Fri, 08 Apr 2011 07:12:27 -0400 Received: by eyd9 with SMTP id 9so1083654eyd.0 for ; Fri, 08 Apr 2011 04:12:26 -0700 (PDT) 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: emacs-orgmode@gnu.org --001636c5c18409a17104a0664d21 Content-Type: text/plain; charset=ISO-8859-1 Hi I am trying to export html from an Org file "A.org". The Org file is largly constructed from other Org files "1.org", "2.org", "3.org", etc. via "#+INCLUDE:". These "1.org", "2.org", "3.org", etc. files have a number of images included. However the images aren't included in the export of A.org. What I think is happening is that the images are being looked for in the relative path from "A.org", whereas they should be looked at for in the relative path from the "1.org", "2.org" files. Am I correct, and is there a workaround (other than using an absolute path)? Thanks John --001636c5c18409a17104a0664d21 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi
=A0
I am trying to export html from an Org file "A.org". The Org= file is largly constructed from other Org files "1.org", "2.org", "= ;3.org", etc.=A0via "#+INCLUDE:"= ;. These "1.org", "2.org", "3.org"= ;, etc. files=A0have a number of images included.
=A0
However the images aren't included in the export of A.org.
=A0
What I think is happening is that the images are being looked for in t= he relative path from "A.org", whereas they should be looked at f= or=A0in the relative path from the=A0"1.org", "2.org" files. Am I correc= t, and=A0is there a workaround (other than using an absolute path)?
=A0
Thanks

John
--001636c5c18409a17104a0664d21-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: Images in included files Date: Fri, 08 Apr 2011 17:24:33 +0530 Message-ID: <81lizlt0ue.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=40151 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q8AHB-0005pb-U7 for emacs-orgmode@gnu.org; Fri, 08 Apr 2011 07:54:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q8AHA-0007w5-Pw for emacs-orgmode@gnu.org; Fri, 08 Apr 2011 07:54:57 -0400 Received: from mail-iw0-f169.google.com ([209.85.214.169]:50875) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q8AHA-0007vr-Lj for emacs-orgmode@gnu.org; Fri, 08 Apr 2011 07:54:56 -0400 Received: by iwg8 with SMTP id 8so4580979iwg.0 for ; Fri, 08 Apr 2011 04:54:55 -0700 (PDT) In-Reply-To: (John Tait's message of "Fri, 8 Apr 2011 12:12:26 +0100") 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: John Tait Cc: emacs-orgmode@gnu.org John > Hi > > =A0 > > I am trying to export html from an Org file "A.org". The Org file is larg= ly > constructed from other Org files "1.org", "2.org", "3.org", etc.=A0via > "#+INCLUDE:". These "1.org", "2.org", "3.org", etc. files=A0have a number= of images > included. > > =A0 > > However the images aren't included in the export of A.org. > > =A0 > > What I think is happening is that the images are being looked for in the = relative > path from "A.org", whereas they should be looked at for=A0in the relative= path from > the=A0"1.org", "2.org" files. Am I correct, and=A0is there a workaround (= other than > using an absolute path)? > Provide an example of dir organization, some simple orgfiles and the generated html output samples. The more the details and samples provided more there would be incentive for someone to help you out. Jambunathan K. > =A0 > > Thanks > > John --=20 From mboxrd@z Thu Jan 1 00:00:00 1970 From: johngtait@gmail.com Subject: Re: Re: Images in included files Date: Fri, 08 Apr 2011 12:21:39 +0000 Message-ID: <001636c5adbf92be9b04a067446e@google.com> References: <81lizlt0ue.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001636c5adbf92be8704a067446b Return-path: Received: from [140.186.70.92] (port=46572 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q8Ah4-0005DI-OV for emacs-orgmode@gnu.org; Fri, 08 Apr 2011 08:21:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q8Ah3-00080J-1F for emacs-orgmode@gnu.org; Fri, 08 Apr 2011 08:21:42 -0400 Received: from mail-ey0-f199.google.com ([209.85.215.199]:48441) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q8Ah2-000804-Q8 for emacs-orgmode@gnu.org; Fri, 08 Apr 2011 08:21:40 -0400 Received: by eyb7 with SMTP id 7so992040eyb.6 for ; Fri, 08 Apr 2011 05:21:39 -0700 (PDT) In-Reply-To: <81lizlt0ue.fsf@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: Jambunathan K , John Tait Cc: emacs-orgmode@gnu.org --001636c5adbf92be8704a067446b Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Okay... I'm no coder but the relevant html seems to be:

./images/threearrows.png

Buried services suite

The source Org file is called (in Windows) \site\Experimental-manuals\Manual1.org Where folder "site" contains all the files. Manual1.org calls a dozen #+INCLUDEd Org files arrranged like this: site\foldername\filename.org using this format: in Manual1.org --------- * Introduction to this manual :scope: This is an experimental manual, with selected export. The selected text is based on the tag "scope". #+INCLUDE: "../foldername/filename.org" --------- The images are arranged like this: \site\foldername\images\picture.png All the image files are included in each of the filename.org files something like this: #+ATTR_HTML: width="500" height="500" align="center" #+CAPTION: My picture #+LABEL: fig:mypicure [[./images/mypicture.png]] When I export from filename.org (to LateX and html), the images obligingly appear. However when I export from Manual.org, there is the standard broken picture link. I suspect that the exporter is looking for the image in \site\Experimental-manuals\images\mypicture.png (which doesn't exist) where it should be looking in \site\foldername\images\mypicture.png Phew! John On , Jambunathan K wrote: > John > > Hi > > > > > > > > I am trying to export html from an Org file "A.org". The Org file is > largly > > constructed from other Org files "1.org", "2.org", "3.org", etc. via > > "#+INCLUDE:". These "1.org", "2.org", "3.org", etc. files have a number > of images > > included. > > > > > > > > However the images aren't included in the export of A.org. > > > > > > > > What I think is happening is that the images are being looked for in > the relative > > path from "A.org", whereas they should be looked at for in the relative > path from > > the "1.org", "2.org" files. Am I correct, and is there a workaround > (other than > > using an absolute path)? > > > Provide an example of dir organization, some simple orgfiles and the > generated html output samples. > The more the details and samples provided more there would be incentive > for someone to help you out. > Jambunathan K. > > > > > > Thanks > > > > John > -- --001636c5adbf92be8704a067446b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Okay...

I'm no coder but the relevant html seems to be:

<div id=3D"fig:threearrows" class=3D"figure"&g= t;
<p><img src=3D"./images/threearrows.png" width=3D&= quot;300" height=3D"300" align=3D"center" alt=3D&q= uot;./images/threearrows.png" /></p>
<p>Buried services suite</p>
</div>

The source Org file is called (in Windows)

\site\Experimental-manuals\Manual1.org

Where folder "site" contains all the files.
=20
Manual1.org calls a dozen #+INCLUDEd Org files arrranged like this:

site\foldername\filename.org

using this format: in Manual1.org

---------

* Introduction to this manual :scope:

This is an experimental manual, with selected export. The selected te= xt is based on the tag "scope".

#+INCLUDE: "../foldername/filename.org"

---------

The images are arranged like this:

\site\foldername\images\picture.png


All the image files are included in each of the filename.org files so= mething like this:

#+ATTR_HTML: width=3D"500" height=3D"500" align= =3D"center"
#+CAPTION: My picture
#+LABEL: fig:mypicure
[[./images/mypicture.png]]

When I export from filename.org (to LateX and html), the images oblig= ingly appear.

However when I export from Manual.org, there is the standard broken p= icture link.

I suspect that the exporter is looking for the image in

\site\Experimental-manuals\images\mypicture.png (which doesn't ex= ist)

where it should be looking in=20

\site\foldername\images\mypicture.png


Phew!

John





On , Jambunathan K <kjambunathan@gmail.com> wrote:
>=20
>=20
>=20
> John
>=20
>=20
>=20
>=20
>=20
> > Hi
>=20
>=20
> >
>=20
>=20
> > =A0
>=20
>=20
> >
>=20
>=20
> > I am trying to export html from an Org file "A.org&quo= t;. The Org file is largly
>=20
>=20
> > constructed from other Org files "1.org", "2= .org", "3.org", etc.=A0via
>=20
>=20
> > "#+INCLUDE:". These "1.org", "2.or= g", "3.org", etc. files=A0have a number of images
>=20
>=20
> > included.
>=20
>=20
> >
>=20
>=20
> > =A0
>=20
>=20
> >
>=20
>=20
> > However the images aren't included in the export of A.o= rg.
>=20
>=20
> >
>=20
>=20
> > =A0
>=20
>=20
> >
>=20
>=20
> > What I think is happening is that the images are being look= ed for in the relative
>=20
>=20
> > path from "A.org", whereas they should be looked = at for=A0in the relative path from
>=20
>=20
> > the=A0"1.org", "2.org" files. Am I corr= ect, and=A0is there a workaround (other than
>=20
>=20
> > using an absolute path)?
>=20
>=20
> >
>=20
>=20
>=20
>=20
>=20
> Provide an example of dir organization, some simple orgfiles and= the
>=20
>=20
> generated html output samples.
>=20
>=20
>=20
>=20
>=20
> The more the details and samples provided more there would be in= centive
>=20
>=20
> for someone to help you out.
>=20
>=20
>=20
>=20
>=20
> Jambunathan K.
>=20
>=20
>=20
>=20
>=20
> > =A0
>=20
>=20
> >
>=20
>=20
> > Thanks
>=20
>=20
> >
>=20
>=20
> > John
>=20
>=20
>=20
>=20
>=20
> --
>=20
>=20
> --001636c5adbf92be8704a067446b-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Goldman Subject: Re: Images in included files Date: Sun, 01 May 2011 17:37:18 -0500 Message-ID: <4DBDE09E.2010000@sift.info> References: <81lizlt0ue.fsf@gmail.com> <001636c5adbf92be9b04a067446e@google.com> Reply-To: rpgoldman@sift.info Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:58500) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGfGT-0003hm-L8 for emacs-orgmode@gnu.org; Sun, 01 May 2011 18:37:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QGfGS-0000Ks-MF for emacs-orgmode@gnu.org; Sun, 01 May 2011 18:37:21 -0400 Received: from mpls.sift.info ([75.146.46.193]:35298) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGfGS-0000Ko-IL for emacs-orgmode@gnu.org; Sun, 01 May 2011 18:37:20 -0400 In-Reply-To: <001636c5adbf92be9b04a067446e@google.com> 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: Org Mode I'm having exactly this same problem. I have a file, suggestions.org, in directory ~/x/y/z/top/child/ that contains many images. These are included by means of links such as [[./foo.pdf]] Now, I have a parent file in top/, manual.org, and I want to #+include "child/suggestions.org" Unfortunately, this breaks all the figure links in suggestions.org, because "." is interpreted as top/ and not top/child/. Even more unfortunately, this is a shared document, and a number of people are going to check it out from a source code repository (subversion in this case). This means that I cannot specify the images as ~/x/y/z/top/child/foo.pdf because I cannot force my co-authors to check out the top/ to ~/x/y/z. Indeed, I cannot even force my co-authors to have directories x/ x/y or x/y/z... So what is needed, I believe is some way of indicating that these relative links should be resolved at *include* time, rather than later. I am pretty sure that this is the same problem John Tait alludes to, with some more details. Best, Robert