* Tables with variable column count
@ 2002-06-12 13:34 Jaroslav Snajdr
2002-06-12 21:47 ` Hans Hagen
0 siblings, 1 reply; 2+ messages in thread
From: Jaroslav Snajdr @ 2002-06-12 13:34 UTC (permalink / raw)
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?
-jns
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Tables with variable column count
2002-06-12 13:34 Tables with variable column count Jaroslav Snajdr
@ 2002-06-12 21:47 ` Hans Hagen
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2002-06-12 21:47 UTC (permalink / raw)
Cc: Context List
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 | pragma@wxs.nl
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
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-06-12 21:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-12 13:34 Tables with variable column count Jaroslav Snajdr
2002-06-12 21:47 ` Hans Hagen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).