On 16-10-2012 12:52, Sietse Brouwer wrote:
The problem is that \starttabulate does not accept a format parameter.
Cheap solution (only figured it out now, or I'd have replied before): use
\setuptabulate[alpha][format={....}]
before every \startalpha call.
It's not very contexty syntax, but on the other hand it requires no
new definitions at all.
Full example below.
Cheers,
Sietse
\definetabulate[alpha][|l|] % dummy format
\setuptabulate[alpha][style=bold]
\setuptabulate[alpha][format={|r|r|r|}]
\startalpha
\NC r \NC r \NC r \NC \NR
\NC test \NC test \NC test \NC \NR
\stopalpha
\setuptabulate[alpha][format={|c|c|}]
\startalpha
\NC c \NC c \NC \NR
\NC test \NC test \NC \NR
\stopalpha
There's also:
\starttext
\definetabulate
[whatever]
[|l|r|]
\definetabulate
[whatever][else]
[|l|c|r|]
\startwhatever
\NC l \NC r \NC \NR
\NC left \NC right \NC \NR
\stopwhatever
\startwhatever[else]
\NC l \NC m \NC r \NC \NR
\NC left \NC middle \NC right \NC \NR
\stopwhatever
\stoptext
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________