Dotted leader in index entries
![](https://secure.gravatar.com/avatar/0ed499139c984ed1c5c6312376a707e5.jpg?s=120&d=mm&r=g)
[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
participants (1)
-
Duncan Hothersall