[Now with a proper example!]
Hello all.
I'm using Mk II. I need to set up dotted leaders between an index entry
and its page number as show in this runnable sample:
\def\Icmd#1{#1\dotfill}
\setupregister[index][n=2,textcommand=\Icmd,distance=1em,alternative=A]
\starttext
\index{Example+This index entry doesn't quite work}\index{This is
okay}\index{Example+This is okay}\index{This index entry is not correct
at all}\index{Example+This is another example in which the leaders don't
work cos of wrapping}A little text.\par
\placeindex
\stoptext
When the entry text is just long enough to fill up the horizontal space
it is pushing the number over onto the next line. 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:
Long index entry text
....................123
or this:
Long 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
___________________________________________________________________________________