On Thu, Aug 21, 2003 at 09:03:45PM +0200, Alfio Puglisi wrote:
Hello guys,
looking at the TeX rendering code on CVS, I see that each math fragment is
identified with its MD5 hash, similar to images.
But then, I find that this is only the "input hash". The code SELECTs for
an "output hash", and this is used on the html page to retrieve the
rendered math as a PNG image.
How the output hash is computed? Maybe it's there in the code, but I don't
find it. If I could compute the hash offline, I could include TeX math
into the static version, the same way as images: just download them :-)
Input hash is MD5 of text between <math> and </math>.
Output hash is MD5 of the same text after "standarization",
so that only one image is generated for <math>x + y = z</math>,
<math>x+y = z</math> and <math>x+y=z</math>.