[l2h] Second equation wrong

Ross MOORE Ross MOORE <ross@mpce.mq.edu.au>
Fri, 2 Apr 1999 08:58:51 +1000 (EST)


> The following latex file produces two displayed equations, both quite
> different.  But latex2html displays them as both the same equation.
> (In fact, version 98.2 beta 8 does not even display two equations.)
> I tried 98.1p1, 98.1p7 and 98.2 beta 8.
 
That is due to limitations in the way image keys are derived,
for comparison in the image-reuse algorithm.
Spaces and braces are removed, which results in identical keys
in your case. 
The work around is to insert something unique into equations
that are nearly identical, or long pieces of code that
start and end the same way, but may have differences in the middle.
(This is necessary, since the database keys are limited in length.)

For example, it doesn't affect the LaTeX output to put \label{....}
inside such equations, near the top. Unique labels ensure unique image-keys.
Indeed, it is good style to do this anyway,
in case you wish to use these for cross-references.


> \documentclass[12pt]{article}
> 
> \begin{document}
> 
> \[
>  = \lim _ {a \to {0} ^ {-}} \left[ 3 {x} ^ {1 / 3} \right] _ { - 1} ^ {a} + 
> \lim _ {b \to {0} ^ {+}} \left[ 3 {x} ^ {1 / 3} \right] _ {b} ^ {1}
> \]
> 
> \[
>  = \lim _ {a \to {0} ^ { - \left[ 3 {x} ^ {1 / 3} \right] _ { - 1} ^ {a}} + 
> \lim _ {b \to {0} ^ { + \left[ 3 {x} ^ {1 / 3} \right] _ {b} ^ {1}}}}
> \]
> 
> \end{document}
> 

Hope this helps,
	
	Ross Moore