[Reposting because I think my last message got mangled.]

Hello all.

I'm using Mk II. When I use the following setup to get dotted leaders between an index entry and its page number:

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

it works okay producing output like this:

Index entry.....123

except when the entry text is just long enough to fill up the horizontal space, pushing the number over onto the next line. What I get in that scenario is this:

Index entry text...
  123

This is no good. What I really need is for all page numbers to be at the right hand side, with leading dots. So I'd like a solution to produce either this:

Index entry text...
  ....................123

or preferably this:

Index entry
  text..............123

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

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to