From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85099 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 01:41:20 +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="===============0067742716==" X-Trace: ger.gmane.org 1383612081 4466 80.91.229.3 (5 Nov 2013 00:41:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Nov 2013 00:41:21 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue Nov 05 01:41:27 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 1VdUhz-0002WP-4B for gctc-ntg-context-518@m.gmane.org; Tue, 05 Nov 2013 01:41:27 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EB91E10226; Tue, 5 Nov 2013 01:41:25 +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 sRGbo1NWjq1J; Tue, 5 Nov 2013 01:41:23 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 974DB101EF; Tue, 5 Nov 2013 01:41:23 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4E98D101EF for ; Tue, 5 Nov 2013 01:41:22 +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 dTd0u3gRTONo for ; Tue, 5 Nov 2013 01:41:21 +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 93BE9101E5 for ; Tue, 5 Nov 2013 01:41:21 +0100 (CET) Original-Received: from mail-wi0-x22e.google.com (mail-wi0-x22e.google.com [IPv6:2a00:1450:400c:c05::22e]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id rA50fKlo026527 for ; Tue, 5 Nov 2013 01:41:21 +0100 Original-Received: by mail-wi0-f174.google.com with SMTP id cb5so1396892wib.13 for ; Mon, 04 Nov 2013 16:41:20 -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=jsuqc5U4HqVfPKFp97TEF6icap0bvvTYLN38NeN1TEU=; b=pAlz8lKYyr7XVznnMaTIe3UyrCpEeCH/S6mHqosGga8wHhxtb3fATkiY2a8HTZ7XAY Wx0w0B4ZYzlGJRE8rL/KxoOj1q9aACrCPO+PIuEJH4sU/5PmAuy+9m6uvGW/6S8Oyd0a lfPnUrLm/3mnpbMiElkwhAuBA/84xDkqO3YOfSBmH+2xzEgdWKhqIkdFMeYU4WzyXDRq 3Folfmu/pqsBiCervdrMy/L+5USST8BMZ8Rvn+9jg0MEUOm70VGPI2VLnxWsQ7tqYmmO n6UVCmBFiV9SXG5bn88JU1HNh1Q7b4m9v6yLWVGLXF6eE19mEGDBpg7uixToG9Ezxn1b cWBA== X-Received: by 10.180.87.69 with SMTP id v5mr14360516wiz.45.1383612080811; Mon, 04 Nov 2013 16:41:20 -0800 (PST) Original-Received: by 10.216.244.4 with HTTP; Mon, 4 Nov 2013 16:41:20 -0800 (PST) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c05::22e; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03KJAFlBo - 47177334828b - 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:85099 Archived-At: --===============0067742716== Content-Type: multipart/alternative; boundary=f46d044402a29574ca04ea634afd --f46d044402a29574ca04ea634afd Content-Type: text/plain; charset=UTF-8 Hello, How to reset a counter bysection and bysubsection at the same time? The following example does not work. Hans, could you had the support of lists for the 'way' argument please? E.g.: \defineenumeration[cool][text=Cool, way={bysection, bysubsection}] \starttext \section{Cat} \subsection{Cat} \cool{} \cool{} \subsection{Cat} \cool{} \cool{} \section{Cat} \cool{} \cool{} \stoptext Best regards. --f46d044402a29574ca04ea634afd Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,

How to reset a= counter bysection and bysubsection at the same time? The following example= does not work. Hans, could you had the support of lists for the 'way&#= 39; argument please?

E.g.:<= /div>

<= div style=3D"font-family:arial,sans-serif;font-size:13px">
\defineenume= ration[cool][text=3DCool, way=3D{bysection, bysubsection}]

\starttext

\section{Cat}<= /div>
\subsection{Cat}

\cool{}
\cool= {}

\subsection{Cat}

\cool= {}
\cool{}

\section{Cat}

\cool{}
\cool{}

\stoptext
<= div>


Best regards.
--f46d044402a29574ca04ea634afd-- --===============0067742716== 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 ___________________________________________________________________________________ --===============0067742716==--