ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: Thoughts about counters
@ 2010-10-20 14:16 Bela Mulder
  2010-10-20 15:11 ` Wolfgang Schuster
  0 siblings, 1 reply; 5+ messages in thread
From: Bela Mulder @ 2010-10-20 14:16 UTC (permalink / raw)
  To: ntg-context

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

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.

-- 

Bela Mulder
Group Leader Theory of Biomolecular matter

FOM Institute AMOLF
Science Park 104, 1098XG Amsterdam, THE NETHERLANDS
Tel: + 31 20 7547100 FAX: + 31 20 7547290
web: http://www.amolf.nl/research/theory_of_biomolecular_matter/


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Thoughts about counters
  2010-10-20 14:16 Thoughts about counters Bela Mulder
@ 2010-10-20 15:11 ` Wolfgang Schuster
  0 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Schuster @ 2010-10-20 15:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Thoughts about counters
  2010-10-20  9:59 Bela Mulder
  2010-10-20 11:57 ` Hans Hagen
@ 2010-10-20 13:09 ` Wolfgang Schuster
  1 sibling, 0 replies; 5+ messages in thread
From: Wolfgang Schuster @ 2010-10-20 13:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Thoughts about counters
  2010-10-20  9:59 Bela Mulder
@ 2010-10-20 11:57 ` Hans Hagen
  2010-10-20 13:09 ` Wolfgang Schuster
  1 sibling, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2010-10-20 11:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Thoughts about counters
@ 2010-10-20  9:59 Bela Mulder
  2010-10-20 11:57 ` Hans Hagen
  2010-10-20 13:09 ` Wolfgang Schuster
  0 siblings, 2 replies; 5+ messages in thread
From: Bela Mulder @ 2010-10-20  9:59 UTC (permalink / raw)
  To: ntg-context

  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.

Thanks, in advance!

-- 

Bela Mulder
Group Leader Theory of Biomolecular matter

FOM Institute AMOLF
Science Park 104, 1098XG Amsterdam, THE NETHERLANDS
Tel: + 31 20 7547100 FAX: + 31 20 7547290
web: http://www.amolf.nl/research/theory_of_biomolecular_matter/


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-10-20 15:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-20 14:16 Thoughts about counters Bela Mulder
2010-10-20 15:11 ` Wolfgang Schuster
  -- strict thread matches above, loose matches on Subject: below --
2010-10-20  9:59 Bela Mulder
2010-10-20 11:57 ` Hans Hagen
2010-10-20 13:09 ` Wolfgang Schuster

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).