Re: [NTG-context] Thoughts about counters

2010-10-20 Thread Hans Hagen

On 20-10-2010 11:59, Bela Mulder wrote:


Dear ConTeXtuals,

Following up on my previous question regarding Custom enumeration (see
ntg-context Digest, Vol 76, Issue 71),
I penned down a few thoughts about counters. If you're interested take a
look: http://dl.dropbox.com/u/5718469/counters.pdf
It's also my first ConTeXt document, so please bear with the amateurish
formatting. I anyone can explain how to keep the annoying spurious
spaces from cropping up in my verbatim typing environment with
option=commands switched on, I would also be grateful.


do you have an example?

-
  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
___


Re: [NTG-context] Thoughts about counters

2010-10-20 Thread Wolfgang Schuster

Am 20.10.2010 um 11:59 schrieb Bela Mulder:

 Dear ConTeXtuals,
 
 Following up on my previous question regarding  Custom enumeration (see 
 ntg-context Digest, Vol 76, Issue 71),
 I penned down a few thoughts about counters. If you're interested take a 
 look: http://dl.dropbox.com/u/5718469/counters.pdf

The keys you request are already there:

countby = way (e.g. way=bytext or way=bychapter)

countertype = numberconversion and numberconverionset (e.g. 
numberconversion=romannumerals)

counterdiplay = prefixsegments or numbersegments

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
___


Re: [NTG-context] Thoughts about counters

2010-10-20 Thread Wolfgang Schuster

Am 20.10.2010 um 16:16 schrieb Bela Mulder:

 Wolfgang: thanks for the tips, I'll try them out.

Be aware that prefix/numbersegments is only available in mkiv.

 Hans: Here is the example, which produced the output in my Thoughts document 
 (http://dl.dropbox.com/u/5718469/counters.pdf)
 
 \definetyping[cmds]
 \setuptyping[cmds][option=commands]
 \starttext
 \startcmds 
 \def\MySectionCounter{P\currentcounter[part].C\currentcounter[chapter]-\currentcounter[section]}
/stopcmds
 \stoptext
 
 which has inserted spaces before the opening square brackets and between e.g. 
 \def and \MySectionCounter.

Can’t reproduce your problem here (using latest minimals) neither with mkii
nor with mkiv but why do you write „/stopcmds“ and not „\stopcmds“?

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
___