michal-h21 / make4ht

Build system for tex4ht
131 stars 15 forks source link

make4ht issue with longtable, there are two additionl empty rows generated which lead to to long vertical lines #110

Closed cjohn001 closed 9 months ago

cjohn001 commented 1 year ago

Hello, I am trying to create html mit make4ht And I am using the longtable code below. As can be seen below, the generated html gets two empty bottom rows (id=TBL-3-7- and id=TBL-3-8-) to much which leads to the vertical lines of the table being to long. Is there a workaround to the issue? Thanks for your help!

Seems I have to set the padding:0; on the two classes to get rid of the extra height.

\begin{longtable}[!ht]{|>{\centering\arraybackslash}p{0.205\linewidth}|>{\centering\arraybackslash}p{0.355\linewidth}|>{\raggedright\arraybackslash}p{0.44\linewidth}|}
    \hline \multicolumn{1}{|c|}{\textbf{N1}} & \multicolumn{1}{c|}{\textbf{Function}} & \multicolumn{1}{c|}{\textbf{ Source}} \tabularnewline  \hline
    \endfirsthead
    \hline \multicolumn{1}{|c|}{\textbf{N1}} & \multicolumn{1}{c|}{\textbf{Function}} & \multicolumn{1}{c|}{\textbf{ Source}} \tabularnewline  \hline
    \endhead
    \hline
    \endfoot

    line1                                    & f1                                     & t1                                          \tabularnewline \hline
    line2                                    & f2                                     & t2
\end{longtable}
Bildschirm­foto 2023-03-06 um 20 45 05 Bildschirm­foto 2023-03-06 um 20 45 43
michal-h21 commented 1 year ago

Thanks for the report. It should be fixed by d6aa83a.

cjohn001 commented 1 year ago

@michal-h21 : Thank you very much. I have one question. How can I install the package? I am on a Mac and have MacTex distribution installed. Does it get installed through TexLiveUtility once you merge it to master? Hence, I need to await next release?

By the way, When I want to set a caption in a longtable to the footer of the table this also does not work with Tex4HT. Shall I add an extra bugreport for it?

michal-h21 commented 1 year ago

The development version can be installed using this method. I've recently updated the stable version on CTAN, which should end up in MacTeX soon. It can take some time before I made another update.

It is probably better to make a separate bug report for the caption issue.