From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/79103 Path: news.gmane.org!not-for-mail From: =?windows-1252?Q?=22H=2E_=D6zoguz=22?= Newsgroups: gmane.comp.tex.context Subject: Re: Preventing page break in register between reference and page number Date: Fri, 09 Nov 2012 13:43:55 +0100 Message-ID: <509CFA8B.1060304@mmnetz.de> References: <509CBA04.3090800@mmnetz.de> <509CCA92.2060002@wxs.nl> <23777F8D-E592-4C41-BD4E-E489034D0D9C@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; Format="flowed" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1352465056 8268 80.91.229.3 (9 Nov 2012 12:44:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 9 Nov 2012 12:44:16 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri Nov 09 13:44:24 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TWnwd-0005vm-NP for gctc-ntg-context-518@m.gmane.org; Fri, 09 Nov 2012 13:44:23 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id ADF651029B; Fri, 9 Nov 2012 13:44:11 +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 eSr2DQIgWMqR; Fri, 9 Nov 2012 13:44:09 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 3F74F1028A; Fri, 9 Nov 2012 13:44:09 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 621331028A for ; Fri, 9 Nov 2012 13:44:08 +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 AxKtbN78beEL for ; Fri, 9 Nov 2012 13:44:02 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 82C0F10282 for ; Fri, 9 Nov 2012 13:44:02 +0100 (CET) Original-Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.9]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id qA9Ci1XR027346 for ; Fri, 9 Nov 2012 13:44:01 +0100 Original-Received: from [192.168.0.10] (77-23-164-143-dynip.superkabel.de [77.23.164.143]) by mrelayeu.kundenserver.de (node=mreu3) with ESMTP (Nemesis) id 0Mh2kG-1TjuyH0Lb6-00M4rA; Fri, 09 Nov 2012 13:44:01 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2 In-Reply-To: <23777F8D-E592-4C41-BD4E-E489034D0D9C@gmail.com> X-Provags-ID: V02:K0:XXtg0M85fV9UMiPNTg/bGIqnJKI8C8NgfmBT79axaRA sgJjcB+JAiUcuCr0N75adTU3+GUyVNHiqpGoKlXfi0xYkHPlay lW8B4V7FnzVBZTsGHiMIr3/65djFrVIxof303QSQRF+WogPfyB nxonH2ZPcYTeD9LOszcuJmtfqZu3d6cJBdq33XBCbEEDf4cfdL Juj+u5SszifQIl1bwPNKhaj1CZ012183wexJeiRIzCFLBEGgPB zflUMjKK4P4ZC0r8iPsPknURihNgqRBBGNa/In+GVq+oVG5tSl CnQLVMTe+IgMTkMDlguwqHzwy7mKpZZGhAUo1pURtqZL8pTmx3 QKdYGd2kw8+p2d0yc/NI= X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=212.227.17.9; country=DE; latitude=51.0000; longitude=9.0000; http://maps.google.com/maps?q=51.0000,9.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QIloI1lT - d4b1bd03a6b8 - 20121109 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:79103 Archived-At: Am 09.11.2012 11:05, schrieb Wolfgang Schuster: > Am 09.11.2012 um 10:19 schrieb Hans Hagen : > >> On 11/9/2012 9:08 AM, "H. =D6zoguz" wrote: >>> Hello there, >>> >>> I am relatively new to ConTeXt, now typing a small book in it. I have a >>> problem with the register (index). This is an example: >>> >>> [=85] >>> >>> |The page numer of the reference "Long Long Long" is set to the next pa= ge. How to prevent this? >>> Maybe the reference "Long Long Long" could break into two lnes or a rul= e like that? >> play with >> >> \index{Long Long Long}blub >> >> and >> >> blub\index{Long Long Long} >> >> an index entry (currently) inserts a node in the list and that one shoul= d be bound to the word > The problem is not the \index command but the text in the register, as yo= u can > see in the example below the text and the page number are in separate col= umns > (or in the long example on separate pages). > > > \setuppapersize[A6] > > \starttext > > \index{Too long entry}Long index entry. > > \blank > > \placeindex > > \stoptext > > > This is caused by this macro in strc-reg.mkiv where you insert only a nor= mal skip > between the the text and page number, changing \hskip to \nobreak\hskip m= oves > at least a part of the last word in the entry to the next column in the e= xample above. > > \unexpanded\def\registerpageseparator% todo: , configurable > {\ifconditional\c_strc_registers_page_done > \registerpageseparatorsymbol > \else > \hskip\d_strc_registers_distance\relax > \settrue\c_strc_registers_page_done > \fi} > > > Wolfgang I don't find this macro in strc-reg.mkiv I am using current version: 2012.05.30 11:26 What do I have to change? Gr=FC=DFe Huseyin strc-reg.mkiv ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________