From: Duncan Hothersall <dh@capdm.com>
To: ntg-context@ntg.nl
Subject: Dotted leader in index entries
Date: Sat, 06 Nov 2010 11:12:03 +0000 [thread overview]
Message-ID: <4CD53803.9010805@capdm.com> (raw)
[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
___________________________________________________________________________________
next reply other threads:[~2010-11-06 11:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-06 11:12 Duncan Hothersall [this message]
2010-11-06 16:05 ` Wolfgang Schuster
-- strict thread matches above, loose matches on Subject: below --
2010-11-11 10:34 Duncan Hothersall
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=4CD53803.9010805@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).