From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/112747 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: fv leung via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: itemize problems Date: Tue, 7 Sep 2021 16:50:48 +0800 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4087444243784633622==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19367"; mail-complaints-to="usenet@ciao.gmane.io" Cc: fv leung To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Sep 07 10:51:42 2021 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mNWpQ-0004eO-4n for gctc-ntg-context-518@m.gmane-mx.org; Tue, 07 Sep 2021 10:51:40 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id CECBF287240; Tue, 7 Sep 2021 10:51:06 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pwvWHUWKUUKR; Tue, 7 Sep 2021 10:51:05 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2D12428722B; Tue, 7 Sep 2021 10:51:05 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id AE34628720A for ; Tue, 7 Sep 2021 10:51:02 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id p4_mWER5cZ3L for ; Tue, 7 Sep 2021 10:51:01 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.222.52; helo=mail-ua1-f52.google.com; envelope-from=fvleung@gmail.com; receiver= Original-Received: from mail-ua1-f52.google.com (mail-ua1-f52.google.com [209.85.222.52]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 3CBB5286FBF for ; Tue, 7 Sep 2021 10:51:01 +0200 (CEST) Original-Received: by mail-ua1-f52.google.com with SMTP id 75so5167595uav.8 for ; Tue, 07 Sep 2021 01:51:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=n4PiQsWGp4SaxHw97BpU6/HEi04R8Im4Fbqr5pGLcWE=; b=A0xDFCGUaRpoCLdOOPFGDCwUoSnz478oaxEGyZy3XiE3q+IAAR3pvQN6YxWVVqPPag SIBAqbpCfp9+qBSdKsvc5RuYG+Fns9UoG037h1f10cgGOYQAgbvtZ4dl9X2eAI7OJdtr yFllw5S11PmZZnAbId1OpmZpw27n+7/W482n6xcajAry3Ir7gxhfFZ3ELFU06lWYnvnn 8E5qJiDVCHj9u2jJj5qMErbaMAnDvv3mS9o63CgGlKg03N1wk30S8yrkL4NJL0MU09I/ zE+iPHG846B3nFKaBtPwA7j2Y0nHZlj0uhJ0Z2gpXMdTpKC4xgu/8bwO4Rc+Ysh1dOWf 3bUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=n4PiQsWGp4SaxHw97BpU6/HEi04R8Im4Fbqr5pGLcWE=; b=CCuW3+5T4c7Fqp4TdPSXJt1VzCOg5yiSsLg1T5JRMm1lJD5Y/sKZzRL2t48tssAu8k wXOJA0ZK7AUw7A/3OcXHAjeZ/b481a2ePdBmXIt00zcRJv1dcVZ6nnH6gl21A+6unZtL ht1q1zlkuuFfaBp88kwrP0qexO3Gd2K/O32roEQUKFfaAGmBGJIXcQKgzxonYY/t2+nV APrWyCuw8WlsG4kKOr17RqjwwY+Qu3EgkgbEk4Dh1aDsXm/YleJoPD9dgqTeaz3dfbhS f61Y+ax9/2o7mDWKe4w7Mtz3LlaHaRtf+QdUa25+GOrHsKM7o6EtGzDpGkbw8rrIcLoj E0wQ== X-Gm-Message-State: AOAM533iI1Eryr9cB6BK9ojYRhxOd2NSz90R4wKIFIYcen8q9Bv0vPZo 8KmqxqB43HD8/fJtoROOCx/Pbv41xsZL8KIK8kFCmQTRsm0= X-Google-Smtp-Source: ABdhPJzmEJ7Z4OUFYglBTss23Cc5JT2NxlnaAu4WFqH3xNBJoqrTr9pc0hQZ0+LHZ41dfnUtlhslXEoWEB6wva1nQII= X-Received: by 2002:ab0:70ce:: with SMTP id r14mr7691750ual.16.1631004659281; Tue, 07 Sep 2021 01:50:59 -0700 (PDT) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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" Xref: news.gmane.io gmane.comp.tex.context:112747 Archived-At: --===============4087444243784633622== Content-Type: multipart/alternative; boundary="00000000000057f22d05cb63dd36" --00000000000057f22d05cb63dd36 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Use \startitemize[A,text][lefttext=3D,righttext=3D,stopper=3D] then. Maybe that's the new way. Sylvain Hubert via ntg-context =E6=96=BC 2021=E5=B9=B4= 9=E6=9C=887=E6=97=A5 =E9=80=B1=E4=BA=8C =E4=B8=8B=E5=8D=884:32=E5=AF=AB=E9= =81=93=EF=BC=9A > Thanks, but this doesn't seem to work on my laptop: > > \starttext > \startitemize[A,text][left=3D,right=3D,stopper=3D] > \item 1 > \item 2 > \stopitemize > \stoptext > > %output: (A) 1 (B) 2 > > On 07/09/2021, fv leung via ntg-context wrote: > > I add > > > > left=3D,right=3D, > > > > in the second option group. > > > > =E5=9C=A8 2021=E5=B9=B49=E6=9C=887=E6=97=A5=E9=80=B1=E4=BA=8C 07:02=EF= =BC=8CSylvain Hubert via ntg-context > =E5=AF=AB=E9=81=93=EF=BC=9A > > > >> A few more information: > >> > >> For the 1st problem: > >> > >> It seems that \setupitemize accepts two option groups, to which > >> n,packed and margin belong accordingly. However, > >> \setupitemize[n][margin=3D2em] does not seem to work. > >> > >> For the 2nd problem: > >> > >> \setupitemize[columns,one], although doing nothing in theory, seems to > >> fix the problem. > >> > >> For the 4th problem: > >> > >> I've found that we can do \setupitemize[A,text] which makes it like > >> > >> (A.) 0 (B.) 1 (C.) 2 (D.) 3 > >> > >> The problem now is, how can we remove the parentheses around the item > >> labels? > >> > >> On 07/09/2021, Sylvain Hubert wrote: > >> > Dear List, > >> > > >> > Here's a collection of four problems about item groups that I've jus= t > >> > encountered. > >> > > >> > 1. 'n' and 'packed' not playing well with other options. > >> > > >> > This works: > >> > > >> > \defineitemgroup[myitems][itemize][margin=3D2em,before=3Dbefore] > >> > \setupmyitems[n,packed] > >> > > >> > \starttext > >> > text > >> > \startmyitems > >> > \item 1 > >> > \item 2 > >> > \stopmyitems > >> > \stoptext > >> > > >> > This does not: > >> > > >> > > >> > \defineitemgroup[myitems][itemize][margin=3D2em,before=3Dbefore,n,pa= cked] > >> > > >> > This does not either: > >> > > >> > \defineitemgroup[myitems][itemize] > >> > \setupmyitems[n,packed,margin=3D2em,before=3Dbefore] > >> > > >> > Is there a rule for this glitch which makes it worth memorizing, or = is > >> > this just a bug? > >> > > >> > 2. 'before' not working in nested item groups. > >> > > >> > \starttext > >> > \startitemize[before=3Dbefore1] > >> > \item 1 > >> > \startitemize[before=3Dbefore2] > >> > \item 2 > >> > \stopitemize > >> > \stopitemize > >> > \stoptext > >> > > >> > Both before1 and before2 should appear, but only before1 is shown. > >> > > >> > 3. How to wrap the line under the bulletin or number? > >> > > >> > To be more precise, the current wrapping behavior of, say, "\item 0 = 1 > >> > 2 3 4 5 6 7 8 9" is: > >> > > >> > * 0 1 2 3 4 5 6 7 > >> > 8 9 > >> > > >> > How can we remove the indentation of the second line and make it lik= e > >> > > >> > * 0 1 2 3 4 5 6 7 > >> > 8 9 > >> > > >> > 4. How to put the items on the same line? > >> > > >> > That is, for "\item 0 \item 1 \item 2", I would like it to be like > >> > > >> > * 0 * 1 * 2 > >> > > >> > instead of > >> > > >> > * 0 > >> > * 1 > >> > * 2 > >> > > >> > My context version: 2021.03.05 19:11, texlive. > >> > > >> > Any help with any of the problems above would be greatly appreciated= . > >> > > >> > Best, > >> > Sylvain > >> > > >> > >> > _________________________________________________________________________= __________ > >> 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://context.aanhet.net > >> archive : https://bitbucket.org/phg/context-mirror/commits/ > >> wiki : http://contextgarden.net > >> > >> > _________________________________________________________________________= __________ > >> > >> > > > > _________________________________________________________________________= __________ > 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > > _________________________________________________________________________= __________ > --00000000000057f22d05cb63dd36 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Use

=C2=A0\startitemize[A,text][lefttex= t=3D,righttext=3D,stopper=3D]

then.
=
Maybe that's the new way.

Sylvain Hubert via ntg-co= ntext <ntg-context@ntg.nl> = =E6=96=BC 2021=E5=B9=B49=E6=9C=887=E6=97=A5 =E9=80=B1=E4=BA=8C =E4=B8=8B=E5= =8D=884:32=E5=AF=AB=E9=81=93=EF=BC=9A
Thanks, but this doesn't seem to work on my lapto= p:

=C2=A0 =C2=A0 \starttext
=C2=A0 =C2=A0 \startitemize[A,text][left=3D,right=3D,stopper=3D]
=C2=A0 =C2=A0 \item 1
=C2=A0 =C2=A0 \item 2
=C2=A0 =C2=A0 \stopitemize
=C2=A0 =C2=A0 \stoptext

=C2=A0 =C2=A0 %output: (A) 1 (B) 2

On 07/09/2021, fv leung via ntg-context <ntg-context@ntg.nl> wrote:
> I add
>
> left=3D,right=3D,
>
> in the second option group.
>
> =E5=9C=A8 2021=E5=B9=B49=E6=9C=887=E6=97=A5=E9=80=B1=E4=BA=8C 07:02=EF= =BC=8CSylvain Hubert via ntg-context <ntg-context@ntg.nl> =E5=AF=AB=E9=81=93=EF=BC= =9A
>
>> A few more information:
>>
>> For the 1st problem:
>>
>> It seems that \setupitemize accepts two option groups, to which >> n,packed and margin belong accordingly. However,
>> \setupitemize[n][margin=3D2em] does not seem to work.
>>
>> For the 2nd problem:
>>
>> \setupitemize[columns,one], although doing nothing in theory, seem= s to
>> fix the problem.
>>
>> For the 4th problem:
>>
>> I've found that we can do \setupitemize[A,text] which makes it= like
>>
>>=C2=A0 =C2=A0 =C2=A0(A.) 0 (B.) 1 (C.) 2 (D.) 3
>>
>> The problem now is, how can we remove the parentheses around the i= tem
>> labels?
>>
>> On 07/09/2021, Sylvain Hubert <champignoom@gmail.com> wrote:
>> > Dear List,
>> >
>> > Here's a collection of four problems about item groups th= at I've just
>> > encountered.
>> >
>> > 1. 'n' and 'packed' not playing well with oth= er options.
>> >
>> > This works:
>> >
>> >=C2=A0 =C2=A0 =C2=A0\defineitemgroup[myitems][itemize][margin= =3D2em,before=3Dbefore]
>> >=C2=A0 =C2=A0 =C2=A0\setupmyitems[n,packed]
>> >
>> >=C2=A0 =C2=A0 =C2=A0\starttext
>> >=C2=A0 =C2=A0 =C2=A0text
>> >=C2=A0 =C2=A0 =C2=A0\startmyitems
>> >=C2=A0 =C2=A0 =C2=A0\item 1
>> >=C2=A0 =C2=A0 =C2=A0\item 2
>> >=C2=A0 =C2=A0 =C2=A0\stopmyitems
>> >=C2=A0 =C2=A0 =C2=A0\stoptext
>> >
>> > This does not:
>> >
>> >
>> > \defineitemgroup[myitems][itemize][margin=3D2em,before=3Dbefo= re,n,packed]
>> >
>> > This does not either:
>> >
>> >=C2=A0 =C2=A0 =C2=A0\defineitemgroup[myitems][itemize]
>> >=C2=A0 =C2=A0 =C2=A0\setupmyitems[n,packed,margin=3D2em,before= =3Dbefore]
>> >
>> > Is there a rule for this glitch which makes it worth memorizi= ng, or is
>> > this just a bug?
>> >
>> > 2. 'before' not working in nested item groups.
>> >
>> >=C2=A0 =C2=A0 =C2=A0\starttext
>> >=C2=A0 =C2=A0 =C2=A0\startitemize[before=3Dbefore1]
>> >=C2=A0 =C2=A0 =C2=A0\item 1
>> >=C2=A0 =C2=A0 =C2=A0\startitemize[before=3Dbefore2]
>> >=C2=A0 =C2=A0 =C2=A0\item 2
>> >=C2=A0 =C2=A0 =C2=A0\stopitemize
>> >=C2=A0 =C2=A0 =C2=A0\stopitemize
>> >=C2=A0 =C2=A0 =C2=A0\stoptext
>> >
>> > Both before1 and before2 should appear, but only before1 is s= hown.
>> >
>> > 3. How to wrap the line under the bulletin or number?
>> >
>> > To be more precise, the current wrapping behavior of, say, &q= uot;\item 0 1
>> > 2 3 4 5 6 7 8 9" is:
>> >
>> >=C2=A0 =C2=A0 =C2=A0* 0 1 2 3 4 5 6 7
>> >=C2=A0 =C2=A0 =C2=A0 =C2=A08 9
>> >
>> > How can we remove the indentation of the second line and make= it like
>> >
>> >=C2=A0 =C2=A0 =C2=A0* 0 1 2 3 4 5 6 7
>> >=C2=A0 =C2=A0 =C2=A08 9
>> >
>> > 4. How to put the items on the same line?
>> >
>> > That is, for "\item 0 \item 1 \item 2", I would lik= e it to be like
>> >
>> >=C2=A0 =C2=A0 =C2=A0* 0=C2=A0 =C2=A0* 1=C2=A0 =C2=A0* 2
>> >
>> > instead of
>> >
>> >=C2=A0 =C2=A0 =C2=A0* 0
>> >=C2=A0 =C2=A0 =C2=A0* 1
>> >=C2=A0 =C2=A0 =C2=A0* 2
>> >
>> > My context version: 2021.03.05 19:11, texlive.
>> >
>> > Any help with any of the problems above would be greatly appr= eciated.
>> >
>> > Best,
>> > Sylvain
>> >
>>
>> __________________________________________________________________= _________________
>> If your question is of interest to others as well, please add an e= ntry to
>> the Wiki!
>>
>> maillist : ntg-context@ntg.nl /
>> http://www.ntg.nl/mailman/listinfo/ntg-contex= t
>> webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhe= t.net
>> archive=C2=A0 : https://bitbucket.org/phg/= context-mirror/commits/
>> wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
>>
>> __________________________________________________________________= _________________
>>
>>
>
___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/nt= g-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________
--00000000000057f22d05cb63dd36-- --===============4087444243784633622== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============4087444243784633622==--