2007/6/25, Hamid Kamrani <[EMAIL PROTECTED]>:
> On 6/24/07, Hamid Kamrani <[EMAIL PROTECTED]> wrote:
> > On 6/24/07, Taco Hoekwater <[EMAIL PROTECTED]> 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.
Wolfgang

> \unprotect
> \startsetups [numberitemleft]
>   \hbox to \dimexpr\getitemparameter\itemlevel \c!width -
>                    \getitemparameter\itemlevel \c!distance\relax
>       \bgroup\hfill
> \stopsetups
>
> \startsetups [numberitemright]
>   \egroup
> \stopsetups
> \protect
>
> \starttext
> \startitemize[n][style=bold]
> \item As a college student, how do you rate yourself?
> \startitemize[R,packed][left={\setups[numberitemleft]},
>                         right={\setups[numberitemright]},
>                         stopper={.},
>                         width=3em,
>                         style=\sc,
>                         distance=5em]
>      \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.
> \stopitemize
> \stopitemize
> \stoptext
>
> Best,
> -Hamid
>
> >
> > 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
___________________________________________________________________________________
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to