[l2h] Image directory is not transferable
Molly Weems
weems@ship.saic.com
Thu, 15 Aug 2002 13:39:40 -0400 (EDT)
On Mon, 12 Aug 2002, Daniel Brewer wrote:
> I have a latex document with various images
> in it. When I run latex2html on it with the default settings it
> produces a great html document. The problem is that when I transfer it
> to my website server the images (not the maths symbols etc. just the
> actually images) in the html point to where they were on my home machine
> e.g. /home/daniel/latexdoc/. As my home machine isn't connected to the
> web permeantly it means that the images become broken links.
> Is there anyway to get the images to be self-contained in the directory
> produced by latex2html ao that I can just copy the directory to my
> webserver and it work? I can go through the entire html changing the
> links but this is pretty tiresome.
FWIW, the way we solve this is to use relative paths in the latex
document. For example:
\includegraphics[height=3in]{figures/lmplot_anim}
Note that it *doesn't* say
\includegraphics[height=3in]{users/weems/figures/lmplot_anim}
The relative path produces html that reads:
SRC="../figures/lmplot_anim.gif"
Then when I copy from one machine to another, I copy the html folders
and the figures folder. As long as the two folders remain in the same
location relative to each other, the html picks up the images
just fine.
HTH.
-- Molly Weems
Technical Writer and Editor
Science Applications International Corporation
Ship Technology Division (Division 463)
Annapolis, Maryland, USA
phone: 410-266-0991 or 301-261-8026
mailto:weems@ship.saic.com
http://www.ship.saic.com