From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/69551 Path: news.gmane.org!not-for-mail From: Steffen Wolfrum Newsgroups: gmane.comp.tex.context Subject: Re: where to place \index (again) Date: Sun, 26 Jun 2011 21:13:20 +0200 Message-ID: <949EBA10-CB02-45D8-A760-0EC3244AC8AE@st.estfiles.de> References: <4E0770C4.6000803@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1309115625 27811 80.91.229.12 (26 Jun 2011 19:13:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 26 Jun 2011 19:13:45 +0000 (UTC) Cc: Hans Hagen , "Thomas A. Schmitz" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jun 26 21:13:40 2011 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 1Qaum4-0007q1-7A for gctc-ntg-context-518@m.gmane.org; Sun, 26 Jun 2011 21:13:40 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8072CCADBC; Sun, 26 Jun 2011 21:13:39 +0200 (CEST) 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 1G5a0XbUY0rE; Sun, 26 Jun 2011 21:13:35 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6EC50CAD55; Sun, 26 Jun 2011 21:13:35 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9C5C3CAD55 for ; Sun, 26 Jun 2011 21:13:34 +0200 (CEST) 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 EvtB-vnTuqDR for ; Sun, 26 Jun 2011 21:13:23 +0200 (CEST) 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 89D70CAD08 for ; Sun, 26 Jun 2011 21:13:23 +0200 (CEST) Original-Received: from smtprelay05.ispgateway.de (smtprelay05.ispgateway.de [80.67.31.99]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p5QJDMUY029210 for ; Sun, 26 Jun 2011 21:13:23 +0200 Original-Received: from [89.247.127.170] (helo=[192.168.1.4]) by smtprelay05.ispgateway.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1Qaull-0004H3-GJ; Sun, 26 Jun 2011 21:13:21 +0200 In-Reply-To: <4E0770C4.6000803@wxs.nl> X-Mailer: Apple Mail (2.1084) X-Df-Sender: 698580 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=80.67.31.99; 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: 0rF0Hdm7D - 80444909c1e1 - 20110626 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:69551 Archived-At: Am 26.06.2011 um 19:47 schrieb Hans Hagen: > On 26-6-2011 2:54, Thomas A. Schmitz wrote: >> Hi all, >> = >> I'm in the final phase of editing a scholarly book with a pretty big ind= ex. What follows is less a question than an observation: no matter where I = place the \index command, there can always be unwanted side effects: >> = >> foo\index{bar}: here, the entry may point to the page following the name= , if the page break falls at this position. Moreover, when this is followed= by punctuation or footnotes, there may be a line break between the word an= d the punctuation/footnote mark. Placing it at the end of a long footnote i= s asking for even more trouble, because there's a real risk that a page bre= ak may occur. >> = >> \index{bar}foo: the book is typeset with character protrusion, and this = seems to introduce additional material which can disturb line endings, so t= hat lines before such an indexed word appear to be missing one character at= the end. >> = >> So this is what I observe. Working around this is possible, but painful = - I have to check every page for such bad linebreaks or misplaced punctuati= on marks. My question then is: will it be possible, at one point in luatex = development, to find a more robust solution for this? This would be wonderf= ul, I think! > = > \index is connected to the next word or when on a line on it own as in \c= hapter{x} \index{x} text to the next paragraph > = > concerning the character protrusion: that looks like a bug so if we can h= ave a small example demonstrating it ... esp the disappearing character is = weird Sure, the minimal example that I posted already twice shows exactly this ca= se: = The line before an indexed word appears to be missing one character at the = end. See "Case 2" in attached example, please. Steffen ------- \showframe \setupbodyfont[times,10pt]\setupinterlinespace[line=3D12pt] \definetolerancemethod [horizontal] [MySpace] {\spaceskip3.02pt plus1.99998pt minus1.0pt\relax} \setupalign[line,block,hanging] \setuptolerance[MySpace] \setupindenting[10pt,yes] \definepapersize[stw][width=3D14.7cm,height=3D22.3cm] \setuppapersize[stw][stw] \setuplayout [width=3D113mm,height=3D572pt, backspace=3D17mm,topspace=3D17mm, header=3D12pt,headerdistance=3D6pt, footer=3D36pt,footerdistance=3D0pt, location=3Dmiddle,marking=3Doff] \starttext {\em Case 1: line wrap before dot} \noindent dieses ist dabei typisch f=FCr den Bereich der Architekten- oder Ingenieurleistungen\index{Ingenieurleistungen}. Warum? \blank {\em Case 2: line wrap after visible space} Bei den Gr=FCnen werden neben den beiden Fraktionsvorsitzenden, Renate \ind= ex{K=FCnast}K=FCnast und J=FCrgen Trittin ... \stoptext ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________