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: <emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org> 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 <johngtait@gmail.com>) 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 <johngtait@gmail.com>) 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 <emacs-orgmode@gnu.org>; Fri, 08 Apr 2011 05:21:39 -0700 (PDT) In-Reply-To: <81lizlt0ue.fsf@gmail.com> List-Id: "General discussions about Org-mode." <emacs-orgmode.gnu.org> List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/emacs-orgmode>, <mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe> List-Archive: <http://lists.gnu.org/archive/html/emacs-orgmode> List-Post: <mailto:emacs-orgmode@gnu.org> List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help> List-Subscribe: <http://lists.gnu.org/mailman/listinfo/emacs-orgmode>, <mailto:emacs-orgmode-request@gnu.org?subject=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 <kjambunathan@gmail.com>, John Tait <johngtait@gmail.com> 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: <div id="fig:threearrows" class="figure"> <p><img src="./images/threearrows.png" width="300" height="300" align="center" alt="./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. 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 <kjambunathan@gmail.com> 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... <br /> <br />I'm no coder but the relevant html seems to be: <br /> <br /><div id=3D"fig:threearrows" class=3D"figure"&g= t; <br /><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> <br /><p>Buried services suite</p> <br /></div> <br /> <br />The source Org file is called (in Windows) <br /> <br />\site\Experimental-manuals\Manual1.org <br /> <br />Where folder "site" contains all the files. <br />=20 <br />Manual1.org calls a dozen #+INCLUDEd Org files arrranged like this: <br /> <br />site\foldername\filename.org <br /> <br />using this format: in Manual1.org <br /> <br />--------- <br /> <br />* Introduction to this manual :scope: <br /> <br />This is an experimental manual, with selected export. The selected te= xt is based on the tag "scope". <br /> <br />#+INCLUDE: "../foldername/filename.org" <br /> <br />--------- <br /> <br />The images are arranged like this: <br /> <br />\site\foldername\images\picture.png <br /> <br /> <br />All the image files are included in each of the filename.org files so= mething like this: <br /> <br />#+ATTR_HTML: width=3D"500" height=3D"500" align= =3D"center" <br />#+CAPTION: My picture <br />#+LABEL: fig:mypicure <br />[[./images/mypicture.png]] <br /> <br />When I export from filename.org (to LateX and html), the images oblig= ingly appear. <br /> <br />However when I export from Manual.org, there is the standard broken p= icture link. <br /> <br />I suspect that the exporter is looking for the image in <br /> <br />\site\Experimental-manuals\images\mypicture.png (which doesn't ex= ist) <br /> <br />where it should be looking in=20 <br /> <br />\site\foldername\images\mypicture.png <br /> <br /> <br />Phew! <br /> <br />John <br /> <br /> <br /> <br /> <br /> <br />On , Jambunathan K <kjambunathan@gmail.com> wrote: <br />>=20 <br />>=20 <br />>=20 <br />> John <br />>=20 <br />>=20 <br />>=20 <br />>=20 <br />>=20 <br />> > Hi <br />>=20 <br />>=20 <br />> > <br />>=20 <br />>=20 <br />> > =A0 <br />>=20 <br />>=20 <br />> > <br />>=20 <br />>=20 <br />> > I am trying to export html from an Org file "A.org&quo= t;. The Org file is largly <br />>=20 <br />>=20 <br />> > constructed from other Org files "1.org", "2= .org", "3.org", etc.=A0via <br />>=20 <br />>=20 <br />> > "#+INCLUDE:". These "1.org", "2.or= g", "3.org", etc. files=A0have a number of images <br />>=20 <br />>=20 <br />> > included. <br />>=20 <br />>=20 <br />> > <br />>=20 <br />>=20 <br />> > =A0 <br />>=20 <br />>=20 <br />> > <br />>=20 <br />>=20 <br />> > However the images aren't included in the export of A.o= rg. <br />>=20 <br />>=20 <br />> > <br />>=20 <br />>=20 <br />> > =A0 <br />>=20 <br />>=20 <br />> > <br />>=20 <br />>=20 <br />> > What I think is happening is that the images are being look= ed for in the relative <br />>=20 <br />>=20 <br />> > path from "A.org", whereas they should be looked = at for=A0in the relative path from <br />>=20 <br />>=20 <br />> > the=A0"1.org", "2.org" files. Am I corr= ect, and=A0is there a workaround (other than <br />>=20 <br />>=20 <br />> > using an absolute path)? <br />>=20 <br />>=20 <br />> > <br />>=20 <br />>=20 <br />>=20 <br />>=20 <br />>=20 <br />> Provide an example of dir organization, some simple orgfiles and= the <br />>=20 <br />>=20 <br />> generated html output samples. <br />>=20 <br />>=20 <br />>=20 <br />>=20 <br />>=20 <br />> The more the details and samples provided more there would be in= centive <br />>=20 <br />>=20 <br />> for someone to help you out. <br />>=20 <br />>=20 <br />>=20 <br />>=20 <br />>=20 <br />> Jambunathan K. <br />>=20 <br />>=20 <br />>=20 <br />>=20 <br />>=20 <br />> > =A0 <br />>=20 <br />>=20 <br />> > <br />>=20 <br />>=20 <br />> > Thanks <br />>=20 <br />>=20 <br />> > <br />>=20 <br />>=20 <br />> > John <br />>=20 <br />>=20 <br />>=20 <br />>=20 <br />>=20 <br />> -- <br />>=20 <br />>=20 <br />> --001636c5adbf92be8704a067446b--