[NTG-context] section conversion gets lost in MKIV

Cedric Mauclair cedric.mauclair at gmail.com
Tue Aug 31 13:07:00 CEST 2010


Hi,

Is there a documentation and/or extensive example of the conversionset
feature (and others) somewhere? The comments in the source files (on
the wiki) are kind of scarce and I can't quite figure out how to use
them.

Thanks.

-- Cédric



On Mon, Aug 30, 2010 at 13:23, Hans Hagen <pragma at wxs.nl> wrote:
> On 30-8-2010 10:34, Mojca Miklavec wrote:
>>
>> Dear list,
>>
>> Here's a minimal example that work correct in MKII, but wrong in MKIV:
>>
>> \setupsection
>>        [chapter]
>>        [conversion=Characters]
>> \setupsection
>>        [section]
>>        [conversion=]
>>
>> \starttext
>> \chapter{first}
>> \section{subfirst}
>> \stoptext
>>
>> It results in
>>     A first
>>     1.1 subfirst
>> while it should keep "A.1" instead of "1.1" for the section numbering.
>
> The new way is:
>
> \definestructureconversionset[MySet][numbers,Characters][numbers] % [per
> level] [default]
>
> \setupsection
>  [chapter]
>  [sectionconversionset=MySet]
>
> \starttext
>
> \chapter{first}
> \section{subfirst}
>
> \stoptext
>
> What you observe is 'conversion' being inherited and makins both the
> conversionsets and conversion work as you want will mess up much code so I
> think that I will remove the 'conversion' key completely in favor of the
> set. Keep in mind that we now keep more status info around and more or less
> local conversion settings (after all then can be changed each moment) is not
> part of that.
>
> So, a next release will drop 'conversion' ... better not that unpredictable.
>
> Hans
>
>
> -----------------------------------------------------------------
>                                          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 at 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
> ___________________________________________________________________________________
>


More information about the ntg-context mailing list