From: Csikos Bela <bcsikos425@freemail.hu>
To: "ntg-context@ntg.nl" <ntg-context@ntg.nl>
Subject: [NTG-context] Re: numbered itemize list item label alignment
Date: Thu, 19 Oct 2023 20:22:23 +0000 (GMT) [thread overview]
Message-ID: <A1EyA.ELgiE3beEibi.bGRwsxPrFCVfRYgT6dC@freemail.hu> (raw)
In-Reply-To: <sps3s207-4o86-7952-9s62-82431pp086rs@hzvpu.rqh>
[-- Attachment #1.1: Type: text/plain, Size: 1667 bytes --]
-------- Eredeti levél --------Feladó: Aditya Mahajan <adityam@umich.edu>Dátum: 2023 október 15 22:32:37Tárgy: Re: [NTG-context] Re: numbered itemize list item label alignmentCímzett: mailing list for ConTeXt users <ntg-context@ntg.nl>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 Thank you, the fit option worked well.bcsikos
[-- Attachment #1.2: Type: text/html, Size: 2931 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
prev parent reply other threads:[~2023-10-19 20:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-15 13:51 [NTG-context] " Csikos Bela
2023-10-15 15:32 ` [NTG-context] " Pablo Rodriguez
2023-10-15 20:14 ` Wolfgang Schuster
2023-10-15 20:32 ` Aditya Mahajan
2023-10-19 20:22 ` Csikos Bela [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=A1EyA.ELgiE3beEibi.bGRwsxPrFCVfRYgT6dC@freemail.hu \
--to=bcsikos425@freemail.hu \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).