[NTG-context] How to align numerals in lists on the dot or paranthesis that follows the numeral?

Hamid Kamrani hamid.kamrani at gmail.com
Mon Jun 25 21:20:47 CEST 2007


Thank you both, Taco and Wolfgang.

I will make use of your suggestions and solutions.

BTW. It seems that now I have to put some of the styling of the
numerals, such as using small caps in the setups of right and left.
For example:

\unprotect
\startsetups [numberitemleft]
  \hbox to \dimexpr\getitemparameter\itemlevel \c!width -
                   \getitemparameter\itemlevel \c!distance\relax
      \bgroup\hfill
      \cap\bgroup(
\stopsetups

\startsetups [numberitemright]
  )\egroup
  \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=4.5em,
                        style=\sl,
                        distance=2em]
     \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

Thanks again,
-Hamid

On 6/25/07, Taco Hoekwater <taco at elvenkind.com> wrote:
> Hamid Kamrani wrote:
> >
> > 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.
>
> See the attached file how to make a special version of itemize
> that has default behaviour like you want. I could have used
> \setupitemgroup[itemize] directly instead, but I assume you don't
> want your bullet lists right aligned as well.
>
> Since ConTeXt cannot know beforehand how wide the number space
> should be (neither do eplain and latex), the 'width' key has to
> be a fixed quantity, but you can still change all of the default
> parameters where you call \startenumerate, just like you did
> before with \startitemize, so that should be only a minor
> nuisance.
>
> I do agree it would be better if the core was extended so that
> the two setups were not necessary.
>
> Best wishes,
> Taco
>
>
>
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist : ntg-context at 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
> ___________________________________________________________________________________
>
>
>


More information about the ntg-context mailing list