From: Bela Mulder <mulder@amolf.nl>
To: ntg-context@ntg.nl
Subject: Re: Thoughts about counters
Date: Wed, 20 Oct 2010 16:16:59 +0200 [thread overview]
Message-ID: <4CBEF9DB.2080702@amolf.nl> (raw)
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
___________________________________________________________________________________
next reply other threads:[~2010-10-20 14:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-20 14:16 Bela Mulder [this message]
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
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=4CBEF9DB.2080702@amolf.nl \
--to=mulder@amolf.nl \
--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).