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--