[NTG-context] Number of rows in tables

Otared KAVIAN otared at gmail.com
Wed Sep 21 14:22:25 CEST 2005


Hi everyone,

In the process of learning the table mechanism I followed the
discussions on the list, but could not figure out whether it is
possible to create a table with a given number of rows. For instance,
is it possible to add something to Mojca's solution for cells with
backgrounds (see below) to have a table with (for example) 15 rows?
Something like
\setupTable[number_of_rows=15,number_of_columns=4]

Thanks for your insight: OK

%%%%%%%%%%%%%%%%%%%% Mojca's solution
\setupcolors[state=start]
\starttext
% row 1
\setupTABLE[r][1][style=bold,background=color,backgroundcolor=green,align=middle]
\setupTABLE[c][1][width=3cm] % column 1
\setupTABLE[c][3][width=2.75cm] % column 3
\setupTABLE[c][4][width=7cm]
\bTABLE
\bTR
    \bTD Name \eTD
    \bTD Location \eTD
    \bTD Date \eTD
    \bTD Signature \eTD
\eTR
\bTR
    \bTD\strut \eTD
    \bTD \eTD
    \bTD \eTD
    \bTD \eTD
\eTR
\eTABLE
\stoptext
%%%%%%%%%%%%%%%%%%%%%%%%%%%%


More information about the ntg-context mailing list