\defineseperatedlist and working with variables and merging fields
Attached a tex file and the generated PDF. The first table is what I am trying to do. The second table is an example about what I would like to accomplish. I have two problems. Because there will be a lot of tables I like to use a variable, so that changes can be done in one place. That is why I would like to use: \getvariable{desc}{fieldHeading} on the third line of the table. But then I get one column instead of five. (The third is what I get, the fourth what I would like to get.) In the first and last two rows I would like to have the field take the complete row. Just like the example in the table under it where I use Is this possible? -- Cecil Westerhof
Hi, i think it will be difficult to solve it in that way. If you put the 5 fieldnames into one string, that will not result in 5 cells. What you can do, is to make 5 variables which you call then with a tab-separated list. Your table has in fact 5 columns. Alas it does not work to use \setupTABLE to organize this, because ConTeXTt expects the nx=5 after the \bTD. Waht you can do, is to prepend the entry's of the first, second and last row with [nx=5] See attached example. Willi On 27 Jul 2011, at 11:36, Cecil Westerhof wrote:
Attached a tex file and the generated PDF.
The first table is what I am trying to do. The second table is an example about what I would like to accomplish.
I have two problems.
Because there will be a lot of tables I like to use a variable, so that changes can be done in one place. That is why I would like to use: \getvariable{desc}{fieldHeading} on the third line of the table. But then I get one column instead of five. (The third is what I get, the fourth what I would like to get.)
In the first and last two rows I would like to have the field take the complete row. Just like the example in the table under it where I use
Is this possible?
-- Cecil Westerhof
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
participants (2)
-
Cecil Westerhof
-
Willi Egger