[tex4ht] question about missing table vertical lines in HTML after 118 subsections have been processed.

Michal Hoftich michal.h21 at gmail.com
Sun Feb 6 20:24:36 CET 2022


Hi Nasser,

>
> Thanks, your fix did fix the vertical lines on tabular that went missing
> after 118 subsections.
>
> Now they show in all sections.
>
> But I am afraid a new problem shows up. Now verical lines on
> longtable no long show up. I am not sure why.

thanks for the report. Try the following config file:

%%%%%%%%%%%%
\Preamble{xhtml}

\catcode`\:=11
\Configure{VBorder}
   {\let\VBorder\empty \let\AllColMargins\empty
    \global\let\GROUPS\empty \HAssign\NewGroup = 0
    \gHAdvance\Next:TableNo by 1 \global\let\TableNo=\Next:TableNo }
   {\xdef\VBorder{\VBorder\ifnum \NewGroup> 0 </colgroup>\fi}
    \HAssign\NewGroup = 0 % \gdef\GROUPS{rules="groups"}
  \ifnum\ar:cnt > 0
    \Css{\#TBL-\TableNo-\ar:cnt {border-right:1px solid black;}}
  \else
    \Css{\#TBL-\TableNo-1{border-left: 1px solid black;}}
  \fi
}
   {\Advance:\NewGroup by 1
    \ifnum \NewGroup=1 \xdef\VBorder{\VBorder<colgroup
        id="TBL-\TableNo-\ar:cnt g">}\fi
    \xdef\VBorder{\VBorder<col\Hnewline
id="TBL-\TableNo-\ar:cnt"\xml:empty>}\xdef\AllColMargins{\AllColMargins1}}
   {\xdef\AllColMargins{\AllColMargins 0}}
\catcode`\:=12
\Css{table.longtable{border-collapse: collapse; border-spacing: 0;}}
\begin{document}
\EndPreamble
%%%%%%%%%%%%%

The necessary fix for longtable is this:

\Css{table.longtable{border-collapse: collapse; border-spacing: 0;}}

Best regards,
Michal


More information about the tex4ht mailing list.