ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Cedric Mauclair <cedric.mauclair@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: section conversion gets lost in MKIV
Date: Tue, 31 Aug 2010 13:07:00 +0200	[thread overview]
Message-ID: <AANLkTikytLSUmS2Vgo5yucFQi5ArpwVbhWF6sB9Xsr3_@mail.gmail.com> (raw)
In-Reply-To: <4C7B94B9.7080606@wxs.nl>

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@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@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
> ___________________________________________________________________________________
>
___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2010-08-31 11:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-30  8:34 Mojca Miklavec
2010-08-30 11:23 ` Hans Hagen
2010-08-31 11:07   ` Cedric Mauclair [this message]
2010-08-31 11:30     ` Hans Hagen
2010-08-31 14:28       ` Cedric Mauclair
2010-08-31 15:15         ` Hans Hagen

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=AANLkTikytLSUmS2Vgo5yucFQi5ArpwVbhWF6sB9Xsr3_@mail.gmail.com \
    --to=cedric.mauclair@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).