From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/112743 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 07:32:59 +0800 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2248562677772385356==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31389"; 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 01:33:57 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 1mNO7g-0007yQ-OA for gctc-ntg-context-518@m.gmane-mx.org; Tue, 07 Sep 2021 01:33:56 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C6D12287241; Tue, 7 Sep 2021 01:33:19 +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 I2dE6Y10AFLq; Tue, 7 Sep 2021 01:33:18 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 63260287234; Tue, 7 Sep 2021 01:33:18 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id DBD7A28722E for ; Tue, 7 Sep 2021 01:33:15 +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 HukA2QXLUxbj for ; Tue, 7 Sep 2021 01:33:14 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.222.51; helo=mail-ua1-f51.google.com; envelope-from=fvleung@gmail.com; receiver= Original-Received: from mail-ua1-f51.google.com (mail-ua1-f51.google.com [209.85.222.51]) (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 A1A6F28722A for ; Tue, 7 Sep 2021 01:33:13 +0200 (CEST) Original-Received: by mail-ua1-f51.google.com with SMTP id j31so4561028uad.10 for ; Mon, 06 Sep 2021 16:33:13 -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=GR+EwzsqVeGxSfzPoyfviuiwo4C7zAmsrv9ytcPIU1c=; b=MHg39pNxXJYULAkuIHcsKbT3TXyp1Y3bLyrnSuW5K687ooxd6wAGgnX+/+RzuH/Liv CBAdrfdzfB8x0a3CA61ZQbx5j2R82Op9lgvjzSBukmtmLWbtNTIwxXNac3x0O4S//ZKx 0pc8hYF8cgiS6trZ0BtcNhcpj4QEVCwYz7itwO91gIYQokeo/kKglM6+9n26ChvYESXo o9PjXWvdpre3pH2+2QUpZ+3i6P31aH2an+7YXUuf8K5ejWaUFMHVBrYsGFlKB423sGPg qnauIXN793nFRG2wco4g1YJwMPyftMyqVofeL2Np4xFmyNuaPP7gjOnXBbP8W6j01EqR 8QOw== 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=GR+EwzsqVeGxSfzPoyfviuiwo4C7zAmsrv9ytcPIU1c=; b=tz9/KOg9OL5U3wq3UxvYniyhJPVS8EoUc8AH7+tqjkB+NvvQbdDRAtzTsxqgm0JR2C dic5ywdIo6N3dJXBfnmW/Wca00jDMALHgMbJYHejd2kh3WrCldYdNm2e2qVe/WO81cEw omlbm++3t0Bf6nVtYr1XWoqGJKcCgQ2dTieKr8BCnPkIWS4SaN6ziJS/XCA/iNKtWrtb CFf2f0zjEEv/II7NMhB941T6ovyC4ra9Vmj/QDOxP8S/vhtbh2RK73GIrUXHkPez6Guk Rd8uGd+alWo0BYarP5+a64GQJSU3aQkgNOrg0mNt9o2PKbuSdaUxoJ9/Yop3Jtd1MnbS yh9A== X-Gm-Message-State: AOAM5314lybY98i+diS/WbvHF39mjfhiE/LtvXts1Qxrpyled5kIZBR/ HkwoprhFakLmNooycRvdzqtphkLf1OQSvnH5BTxNotGa X-Google-Smtp-Source: ABdhPJzlbj8bRxJOCT5paJgVKRX87DjhvUn1vKdfne7Fe0osu2dXGdwpfsn+4bBoiWFPXDAcuuer22Su6S99tPRGycc= X-Received: by 2002:ab0:1647:: with SMTP id l7mr1624537uae.128.1630971191727; Mon, 06 Sep 2021 16:33:11 -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:112743 Archived-At: --===============2248562677772385356== Content-Type: multipart/alternative; boundary="0000000000008597d005cb5c12f3" --0000000000008597d005cb5c12f3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 just > > 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,p= acked] > > > > 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 like > > > > * 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 > > _________________________________________________________________________= __________ > > --0000000000008597d005cb5c12f3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I add

left=3D,righ= t=3D,

in the second opti= on 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, seems 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 (A.) 0 (B.) 1 (C.) 2 (D.) 3

The problem now is, how can we remove the parentheses around the item label= s?

On 07/09/2021, Sylvain Hubert <champignoom@gmail.com> wrote: > Dear List,
>
> Here's a collection of four problems about item groups that I'= ve just
> encountered.
>
> 1. 'n' and 'packed' not playing well with other option= s.
>
> This works:
>
>=C2=A0 =C2=A0 =C2=A0\defineitemgroup[myitems][itemize][margin=3D2em,bef= ore=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:
>
>=C2=A0 =C2=A0 =C2=A0\defineitemgroup[myitems][itemize][margin=3D2em,bef= ore=3Dbefore,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 memorizing, 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 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:
>
>=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<= br> >
>=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 like it to b= e 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 appreciated.<= br> >
> Best,
> Sylvain
>
___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-context@ntg.nl / http://= www.ntg.nl/mailman/listinfo/ntg-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://= context.aanhet.net
archive=C2=A0 : https://bitbucket.org/ph= g/context-mirror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________

--0000000000008597d005cb5c12f3-- --===============2248562677772385356== 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== --===============2248562677772385356==--