On Wed, 2 Jan 2008, Yvon Henel wrote:
Hello again,
I would like to nest a table inside a table, something like this:
\starttable[|c|c|] \NC {\bf ATout Choeur} \NC {\starttable[|c|] \NC Number 2008--1\FR \NC january 2008\LR \stoptable}\MR \NC {\tfa Something} \NC \LR \stoptable
but 1/ I would like the top of the first cell of the first row to be aligned with the top of the second one (which contains the nested table); 2/ it seems that it does not work when the layout is set up with "grid=yes"
If the answer to the second question is "Effectively, it can't work in such a layout", what could be a way of obtaining what I want?
tables (starttables...stoptables) cannot be nested. Table does some automatic checking of number of columns, and that counting is global. So, nested tables messes the count. Here is an example: \starttext \starttable[|c|c|] \NC \the\currentTABLEcolumn/ \the\maxTABLEcolumn\NC {\starttable[|c|] \NC \the\currentTABLEcolumn/ \the\maxTABLEcolumn\NC \AR \NC test \NC \AR \stoptable} \NC \AR \NC \the\currentTABLEcolumn/ \the\maxTABLEcolumn\NC \NC \AR \stoptable \stoptext
As always, any hint would be greatly appreciated
You can always use multicolumns, and give the impression that you are using multiple tables. For example \starttable[|c|c|c|] \NC col 1 \NC nested 1 \NC nested 2 \NC \AR \NC \NC nested 1 \NC nested 2 \NC \AR \NC col 1 \NC \TWO{ col 2 } \NC \AR \stoptable This, of course, will not work if you want nested tables with different number of columns in different rows. In that case, TABLE macros (bTABLE .. eTABLE) would be the way to go. Aditya