And so you did. This is beautiful. Thank you Hans.
On 6/25/07, Hans Hagen
Taco Hoekwater 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.
I'll upload a beta that supports:
\startitemize[n,fit,broad][itemalign=flushright] \dorecurse{100}{\item The first item.} \stopitemize
\setupitemgroup[itemize][each][fit] \setupitemgroup[itemize][each][distance=.5em,factor=1,itemalign=flushright]
\startitemize[n] \dorecurse{100}{\item The first item.} \stopitemize
others should wikify this
Hans
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________