From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85392 Path: news.gmane.org!not-for-mail From: "Jan Tosovsky" Newsgroups: gmane.comp.tex.context Subject: Re: Linespacing in TOC Date: Sat, 23 Nov 2013 12:16:32 +0100 Message-ID: <42650.544938124$1385205403@news.gmane.org> References: <013a01cee579$6a0c5640$3e2502c0$@tosovsky@email.cz> <528BED98.2070505@wxs.nl> <011201cee7c3$b3b1dc60$1b159520$@tosovsky@email.cz> <528FD06E.4030608@wxs.nl> <013501cee7d8$1fefbb40$5fcf31c0$@tosovsky@email.cz> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1385205392 22057 80.91.229.3 (23 Nov 2013 11:16:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 Nov 2013 11:16:32 +0000 (UTC) To: "'mailing list for ConTeXt users'" Original-X-From: ntg-context-bounces@ntg.nl Sat Nov 23 12:16:38 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VkBCW-00072R-T6 for gctc-ntg-context-518@m.gmane.org; Sat, 23 Nov 2013 12:16:36 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0269A10204; Sat, 23 Nov 2013 12:16:36 +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 QWNHgjEfZ-C8; Sat, 23 Nov 2013 12:16:34 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 4D3EB101EB; Sat, 23 Nov 2013 12:16:34 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C14EC101EB for ; Sat, 23 Nov 2013 12:16:32 +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 1gCOWtB-WZmJ for ; Sat, 23 Nov 2013 12:16:32 +0100 (CET) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 0505F101E7 for ; Sat, 23 Nov 2013 12:16:32 +0100 (CET) Original-Received: from fep11.mx.upcmail.net (fep11.mx.upcmail.net [62.179.121.31]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id rANBGUtm003955 for ; Sat, 23 Nov 2013 12:16:31 +0100 Original-Received: from edge03.upcmail.net ([192.168.13.238]) by viefep11-int.chello.at (InterMail vM.8.01.05.05 201-2260-151-110-20120111) with ESMTP id <20131123111630.ZUXS22639.viefep11-int.chello.at@edge03.upcmail.net> for ; Sat, 23 Nov 2013 12:16:30 +0100 Original-Received: from emk ([78.102.141.153]) by edge03.upcmail.net with edge id szGW1m00p3Jmlmu03zGWRM; Sat, 23 Nov 2013 12:16:30 +0100 X-SourceIP: 78.102.141.153 In-Reply-To: <013501cee7d8$1fefbb40$5fcf31c0$@tosovsky@email.cz> X-Mailer: Microsoft Office Outlook 12.0 Content-Language: cs Thread-Index: Ac7nzC8bD3ZeDwXhTYGUcYNZfGQqEAAB+mAAABn5H7A= X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=62.179.121.31; country=AT; latitude=47.3333; longitude=13.3333; http://maps.google.com/maps?q=47.3333,13.3333&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03KQXguMF - e49eda8c6d4e - 20131123 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 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:85392 Archived-At: On 2013-11-23 Jan Tosovsky wrote: > On 2013-11-22 Hans Hagen wrote: > > On 11/22/2013 9:44 PM, Jan Tosovsky wrote: > > > On 2013-11-20 Hans Hagen wrote: > > >> On 11/19/2013 11:48 PM, Jan Tosovsky wrote: > > >>> > > >>> I'd like to tweak a default TOC linespacing... > > >>> > > >> \title{Table of Contents} > > >> > > >> \start > > >> \setupinterlinespace[line=3D0.8ex] > > >> \placecontent > > >> \stop > > > > > > But as I found, any value below 2.8ex causes interline > > > inconsistencies when > > > special cases appears, see the extreme below: > > > > > > \starttext > > > \start > > > \setupinterlinespace[line=3D1.0ex] > > > \placecontent > > > \stop > > > \chapter{aaaaaaaa}. % line without descenders > > > \chapter{pppppppp}. % line with descenders > > > \chapter{=A9=A9=A9=A9=A9=A9=A9=A9}. % the result is an inconsistent b= aseline > > > \stoptext > > > > > > Is there any remedy for this? Can I fix the baseline distance > > > somehow? > > > > > > > \definegridsnapping[crap] [fit,0.2] > > \setuplayout[grid=3Dcrap] > = > This helps! But... it breaks something else :-( I've finally found an acceptable solution. During my tests I found a crucial difference between: \setupinterlinespace[line=3D2.0ex] and = \setupinterlinespace[0.25] The latter sets the baseline distance correctly even without that problematic snapping to the grid! > All lines in my book have a certain (default) linespacing. > TOC entries are rendered (by default) using bigger linespacing. Btw, is there any option to override a default (huge) TOC linespacing? I still consider my solution rather a hack. Regards, Jan ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________