From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85396 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 13:44:05 +0100 Message-ID: <49422.5188195289$1385210655@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> <001701cee83d$77460650$65d212f0$@tosovsky@email.cz> <529096AD.5050909@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 1385210645 7763 80.91.229.3 (23 Nov 2013 12:44:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 Nov 2013 12:44:05 +0000 (UTC) To: "'mailing list for ConTeXt users'" Original-X-From: ntg-context-bounces@ntg.nl Sat Nov 23 13:44:11 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 1VkCZF-00017a-2G for gctc-ntg-context-518@m.gmane.org; Sat, 23 Nov 2013 13:44:09 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 53C8310227; Sat, 23 Nov 2013 13:44:08 +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 aMFzo+vz-mvU; Sat, 23 Nov 2013 13:44:06 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id B3A3C101EB; Sat, 23 Nov 2013 13:44:06 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 40687101EB for ; Sat, 23 Nov 2013 13:44:05 +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 LaPXpuaqIJGS for ; Sat, 23 Nov 2013 13:44:04 +0100 (CET) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 6B8A7101E7 for ; Sat, 23 Nov 2013 13:44:04 +0100 (CET) Original-Received: from fep21.mx.upcmail.net (fep21.mx.upcmail.net [62.179.121.41]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id rANCi3D0025653 for ; Sat, 23 Nov 2013 13:44:03 +0100 Original-Received: from edge02.upcmail.net ([192.168.13.237]) by viefep21-int.chello.at (InterMail vM.8.01.05.13 201-2260-151-135-20130320) with ESMTP id <20131123124402.YYDM24249.viefep21-int.chello.at@edge02.upcmail.net> for ; Sat, 23 Nov 2013 13:44:02 +0100 Original-Received: from emk ([78.102.141.153]) by edge02.upcmail.net with edge id t0k21m00a3Jmlmu020k2Bn; Sat, 23 Nov 2013 13:44:02 +0100 X-SourceIP: 78.102.141.153 In-Reply-To: <529096AD.5050909@wxs.nl> X-Mailer: Microsoft Office Outlook 12.0 Content-Language: cs Thread-Index: Ac7oQlata95sq+eWRZiuo1g1W7//bAABNsXg X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=62.179.121.41; 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: 0WKR0I3pH - ab30019ed812 - 20131123 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 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:85396 Archived-At: 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. 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 ___________________________________________________________________________= ________