Am 22.02.2014 um 18:45 schrieb Xan <dxpubl...@telefonica.net>:

> No, it does not work.
> 
> I have this:
> 
> % Questions
> \defineenumeration
>  [exercici]
>  
> [alternative=serried,text={\startcolor[darkblue]Exercici\stopcolor},stopper={.\space},left={\bgroup},right={\egroup},width=fit,headstyle=\ss,distance=0.25em,width=fit,before={\incrementcounter[resposta]}]
> 
> % Answers
> \defineenumeration[resposta][headstyle=\ss,text={Solucions de l'exercici 
> \getnumber[exercici]},width=fit,alternative=serried,before={\decrementcounter[resposta]},number=no]
> 
> \defineblock[resposta]
> \hideblocks[resposta]
> 
> 
> % Exercises
> 
> \startexercici Bla...
> \beginresposta
> \resposta (Solucions: \startitemize[a,text] \item D, \item I, \item D, \item 
> No té relació, \item D, \item D, \item No té relació, \item No té relació, 
> \item D.\stopitemize) \par
> \endresposta
> \stopexercici
> 
> \startexercici Bla 2
> \stopexercici
> 
> \startexercici Bla 3
> \beginresposta
> \resposta (Solucions: \startitemize[a,text] \item D, \item I, \item D, \item 
> No té relació, \item D, \item D, \item No té relació, \item No té relació, 
> \item D.\stopitemize) \par
> \endresposta
> \stopexercici
> 
> \subject{Answers}
> 
> \selectblocks[resposta][criterium=section]
> 
> 
> I get \getnumber[exercici] as the last, not the counter of 'exercici' in 
> which I have the answer. How can I do thaT?

Make a complete minimal example.

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