Hello again I wish to use the structure of block to hide somme of them. Unfortunately reseting them doesn't seem to work. Here is a minimal example : ****************************************************** \starttext \defineenumeration[exercice][location=inleft] \defineblock[titre,question,reponse] \hideblocks[,reponse] \begintitre \exercice {\bf Facile} \endtitre% % \beginquestion $\displaystyle \sin\left(\pi \over 6\right)$ \endquestion \beginreponse $1 \over 2$ \endreponse {\bf Réponses} \reset[exercice] \useblocks[titre,reponse] \stoptext ****************************************************** I get an error with ****************************************************** ! Undefined control sequence. \currentdescriptionnumber ... \currentdescription \??dd \c!number \endcsname \@@ddresetsubsubsubnumber ...entdescriptionnumber }\resetnumber [\v! sub \v!s... \@@ddresetsubsubnumber ...b \v!sub \c!number }{#1} \resetnumber [\v! sub \v!su... \@@ddresetsubnumber ...!sub \v!sub \c!number }{#1} \resetnumber [\v! sub \@@de... \@@ddresetnumber ...s!reset \v!sub \c!number }{#1} \resetnumber [\@@descripti... \next1 #1,->\dodoreset{#1} \doprocesscommaitem … 1.47 \reset[exercice] ****************************************************** The line (47) is not the correct one here I deleted comments.
On Wed, Aug 6, 2008 at 10:42 AM, Eric DÉTREZ
Hello again
I wish to use the structure of block to hide somme of them. Unfortunately reseting them doesn't seem to work.
Here is a minimal example :
****************************************************** \starttext
\defineenumeration[exercice][location=inleft] \defineblock[titre,question,reponse] \hideblocks[,reponse]
\begintitre \exercice {\bf Facile} \endtitre% % \beginquestion $\displaystyle \sin\left(\pi \over 6\right)$
\endquestion
\beginreponse $1 \over 2$ \endreponse
{\bf Réponses}
\reset[exercice] \useblocks[titre,reponse] \stoptext
Use \resetnumber[exercice] for the moment. Wolfgang
participants (2)
-
Eric DÉTREZ
-
Wolfgang Schuster