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=-1.0 required=5.0 tests=MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 11202 invoked from network); 15 Oct 2023 20:34:13 -0000 Received: from cgl.ntg.nl (5.39.185.202) by inbox.vuxu.org with ESMTPUTF8; 15 Oct 2023 20:34:13 -0000 Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 4AC8748345A for ; Sun, 15 Oct 2023 22:34:08 +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 vSJb0r235i_a for ; Sun, 15 Oct 2023 22:34:08 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 93F364834C8 for ; Sun, 15 Oct 2023 22:32:46 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 0D4D14832CA for ; Sun, 15 Oct 2023 22:32:31 +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 K5r4l38quEeU for ; Sun, 15 Oct 2023 22:32:29 +0200 (CEST) Received: from orford.cim.mcgill.ca (orford.cim.mcgill.ca [132.206.70.2]) (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 B94394832C9 for ; Sun, 15 Oct 2023 22:32:29 +0200 (CEST) Received: from adi-carbonpad (lfbn-idf1-1-1685-151.w90-91.abo.wanadoo.fr [90.91.116.151]) (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) (Authenticated sender: adityam) by orford.cim.mcgill.ca (Postfix) with ESMTPSA id 441E8B4CA0; Sun, 15 Oct 2023 16:33:05 -0400 (EDT) Date: Sun, 15 Oct 2023 22:32:27 +0200 (CEST) From: Aditya Mahajan X-X-Sender: adityam@adi-carbonpad To: mailing list for ConTeXt users In-Reply-To: <79562def-7954-cd10-0461-3e8292fd8998@gmail.com> Message-ID: References: <79562def-7954-cd10-0461-3e8292fd8998@gmail.com> MIME-Version: 1.0 Message-ID-Hash: 5HSY5MPFIOLS3ASN2KBQECMLEAD2SPT3 X-Message-ID-Hash: 5HSY5MPFIOLS3ASN2KBQECMLEAD2SPT3 X-MailFrom: adityam@umich.edu 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: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On Sun, 15 Oct 2023, Wolfgang Schuster 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 to 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 > > \starttext > > \startitemize[n,broad][itemalign=flushright] > > \dorecurse{250}{\item aaaa} > > \stopitemize > > \stoptext > > You can use the width-key to set a value for the number, below is a example > for method > to calculate the width based on the number of items but I would use fixed > value > (e.g. width=2em) to let all items (independent of the entries) start on the > same position. I normally use the `fit` key with an appropriate value of `distance`. For example: \showframe[text][text] \starttext \startitemize[n,fit,broad][distance=0.25em,itemalign=flushright] \dorecurse{1}{\startitem xxx\stopitem} \stopitemize \page \startitemize[n,fit,broad][distance=0.25em,itemalign=flushright] \dorecurse{11}{\startitem xxx\stopitem} \stopitemize \page \startitemize[n,fit,broad][distance=0.25em,itemalign=flushright] \dorecurse{111}{\startitem xxx\stopitem} \stopitemize \stoptext ___________________________________________________________________________________ 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 ___________________________________________________________________________________