I have this document:
Code: Select all
\documentclass[11pt,a4paper]{article}
\usepackage{tabularx}
\usepackage{array}
\usepackage{multirow}
\begin{document}
\begin{table}[H]
\begin{tabularx}{\textwidth}{|c|X|c|}
\hline
foo & Spam and eggs for sale & \\
\hline
&\multicolumn{2}{X|}{spam}\\
\hline
\end{tabularx}
\end{table}
\end{document}
Code: Select all
htlatex tbx.tex "xhtml,ooffice" "ooffice/! -cmozhtf" "-coo -cvalidate"
When I unpack the .ODT, I run xmllint --valid content.xml, and this produces this as first error:
Code: Select all
content.xml:77: parser error : Opening and ending tag mismatch: table-cell line 74 and p
</text:p></table:table-cell></table:table-row><table:table-row
When I look into the content.xml, I see this:
Code: Select all
<table:table-cell
table:number-columns-spanned="2"
table:style-name="TBL-4-2-2"> spam
</text:p></table:table-cell>
Code: Select all
<text:p text:style-name="Text-body">
Now I have looked in the file /usr/share/texmf/tex/generic/tex4ht/ooffice.4ht which apparently holds the configuration for ooffice conversion.
However, in this file, as it seems all number-columns-spanned are followed by table:style-name and <text:p , but I don't see that appearing in my XML file!
Anyone experience with converting to OO and configuration?
jlinkels