ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \reset deprecated?
@ 2005-12-21  2:35 David Arnold
  2005-12-21  7:44 ` Taco Hoekwater
  2005-12-21 13:37 ` Hans Hagen
  0 siblings, 2 replies; 3+ messages in thread
From: David Arnold @ 2005-12-21  2:35 UTC (permalink / raw)


All,

I can't get \reset to work as in the manual. Is it deprecated?  
Replaced with something?


%output=pdf

\defineenumeration[question][location=serried,text=Question]
\defineenumeration[answer][location=serried,text=Answer]
\defineblock[question,answer]
\hideblocks[answer]

\starttext

\chapter{First Chapter}

\input tufte

\beginquestion
\startquestion
   What is the square root of 4?
\stopquestion
\endquestion

\beginanswer
\startanswer
   2
\stopanswer
\endanswer

\section{Answers}
\reset[answer]
\selectblocks[answer][criterium=chapter]

\chapter{Second Chapter}

\input tufte

\beginquestion
\startquestion
   What is the square root of 4?
\stopquestion
\endquestion

\beginanswer
\startanswer
   2
\stopanswer
\endanswer

\stoptext

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: \reset deprecated?
  2005-12-21  2:35 \reset deprecated? David Arnold
@ 2005-12-21  7:44 ` Taco Hoekwater
  2005-12-21 13:37 ` Hans Hagen
  1 sibling, 0 replies; 3+ messages in thread
From: Taco Hoekwater @ 2005-12-21  7:44 UTC (permalink / raw)


David Arnold wrote:
> All,
> 
> I can't get \reset to work as in the manual. Is it deprecated?  Replaced 
> with something?

Broken, I think ;-)

Meanhile, you can use \resetnumber[answer] directly, but I do not
believe you have to (not in this example at least).

Cheers,

Taco

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: \reset deprecated?
  2005-12-21  2:35 \reset deprecated? David Arnold
  2005-12-21  7:44 ` Taco Hoekwater
@ 2005-12-21 13:37 ` Hans Hagen
  1 sibling, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2005-12-21 13:37 UTC (permalink / raw)


David Arnold wrote:

> All,
>
> I can't get \reset to work as in the manual. Is it deprecated?  
> Replaced with something?

ah, has to do with low level optimizations (\currentdescriptor etc); 
i'll fix that reset

Hans

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-12-21 13:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-21  2:35 \reset deprecated? David Arnold
2005-12-21  7:44 ` Taco Hoekwater
2005-12-21 13:37 ` Hans Hagen

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).