From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85104 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?G=C3=A9ry_Ogam?= Newsgroups: gmane.comp.tex.context Subject: Counter resetting Date: Tue, 5 Nov 2013 13:22:33 +0100 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1917511183==" X-Trace: ger.gmane.org 1383654157 24512 80.91.229.3 (5 Nov 2013 12:22:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Nov 2013 12:22:37 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue Nov 05 13:22:44 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Vdfed-0005eX-CV for gctc-ntg-context-518@m.gmane.org; Tue, 05 Nov 2013 13:22:43 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E8A5E1022C; Tue, 5 Nov 2013 13:22:42 +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 LRHF60NwqAtD; Tue, 5 Nov 2013 13:22:37 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 8814F10230; Tue, 5 Nov 2013 13:22:37 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9E65D10234 for ; Tue, 5 Nov 2013 13:22:36 +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 69+7215KaMgZ for ; Tue, 5 Nov 2013 13:22:35 +0100 (CET) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 2CC271022C for ; Tue, 5 Nov 2013 13:22:34 +0100 (CET) Original-Received: from mail-wg0-x229.google.com (mail-wg0-x229.google.com [IPv6:2a00:1450:400c:c00::229]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id rA5CMXs1017247 for ; Tue, 5 Nov 2013 13:22:33 +0100 Original-Received: by mail-wg0-f41.google.com with SMTP id b13so2940378wgh.4 for ; Tue, 05 Nov 2013 04:22:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=mI9TAIlfUXG+K4J/MjFxhdJyIXuMtX4YAZ6eg5WoxOg=; b=yAW0ZvTXNHQWMGwZaV+BALoBq5+MhiY8wv+aoS0RRr3A0TpQFJxzsDs3P4gcYSFY5u T35FA2aRA4lWTC2lpUWsb9L0fdt3n3I/aayW6DpvBJtGIuqiJR6PtgNh8a9o/dx9xOtb 3GUvk26MY+jqDQcd9I/5OwjaiAxDOgn3AYt7sm4hvIm0JZpdWAZUefGap02ZI6eremkv BhRa7lkWdkS5St8mgKMLhSRgcY2gXeEG+cO5ILQi+nAu1wMLq9Or/7A6TOk/tDsSQmqh kiFbCrJ9TKod+BLA5Gfpn8ICYGwV6p952TNwhUWb42NwHk4vsFXm075lKRkeHW4NnOtE EcoQ== X-Received: by 10.194.202.230 with SMTP id kl6mr17844223wjc.9.1383654153464; Tue, 05 Nov 2013 04:22:33 -0800 (PST) Original-Received: by 10.216.244.4 with HTTP; Tue, 5 Nov 2013 04:22:33 -0800 (PST) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c00::229; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03KJMmx1j - 35a1f8c1eddd - 20131105 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:85104 Archived-At: --===============1917511183== Content-Type: multipart/alternative; boundary=047d7b873a104f382d04ea6d16cf --047d7b873a104f382d04ea6d16cf Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable > You can use =E2=80=9Cway=3Dbyhead=E2=80=9D to reset the counter with each= section. > > Wolfgang It does not work (with ConTeXt ver: 2012.05.30): \defineenumeration[cool][text=3DCool, way=3Dbyhead] \starttext \section{Cat} \subsection{Cat} \cool{} \cool{} \subsection{Cat} \cool{} \cool{} \section{Cat} \cool{} \cool{} Hello world! \stoptext --047d7b873a104f382d04ea6d16cf Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
> You can use =E2=80=9Cway=3Dbyhead=E2=80=9D to reset t= he counter with each section.
>=C2=A0
> Wolfgang

It does not work (with=C2=A0ConTeXt ver: 2012.05.30)= :


\= defineenumeration[cool][text=3DCool, way=3Dbyhead]

\starttext

\section{Cat}
\subsection{Cat}

\cool{}
\cool{}

\subsection{Cat}

\cool{}
\cool{}

\section{Cat}

\cool{}
\cool{}
=
Hello world!

\stoptext
<= /div>
--047d7b873a104f382d04ea6d16cf-- --===============1917511183== 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 ___________________________________________________________________________________ --===============1917511183==--