* hiding enumerations
@ 2008-08-06 8:42 Eric DÉTREZ
2008-08-06 9:02 ` Wolfgang Schuster
0 siblings, 1 reply; 3+ messages in thread
From: Eric DÉTREZ @ 2008-08-06 8:42 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: hiding enumerations
2008-08-06 8:42 hiding enumerations Eric DÉTREZ
@ 2008-08-06 9:02 ` Wolfgang Schuster
2008-08-06 10:52 ` Eric DÉTREZ
0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2008-08-06 9:02 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Wed, Aug 6, 2008 at 10:42 AM, Eric DÉTREZ <ericd13@mac.com> 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: hiding enumerations
2008-08-06 9:02 ` Wolfgang Schuster
@ 2008-08-06 10:52 ` Eric DÉTREZ
0 siblings, 0 replies; 3+ messages in thread
From: Eric DÉTREZ @ 2008-08-06 10:52 UTC (permalink / raw)
To: mailing list for ConTeXt users
Le 6 août 08 à 11:02, Wolfgang Schuster a écrit :
> On Wed, Aug 6, 2008 at 10:42 AM, Eric DÉTREZ <ericd13@mac.com> 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-08-06 10:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-06 8:42 hiding enumerations Eric DÉTREZ
2008-08-06 9:02 ` Wolfgang Schuster
2008-08-06 10:52 ` Eric DÉTREZ
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).