<div dir="ltr"><div>Please, can someone provide some assistance in resolving this problem, if possible. I need to prepare a worksheet for Friday and I'm having this problem, ie, each worksheet show the hints and the answers of all worksheets.</div>
<div><br></div><div><br></div><div>thanks in advance</div><div><br></div><div style>Jorge</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014/1/14 DesdeChaves <span dir="ltr"><<a href="mailto:desdechaves@gmail.com" target="_blank">desdechaves@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Is there a way to empty the blocks after each recurse cycle.<div>If i make three exams with the command \dorecurse[3], in the first exam i found the hints and the answers of all exams.  </div>
<div>
<br></div><div><div>I try with the commands \resetnumber[hint, answer], but don't work.</div><div>   </div><div>%%%% begin question-hint-answer-blocks.tex</div><div>\defineblock[question]</div><div>\defineblock[hint]</div>

<div>\defineblock[answer]</div><div><br></div><div>\defineenumeration[question]</div><div>        [alternative=hanging,</div><div>        width=2.5cm,</div><div>        text={Question},</div><div>        headstyle={\bi},</div>

<div>        stopper={.}]</div><div><br></div><div>\defineenumeration[hint]</div><div>        [alternative=hanging,</div><div>        width=4cm,</div><div>        text={Hint for question},</div><div>        headstyle={\bi},</div>

<div>        stopper={.}]</div><div><br></div><div>\defineenumeration[answer]</div><div>        [alternative=hanging,        width=4.5cm,</div><div>        text={Answer to question},</div><div>        headstyle={\bi},</div>

<div>        stopper={.}]</div><div><br></div><div>\setupblock[question][before={\startquestion},after={\stopquestion}]</div><div>\setupblock[hint][before={\starthint},after={\stophint}]</div><div>\setupblock[answer][before={\startanswer},after={\stopanswer}]</div>

<div>\keepblocks[question]</div><div>\hideblocks[hint]</div><div>\hideblocks[answer]</div><div><br></div><div><br></div><div><br></div><div><br></div><div>\startsetups examn:make</div><div><br></div><div>\resetnumber[answer]</div>

<div>\resetnumber[question]</div><div>\resetnumber[hint]</div><div>    \page</div><div>        \setcounter[userpage][1]</div><div>\centerline{\kap{Maths}}</div><div> \centerline{\kap{Worksheet}}  \crlf</div><div> Name:\thinrules[n=1]%, interlinespace=big]</div>

<div>Evaluation:\thinrules[n=1]%, interlinespace=big]</div><div><br></div><div><br></div><div>    \getbuffer[examn]</div><div><br></div><div>\stopsetups</div><div><br></div><div>\starttext</div><div>\setuppagenumbering[state=stop]</div>

<div>\startbuffer[examn]</div><div><br></div><div>\section{Questions}</div><div><br></div><div>\beginquestion</div><div>  Compute $4\times 5$.</div><div>  </div><div><br></div><div>  </div><div>\endquestion</div><div><br>

</div><div>\beginhint</div><div>  Use the fact that $2\times 5 = 10$.</div><div>\endhint</div><div><br></div><div>\beginanswer</div><div>  $20$.</div><div>\endanswer</div><div><br></div><div>\beginquestion</div><div>  What is the value of $100 / 10$?</div>

<div>\endquestion</div><div><br></div><div>\beginhint</div><div>Remember that $10\times 10 = 100$.</div><div>\endhint</div><div><br></div><div>\beginanswer</div><div>$10$</div><div>\endanswer</div><div><br></div><div>\section{Hints to all questions}</div>

<div><br></div><div>\useblocks[hint]</div><div><br></div><div>\section{Answers to all questions}</div><div><br></div><div>\useblocks[answer]</div><div><br></div><div>\setuppagenumber[number=1]</div><div>\stopbuffer</div>
<div>
<br></div><div>\setuprandomize[124] % set a seed</div><div><br></div><div><br></div><div>\dorecurse{3} {\setups[examn:make]}</div><div><br></div><div>\stoptext</div><div><br></div><div>Thanks a lot</div><div><br>
</div><div>Jorge</div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Atentamente<br><br>DesdeChaves
</div>