# [l2h] dots im mathematical formula tooltip

**Ross Moore
**
ross@ics.mq.edu.au

*Wed, 18 Dec 2002 07:37:24 +1100 (EST)*

>* Hi,
*>*
*>* after the compilation of a mathematical formula with latex2html we
*>* normally get a GIF or PNG which contains the formula. If I move with the
*>* mouse in IE or NS over the formula I get a tooltip with the
*>* corresponding Latex code. However, if the Latex code is too long some
*>* parts of the formula are replaced by three dots. Does anyone know how we
*>* can always get the full Latex code in the tooltip ?
*
There is a reason for the truncation, at least on older Perl systems.
You can experiment with changes to the following block of coding,
from the latex2html script, part of the sub extract_parameters block:
if (!$alt) {
#...catching all the code for the ALT text.
local($keep_gt)=1;
$alt = &flatten_math($contents); undef $keep_gt;
#RRM: too long strings upset the DBM. Truncate to <= 165 chars.
if ( length($alt) > 163 ) {
local($start,$end);
$start = substr($alt,0,80);
$end = substr($alt,length($alt)-80,80);
$alt = join('',$start,"...\n ...",$end);
}
Hope this helps,
Ross Moore
>* Thanks a lot in advance
*>*
*>* Sigbert
*>*
*>* --
*>* Wer keinen Wunsch hat, ist dem Gl_ck bereits ziemlich nahe (Rabindran_th
*>* Th_kur 1861 - 1941)
*>* _______________________________________________
*>* latex2html mailing list
*>* latex2html@tug.org
*>* http://tug.org/mailman/listinfo/latex2html
*