[l2h] No LaTex-source in the alternative text

Ross Moore ross@ics.mq.edu.au
Wed, 17 Apr 2002 18:46:19 +1000 (EST)


> Hello,
> 
> how can I prevent "latex2html" writing the LaTex-source in the
> alternative text from each converted formula?
> e.g.
> <img src="img14.gif" alt="$\t_k = k\cdot\Delta t$">

HTML requires ALT text, to validate against its DTD.
If you don't like the little tags popping-up, then you can always
turn them off in your browser. However, that's no help to others
looking at your pages --- but they should have the freedom to 
decide whether to turn them off themselves.

There is no easy built-in way to turn-off generation of the ALT text
for all images.

For individual images, you can now use  \htmlimage{alt=...(text)..}
to set the ALT tag to whatever you want. (This now works, provided
that you have updated and installed LaTeX2HTML since last weekend.)
But this is really tedious thing to do, for all but a few of the
larger images in a typical mathematical document.

 
There may be something that can be added to a CSS stylesheet,
to inhibit showing the ALT values. Maybe someone knows how to do this.

One way to inhibit the ALTs would be to hack at part of the  latex2html  script.
A good Perl programmer should be able to find the right place to hack.

Another way would be to add a command to the  &post_post_process  routine,
to filter them out after all the main page-building has been done.
Again, you'll want a Perl programmer to do this.


Hope this helps,

	Ross Moore


> Thanks in advance.
> 
> Margitta