[texhax] Using hevea
ghaverla at materialisations.com
Mon Sep 12 23:36:47 CEST 2011
I am trying to learn how to blog, and most things I write about
emacs in HTML mode is fine. I can then cut and paste from emacs
to the "editor" the blog has.
This last document started getting complex, and among other things
I thought a Table of Contents would be useful. Manually making
the ToC and keeping it in sink with the evolving structure of the
document got to be a pain. Time to investigate LaTeX to HTML.
I started with tex4ht. It seems to be too interested in
presentation, and most of the structure seems to be in the
attributes of tags. And way too many <div> and <span> for me to
work with. I then tried hevea, and it seems workable.
Hevea doesn't seem to know anything about hyperref. So, I am
getting warnings about underscores and improper anchors, but that
is editable. The biggest annoyance seems to be tables. While you
can define a table in HTML that only has a body, the HTML
definition allows for HEAD, BODY and FOOTER. And in LaTeX, a
table only has content. So, every table will need polishing.
Which is fine, I might even be able to figure out how to get perl
to rewrite the HTML to do this.
This note is not a complaint. It is an observation. Hopefully it
helps others. It may be that I haven't found the best solution
yet. And advice along that line is also welcome.
More information about the texhax