Hello all.

[Using Mk II.]

I need to produce an index which looks like this:

Mainentry
   Subentry.................3
   Slightly longer
      subentry..............5
   See also X

I have the following setup:

\def\MyIndexTextCmd#1{#1\dotfill}
\setupregister[Index][n=2,textcommand=\MyIndexTextCmd,distance=1em,alternative=A]

which gives me something like:

Mainentry
   Subentry.................3
   Slightly longer
subentry..
      5
   See also X................

I can work around the problem of the "See also X" line by adding an \hfilll to avoid the generation of dots. But I really need all pagenumbers to be at the right hand side, and not allow them to break over to the left like in the second example.

At the moment I'm putting forced line breaks before the last word to achieve what I need, but I would really like to automate this!

Thanks for any help, hope the issue is clear.

Duncan