1.10.6 Groups of Columns

A group consists of a non-empty pattern |...|.

<..list the grouping of columns..>
 \putVBorder
-_-_-

When \putVBorder is called, in \:VBorder we have a sequence of the form <COLGROUP><COL ...">...</COLGROUP>... with the last tag possibly missing.

<..latex tabular..>+
 \let\remove:eog=\relax
 \def\putVBorder{\expandafter\put:VBorder\:VBorder<</>><.par del.>}
 \def\put:VBorder#1<</#2>>#3<.par del.>{%
   \def\:temp{#2}\ifx\:temp\empty
      \def\remove:eog<</##1>>{}%
        \HCode{\:VBorder}%
      \let\remove:eog=\relax
      <.insert last end of group, if missing.>%
   \else  \def\:temp{\put:VBorder#3<.par del.>}\expandafter\:temp\fi
 }
-_-_-

<..visit start of pattern..>
 \let\:VBorder=\empty
-_-_-

<..visit a non-@ entry..>
 \ifnum \NewGroup=1  <.start a group of cols.>\fi
 <.add a group of columns.>%
-_-_-

<..start a group of cols..>
 \xdef\:VBorder{\:VBorder
    <!--table:table-column-group ???="TBL-\TableNo-\ar:cnt g"-->}%
-_-_-

<..add a group of columns..>
 \xdef\:VBorder{\:VBorder<table:table-column\Hnewline
     \csname a:table-column-style\endcsname\Hnewline
  />}%
-_-_-

<..latex tabular..>+
 \NewConfigure{table-column-style}{1}
 \Configure{table-column-style}
    {table:style-name="TBL-\TableNo -\ar:cnt"}
-_-_-

<..visit a v-bar entry..>
 \xdef\:VBorder{\:VBorder
    \ifnum \NewGroup> 0
        <!--/table:table-column-group-->\remove:eog <</ >>\fi}%
-_-_-

<..insert last end of group, if missing..>
 \def\:temp{#1}\ifx\:temp\empty
 \else\HCode{<!--/table:table-column-group-->}\fi
-_-_-