On Sat, 17 Mar 2007, Robin Kirkham wrote:
The following complete example sort of does what I want (using Hans' \setwidthof) but it will fail when the section numbers have more digits than I have allowed for. I have a feeling I should be using \setupcombinedlist[content] [distance=1em] or something, but that puts an em space in front of unnumbered chapters (titles) as well.
What I have done seems very ugly, surely there is a "proper" way?
Hello Robin, some time ago I made something similar. It's certainly not the "proper" way, but much shorter: \def\PageCommand#1{\hbox to 1em{\hss#1}} \setupcombinedlist[content][alternative=c,pagecommand=\PageCommand, aligntitle=yes] \setuplist[chapter][style=bold,alternative=b,width=1.5em] \setuplist[section][margin=1.5em,width=2em] \setuplist[subsection][margin=3.5em,width=3em] \setuplist[subsubsection][margin=6.5em,width=4em] Cheers, Peter -- http://pmrb.free.fr/contact/