From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/63404 Path: news.gmane.org!not-for-mail From: Duncan Hothersall Newsgroups: gmane.comp.tex.context Subject: Dotted leader in index entries Date: Thu, 11 Nov 2010 10:34:18 +0000 Message-ID: <4CDBC6AA.7000204@capdm.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1289471721 29987 80.91.229.12 (11 Nov 2010 10:35:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 11 Nov 2010 10:35:21 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu Nov 11 11:35:17 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PGUUs-0007iP-8P for gctc-ntg-context-518@m.gmane.org; Thu, 11 Nov 2010 11:35:14 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E3C65CA854; Thu, 11 Nov 2010 11:35:12 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 6LdCW-V-WPvA; Thu, 11 Nov 2010 11:35:09 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 46A70CA84A; Thu, 11 Nov 2010 11:35:09 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DA33FCA84A for ; Thu, 11 Nov 2010 11:35:07 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id T6lEyj1tq-75 for ; Thu, 11 Nov 2010 11:34:56 +0100 (CET) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id 224A2CA834 for ; Thu, 11 Nov 2010 11:34:56 +0100 (CET) Original-Received: from mail.capdm.com (iona.capdm.com [212.20.255.168]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oABAYssM017124 for ; Thu, 11 Nov 2010 11:34:55 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by mail.capdm.com (Postfix) with ESMTP id 6A8AF8C6DD3 for ; Thu, 11 Nov 2010 10:34:54 +0000 (GMT) X-Virus-Scanned: Debian amavisd-new at mail.capdm.com Original-Received: from mail.capdm.com ([127.0.0.1]) by localhost (mail.capdm.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mm7jv6-PlRz6 for ; Thu, 11 Nov 2010 10:34:53 +0000 (GMT) Original-Received: from [10.101.1.25] (static-93.158.79.103.got.public.icomera.com [93.158.79.103]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: dh) by mail.capdm.com (Postfix) with ESMTPSA id 528EE8C6CF0 for ; Thu, 11 Nov 2010 10:34:51 +0000 (GMT) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.12) Gecko/20101027 Lightning/1.0b2 Thunderbird/3.1.6 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=212.20.255.168; country=GB; region=U8; city=Edinburgh; latitude=55.9500; longitude=-3.2000; http://maps.google.com/maps?q=55.9500,-3.2000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 05DtKyS5d - 143f6a8e067d - 20101111 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.216 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:63404 Archived-At: [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 ___________________________________________________________________________________