From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/63269 Path: news.gmane.org!not-for-mail From: Duncan Hothersall Newsgroups: gmane.comp.tex.context Subject: Dotted leader in index entries Date: Sat, 06 Nov 2010 11:12:03 +0000 Message-ID: <4CD53803.9010805@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 1289041982 19373 80.91.229.12 (6 Nov 2010 11:13:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 6 Nov 2010 11:13:02 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sat Nov 06 12:12:57 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 1PEghZ-0005P0-PS for gctc-ntg-context-518@m.gmane.org; Sat, 06 Nov 2010 12:12:53 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F2728CA815; Sat, 6 Nov 2010 12:12:52 +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 Wjf0aS94y4v2; Sat, 6 Nov 2010 12:12:50 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E0575CA80D; Sat, 6 Nov 2010 12:12:49 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 32FF8CA80D for ; Sat, 6 Nov 2010 12:12:48 +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 FxRAz9geNFQ9 for ; Sat, 6 Nov 2010 12:12:36 +0100 (CET) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id CFDDACA80C for ; Sat, 6 Nov 2010 12:12:36 +0100 (CET) Original-Received: from mail.capdm.com (iona.capdm.com [212.20.255.168]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oA6BCaS3014844 for ; Sat, 6 Nov 2010 12:12:36 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by mail.capdm.com (Postfix) with ESMTP id 81E678C6D57 for ; Sat, 6 Nov 2010 11:12:35 +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 lnP-UN6SOgCz for ; Sat, 6 Nov 2010 11:12:15 +0000 (GMT) Original-Received: from [127.0.0.1] (lynx.capdm.com [212.20.255.162]) (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 E15868C1022 for ; Sat, 6 Nov 2010 11:12:15 +0000 (GMT) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.9) Gecko/20100825 Lightning/1.0b2 Thunderbird/3.1.3 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: 06DrLcAl0 - c43bf469dcda - 20101106 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 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:63269 Archived-At: [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 ___________________________________________________________________________________