From: Duncan Hothersall <dh@capdm.com>
To: ntg-context@ntg.nl
Subject: Dotted leader in index entries
Date: Thu, 11 Nov 2010 10:34:18 +0000 [thread overview]
Message-ID: <4CDBC6AA.7000204@capdm.com> (raw)
[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
___________________________________________________________________________________
next reply other threads:[~2010-11-11 10:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-11 10:34 Duncan Hothersall [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-11-06 11:12 Duncan Hothersall
2010-11-06 16:05 ` Wolfgang Schuster
2010-11-04 10:08 Duncan Hothersall
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CDBC6AA.7000204@capdm.com \
--to=dh@capdm.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).