I have found a quite annoying bug as illustrated in the attached TeX and resulting HTML files. Compilation with htlatex test.tex "xhtml,charset=utf-8" " -cmozhtf -utf8" "-cvalidate" -shell-escape
The bug appears when the theorem package is loaded and two theorem types use the same counter (numbering sequence). tex4ht fails to close the div tag opening a theorem of the type which does not itself own the numbering sequence. With default CSS, this has no visual impact. However, I use custom CSS to optimise HTML layout for on screen reading, and then the style scope is not limited as it should. It is not a problem without the theorem package, so I may have a workaround, which I have not yet explored. -- :-- Hans Georg
\documentclass{scrartcl}
\usepackage{theorem}
\newtheorem{theorem}{Theorem}
\newtheorem{lemma}[theorem]{Lemma}
%\newtheorem{lemma}{Lemma}
\begin{document}
\begin{theorem}
This is a theorem.
\end{theorem}
\begin{lemma}
This is a lemma.
\end{lemma}
\begin{theorem}
This is another theorem.
\end{theorem}
\end{document}
Theorem�1 This is a theorem.
Lemma�2 This is a lemma.
Theorem�3 This is another theorem.
