From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 13919 invoked from network); 19 Oct 2023 20:27:03 -0000 Received: from cgl.ntg.nl (5.39.185.202) by inbox.vuxu.org with ESMTPUTF8; 19 Oct 2023 20:27:03 -0000 Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 41D134835C2 for ; Thu, 19 Oct 2023 22:24:11 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id M5fx1y55gsGq for ; Thu, 19 Oct 2023 22:24:10 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 34214483625 for ; Thu, 19 Oct 2023 22:23:09 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 8711B48106D for ; Thu, 19 Oct 2023 22:22:26 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id w8yYT5vdEQqV for ; Thu, 19 Oct 2023 22:22:25 +0200 (CEST) Received: from web-out.onbox.hu (fmfe30.freemail.hu [46.107.16.235]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 3708B48106C for ; Thu, 19 Oct 2023 22:22:25 +0200 (CEST) X-fm-smtp-source: yes Received: from localhost (localhost [178.48.74.107]) by web-out.onbox.hu (Postfix) with SMTP id 4SBJzg6NKQzFnl for ; Thu, 19 Oct 2023 22:22:23 +0200 (CEST) Date: Thu, 19 Oct 2023 20:22:23 +0000 (GMT) From: Csikos Bela To: "ntg-context@ntg.nl" Message-ID: In-Reply-To: References: <79562def-7954-cd10-0461-3e8292fd8998@gmail.com> MIME-Version: 1.0 X-AccountId: 13701752 X-Originating-Ip: 178.48.74.107 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=simple/relaxed; t=1697746944; s=20181004; d=freemail.hu; h=Date:From:To:Message-ID:In-Reply-To:References:Subject:MIME-Version:Content-Type; l=5173; bh=exbzj6CyCGRQKv15Xg+FUBB5F7gbidnhNpVo2HX9ZOc=; b=ZfM4NIvccN/n9iS6vZkpTPlLx9hsV9XWaHqNj8Uf21CWgbaB10+QS6PMdvp/lwsY GeDi0JrmnxKQVGGlp6QleLN2kCES6IfEuVVn5LOhykYS9XioCYaWlyqU7uI2gtjp8sO jRzYY3HqSxPxtZOsN4JMZf/9/ElT2MPSzoBreymcFicgD1UHul9Kea20szCmFuHh2bU 6o13II/34X+SAqZZBOoJZEXkTfRq6sMkCNsSR6tOjmW3+tieKhS6kj7ftMtqf4OepHC gbVmw0TlyO2D8LV+t9Whim3k5e/rA6ul8QdmkYd1U6+34LZZBX/8v2JLnvBroRjeGor unonaLVW9A== Message-ID-Hash: UJGIE5XS4SV6K6LPUKXRJC7MM7IGRATL X-Message-ID-Hash: UJGIE5XS4SV6K6LPUKXRJC7MM7IGRATL X-MailFrom: bcsikos425@freemail.hu X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: numbered itemize list item label alignment List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============8342227183228560526==" --===============8342227183228560526== Content-Type: multipart/alternative; boundary="----=_Part_3802_295604380.1697746800291" ------=_Part_3802_295604380.1697746800291 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable -------- Eredeti lev=C3=A9l --------Felad=C3=B3: Aditya Mahajan D=C3=A1tum: 2023 okt=C3=B3ber 15 22:32:37T=C3=A1rgy: Re: [NTG-conte= xt] Re: numbered itemize list item label alignmentC=C3=ADmzett: mailing lis= t for ConTeXt users On Sun, 15 Oct 2023, Wolfgang Schus= ter wrote: > Csikos Bela schrieb am 15.10.2023 um 15:51: > > Hello: > > > = > I would like to make a long numbered itemize list, where the numbers > > = increase up to three digits. > > I would like the numbered labels aligned t= o the right and the widest > > label's left side located at the left margin= . > > I tried the below code but the 3 digit labels' left sides go into the= left > > margin. How can I fix it? > > > > Code: > > > > \showframe > > \s= tarttext > > \startitemize[n,broad][itemalign=3Dflushright] > > \dorecurse{= 250}{\item aaaa} > > \stopitemize > > \stoptext > > You can use the width-k= ey to set a value for the number, below is a example > for method > to calc= ulate the width based on the number of items but I would use fixed > value = > (e.g. width=3D2em) to let all items (independent of the entries) start on= the > same position. I normally use the `fit` key with an appropriate val= ue of `distance`. For example: \showframe[text][text] \starttext \starti= temize[n,fit,broad][distance=3D0.25em,itemalign=3Dflushright] \dorecurse{1}= {\startitem xxx\stopitem} \stopitemize \page \startitemize[n,fit,broad][d= istance=3D0.25em,itemalign=3Dflushright] \dorecurse{11}{\startitem xxx\stop= item} \stopitemize \page \startitemize[n,fit,broad][distance=3D0.25em,ite= malign=3Dflushright] \dorecurse{111}{\startitem xxx\stopitem} \stopitemize = \stoptext Thank you, the fit option worked well.bcsikos ------=_Part_3802_295604380.1697746800291 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

-------- Eredeti lev=C3=A9l --------

F= elad=C3=B3: Aditya Mahajan <adityam@umich.edu>
D=C3=A1tum: 2023 okt=C3= =B3ber 15 22:32:37
T=C3=A1rgy: Re: [NTG-context] Re: numbered= itemize list item label alignment
C=C3=ADmzett: mailing list= for ConTeXt users <ntg-context@ntg.nl>

On Sun, 15 Oct 2= 023, Wolfgang Schuster wrote:

> Csikos Be= la schrieb am 15.10.2023 um 15:51:
> > Hello:
> >
> > I would like to make a long numbe= red itemize list, where the numbers
> > increase up to= three digits.
> > I would like the numbered labels al= igned to the right and the widest
> > label's left sid= e located at the left margin.
> > I tried the below co= de but the 3 digit labels' left sides go into the left
> = > margin. How can I fix it?
> >
>= > Code:
> >
> > \showframe
> > \starttext
> > \startitemize[n,= broad][itemalign=3Dflushright]
> > \dorecurse{250}{\it= em aaaa}
> > \stopitemize
> > \st= optext
>
> You can use the width-key to= set a value for the number, below is a example
> for met= hod
> to calculate the width based on the number of items= but I would use fixed
> value
> (e.g. = width=3D2em) to let all items (independent of the entries) start on the
> same position.

I normally u= se the `fit` key with an appropriate value of `distance`. For example:
=

\showframe[text][text]

\starttext

\startitemize[n,fit,broad][= distance=3D0.25em,itemalign=3Dflushright]
\dorecurse{1}{\sta= rtitem xxx\stopitem}
\stopitemize

=
\page

\startitemize[n,fit,broad][distan= ce=3D0.25em,itemalign=3Dflushright]
\dorecurse{11}{\startite= m xxx\stopitem}
\stopitemize

= \page

\startitemize[n,fit,broad][distance=3D= 0.25em,itemalign=3Dflushright]
\dorecurse{111}{\startitem xx= x\stopitem}
\stopitemize

\sto= ptext

Thank you, the fit option= worked well.

bcsikos
------=_Part_3802_295604380.1697746800291-- --===============8342227183228560526== 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 / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________ --===============8342227183228560526==--