From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85398 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Linespacing in TOC Date: Sat, 23 Nov 2013 13:54:05 +0100 Message-ID: <5290A56D.9010109@wxs.nl> 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> <001701cee83d$77460650$65d212f0$@tosovsky@email.cz> <529096AD.5050909@wxs.nl> <002101cee849$b1e90c60$15bb2520$@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 1385211250 14452 80.91.229.3 (23 Nov 2013 12:54:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 Nov 2013 12:54:10 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sat Nov 23 13:54: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 1VkCj1-0005M6-38 for gctc-ntg-context-518@m.gmane.org; Sat, 23 Nov 2013 13:54:15 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7F3B31023A; Sat, 23 Nov 2013 13:54:14 +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 S+Xojq3L1Jjp; Sat, 23 Nov 2013 13:54:12 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 4182B101EB; Sat, 23 Nov 2013 13:54:12 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 499AD101EB for ; Sat, 23 Nov 2013 13:54:11 +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 jYWgKpieRtNq for ; Sat, 23 Nov 2013 13:54:09 +0100 (CET) Original-Received: from filter2-utr.mf.surf.net (filter2-utr.mf.surf.net [195.169.124.153]) by balder.ntg.nl (Postfix) with ESMTP id 58D48101E7 for ; Sat, 23 Nov 2013 13:54:09 +0100 (CET) Original-Received: from smtp.ziggozakelijk.nl (D57D1DA2.static.ziggozakelijk.nl [213.125.29.162]) by filter2-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id rANCws6e018412 for ; Sat, 23 Nov 2013 13:58:54 +0100 X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.103; Original-Received: from [10.100.1.103] (unverified [10.100.1.103]) by pragma-net.nl (SurgeMail 6.3c2) with ESMTP id 1039-1713362 for ; Sat, 23 Nov 2013 13:54:07 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 In-Reply-To: <002101cee849$b1e90c60$15bb2520$@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: 04KR0WSrW - 10b4f41e38cc - 20131123 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 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:85398 Archived-At: On 11/23/2013 1:44 PM, Jan Tosovsky wrote: > On 2013-11-23 Hans Hagen wrote: >> On 11/23/2013 12:16 PM, Jan Tosovsky wrote: >>> 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 = baseline >>>>>> \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. >> >> just set 'before' and 'after' > > Ok. I haven't realize that. > >> normally linespacing in the toc is the same as in the rest of the >> document unless one has assigned to before/after > > This example shows different behaviour: > > \showgrid > \starttext > \start > \placecontent > \stop > \chapter{aaaaaaaa}Foo > > Bar > \chapter{pppppppp}. > \chapter{=A9=A9=A9=A9=A9=A9=A9=A9}. > \stoptext > > On my computer the TOC linespacing is almost twice as big as that in the > paragraph. if the grid is on that can indeed be the case but only if there are = lines with > lineheight so that's why you can use less strict options = (older mails) 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 ___________________________________________________________________________= ________