From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55783 Path: news.gmane.org!not-for-mail From: Matthias Weber Newsgroups: gmane.comp.tex.context Subject: More numbering trouble with blocks Date: Sun, 24 Jan 2010 15:37:56 -0500 Organization: Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v936) Content-Type: multipart/mixed; boundary=Apple-Mail-3-442951032 X-Trace: ger.gmane.org 1264365658 29491 80.91.229.12 (24 Jan 2010 20:40:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 24 Jan 2010 20:40:58 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jan 24 21:40:51 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.50) id 1NZ9GI-0000Ar-SS for gctc-ntg-context-518@m.gmane.org; Sun, 24 Jan 2010 21:40:46 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9B3CFC9C1A; Sun, 24 Jan 2010 21:40:52 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id WzYv5kB8QWAf; Sun, 24 Jan 2010 21:40:49 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CB21FC9BFF; Sun, 24 Jan 2010 21:40:48 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DF046C9BFF for ; Sun, 24 Jan 2010 21:40:46 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id rmAujI9vJobc for ; Sun, 24 Jan 2010 21:40:44 +0100 (CET) Original-Received: from belushi.uits.indiana.edu (belushi.uits.indiana.edu [129.79.1.188]) by balder.ntg.nl (Postfix) with ESMTP id B2D6AC9BC2 for ; Sun, 24 Jan 2010 21:40:43 +0100 (CET) Original-Received: from mail-relay.iu.edu (burns.uits.indiana.edu [129.79.1.202]) by belushi.uits.indiana.edu (8.14.2/8.13.8/IU Messaging Team) with ESMTP id o0OKeb1D006372 for ; Sun, 24 Jan 2010 15:40:37 -0500 Original-Received: from [10.0.1.4] (dial-126-88.dial.indiana.edu [156.56.126.88]) (authenticated bits=0) by mail-relay.iu.edu (8.14.2/8.13.8/IU Messaging Team Submission) with ESMTP id o0OKeMLM011836 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Sun, 24 Jan 2010 15:40:36 -0500 X-Mailer: Apple Mail (2.936) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:55783 Archived-At: --Apple-Mail-3-442951032 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Dear all, when pairing exercises with recalled solution blocks it seems that both are numbered consecutively but independently. When I don't give a solution to an exercise, the subsequent solution numbers are incorrect. What is the proper way to deal with this? Manipulate the counter in the exercises without answers somehow? Basic example attached. Thanks, Matthias --Apple-Mail-3-442951032 Content-Disposition: attachment; filename=numbers.tex Content-Type: application/octet-stream; x-mac-hide-extension=yes; x-mac-type=54455854; x-mac-creator=54655873; x-unix-mode=0644; name="numbers.tex" Content-Transfer-Encoding: 7bit \setupbodyfont [10pt] \defineenumeration [exercise] [before=\blank, after=\blank, way=bysection, text=Exercise, start=1, location=hanging, letter=rm] \defineenumeration [solution] [text=Solution, way=bysection, location=hanging, letter=rm] \defineblock[exercise] \defineblock[solution] \hideblocks[solution] \starttext \section{Addition} \startexercise $1+1=?$ \stopexercise \beginsolution[one] \startsolution $1+1=2$ \stopsolution \endsolution \startexercise $1+2=?$ \stopexercise \beginsolution[one] \endsolution \startexercise $2+2=?$ \stopexercise \beginsolution[one] \startsolution $2+2=4$ \stopsolution \endsolution \section{Solutions to Selected Exercises from Chapter One} \reset[solution] \useblocks[solution][one] \stoptext --Apple-Mail-3-442951032 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit --Apple-Mail-3-442951032 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --Apple-Mail-3-442951032--