Am 13.01.2014 um 04:41 schrieb Otared Kavian <ota...@gmail.com>:
> Hi Wolfgang,
> Thanks for the tip: I’ll try to adapt what you suggest to the case of blocks
> and question-hint-answer, and then let you know if I succeed.
> Out of curiosity, how can one access the counter associated to an enumeration
> or an item?
You can use \rawcountervalue[<name of the enumeration environment>] or
\convertedcounter[<name of the environment>].
> Also, if I understand correctly, the command
> creates first a counter named QuestionCounter, if it does not exist yet, and
> then increments its value: so one does not need anymore commands such as
> before incrementing it. Am I right?
No, you don’t need \newcounter because \increment checks if the counter exists
because it tries to increase the value. The \newcounter command which creates
the counter can also be used to reset the value and not only to create the
If your question is of interest to others as well, please add an entry to the
maillist : firstname.lastname@example.org / 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