From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/52144 Path: news.gmane.org!not-for-mail From: "B. Vogel" Newsgroups: gmane.comp.tex.context Subject: enumerations and definehead Date: Sat, 8 Aug 2009 17:04:18 +0200 Message-ID: <200908081704.18637.bbvogel@home.nl> References: <35DB4E47-EE1F-4C9F-892B-1A2C218C1176@uni-bonn.de> <200908081628.18288.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 1249743887 23604 80.91.229.12 (8 Aug 2009 15:04:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Aug 2009 15:04:47 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sat Aug 08 17:04:40 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 1MZnTK-00056n-Pf for gctc-ntg-context-518@m.gmane.org; Sat, 08 Aug 2009 17:04:38 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DAF30C9B88; Sat, 8 Aug 2009 17:04:37 +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 PFVvurwEF8VB; Sat, 8 Aug 2009 17:04:35 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8BC67C9B7E; Sat, 8 Aug 2009 17:04:35 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9ADCFC9B7E for ; Sat, 8 Aug 2009 17:04:33 +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 Jom5-XkGpee3 for ; Sat, 8 Aug 2009 17:04:19 +0200 (CEST) Original-Received: from smtpq1.tb.mail.iss.as9143.net (smtpq1.tb.mail.iss.as9143.net [212.54.42.164]) by balder.ntg.nl (Postfix) with ESMTP id D8F91C9B0D for ; Sat, 8 Aug 2009 17:04:19 +0200 (CEST) Original-Received: from [212.54.42.134] (helo=smtp3.tb.mail.iss.as9143.net) by smtpq1.tb.mail.iss.as9143.net with esmtp (Exim 4.69) (envelope-from ) id 1MZnT1-0004zF-Oj for ntg-context@ntg.nl; Sat, 08 Aug 2009 17:04:19 +0200 Original-Received: from 5ed61b9e.cable.ziggo.nl ([94.214.27.158] helo=kosh.lan) by smtp3.tb.mail.iss.as9143.net with esmtp (Exim 4.69) (envelope-from ) id 1MZnT1-0000K0-75 for ntg-context@ntg.nl; Sat, 08 Aug 2009 17:04:19 +0200 User-Agent: KMail/1.9.9 In-Reply-To: <200908081628.18288.bbvogel@home.nl> Content-Disposition: inline X-ZiggoSMTP-MailScanner-Information: Please contact the ISP for more information X-ZiggoSMTP-MailScanner-ID: 1MZnT1-0000K0-75 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:52144 Archived-At: Hi all, How do I reset an enumeration with my own header? See the example below. The build-in section works and my own header fails. Tia, Bernard % MKIV beta % MTXrun | current version: 2009.08.07 11:22 % linux-32 \definehead[Mysection][section] \setuphead[Mysection] [after=\nowhitespace\hairline] \defineenumeration[example] [way=bysection] \starttext \dorecurse {3} { \Mysection{Mysection \recurselevel} \dorecurse {3} {\startexample \recurselevel \stopexample}} \page \dorecurse {3} { \section{Section \recurselevel} \dorecurse {3} {\startexample \recurselevel \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 ___________________________________________________________________________________