[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to install images with *.info files?

From: Patrice Dumas
Subject: Re: How to install images with *.info files?
Date: Fri, 1 Jun 2007 08:02:11 +0200
User-agent: Mutt/1.5.14 (2007-02-12)

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

$ ls -R .
images  include_image.texi  manuals



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?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]