ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Otared Kavian <otared@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Help watned for numbered descriptions
Date: Tue, 1 Dec 2009 06:10:20 +0100	[thread overview]
Message-ID: <EB580625-BECB-4A2B-90CB-25D56855002A@gmail.com> (raw)
In-Reply-To: <4B143951.9000702@wxs.nl>

Hi Hans,

Thanks for your insight! Your solution works very well with the new beta mkiv (ConTeXt version 2009.11.30 22:20).

I'll add a note on proclaim and enumerations on the wiki (not today though…).

Best regards: OK

On 30 nov. 2009, at 22:29, Hans Hagen wrote:

> Otared Kavian wrote:
>> Hi Hans, Aditya,
>> Many thanks for your attention: the solution suggested by Aditya is very satisfactory for the time being, as far as one uses mkii.
>> I added an entry on the wiki about proclaim:
>> 	http://wiki.contextgarden.net/proclaim
>> However, as Hans says, there is a slight problem with mkiv and the way things get numbered.
> 
> i uploaded a beta
> 
> \defineenumeration[one]
> \defineenumeration[two]   [one] % clone one
> \defineenumeration[three] [counter=one,style=slanted] % only use counter of one
> \defineenumeration[four]  [three] % clone three
> \defineenumeration[five]  [three] [counter=five] % clone three and use own counter
> \defineenumeration[six]   [three] [counter=four] % clone tree and use counter four (undefined)
> 
> \setupenumerations[one]  [prefix=yes,prefixsegments=section]
> \setupenumerations[two]  [prefix=yes,prefixsegments=section]
> \setupenumerations[three][prefix=yes,prefixsegments=section]
> \setupenumerations[four] [prefix=yes,prefixsegments=chapter:section]
> \setupenumerations[five] [prefix=yes,prefixsegments=chapter:section]
> \setupenumerations[six]  [prefix=yes,prefixsegments=chapter:section]
> 
> \starttext
> 
> \chapter{test}
> 
> \startone   test test  1 \stopone
> \starttwo   test test  2 \stoptwo
> \startthree test test  3 \stopthree
> \startfour  test test  4 \stopfour
> \startfive  test test  1 \stopfive
> \startsix   test test  1 \stopsix
> 
> \chapter{test}
> 
> \section{test}
> 
> \startone   test test  6 \stopone
> \starttwo   test test  7 \stoptwo
> \startthree test test  8 \stopthree
> \startfour  test test  9 \stopfour
> \startfive  test test  2 \stopfive
> \startsix   test test  2 \stopsix
> 
> \stoptext
> 
> 
> -----------------------------------------------------------------
>                                          Hans Hagen | PRAGMA ADE
>              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>     tel: 038 477 53 69 | fax: 038 477 53 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:[~2009-12-01  5:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-30 14:15 Otared Kavian
2009-11-30 16:49 ` Hans Hagen
2009-11-30 17:27 ` Aditya Mahajan
2009-11-30 18:34   ` Otared Kavian
2009-11-30 21:29     ` Hans Hagen
2009-12-01  5:10       ` Otared Kavian [this message]
2009-12-03 18:31       ` Otared Kavian

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=EB580625-BECB-4A2B-90CB-25D56855002A@gmail.com \
    --to=otared@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).