Hi all!

A while ago I asked how to achieve a particular layout I wanted for part titles in my table of contents. I was given this solution:

\definelistplacement[partlist][none]#1#2#3%

{\sc\inframed[width=broad,align=right,bottomframe=on,topframe=off,rightframe=off,leftframe=off]{{#2}}}


\setuplist[part][alternative=partlist]


With that, I get no part number, no page number, a title in small caps and a bottom frame. So far so good.


In the same table, I also want my section and subsection titles to indent, at different values depending on levels (the further the section in the hierarchy, the further it indents). I use the margin= parameter for that.

When I do that, however, the next part title indents equally to the same level as the last section or subsection did. See the example file toc.tex attached. Obviously, I don't want that.

The only way I've found to avoid that is to get rid of the custom alternative, and transfer the \inframed command to a textstyle parameter inside a normal \setuplist[part] command. See toc-2.tex attached.

When I do that, however, I can't get rid of the part number. I tried everything I could think about, but to no avail.

I'm using MKII+Xetex. (ConTeXt  ver: 2008.11.10 21:40 MKII  fmt: 2008.11.15  int: english/english)

Can anyone help? What is the best solution?

Thanks in advance!
Jeff