[l2h] ALT tags in equations

Ross MOORE Ross MOORE <ross@mpce.mq.edu.au>
Fri, 9 Apr 1999 09:35:03 +1000 (EST)


> Ross MOORE wrote:
> >   \htmlimage{ALT="...."}
> > sets the ALT text for images that need to be generated using LaTeX.
> > 
> >   \htmladdimg[ALT="..."]{<URL>}
> > sets the ALT text for external images.
> 
> Ross,
> 
> But this isn't available for equations -- right?

For displayed equation environments, this should work.

For inline math, probably not,
though it would be fairly easy to make it so...

...provided you stick to non-parsing math modes;
i.e. $NO_SIMPLE_MATH =1;  or use the  -no_math  switch.
Having \htmlimage commands interspersed with mathematics
to be parsed is highly counter-intuitive.
Alternatively, this could be used as a method to force an image.


In any case, the real cause of the problem with the pop-up ALT-text
is a browser-specific thing. It should be able to be switched-off
within the browser.

Failing this, an alternative strategy which is workable at present,
is to edit the images.pl file, then re-run LaTeX2HTML.

Simply remove the ALT="...."  portion for the desired images.
A simple Perl regexp would suffice to do it for all images.


Hope this helps,

	Ross Moore