From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85387 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Linespacing in TOC Date: Fri, 22 Nov 2013 22:45:18 +0100 Message-ID: <528FD06E.4030608@wxs.nl> References: <013a01cee579$6a0c5640$3e2502c0$@tosovsky@email.cz> <528BED98.2070505@wxs.nl> <011201cee7c3$b3b1dc60$1b159520$@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"; Format="flowed" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1385156724 21951 80.91.229.3 (22 Nov 2013 21:45:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Nov 2013 21:45:24 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri Nov 22 22:45:29 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 1VjyXZ-0007Rj-5U for gctc-ntg-context-518@m.gmane.org; Fri, 22 Nov 2013 22:45:29 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C51CE1020D; Fri, 22 Nov 2013 22:45:28 +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 SQtdi-gRX7u4; Fri, 22 Nov 2013 22:45:26 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 69EE0101FA; Fri, 22 Nov 2013 22:45:26 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2CC2C101FA for ; Fri, 22 Nov 2013 22:45:24 +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 iVuyrbLHBr0O for ; Fri, 22 Nov 2013 22:45:22 +0100 (CET) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id EBEE6101F7 for ; Fri, 22 Nov 2013 22:45:21 +0100 (CET) Original-Received: from smtp.ziggozakelijk.nl (D57D1DA2.static.ziggozakelijk.nl [213.125.29.162]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id rAMLjL1V005326 for ; Fri, 22 Nov 2013 22:45:21 +0100 X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.104; Original-Received: from [10.100.1.104] (unverified [10.100.1.104]) by pragma-net.nl (SurgeMail 6.3c2) with ESMTP id 961-1713362 for ; Fri, 22 Nov 2013 22:45:20 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 In-Reply-To: <011201cee7c3$b3b1dc60$1b159520$@tosovsky@email.cz> X-Authenticated-User: hagen@controller-9 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.125.29.162; country=NL; region=15; city=Zwolle; latitude=52.5058; longitude=6.0858; http://maps.google.com/maps?q=52.5058,6.0858&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0RKQJJl8h - 7281709264ef - 20131122 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 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:85387 Archived-At: 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... >>> >>> I've 'invented' this: >>> >>> \setupcombinedlist[content][list=3Dchapter, alternative=3Dc] >>> >>> \starttext >>> >>> \title{Table of Contents} >>> \setupinterlinespace[line=3D0.8ex] % too small, just for testing >>> \placecontent >>> \setupinterlinespace[line=3D2.75ex] >>> %\setupinterlinespace[reset] >>> >>> \startfrontmatter >>> \chapter{Intro}text >>> >>> text >>> >>> text >>> \startfrontmatter >>> \startbodymatter >>> \chapter{Chapter}text >>> \stopbodymatter >>> \startbackmatter >>> \chapter{Appendix}text >>> \stopbackmatter >>> \stoptext >>> >>> I cannot use simply the \completecontent command as the linespacing >>> is effective already between the title and the first entry line... >>> so I am splitting the title and the rest and set the linespacing >>> just before list rendering. Finally I am resetting the value manually. >>> >>> Are there better ways to tweak linespacing in TOC ? >> >> \title{Table of Contents} >> >> \start >> \setupinterlinespace[line=3D0.8ex] % too small, just for testing >> \placecontent >> \stop > > Thanks for the hint. > > But as I found, any value below 2.8ex causes interline inconsistencies wh= en > 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 basel= ine distance > \stoptext > > Is there any remedy for this? Can I fix the baseline distance somehow? > > I have such cases in my TOC :-( > (but not so extreme as here) \definegridsnapping[crap] [fit,0.2] \setuplayout[grid=3Dcrap] but if you really need that kind of tweaks you might consider using a = better font: if interlinespace is too small you will never get nice results you can try to play with the h/d ratio: \setupinterlinespace[line=3D2.8ex,height=3D0.8,depth=3D0.2] \showstruts \strut x \setupinterlinespace[line=3D2.8ex,height=3D0.7,depth=3D0.3] \showstruts \strut x or you can plug in a command (in the toc handler) that puts each line in = a box with manipulated dimensions Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________