[NTG-context] How to align numerals in lists on the dot or paranthesis that follows the numeral?
schuster.wolfgang at googlemail.com
Mon Jun 25 08:26:20 CEST 2007
2007/6/25, Hamid Kamrani <hamid.kamrani at gmail.com>:
> On 6/24/07, Hamid Kamrani <hamid.kamrani at gmail.com> wrote:
> > On 6/24/07, Taco Hoekwater <taco at elvenkind.com> wrote:
> > > Hamid Kamrani wrote:
> > > > Taco and Wolfang,
> > > >
> > > > Thanks both for your responses.
> > > > But:
> > > > 1. The setup offered by Taco does not line up the numerals on the
> > > > dots. Maybe my problem was misunderstood.
> > >
> > > Did you miss this?
> On a follow-up to previous note:
> I think this is how I missed the width issue. In my testing, I had
> both distance and width parameters. I may be doing something wrong
> but these two conflict.
The width value need to be larger than the distance value because the resulting
width for the number in your example is width (below 3em) - distance (below 5em)
= -2em (5em - 3em). The same problem did also appear in my solution.
> \startsetups [numberitemleft]
> \hbox to \dimexpr\getitemparameter\itemlevel \c!width -
> \getitemparameter\itemlevel \c!distance\relax
> \startsetups [numberitemright]
> \item As a college student, how do you rate yourself?
> \item The first item.
> \item The second item.
> \item The third item.
> \item The fourth item.
> \item The fifth item.
> \item The sixth item.
> \item The seventh item.
> \item The eighth item.
> \item The ninth item.
> \item The tenth item.
> > I certainly did. I'm sorry, the misunderstanding was on my part.
> > I do like your solution. But how to make it the default? This should
> > be the default behavior and in fact the required width should be
> > calculated by ConTeXt. Otherwise ConTeXt is behaving like MS Word.
> > Please note that, second to paragraphs, lists are the most widely used
> > text blocks. It is imperative that they format correctly.
> > If you're using Arabic numerals then you have the chance to list your
> > first 9 items correctly.But, alas, if you have to use roman numeral.
> > The problem shows up in the second item. (you would not itemize if you
> > had only one item!)
> > Taco, I very much appreciate your solution. It allows me to continue
> > for now but I humbly ask, in fact, beg to have a solution built in the
> > core of ConTeXt.
> > My apologies for discounting your solution too quickly.
> > Best regards,
> > -Hamid
> > >
> > > Taco wrote:
> > > > You probably want to increase the 'width' parameter, but that should be
> > > > straightforward.
> > >
> > > It should work with width=2pc (two digits and a dot do not fit in the
> > > default allocated space, so the 10. sticks out to the right)
> > >
> > > Taco
More information about the ntg-context