At 03:34 PM 6/12/2002 +0200, Jaroslav Snajdr wrote:
>Hello,
>
>I'm trying to create tables with variable column count:
>
>\def\mytable#1{\starttable[|\dorecurse{#1}{l|}]}
>
>\mytable{10} should make table with 10 columns.
>
>But this doesn't work. What is the correct way to tame the macro expansion?
Well, this should work,
\starttable[|*{4}{|}]
\NC test \VL test \NC test \NC etc \NC \FR
\NC test \VL test \NC test \NC etc \NC \MR
\NC test \VL test \NC test \NC etc \NC \LR
\stoptable
but ... i found out that the error recovery mechanism does not count those
repetitive cells.
I'll send you a slightly adapted core-tab.tex (goes into context/base); you
need to regenerate the format
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED]
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
information: http://www.pragma-ade.com/roadmap.pdf
documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------