michal-h21 / make4ht

Build system for tex4ht
132 stars 15 forks source link

tabular environment produces exceedingly long column lines #88

Closed yalguzaq closed 1 year ago

yalguzaq commented 1 year ago

The following table

  \begin{table}
    \begin{tabular}{|c|ccccc|}
      \hline
      & $\cdots$ & ${x_i}$ & $\cdots$ & ${x_j}$ & $\cdots $\\
      \hline
      & $\cdots$ & ${0}$ & $\cdots$ & ${\bar{c}_j}$ & $\cdots$ \\
      \hline
      $\vdots$ & $\vdots$  & ${\vdots}$  & $\vdots$ & ${\vdots}$  & $\vdots$\\[5pt]
      ${x_{B(l)} = x_i}$ & $\vdots$  & ${1}$  & $\vdots$ & ${u_l}$ & $\vdots$ \\[5pt]
      $\vdots$ & $\vdots$ & ${\vdots}$ & $\vdots$ & ${\vdots}$  & $\vdots$\\[5pt]
      \hline
    \end{tabular}
  \end{table}

when run by pdflatex produces the following output image

Doing the same via make4ht file.tex 'mathml' or make4ht file.tex produces the following weird footer: image

michal-h21 commented 1 year ago

Thanks for the report. The extra row is caused by the extra row that is inserted after \hline. Try this configuration file:

\Preamble{xhtml}
\Css{.hline + .vspace:last-child{display:none;}}
\begin{document}
\EndPreamble
yalguzaq commented 1 year ago

Thanks a lot for correcting these bugs that quickly, really helpful (I use your system dynamically for a live web app).