From: Wolfgang Schuster <wolfgang.schuster@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Fwd: Need help with \definetabulate
Date: Tue, 16 Oct 2012 13:23:01 +0200 [thread overview]
Message-ID: <BECCBBE1-F679-426F-B032-C62A24478060@gmail.com> (raw)
In-Reply-To: <507D401B.1050506@wxs.nl>
Am 16.10.2012 um 13:08 schrieb Hans Hagen <pragma@wxs.nl>:
> 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
Can you add a second argument to custom tabulation which would allow one to write
\startwhatever[format={…}]
or
\startwhatever[else][format={…}]
to change the number of columns and format for a certain table.
Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2012-10-16 11:23 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.1.1349690401.7712.ntg-context@ntg.nl>
2012-10-15 6:03 ` Malte Stien
2012-10-16 9:21 ` Fwd: " Malte Stien
2012-10-16 9:41 ` Wolfgang Schuster
2012-10-16 10:52 ` Fwd: " Sietse Brouwer
2012-10-16 11:08 ` Hans Hagen
2012-10-16 11:23 ` Wolfgang Schuster [this message]
2012-10-16 11:39 ` Hans Hagen
2012-10-17 6:37 ` Malte Stien
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BECCBBE1-F679-426F-B032-C62A24478060@gmail.com \
--to=wolfgang.schuster@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).