Hi, Maybe this is what you looking for:
%%%% begin question-hint-answer.tex \defineblock[question] \defineblock[hint] \defineblock[answer] \defineenumeration[question][alternative=hanging,width=2.5cm,text={Question},stopper={.}] \defineenumeration[hint] [alternative=hanging,width=4cm,text={Hint for question},stopper={.}] \defineenumeration[answer] [alternative=hanging,width=4.5cm,text={Answer to question},stopper={.}] \keepblocks[question] \hideblocks[hint] \hideblocks[answer] \starttext \section{Questions} \beginquestion \startquestion Compute $4\times 5$. \stopquestion \endquestion \beginhint \starthint Use the fact that $2\times 5 = 10$. \stophint \endhint \beginanswer \startanswer $20$. \stopanswer \endanswer \beginquestion \startquestion What is the value of $100/10$? \stopquestion \endquestion \beginhint \starthint Remember that $10\times 10 = 100$. \stophint \endhint \beginanswer \startanswer $10$ \stopanswer \endanswer \section{Hints} \useblocks[hint] \section{Answers} \useblocks[answer] \stoptext %%%% end question-hint-answer.tex Best regards: OK On 20 févr. 2014, at 10:15, Xan <dxpubl...@telefonica.net> wrote: > Hi, > > Just a question about blocks... I consulted the manual, but I'm in trouble: > > I have this definitions: > > % the exercise > \defineenumeration > [exercici] > > [alternative=serried,text={\startcolor[darkblue]Exercici\stopcolor},stopper={.\space},left={\bgroup},right={\egroup},width=fit,headstyle=\ss,distance=0.25em,width=fit] > > > \defineenumeration[resposta][headstyle=\ss,text={Solucions},width=fit,alternative=serried] > > \defineblock[resposta] % the answer > \hideblocks[resposta] > > And in my text, I have: > > \startexercici > \beginresposta > \resposta Exercici 2 (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 > ... > > \startmode[solucions] > \subject{Respostes} %Answers > > \selectblocks[resposta][criterium=section] > \stopmode > ... > > > Is there any way that the answers (resposta) has the same number as the > 'exercici' in which it belongs to? If not, I have to put "Solutions of > exercici 2" in my 'resposta' > > Thank you very much > ___________________________________________________________________________________ > 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 > ___________________________________________________________________________________ ___________________________________________________________________________________ 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 ___________________________________________________________________________________