tex4ht for some reasons added extra horizontal lines above and below each table. While these lines do not show in pdf.

Here is a MWE


This is my table

A & B \\\hline
853.075 (sec) & 43.711 (sec)\\\hline
14.218 (minutes) & 0.729 (minutes)\\\hline

my table is done    

Compiled using lualatex gives

Mathematica graphics

But compiled using make4ht foo.tex "htm" gives extra horizontal lines above and below the table, which I did not ask for

enter image description here


Try the following code:

\Configure{float}{\csname par\endcsname\ShowPar}
{\ifvmode\IgnorePar\fi\EndP\HCode{<div class="float">}}

It is based on the original tex4ht code, only the horizontal rules were removed.

The result:

enter image description here

  • This doesn't work if a figure environment is used, but the horizontal lines still appear. – Frotz Apr 19 at 2:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.