On Thu, May 31, 2007 at 06:30:44PM -0500, Karl Berry wrote:
> Hi Patrice,
> 
>     when constructing the url we add the relative path that leads from
>     the document directory to the working directory in front, then the
>     include path and last the file name.
> 
> Hmm.  Can you give an example?  I don't immediately see what the working
> directory has to do with it ... seems strange.

Indeed, it is strange. Imagine that you put resulting documents in the
manuals/ subdirectory, while the images are in the images/ subdirectory,
and the texinfos are in the top directory. This leads to the directory
structure:

$ ls -R .
.:
images  include_image.texi  manuals

./images:
test.jpg

./manuals:
include_image.html



The texinfo source is include_image.texi, there is @image{test}, and the
image is in images/test.jpg.


texi2html is called like:
texi2html -I images/ -o manuals/include_image.html include_image.texi

The working dir is used because -I is relative to the working dir. The
path in the html document is:

<img src="../images//test.jpg" alt="test">

This may be decomposed in 2 parts:

path leading from the manual directory to the current directory: ../
path from the current directory to the image directory: images//test.jpg

Is it clearer?

--
Pat


Reply via email to