[l2h] Workarounds for two bugs (equations with white margins, and more)

Armin Straub mail at arminstraub.de
Sat Mar 12 10:09:30 CET 2005


Hi,

> Large margin on the bottom of some equations
> --------------------------------------------
>
>   I have seen several documents all with this problem.
>   This "fix" is probably a hack.

thank you for sharing your patch. I am one of those that suffer from this 
problem, too.

I applied your patch (I am running version 1.70 of latex2html), but 
unfortunately it does not completely solve the problem:
- the white margin is indeed removed
- but my images are no more correctly centered on the baseline.

I will try to explain the new problem: the images with the previously large 
margins at their bottoms are aligned using ALIGN="MIDDLE" while the normal 
ones are aligned using ALIGN="BOTTOM". Before applying your patch this made 
all images (formulas) appear on the baseline, but now as the margins at the 
bottoms are removed, some images hang down.

You can try this:
----8<----
\documentclass{article}

\begin{document}
This is o.k. $G$ but this is not $S_{G}$. Both images are created perfectly, 
but the second one is aligned middle. Not sure about the reason. Perhaps 
because latex2html detects that it hangs down the baseline a bit...
\end{document}
----8<----

The affected output is then (note the ALIGN= attributes):
----8<----
This is o.k. <SPAN CLASS="MATH"><IMG
 WIDTH="16" HEIGHT="14" ALIGN="BOTTOM" BORDER="0"
 SRC="img1.png"
 ALT="$G$"></SPAN> but this is not <SPAN CLASS="MATH"><IMG
 WIDTH="23" HEIGHT="20" ALIGN="MIDDLE" BORDER="0"
 SRC="img2.png"
 ALT="$S_{G}$"></SPAN>. Both images are created perfectly, but the second one 
is aligned middle. Not sure about the reason. Perhaps because latex2html 
detects that it hangs down the baseline a bit...
----8<----

>    Hoping to see them solved some day,

That would be great.

Cheers,
--
Armin Straub



More information about the latex2html mailing list