ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Should command `\setnumber' print number in text?
Date: Tue, 1 May 2012 16:03:32 +0200	[thread overview]
Message-ID: <18982FF6-D256-4030-AEA3-E15764F99F7D@googlemail.com> (raw)
In-Reply-To: <20120429122356.GI1360@smoon>


Am 29.04.2012 um 14:23 schrieb Vladimir Lomov:

> Just to clarify question (before update wiki): is `\setnumber' command
> obsolete and `\setupnumber' should be used instead?

Both commands have a different purpose, with \setupnumber you can
change the conversion of the counter (romannumerals, characters etc.),
add a prefix (chapter, section … number) and let the counter be reset
with each new sectionblock or heading.

With \setnumber you can set the counter to a certain value but to fit
the command in the normal syntax there was a change a while back.

In MkII you set the number in braces

  \setnumber[…]{<number>}

but for MkIV you use brackets to set the number

  \setnumber[…][<number>]

> I'm also reading "dev-context", some time ago there were discussion about
> `\definestructure...', in message `<4F737D98.5040600@wxs.nl>' Hans shown
> several `\let' commands, from that I thought that `\setnumber' is ok to
> use with `[]{}'.

In MkIV the real names for the counter mechanism are

- \definecounter
- \setupcounter
- \incrementcounter
- \convertedcounter
- …

but for backward compatibility (the names are mentioned in manuals) the old
names from MkII are synonyms with the same syntax.

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
___________________________________________________________________________________


      reply	other threads:[~2012-05-01 14:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-29  6:13 Vladimir Lomov
2012-04-29  7:16 ` Wolfgang Schuster
2012-04-29 12:23   ` Vladimir Lomov
2012-05-01 14:03     ` Wolfgang Schuster [this message]

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=18982FF6-D256-4030-AEA3-E15764F99F7D@googlemail.com \
    --to=schuster.wolfgang@googlemail.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).