Greetings to everybody,
I would like to share a hack that makes it possible to generate HTML
out of LaTeX code. It seemed to me a good feature to have a means to
write math formulas in ocamldoc comments and to get them in generated
HTML pages. Unfortunately, standard ocamldoc (as of v. 3.09.3)
completely skips these strings when generating HTML.
The solution is a rather trivial one: override the mehtod of the
standard generator responsible for LaTeX strings processing, so that
it will send LaTeX strings to some LaTeX to HTML converter (Hevea in
my case).
You can download the sources for the generator extension module from:
http://vityok.org.ua/cgi-bin/odd.pl/download/math_htmldoc.ml
It is only 1.58 KB large and contains installation and usage
instructions.
Feel free use it,
Victor Anyakin
http://vityok.org.ua
.