From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/63238 Path: news.gmane.org!not-for-mail From: Duncan Hothersall Newsgroups: gmane.comp.tex.context Subject: Dotted leader in index entries Date: Thu, 04 Nov 2010 10:08:37 +0000 Message-ID: <4CD28625.7070207@capdm.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1929170593==" X-Trace: dough.gmane.org 1288865942 8385 80.91.229.12 (4 Nov 2010 10:19:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 4 Nov 2010 10:19:02 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu Nov 04 11:18:59 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 1PDwuI-0005v1-9O for gctc-ntg-context-518@m.gmane.org; Thu, 04 Nov 2010 11:18:59 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 62895CA801; Thu, 4 Nov 2010 11:18:55 +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 ktEujUt-FElS; Thu, 4 Nov 2010 11:18:50 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DA826CA7C5; Thu, 4 Nov 2010 11:18:50 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A1A01CA7C5 for ; Thu, 4 Nov 2010 11:18:49 +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 JnRoRT++fbkK for ; Thu, 4 Nov 2010 11:18:47 +0100 (CET) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 81B82CA7C0 for ; Thu, 4 Nov 2010 11:18:47 +0100 (CET) Original-Received: from mail.capdm.com (iona.capdm.com [212.20.255.168]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oA4AIk8C013131 for ; Thu, 4 Nov 2010 11:18:47 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by mail.capdm.com (Postfix) with ESMTP id 16DAE8C6D25 for ; Thu, 4 Nov 2010 10:09:07 +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 2nwO4CgO6wMB for ; Thu, 4 Nov 2010 10:08:47 +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 AA59C8C6D15 for ; Thu, 4 Nov 2010 10:08:47 +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: 03DqWiKVO - 4dcb8d1e86b3 - 20101104 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 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:63238 Archived-At: --===============1929170593== Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hello all.

[Using Mk II.]

I need to produce an index which looks like this:

Mainentry
   Subentry.................3
   Slightly longer
      subentry..............5
   See also X

I have the following setup:

\def\MyIndexTextCmd#1{#1\dotfill}
\setupregister[Index][n=2,textcommand=\MyIndexTextCmd,distance=1em,alternative=A]

which gives me something like:

Mainentry
   Subentry.................3
   Slightly longer
subentry..
      5
   See also X................

I can work around the problem of the "See also X" line by adding an \hfilll to avoid the generation of dots. But I really need all pagenumbers to be at the right hand side, and not allow them to break over to the left like in the second example.

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
--===============1929170593== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1929170593==--