From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/68667 Path: news.gmane.org!not-for-mail From: Steffen Wolfrum Newsgroups: gmane.comp.tex.context Subject: where to put an \index{foo} ? Date: Tue, 24 May 2011 11:28:03 +0200 Message-ID: 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 1306229298 32291 80.91.229.12 (24 May 2011 09:28:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 24 May 2011 09:28:18 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue May 24 11:28:14 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 1QOnuQ-0002Td-Bw for gctc-ntg-context-518@m.gmane.org; Tue, 24 May 2011 11:28:14 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2F6FBCAD42; Tue, 24 May 2011 11:28:14 +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 lPGsOe85VfD9; Tue, 24 May 2011 11:28:13 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 72F98CAD49; Tue, 24 May 2011 11:28:11 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3C022CAD49 for ; Tue, 24 May 2011 11:28:10 +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 KoWPE4YU-+G5 for ; Tue, 24 May 2011 11:28:08 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 5D32ECAD42 for ; Tue, 24 May 2011 11:28:08 +0200 (CEST) Original-Received: from smtprelay03.ispgateway.de (smtprelay03.ispgateway.de [80.67.31.30]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p4O9S5mM026052 for ; Tue, 24 May 2011 11:28:07 +0200 Original-Received: from [89.247.79.160] (helo=[192.168.1.4]) by smtprelay03.ispgateway.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1QOnuH-00041H-1E for ntg-context@ntg.nl; Tue, 24 May 2011 11:28:05 +0200 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.30; 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: 03ELls5ci - 039c2b4d6fb0 - 20110524 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 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:68667 Archived-At: Hi, either I set an \index{foo} in front of the word it refers to, or after tha= t word: The second can lead to wrong line wrapping when a full stop follows (see Ca= se 1), and the first can lead into a line ending with a space before wrapping (see= Case 2). :o( Is there a third option? Thanks, 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 ___________________________________________________________________________= ________