It took me a while to find the cause of this. when giving p{}
for table column width, and also using mathml
option, then htlatex losses the width specs in the generated HTML table.
It is very simple to reproduce. Below is the .tex files and the commands, and the HTML output.
I need to use mathml
since I am using mathjax in htlatex configuration to render the Latex math on the screen. Without using mathml
then mathjax does not work. So this is a big problem because now all the tables I have where I specified width of columns are lost in the HTML version.
Minimal working latex file
\documentclass{article}%
\begin{document}
\begin{tabular}{|p{3in}|p{1in}|p{1in}|}\hline
blablablaaablabla&blablablaaablabla&blablablaaablabla
\\\hline
\end{tabular}
\end{document}
This command works
htlatex index.tex "htm,p-width"
This command does not work
htlatex index.tex "htm,mathml,p-width"
The "p-width" option is important. See this for reference on it. it was added by Eitan in 2004 to support column widths in HTML.
Again, I have to use mathml, and I also need to have tables of fixed width columns, or be able to specify the column width. Now I can't do both if I am to use MathJax with htlatx generated HTML.
Any one knows of a work around please?
TL 2012 debian package.
ps. I actually would rather not use Mathjax, but without it, the generated math using .png does not look as good, and I have not figured out how to make it look better. So, may be I should spend more time on this. If I can get htlatex to generated good math using .png images, then I do not have to use Mathjax, and do not have to use the mathml
option and the problem will be gone.