From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/79097 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Preventing page break in register between reference and page number Date: Fri, 9 Nov 2012 11:05:01 +0100 Message-ID: <23777F8D-E592-4C41-BD4E-E489034D0D9C@gmail.com> References: <509CBA04.3090800@mmnetz.de> <509CCA92.2060002@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1352455515 24172 80.91.229.3 (9 Nov 2012 10:05:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 9 Nov 2012 10:05:15 +0000 (UTC) Cc: =?windows-1252?Q?=22H=2E_=D6zoguz=22?= To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Nov 09 11:05:25 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 1TWlSl-0001ny-Tq for gctc-ntg-context-518@m.gmane.org; Fri, 09 Nov 2012 11:05:23 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6223510296; Fri, 9 Nov 2012 11:05:14 +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 9RlYLhfBVhmS; Fri, 9 Nov 2012 11:05:07 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id B0E5710282; Fri, 9 Nov 2012 11:05:07 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7CC7010282 for ; Fri, 9 Nov 2012 11:05:06 +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 a+M+YyOQj7PN for ; Fri, 9 Nov 2012 11:05:05 +0100 (CET) Original-Received: from filter3-utr.mf.surf.net (filter3-utr.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id DE3321024E for ; Fri, 9 Nov 2012 11:05:04 +0100 (CET) Original-Received: from mail-bk0-f41.google.com (mail-bk0-f41.google.com [209.85.214.41]) by filter3-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id qA9A538O011331 for ; Fri, 9 Nov 2012 11:05:03 +0100 Original-Received: by mail-bk0-f41.google.com with SMTP id jm1so1830932bkc.14 for ; Fri, 09 Nov 2012 02:05:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=k91w6/2dusHJ2EK2CwM7cyYq6T7WeWqvUKfxVmd5I1g=; b=yKjD+d5zBqiVQqAv4zwraB/Cp0D/KGj+ARLWHJhT6Y3VrqFcyo+PxadZ5hEON1eskn o82nQQnJWRNa75We/a75iblrDG/y6RfKMQR9X69aUyWx8s7bZ5q7A9fz8SPGgRqTCGdF LnGiHMObnilrh7/vXlBnJiRQfkoqehYBMDOWGwFAcbiLgguliau+C76JDBgTNdEGJfjw kII3sy7WwnsJngVeXD75CUBb+1oFwkh3ppKLtb5MwLw+0i7B9AiBEIwl/syhX22fD5vc 0QGrv/2MprCCDU0BNXHK6wha7V45VxuKV0WiByRS4XCkKOZIt1WMG4Dj0dGYlm0mdltZ 7B3g== Original-Received: by 10.204.151.21 with SMTP id a21mr752870bkw.124.1352455503295; Fri, 09 Nov 2012 02:05:03 -0800 (PST) Original-Received: from keima.localdomain (nrbg-4dbfb5bb.pool.mediaWays.net. [77.191.181.187]) by mx.google.com with ESMTPS id 1sm18543146bks.3.2012.11.09.02.05.02 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 09 Nov 2012 02:05:02 -0800 (PST) In-Reply-To: <509CCA92.2060002@wxs.nl> X-Mailer: Apple Mail (2.1499) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08Ilm53am - b0ba20663b39 - 20121109 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 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:79097 Archived-At: 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 pag= e. How to prevent this? >> Maybe the reference "Long Long Long" could break into two lnes or a rule= 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 should= be bound to the word The problem is not the \index command but the text in the register, as you = can see in the example below the text and the page number are in separate colum= ns (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 norma= l skip between the the text and page number, changing \hskip to \nobreak\hskip mov= es at least a part of the last word in the entry to the next column in the exa= mple 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 ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________