From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/9768 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Why does \struct affect line breaking? Date: Fri, 08 Nov 2002 17:07:05 +0100 Sender: ntg-context-admin@ref.ntg.nl Message-ID: <5.1.0.14.1.20021108170158.00ae5950@server-1> References: <20021108093545.440bf9e4.wmcclain@salamander.com> Reply-To: ntg-context@ref.ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: main.gmane.org 1036771956 27905 80.91.224.249 (8 Nov 2002 16:12:36 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 8 Nov 2002 16:12:36 +0000 (UTC) Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18ABkJ-0007Fl-00 for ; Fri, 08 Nov 2002 17:12:35 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id F353C10B0B; Fri, 8 Nov 2002 17:14:06 +0100 (MET) Original-Received: from mail.solcon.nl (mail.solcon.nl [212.45.33.11]) by ref.ntg.nl (Postfix) with ESMTP id 3F72710B0B for ; Fri, 8 Nov 2002 17:12:20 +0100 (MET) Original-Received: from server-1.pragma-ade.nl (wc-58016.solcon.nl [212.45.58.16]) by mail.solcon.nl (8.12.5/pre1.0-MySQL/8.12.5) with ESMTP id gA8H9n70007295 for ; Fri, 8 Nov 2002 18:09:49 +0100 Original-Received: from LAPTOP-3.wxs.nl (laptop-3 [10.100.1.191]) by server-1.pragma-ade.nl (8.12.2/8.12.2) with ESMTP id gA8GCEgi028273 for ; Fri, 8 Nov 2002 17:12:15 +0100 X-Sender: hagen-mail@server-1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Original-To: ntg-context@ref.vet.uu.nl In-Reply-To: <20021108093545.440bf9e4.wmcclain@salamander.com> X-RAVMilter-Version: 8.4.1(snapshot 20020919) (mail.solcon.nl) Errors-To: ntg-context-admin@ref.ntg.nl X-BeenThere: ntg-context@ref.ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:9768 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:9768 At 09:35 AM 11/8/2002 -0600, you wrote: >This is perhaps more of a TeX question, and I'll take it to >comp.text.tex next. But I encountered a problem when using \index in >ConTeXt. > >I had my doc formatted exactly the way I wanted. But after I added >\index entries throughout, I found that the line-breaking of some >paragraphs had changed. The text became "looser", not packing quite as >densely. Small changes, but significant to my layout. > >Experimentation showed that substituting "\strut" for "\index{...}" had >the same effect. These should be invisible, and I don't see anything >added, but the line-breaking is changed. > >I'm reading Eijkhout's chapter on "Line Breaking" in "TeX by Topic" but >am not sure how to interpret it. Have I introduced "glue preceded by a >nondiscardable item"? Would that be less breakable than the simple space >that was there before? list enties, index entries, color changes, marks, etc all introduce nodes in the MVL. Since tex cannot look back when such a node is encountered, it will badly interfere with spacing. Some macros (like the heads) take care of this. Also, since you want an index on the page where you are, by default a nobreak is added, which also interferes with spacing. The solution is simple: attach the index entry to the word that it belongs to, so: \index{bla}this word Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------