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