From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/32905 Path: news.gmane.org!not-for-mail From: "luigi scarso" Newsgroups: gmane.comp.tex.context Subject: Re: Index formatting: column leaks over page margin Date: Mon, 22 Jan 2007 22:56:25 +0100 Message-ID: References: <0AC60721-5320-42C9-970B-AFA8D151E4E4@mac.com> <603BC30E-513F-43F0-B0EF-E7D96E170045@mac.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" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1169503333 13356 80.91.229.12 (22 Jan 2007 22:02:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 22 Jan 2007 22:02:13 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 22 23:02:05 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1H97DU-00063R-F8 for gctc-ntg-context-518@m.gmane.org; Mon, 22 Jan 2007 23:00:40 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2A2821FF2C; Mon, 22 Jan 2007 22:55:42 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 16455-01; Mon, 22 Jan 2007 22:55:37 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 809D7200CD; Mon, 22 Jan 2007 22:51:40 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4B15F200C8 for ; Mon, 22 Jan 2007 22:51:35 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 15664-03-2 for ; Mon, 22 Jan 2007 22:51:29 +0100 (CET) Original-Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.234]) by ronja.ntg.nl (Postfix) with ESMTP id 766A1200C9 for ; Mon, 22 Jan 2007 22:51:28 +0100 (CET) Original-Received: by nz-out-0506.google.com with SMTP id z3so1152078nzf for ; Mon, 22 Jan 2007 13:56:25 -0800 (PST) Original-Received: by 10.64.125.17 with SMTP id x17mr4557984qbc.1169502985109; Mon, 22 Jan 2007 13:56:25 -0800 (PST) Original-Received: by 10.65.183.11 with HTTP; Mon, 22 Jan 2007 13:56:25 -0800 (PST) Original-To: "mailing list for ConTeXt users" In-Reply-To: Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:32905 Archived-At: On 1/15/07, luigi scarso wrote: > hmm line "map 17, 33, 52, 69, 70, 70, 70, 71, 71," is too much right? > I've played with index settings some time ago: I will refresh my memories. > luigi > Ok, I hope these can help you. %%%%%%%%%%%%%%%%%%%%%%%%% \setupcolors[state=start] %%%%%%%%%% Indeces %%%%%% Index \defineregister[Index][Indeces] \setupheadtext[en][IndexCode=Code Index] %% \def\ICTextCommand#1{% #1\hskip1ex% }%% end \ICTextCommand %% \def\ICPageCommand#1{% \gdef\registerpageseparator{,}% \hbox{#1}% }%% end \ICPageCommand %% \def\ICHeadLetterCommand#1{% \setbox100=\hbox{% \switchtobodyfont[8pt]% \framed[frame=off, width=1.5em,height=1em,after=0.5em, strut=no, background=color,backgroundcolor=black]% {\color[white]{\setnostrut{#1}}}\hfill}% \box100% }%%end \ICHeadLetterCommand %%%%% \setupregister[Index][n=2, align=yes, balance=no, symbol=, distance=0pt, expand=no, partnumber=no, indicator=yes, textstyle={\tfx},pagestyle={\tfx}, textcommand={\ICTextCommand}, pagecommand={\ICPageCommand}, command={\ICHeadLetterCommand},] %%%%%%%%%%%%%%%%%%%% \starttext \dorecurse{100}{ boo\Index{boo} Boo\Index{Boo} foo\Index{foo} Foo\Index{Foo} goo\Index{goo} Goo\Index{Goo} \page }%% %% \completeIndex \stoptext %%%%%%%%%%%%%%%%%%%%%%%%%%%%%