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&#39;m no coder but the relevant html seems to be:
<br />
<br />&lt;div id=3D&quot;fig:threearrows&quot; class=3D&quot;figure&quot;&g=
t;
<br />&lt;p&gt;&lt;img src=3D&quot;./images/threearrows.png&quot; width=3D&=
quot;300&quot; height=3D&quot;300&quot; align=3D&quot;center&quot; alt=3D&q=
uot;./images/threearrows.png&quot; /&gt;&lt;/p&gt;
<br />&lt;p&gt;Buried services suite&lt;/p&gt;
<br />&lt;/div&gt;
<br />
<br />The source Org file is called (in Windows)
<br />
<br />\site\Experimental-manuals\Manual1.org
<br />
<br />Where folder &quot;site&quot; 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 &quot;scope&quot;.
<br />
<br />#+INCLUDE: &quot;../foldername/filename.org&quot;
<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&quot;500&quot; height=3D&quot;500&quot; align=
=3D&quot;center&quot;
<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&#39;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 &lt;kjambunathan@gmail.com&gt; wrote:
<br />&gt;=20
<br />&gt;=20
<br />&gt;=20
<br />&gt; John
<br />&gt;=20
<br />&gt;=20
<br />&gt;=20
<br />&gt;=20
<br />&gt;=20
<br />&gt; &gt; Hi
<br />&gt;=20
<br />&gt;=20
<br />&gt; &gt;
<br />&gt;=20
<br />&gt;=20
<br />&gt; &gt; =A0
<br />&gt;=20
<br />&gt;=20
<br />&gt; &gt;
<br />&gt;=20
<br />&gt;=20
<br />&gt; &gt; I am trying to export html from an Org file &quot;A.org&quo=
t;. The Org file is largly
<br />&gt;=20
<br />&gt;=20
<br />&gt; &gt; constructed from other Org files &quot;1.org&quot;, &quot;2=
.org&quot;, &quot;3.org&quot;, etc.=A0via
<br />&gt;=20
<br />&gt;=20
<br />&gt; &gt; &quot;#+INCLUDE:&quot;. These &quot;1.org&quot;, &quot;2.or=
g&quot;, &quot;3.org&quot;, etc. files=A0have a number of images
<br />&gt;=20
<br />&gt;=20
<br />&gt; &gt; included.
<br />&gt;=20
<br />&gt;=20
<br />&gt; &gt;
<br />&gt;=20
<br />&gt;=20
<br />&gt; &gt; =A0
<br />&gt;=20
<br />&gt;=20
<br />&gt; &gt;
<br />&gt;=20
<br />&gt;=20
<br />&gt; &gt; However the images aren&#39;t included in the export of A.o=
rg.
<br />&gt;=20
<br />&gt;=20
<br />&gt; &gt;
<br />&gt;=20
<br />&gt;=20
<br />&gt; &gt; =A0
<br />&gt;=20
<br />&gt;=20
<br />&gt; &gt;
<br />&gt;=20
<br />&gt;=20
<br />&gt; &gt; What I think is happening is that the images are being look=
ed for in the relative
<br />&gt;=20
<br />&gt;=20
<br />&gt; &gt; path from &quot;A.org&quot;, whereas they should be looked =
at for=A0in the relative path from
<br />&gt;=20
<br />&gt;=20
<br />&gt; &gt; the=A0&quot;1.org&quot;, &quot;2.org&quot; files. Am I corr=
ect, and=A0is there a workaround (other than
<br />&gt;=20
<br />&gt;=20
<br />&gt; &gt; using an absolute path)?
<br />&gt;=20
<br />&gt;=20
<br />&gt; &gt;
<br />&gt;=20
<br />&gt;=20
<br />&gt;=20
<br />&gt;=20
<br />&gt;=20
<br />&gt; Provide an example of dir organization, some simple orgfiles and=
 the
<br />&gt;=20
<br />&gt;=20
<br />&gt; generated html output samples.
<br />&gt;=20
<br />&gt;=20
<br />&gt;=20
<br />&gt;=20
<br />&gt;=20
<br />&gt; The more the details and samples provided more there would be in=
centive
<br />&gt;=20
<br />&gt;=20
<br />&gt; for someone to help you out.
<br />&gt;=20
<br />&gt;=20
<br />&gt;=20
<br />&gt;=20
<br />&gt;=20
<br />&gt; Jambunathan K.
<br />&gt;=20
<br />&gt;=20
<br />&gt;=20
<br />&gt;=20
<br />&gt;=20
<br />&gt; &gt; =A0
<br />&gt;=20
<br />&gt;=20
<br />&gt; &gt;
<br />&gt;=20
<br />&gt;=20
<br />&gt; &gt; Thanks
<br />&gt;=20
<br />&gt;=20
<br />&gt; &gt;
<br />&gt;=20
<br />&gt;=20
<br />&gt; &gt; John
<br />&gt;=20
<br />&gt;=20
<br />&gt;=20
<br />&gt;=20
<br />&gt;=20
<br />&gt; --
<br />&gt;=20
<br />&gt;=20
<br />&gt;
--001636c5adbf92be8704a067446b--