> Am 05.02.2015 um 17:19 schrieb Otared Kavian <ota...@gmail.com>:
> 
> Hi all,
> 
> I have a counter in an itemize environment which I need to increment by using
>       \incrementcounter[NameOfTheCounter]
> 
> However this does not work in the following example, maybe due to the use of 
> blocks, or some other reason.
> I define two blocks, one for exercises, one for the solutions.
> Then in each exercise I have a certain number of questions, presented with an 
> itemgroup named Questions.
> Analogously I have an itemgroup named Answers, which appear in the solution 
> to an exercise. Now my problem is that some questions don’t have an answer 
> included (for instance they are too easy…) and I need to increment the 
> counter by saying
>       \incrementcounter[Answers]
> 
> But this does not work, for an unknown reason. (See below)
> Can anyone give an advice?

This doesn’t work because the name of the counter is “itemgroup:Answers”
and you have to use \incrementcounter[itemgroup:Answers] to increase
the counter for the items.

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 via email to