From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/26403 Path: news.gmane.org!not-for-mail From: David Arnold Newsgroups: gmane.comp.tex.context Subject: Question and answers Date: Sun, 19 Mar 2006 15:24:23 -0800 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v746.3) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1142810758 5707 80.91.229.2 (19 Mar 2006 23:25:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 19 Mar 2006 23:25:58 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Mar 20 00:25:54 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1FL7HP-0000jR-Oq for gctc-ntg-context-518@m.gmane.org; Mon, 20 Mar 2006 00:25:47 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 92E2012798; Mon, 20 Mar 2006 00:25:46 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 25600-10; Mon, 20 Mar 2006 00:25:39 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1CFBE1278B; Mon, 20 Mar 2006 00:25:39 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5405B1278B for ; Mon, 20 Mar 2006 00:25:38 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 26023-02 for ; Mon, 20 Mar 2006 00:25:37 +0100 (CET) Original-Received: from fed1rmmtao12.cox.net (fed1rmmtao12.cox.net [68.230.241.27]) by ronja.ntg.nl (Postfix) with SMTP id BF49212778 for ; Mon, 20 Mar 2006 00:25:36 +0100 (CET) Original-Received: from [10.0.1.2] (really [70.191.56.23]) by fed1rmmtao12.cox.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20060319232135.CNRA17437.fed1rmmtao12.cox.net@[10.0.1.2]> for ; Sun, 19 Mar 2006 18:21:35 -0500 Original-To: Context Mailing List List X-Mailer: Apple Mail (2.746.3) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:26403 Archived-At: All, I have: \defineenumeration[questions][location=serried,text=\blank] \setupenumerations[questions][before={\unnumberedsubsection{Exercises} \startcolumns[n=2]},after=\stopcolumns,number=no] \defineenumeration[answers][location=serried,text=\blank] \setupenumerations[answers][before={\unnumberedsubsection{Answers} \startcolumns[n=2]},after=\stopcolumns,number=no] \def\placeanswers{\startanswers\doifmodeelse{short}{\selectblocks [shortanswer][criterium=section]}{\selectblocks[longanswer] [criterium=section]}\stopanswers} \defineenumeration[question][location=inleft,text={\color[heavygreen] \bgroup}] \setupenumerations[question][stopper={.\egroup}] \defineenumeration[subquestion][location=hanging,text={\color [heavygreen]\bgroup},conversion=characters] \setupenumerations[subquestion][stopper={.\egroup}] \defineenumeration[answer][location=inleft,text={\color[heavygreen] \bgroup}] \setupenumerations[answer][stopper={.\egroup}] \defineenumeration[subanswer][location=hanging,text={\color [heavygreen]\bgroup},conversion=characters] \setupenumerations[subanswer][stopper={.\egroup}] \defineblock[question,shortanswer,longanswer] \hideblocks[shortanswer,longanswer] I put a \placeanswers at the end of each section, but the numbering is contiguous across sections. For example, section 1 might end with exercise #15, then section 2 begins with exercise #16. How can I reset the numbers to start with #1 in section 2?