From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85391 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 00:11:06 +0100 Message-ID: <36542.5071133815$1385161882@news.gmane.org> References: <013a01cee579$6a0c5640$3e2502c0$@tosovsky@email.cz> <528BED98.2070505@wxs.nl> <011201cee7c3$b3b1dc60$1b159520$@tosovsky@email.cz> <528FD06E.4030608@wxs.nl> 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 1385161871 12954 80.91.229.3 (22 Nov 2013 23:11:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Nov 2013 23:11:11 +0000 (UTC) To: "'mailing list for ConTeXt users'" Original-X-From: ntg-context-bounces@ntg.nl Sat Nov 23 00:11:16 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 1VjzsV-0007Xi-In for gctc-ntg-context-518@m.gmane.org; Sat, 23 Nov 2013 00:11:11 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BDE331022D; Sat, 23 Nov 2013 00:11:10 +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 e5-tKwC+YCW7; Sat, 23 Nov 2013 00:11:08 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id C2B59101FA; Sat, 23 Nov 2013 00:11:08 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7DA15101FA for ; Sat, 23 Nov 2013 00:11:07 +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 r6EPSFQSK7+W for ; Sat, 23 Nov 2013 00:11:06 +0100 (CET) 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 5BD8A101F7 for ; Sat, 23 Nov 2013 00:11:06 +0100 (CET) Original-Received: from fep20.mx.upcmail.net (fep20.mx.upcmail.net [62.179.121.40]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id rAMNIfAP006116 for ; Sat, 23 Nov 2013 00:18:42 +0100 Original-Received: from edge03.upcmail.net ([192.168.13.238]) by viefep20-int.chello.at (InterMail vM.8.01.05.13 201-2260-151-135-20130320) with ESMTP id <20131122231105.UKLX24076.viefep20-int.chello.at@edge03.upcmail.net> for ; Sat, 23 Nov 2013 00:11:05 +0100 Original-Received: from emk ([78.102.141.153]) by edge03.upcmail.net with edge id snB41m00M3Jmlmu03nB4hu; Sat, 23 Nov 2013 00:11:05 +0100 X-SourceIP: 78.102.141.153 In-Reply-To: <528FD06E.4030608@wxs.nl> X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac7nzC8bD3ZeDwXhTYGUcYNZfGQqEAAB+mAA Content-Language: cs X-Bayes-Prob: 0.0031 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=62.179.121.40; 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: 01KQLiFPF - 0dc8b6133ead - 20131123 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 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:85391 Archived-At: 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] % too small, just for testing > >> \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 precedes a line without > > ascenders > > \chapter{pppppppp}. % line with descenders is followed with a line > > with ascenders > > \chapter{=A9=A9=A9=A9=A9=A9=A9=A9}. % the result is an inconsistent bas= eline distance > > \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 am confused a bit. = What exactly the linespacing is doing? It can set the baseline distance (line=3D...), but it is not handled correctly? Is that snapping a workaround for this deficiency of a standard solution? All lines in my book have a certain (default) linespacing. TOC entries are rendered (by default) using bigger linespacing. I just wanted to make that TOC distance smaller a bit. Is this really the only solution? \definegridsnapping[crap] [fit] % what was that magic number 0.2 ? \setuplayout[grid=3Dcrap] \start \setupinterlinespace[line=3D2.2ex] \placecontent \stop It works. But that snapping is set globally and it breaks whitespace handling in other parts of my document... It even produces widows/orphans what I haven't seen before. Just smaller gap between TOC lines, just that ;-) Thanks in advance, 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 ___________________________________________________________________________= ________