From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/33388 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: buffer error Date: Fri, 16 Feb 2007 10:57:19 -0500 (EST) Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1171641470 12074 80.91.229.12 (16 Feb 2007 15:57:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 16 Feb 2007 15:57:50 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Feb 16 16:57:41 2007 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 lo.gmane.org with esmtp (Exim 4.50) id 1HI5Sr-0006en-KG for gctc-ntg-context-518@m.gmane.org; Fri, 16 Feb 2007 16:57:37 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7211C37; Fri, 16 Feb 2007 16:55: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 23622-01-19; Fri, 16 Feb 2007 16:55:19 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1EC354D; Fri, 16 Feb 2007 16:55:19 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 57EC84D for ; Fri, 16 Feb 2007 16:55:17 +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 23622-01-18 for ; Fri, 16 Feb 2007 16:55:12 +0100 (CET) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by ronja.ntg.nl (Postfix) with ESMTP id 82BA337 for ; Fri, 16 Feb 2007 16:55:12 +0100 (CET) Original-Received: FROM aditya.annarb01.mi.comcast.net (c-68-40-50-205.hsd1.mi.comcast.net [68.40.50.205]) BY hackers.mr.itd.umich.edu ID 45D5D460.1D1F6.18839 ; 16 Feb 2007 10:57:20 -0500 In-Reply-To: X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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:33388 Archived-At: On Fri, 16 Feb 2007, Idris Samawi Hamid wrote: > Hi gang, > > Here is something strange: > > [snip] > > will not compile: > > ================== > ! Missing number, treated as zero. > > \@@vnmetanoten > \dochecknote ...\relax \ifnum \noteparameter \c!n > =\zerocount > \settextnotes ... > > \dodoflushnotes ...zeropoint \bgroup \dochecknote > \ifendnotes \else > \scratch... > > \next1 #1,->\doprocessnotes {\dodoflushnotes }{#1} > \doprocesscommaitem > \doprocesscommalist ...item \gobbleoneargument #1, > ]\relax \global \advance > \... > > \doflushnotes ...rt \processnotes \dodoflushnotes > \global \setfalse > \postpon... > ... > l.56 Well, a simple minimal example \starttext { \definenote[metanote][conversion=set 2] Test\metanote{test} } \stoptext Since the note is defined in a group, its meaning is lost when you go out of the group. But the note in actually inserted at the end of the current-page, by which time, tex has no idea of counter of the note, hence the error. I am not sure if this is the "correct" behaviour or should definenote should change to make sure that something like this works. I tend to think that this is the correct behaviour. Do you really need to define the note inside a group? (In your example the group is being created by the braces in {\typebuffer \getbuffer}) Aditya