[NTG-context] hiding enumerations
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. ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] hiding enumerations
On Wed, Aug 6, 2008 at 10:42 AM, Eric DÉTREZ <[EMAIL PROTECTED]> wrote: > 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 ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] hiding enumerations
Le 6 août 08 à 11:02, Wolfgang Schuster a écrit : > On Wed, Aug 6, 2008 at 10:42 AM, Eric DÉTREZ <[EMAIL PROTECTED]> wrote: >> >> Unfortunately reseting them doesn't seem to work. > > Use \resetnumber[exercice] for the moment. Thank's it works fine. ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___