From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/81925 Path: news.gmane.org!not-for-mail From: Alan Bowen Newsgroups: gmane.comp.tex.context Subject: Cumulating numbered lists Date: Thu, 18 Apr 2013 13:57:20 -0400 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1261611458==" X-Trace: ger.gmane.org 1366307846 8787 80.91.229.3 (18 Apr 2013 17:57:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Apr 2013 17:57:26 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 18 19:57:30 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1USt5M-0007D2-SC for gctc-ntg-context-518@m.gmane.org; Thu, 18 Apr 2013 19:57:28 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 40AC5101EA; Thu, 18 Apr 2013 19:57:27 +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 Tmw3OuoUm+dk; Thu, 18 Apr 2013 19:57:25 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 78C6F101E6; Thu, 18 Apr 2013 19:57:25 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 200E6101E6 for ; Thu, 18 Apr 2013 19:57:24 +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 wnlsmEz-JwKU for ; Thu, 18 Apr 2013 19:57:23 +0200 (CEST) Original-Received: from filter3-utr.mf.surf.net (filter3-utr.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id 10A32101E4 for ; Thu, 18 Apr 2013 19:57:22 +0200 (CEST) Original-Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176]) by filter3-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r3IHvLsh023933 for ; Thu, 18 Apr 2013 19:57:21 +0200 Original-Received: by mail-vc0-f176.google.com with SMTP id hf12so2860713vcb.35 for ; Thu, 18 Apr 2013 10:57:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=XzyssYxNNi4Hr+tVANrOeTvhrMRsrnTHtm+/VBTI5w0=; b=bTpoVRDUzynVS7htKzpLxZhY3SzoCJ0QgdLYPgyOBB0oZwkgZcszJdFjohVvn+lcfi awaEDpBAqpFxkxxl5h+UjK4Bbn849PI9qahmmw8W9xrb/aK0tubZJS1nrGiKu0hUkhfq Rkb+yDW6bCkzYWe48NmtrYr8q/7ZsscYi6Ov9bZ9f4I0KlFseVebnNqX8FKBGqdsfgcI 7kHsGgTSm1cSaQPo9yVOgrEyrEriYkjapVhT/Ztsi7cfYTzbvOaTO1HBaI27DdIZj8fC V4laqhnvVFJ9c98Lud3YFuZIz45tPcWJ+4e1+Bg3OCQYlFDGZY8zQWvkO1oG8kEHXz6v avBg== X-Received: by 10.58.85.134 with SMTP id h6mr9142223vez.18.1366307840826; Thu, 18 Apr 2013 10:57:20 -0700 (PDT) Original-Received: by 10.220.58.202 with HTTP; Thu, 18 Apr 2013 10:57:20 -0700 (PDT) X-Bayes-Prob: 0.0003 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.220.176; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08JptVlv6 - f9413cf78280 - 20130418 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 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:81925 Archived-At: --===============1261611458== Content-Type: multipart/alternative; boundary=047d7b6d934081a22f04daa65530 --047d7b6d934081a22f04daa65530 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I need a list structure that can be numbered in different ways as the occasion warrants. In this case, I need: 1. text 2. text 2.1. text 2.2. text Text Text A. text B. text The problem seem to be in turning off the cumulation of numbers in the last entries (fourth level). \defineitemgroup[MyList] \setupitemgroup[MyList][1][broad,joinedup,packed,autointro] [itemalign=3Dflushright,left=3D{},right=3D{},stopper=3D{.},margin=3D3pc] \setupitemgroup[MyList][2][broad,joinedup,packed,autointro] [itemalign=3Dflushright,left=3D{},right=3D{},stopper=3D{.}] \setupitemgroup[MyList][3][broad,joinedup,packed,autointro] [itemalign=3Dflushright,left=3D{},right=3D{},stopper=3D{.}] \setupitemgroup[MyList][4][broad,joinedup,packed,autointro] [itemalign=3Dflushright,left=3D{},right=3D{},stopper=3D{.}] \starttext \startMyList[n,repeat] \item First level text \item First level text \startMyList[n,repeat] \item Second level text \item Second level text \startMyList[symbol=3D{}] \item Third level text \item Third level text \startMyList[A] %<=3D=3D=3D=3D=3D % \startMyList[A,prefix=3Dno] %<=3D=3D=3D=3D=3D \item Fourth level text \item Fourth level text \stopitemize \stopitemize \stopitemize \stopitemize \stoptext With \startMyList[A], I get 2.2.2.A. Fourth level text 2.2.2.B. Fourth level text With \startMyList[A,prefix=3Dno], I get =E2=96=B7 Fourth level text on each line. Any suggestions or pointers will be gratefully received. Alan --047d7b6d934081a22f04daa65530 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I need a list structure that can be numbered in different = ways as the occasion warrants.

In this case, I nee= d:
1. text
2. text
=C2=A0 = =C2=A0 2.1. text
=C2=A0 =C2=A0 =C2=A02.2. text
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 Text
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 T= ext
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0A. text=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0B. text

The problem seem to be in turning off th= e cumulation of numbers in the last entries (fourth level).

\defineitemgroup[MyList]
\se= tupitemgroup[MyList][1][broad,joinedup,packed,autointro]
[itemalign=3Dflushright,left=3D= {},right=3D{},stopper=3D{.},margin=3D3pc]

\setupitemgroup[MyList][2][broad,joinedup,packed,autoin= tro]
[itemali= gn=3Dflushright,left=3D{},right=3D{},stopper=3D{.}]

\setupitemgroup[MyList][3][broad,joinedup,packed,autointro]
[itemalign=3Dflush= right,left=3D{},right=3D{},stopper=3D{.}]

\setupit= emgroup[MyList][4][broad,joinedup,packed,autointro]
[itemalign=3Dflushright,left=3D{},= right=3D{},stopper=3D{.}]

\starttext

\startMyList[n,repe= at]
=C2=A0 \item First level text=C2=A0
=C2=A0 \item Fi= rst level text =C2=A0
=C2=A0 \startMyList[n,repeat]
=C2=A0 \item Second= level text=C2=A0
=C2=A0 \item Second level text
\= startMyList[symbol=3D{}]
=C2=A0 \item Third= level text=C2=A0
=C2=A0 \item Third level text
\startMyList[A] =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0%<=3D=3D=3D=3D=3D
=C2=A0% \startMyLi= st[A,prefix=3Dno]=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0%<=3D=3D=3D=3D= =3D
=C2=A0 \i= tem Fourth level text=C2=A0
=C2=A0 \item Fourth level text
\stopitemize
\stopitemize
\stopitemize
=
\stopitemize


\stoptext

With \startMyList[A], I get=C2=A0
=C2=A0 =C2=A0 =C2=A0 =C2= =A02.2.2.A.=C2=A0Fourth level text
=C2=A0 =C2=A0 =C2=A0 =C2= =A02.2.2.B.=C2=A0Fourth level text
With \startMyList[A,prefix=3Dno], I get
=09 =09 =09

= =C2=A0 =C2=A0 =C2=A0 =E2=96=B7=C2=A0Fourth level text

on each line.

= Any suggestions or pointers will be gratefully received.

Alan

<= br>

--047d7b6d934081a22f04daa65530-- --===============1261611458== 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 ___________________________________________________________________________________ --===============1261611458==--