> Hi, > > apologies if this is a FAQ, but IMG is a very common tag in the archives, > making it hard to search on. > > I have been using latex2html to generate online versions of all my latex > documents which are prepared by lyx. The html code that is generated for a > GIF image looks like so:- > > <IMG > WIDTH="" HEIGHT="" ALIGN="BOTTOM" BORDER="0" > SRC="./zones.gif" > ALT="Image zones">
How have you specified the .gif image for inclusion within the HTML document? Using \htmladdimg or using \includegraphics ? (The name zones.gif is not one that LaTeX2HTML would generate automatically.) To have no width or height should mean that LaTeX2HTML was unable to find the image and read the beginning of the file to determine these values. This failure should have resulted in a message to the screen log. Finding the images during processing would depend upon knowing exactly where they are in the file-system, at the time when LaTeX2HTML runs. The name ./<name> suggests in the same directory as the HTML files, but that location is usually created on-the-fly, so is not a normal place to find pre-existing graphics. To offer any further suggestions would be pointless until I can see your LaTeX code, the command used to invoke LaTeX2HTML and and initialisation files that may be affecting how the translation is being done. (The screen log would help too.) > This displays perfectly fine on almost all browsers using the default size of > the image except for IE on windows, which appears to interpret this as > WIDTH="0" HEIGHT="0" and therefore not display the image. A typically stupid thing to do. > This is obviously a problem due to the statistically large number of IE on Win > users. > > It is not clear to me as to whether or not this is a problem with:- > > - the output of lyx (version 1.2.1) > - latex2html (version 2002-2) > - my GIF images themselves Any of these is a possibility. > The two short-term hacks that I am considering are:- > > a) disabling the generation of WIDTH="x" HEIGHT="y" entirely and leaving it up > to the browser. Any tips as to where in the source tree is the correct place > to do this would be appreciated. There may be some faulty coding in the newer graphics-handling routines of LaTeX2HTML, that work in some cases but not others; or your .gif images may be not *standard* in some way. Leaving out these tags, when width and height are not available, is certainly the right thing to do. I'd like to determine why it has failed in your case. > b) making a sed script that traverses the output and wipes instances of > 'WIDTH=""' and 'HEIGHT=""'. This is my fallback option and I would prefer to > avoid it. You can program LaTeX2HTML to run such a script automatically, or do it in Perl, as part of the &post_postprocess subroutine. This would be much preferable to otherwise hacking at the latex2html script. > many thanks for any help possible. Hope this helps, Ross Moore > > Alex > > -- > > > / \ > | alex twisleton-wykeham-fiennes | > | c | or | d ltd | > | http://www.cord.co.uk | > \ / > _______________________________________________ > latex2html mailing list > [EMAIL PROTECTED] > http://tug.org/mailman/listinfo/latex2html _______________________________________________ latex2html mailing list [EMAIL PROTECTED] http://tug.org/mailman/listinfo/latex2html