From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86244 Path: news.gmane.org!not-for-mail From: "Jan Tosovsky" Newsgroups: gmane.comp.tex.context Subject: Re: Linespacing in TOC Date: Mon, 10 Feb 2014 22:49:59 +0100 Message-ID: <2534.13502728126$1392069018@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> <002101cee849$b1e90c60$15bb2520$@tosovsky@email.cz> <5290A56D.9010109@wxs.nl> <002601cee850$6c3196e0$4494c4a0$@tosovsky@email.cz> <5290AF33.2070905@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 1392069005 16824 80.91.229.3 (10 Feb 2014 21:50:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Feb 2014 21:50:05 +0000 (UTC) To: "'mailing list for ConTeXt users'" Original-X-From: ntg-context-bounces@ntg.nl Mon Feb 10 22:50:14 2014 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 1WCyjy-0002gf-VH for gctc-ntg-context-518@m.gmane.org; Mon, 10 Feb 2014 22:50:11 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 47E5F101E8; Mon, 10 Feb 2014 22:50: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 fFgprNzMSmpN; Mon, 10 Feb 2014 22:50:09 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id ED63E101E3; Mon, 10 Feb 2014 22:50:08 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C2700101E3 for ; Mon, 10 Feb 2014 22:50:06 +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 VwqYw2tNaiwr for ; Mon, 10 Feb 2014 22:50: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 6BE3B101E1 for ; Mon, 10 Feb 2014 22:49:59 +0100 (CET) Original-Received: from fep27.mx.upcmail.net (fep27.mx.upcmail.net [62.179.121.47]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s1ALnvXN030410 for ; Mon, 10 Feb 2014 22:49:58 +0100 Original-Received: from edge02.upcmail.net ([192.168.13.237]) by viefep27-int.chello.at (InterMail vM.8.01.05.05 201-2260-151-110-20120111) with ESMTP id <20140210214957.QBVM24200.viefep27-int.chello.at@edge02.upcmail.net> for ; Mon, 10 Feb 2014 22:49:57 +0100 Original-Received: from emk ([78.102.140.160]) by edge02.upcmail.net with edge id Qlpx1n00D3Tq9wW02lpxUl; Mon, 10 Feb 2014 22:49:57 +0100 X-SourceIP: 78.102.140.160 In-Reply-To: <5290AF33.2070905@wxs.nl> X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac7oUPVAqHcBIPhITG2CEHX+KWMdQg+VgPcw Content-Language: cs X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=62.179.121.47; 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: 0WLoJNWBa - 55a015b44a2f - 20140210 (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:86244 Archived-At: On 2013-11-23 Hans Hagen wrote: > On 11/23/2013 2:32 PM, Jan Tosovsky wrote: > > On 2013-11-23 Hans Hagen wrote: > >> On 11/23/2013 1:44 PM, Jan Tosovsky wrote: > >>> On 2013-11-23 Hans Hagen wrote: > >>>> > >>>> 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) > > > > Yes, it is true, but in my example the grid is not activated, just > shown to > > compare differences... > = > maybe > = > \showmakeup > = > shows what makes that happen (for instance it can be that you inject > invisible stuff that interferes with spacing, in which case > \dontleavehmode's might help as otherwise tex enters / exits h/v mode > unexpected) To be honest, I don't understand to \showmakeup result at all... When the following code is used, I am getting almost desired output. But when the grid is switched on (by uncommenting the first line), it again produces extra lines after every TOC line... %\setuplayout[grid=3Dyes] \showgrid %\showmakeup \starttext %\placeongrid{\startlinecorrection %\start \setupinterlinespace[0] % looks like there is an extra line (?) ... %\setupwhitespace[none] \placecontent %\stop %\stoplinecorrection} \chapter{aaaaaaaa}. \chapter{pppppppp}. \chapter{=A9=A9=A9=A9=A9=A9=A9=A9}. \stoptext I am quite sad that after lot of investigation I still cannot achieve such a basic formatting... As it is required to force \setupinterlinespace[0] to zero to get proper result even in non-grid environment, I suspect there is some white space placed between lines (out of my control). I still prefer placing lines on the grid. But if the grid could be switched off just for ToC, I could use the above code ensuring lines in the 'grid' positions. It is fake, but I cannot manage even that (startlinecorrection doesn't work here). Any idea? Thanks, 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 ___________________________________________________________________________= ________