Alfio Puglisi wrote:
Thanks. I don't know Ocaml, but from the code it seems that this "standardization" is done in the render_tex funtion, where the syntax of each element of the function is changed recursively. Seems a bit too complicated to replicate without knowing the language :-) And I suppose there's no other way of getting the output hash, whithout access to the database.
Maybe the "math" table could be added to the weekly database dumps?
There's not much reason to do that, since it's 100% generated by the software on demand.
Feel free to use or adapt the math support functions from the top of OutputPage.php, which munges the text, talks to the math table, and calls texvc (which can be treated as a black box; you just have to install ocaml and type 'make').
-- brion vibber (brion @ pobox.com)