From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/26423 Path: news.gmane.org!not-for-mail From: "Mojca Miklavec" Newsgroups: gmane.comp.tex.context Subject: Re: Question and answers Date: Mon, 20 Mar 2006 15:34:16 +0100 Message-ID: <6faad9f00603200634m6b72fd25teb697df19c293c0b@mail.gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1142865276 26681 80.91.229.2 (20 Mar 2006 14:34:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 20 Mar 2006 14:34:36 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Mar 20 15:34:31 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 1FLLSm-0001Yr-6h for gctc-ntg-context-518@m.gmane.org; Mon, 20 Mar 2006 15:34:28 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 190141279D; Mon, 20 Mar 2006 15:34:27 +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 06860-06; Mon, 20 Mar 2006 15:34:21 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A849512778; Mon, 20 Mar 2006 15:34:20 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CED1712778 for ; Mon, 20 Mar 2006 15:34:19 +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 06826-06 for ; Mon, 20 Mar 2006 15:34:18 +0100 (CET) Original-Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.205]) by ronja.ntg.nl (Postfix) with SMTP id 60BE91276C for ; Mon, 20 Mar 2006 15:34:18 +0100 (CET) Original-Received: by nproxy.gmail.com with SMTP id n15so808816nfc for ; Mon, 20 Mar 2006 06:34:18 -0800 (PST) Original-Received: by 10.48.239.5 with SMTP id m5mr2862637nfh; Mon, 20 Mar 2006 06:34:16 -0800 (PST) Original-Received: by 10.48.202.1 with HTTP; Mon, 20 Mar 2006 06:34:16 -0800 (PST) Original-To: "mailing list for ConTeXt users" In-Reply-To: Content-Disposition: inline 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:26423 Archived-At: On 3/20/06, David Arnold wrote: > 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? Add way=bysection,sectionnumber=no to \defineenumeration or to \setupenumeration. (You can also reset the numbers manually with \resetquestion.) Mojca