<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
In book style (and no doubt many others), tex4ht generates an
<hr> before and after floats. While I don't pretend to
understand the mechanics, it looks like it is created by this
snippet from the html4.4ht file:<br>
<blockquote>\Configure{float}<br>
{\ifOption{refcaption}{}{\csname par\endcsname\ShowPar
\leavevmode}}<br>
{\:xhtml{\IgnorePar\EndP}\HCode{<hr
class="float"\xml:empty><div<br>
class="float"\Hnewline>}}<br>
{\ifvmode \IgnorePar \fi\EndP<br>
\HCode{</div><hr<br>
class="endfloat" />}\csname par\endcsname\ShowPar}<br>
</blockquote>
<br>
I tried adding the above code, minus the <hr ..> tags to my
cfg, but then my latex file fails to run through tex4ht. I get a
"Missing $ inserted" error when a \begin{center} is encountered
after \begin{table}. Here's a simple example:<br>
<blockquote>\documentclass{book}<br>
\begin{document}<br>
\chapter{Simple Example}<br>
\begin{table}<br>
\begin{center}<br>
\hbox{<br>
\begin{tabular}{|l|c|c|}\hline<br>
entry1&entry2&entry3\\<br>
entry4&entry5&entry6\\ \hline<br>
\end{tabular}}<br>
\end{center}<br>
\caption{a caption}<br>
\end{table}<br>
\end{document}<br>
<br>
</blockquote>
I then tried just placing an unmodified copy of the
\Configure{float} ... in my .cfg file and still get the error, so I
guess I'm not supposed to put that chunk of code into my .cfg<br>
<br>
So, how do I achieve my goal?<br>
Thanks.<br>
</body>
</html>