[NTG-context] Problems with Natural Tables

Hans Hagen pragma at wxs.nl
Wed Nov 9 13:18:26 CET 2005


Vit Zyka wrote:

> Vit Zyka wrote:
> > ...
>
>> so please, is the file 'core-ntb-new.tex' somewhere available?
>
i merged the 'core-ntb-new.tex' code into the main file

> Solution of my own question, for who is interesting.
>
> Description:
> The next patch enables to define intercolumn gaps in Natural Table 
> (bTABLE...eTABLE) environment.


I added your patches, but renamed the keys:

\starttext

% distance mechanism, per column (H)

\start
    \setupTABLE[c][1][distance=2em]
    \setupTABLE[c][2][distance=3em]

    \bTABLE
    \bTR \bTD test \eTD  \bTD test \eTD  \bTD test \eTD \eTR
    \bTR \bTD[nx=2] test \eTD  \bTD test \eTD \eTR
    \bTR \bTD test \eTD  \bTD[nx=2] test \eTD \eTR
    \eTABLE

    \bTABLE[option=stretch]
    \bTR \bTD test \eTD  \bTD test \eTD  \bTD test \eTD \eTR
    \bTR \bTD[nx=2] test \eTD  \bTD test \eTD \eTR
    \bTR \bTD test \eTD  \bTD[nx=2] test \eTD \eTR
    \eTABLE
\stop

% distance mechanism, per table (V)

\framed[offset=none]{%
\setupTABLE[column][2][align=left]
\setupTABLE[column][3][align=right]
\bTABLE[columndistance=2cm,leftmargindistance=.3cm,rightmargindistance=.5cm]
  \bTR
    \bTH[nc=3] Table head\eTH
  \eTR
  \bTR\bTD[nc=2] AB\eTD\bTD C\eTD\eTR
  \bTR\bTD[nc=2,align=left] AB\eTD\bTD C\eTD\eTR
  \bTR\bTD[nc=2,align=middle] AB\eTD\bTD C\eTD\eTR
  \bTR\bTD A\eTD\bTD B\eTD\bTD C\eTD\eTR
  \bTR\bTD Aa\eTD\bTD Bb\eTD\bTD Cccc\eTD\eTR
  \bTR\bTD[nc=3,align=middle] ABC\eTD\eTR
\eTABLE
}

\stoptext



More information about the ntg-context mailing list