From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/52415 Path: news.gmane.org!not-for-mail From: "B. Vogel" Newsgroups: gmane.comp.tex.context Subject: Initialisation problem enumeration and way=bysection Date: Tue, 18 Aug 2009 16:46:39 +0200 Message-ID: <200908181646.40091.bbvogel@home.nl> 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: ger.gmane.org 1250606836 2523 80.91.229.12 (18 Aug 2009 14:47:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Aug 2009 14:47:16 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Aug 18 16:47:09 2009 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 1MdPxe-0006np-1W for gctc-ntg-context-518@m.gmane.org; Tue, 18 Aug 2009 16:46:54 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3EC7DC9B0D; Tue, 18 Aug 2009 16:46:53 +0200 (CEST) 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 oQkgjuTHv1qP; Tue, 18 Aug 2009 16:46:50 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2D0A3C9A92; Tue, 18 Aug 2009 16:46:50 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2F155C9A92 for ; Tue, 18 Aug 2009 16:46:48 +0200 (CEST) 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 HhiMjeX0RJsY for ; Tue, 18 Aug 2009 16:46:43 +0200 (CEST) Original-Received: from smtpq4.tb.mail.iss.as9143.net (smtpq4.tb.mail.iss.as9143.net [212.54.42.167]) by balder.ntg.nl (Postfix) with ESMTP id 833D3C9A7C for ; Tue, 18 Aug 2009 16:46:43 +0200 (CEST) Original-Received: from [212.54.42.145] (helo=smtp14.tb.mail.iss.as9143.net) by smtpq4.tb.mail.iss.as9143.net with esmtp (Exim 4.69) (envelope-from ) id 1MdPxT-0003dh-3m for ntg-context@ntg.nl; Tue, 18 Aug 2009 16:46:43 +0200 Original-Received: from 5ed61b9e.cable.ziggo.nl ([94.214.27.158] helo=kosh.lan) by smtp14.tb.mail.iss.as9143.net with esmtp (Exim 4.69) (envelope-from ) id 1MdPxQ-0001l6-Ub for ntg-context@ntg.nl; Tue, 18 Aug 2009 16:46:40 +0200 User-Agent: KMail/1.9.9 Content-Disposition: inline X-ZiggoSMTP-MailScanner-Information: Please contact the ISP for more information X-ZiggoSMTP-MailScanner-ID: 1MdPxQ-0001l6-Ub X-ZiggoSMTP-MailScanner: Found to be clean X-ZiggoSMTP-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-4.399, required 5, autolearn=not spam, ALL_TRUSTED -1.80, BAYES_00 -2.60) X-ZiggoSMTP-MailScanner-From: bbvogel@home.nl 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:52415 Archived-At: Hi all, I have an enumeration: example that will reset by section. Using my own header: Mysection the enumeration is not reset by section. The second instance shows the failure. However, after a \section it suddenly works. And there is a problem with the sectioncounter as well. The headingnumbers are 1 2 1 2 3 4 5 6 instead of 1 2 3 4 5 6 7 8. See the example below. Regard, Bernard %MTXrun | current version: 2009.08.17 19:06 % linux-32 \definehead[Mysection][section] \defineenumeration[example] [way=bysection, location=left] \def\test{% \ifnum\currentenumerationfullnumber=\recurselevel\relax \currentenumerationfullnumber = \recurselevel\ PASS% \else \currentenumerationfullnumber \not= \recurselevel\ FAIL% \fi } \starttext \dorecurse {2} { \dorecurse {2} { \Mysection{Mysection} \dorecurse {3} {\startexample \test \stopexample} } \dorecurse {2} { \section{Section} \dorecurse {3} {\startexample \test \stopexample} } } \stoptext ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________