From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/62854 Path: news.gmane.org!not-for-mail From: Herbert Voss Newsgroups: gmane.comp.tex.context Subject: Re: \next Date: Fri, 22 Oct 2010 18:30:06 +0200 Organization: Freie =?ISO-8859-1?Q?Universit=E4t_Berlin?= Message-ID: <4CC1BC0E.4000008@FU-Berlin.DE> References: <4CC19202.8070301@FU-Berlin.DE> <4CC1A006.2000800@wxs.nl> <4CC1A533.5010006@wxs.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: dough.gmane.org 1287765020 30376 80.91.229.12 (22 Oct 2010 16:30:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 22 Oct 2010 16:30:20 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Oct 22 18:30:19 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.69) (envelope-from ) id 1P9KVW-0006mC-Uv for gctc-ntg-context-518@m.gmane.org; Fri, 22 Oct 2010 18:30:19 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 59451CA60F; Fri, 22 Oct 2010 18:30:17 +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 rkRostVX5La7; Fri, 22 Oct 2010 18:30:16 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4DC91CA78B; Fri, 22 Oct 2010 18:30:14 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 84A3ACA60F for ; Fri, 22 Oct 2010 18:30:12 +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 6ejKmImdlHMF for ; Fri, 22 Oct 2010 18:30:10 +0200 (CEST) Original-Received: from filter5-ams.mf.surf.net (filter5-ams.mf.surf.net [192.87.102.73]) by balder.ntg.nl (Postfix) with ESMTP id 66AFFCA78B for ; Fri, 22 Oct 2010 18:30:10 +0200 (CEST) Original-Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) by filter5-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o9MGU9Gc026218 for ; Fri, 22 Oct 2010 18:30:09 +0200 Original-Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost1.zedat.fu-berlin.de (Exim 4.69) for ntg-context@ntg.nl with esmtp (envelope-from ) id <1P9KVN-0002f2-A9>; Fri, 22 Oct 2010 18:30:09 +0200 Original-Received: from p54bff035.dip.t-dialin.net ([84.191.240.53] helo=[192.168.1.12]) by inpost2.zedat.fu-berlin.de (Exim 4.69) for ntg-context@ntg.nl with esmtpsa (envelope-from ) id <1P9KVM-0001Xs-WB>; Fri, 22 Oct 2010 18:30:09 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.1.12) Gecko/20100914 SUSE/3.0.8 Thunderbird/3.0.8 In-Reply-To: <4CC1A533.5010006@wxs.nl> X-Originating-IP: 84.191.240.53 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=130.133.4.66; country=DE; region=16; city=Berlin; latitude=52.5167; longitude=13.4000; http://maps.google.com/maps?q=52.5167,13.4000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0BDlQu9v3 - 7be56d23ac6c - 20101022 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.73 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:62854 Archived-At: Am 22.10.2010 16:52, schrieb Hans Hagen: > increment the number, sometimes handy when you have things in sync like > questions and answers but an answer is lacking ok, I looked into the code of strc-dec.mkiv, how the patch should be. I inserted in cont-new.mkiv before the end \def\dodefineenumerationcommands#1#2#3#4% since we use \currentdescription, we need an edef {\setevalue{\??dd#3#1\s!parent}{#4}% \setuevalue {#3#1}{\noexpand\doenumerationcommand{#1}{#2}{#3}}% \setuevalue{\e!set #3#1}{\noexpand\dosetenumerationnumber{#1}{#2}{#3}}% \setuevalue{\e!next #3#1}{\noexpand\donextenumerationnumber{#1}{#2}{#3}}% \setuevalue{\e!start#3#1}{\noexpand\doenumerationstart {#1}{#2}{#3}}% \setuevalue{\e!stop #3#1}{\noexpand\doenumerationstop {#1}{#2}{#3}}} but it didn't work, now U get the error at line 2 ! Undefined control sequence. system > error on line 2 in file latex5.tex: Undefined control sequence ... 1 \defineenumeration[theorem][way=bysection,location=top,text=Theorem] 2 >> 3 \starttext 4 \starttheorem foo \stoptheorem 5 \nexttheorem 6 \startsubtheorem foo \stopsubtheorem 7 \stoptext 8 9 \endinput 1 Herbert ___________________________________________________________________________________ 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 ___________________________________________________________________________________