From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/57028 Path: news.gmane.org!not-for-mail From: Peter Rolf Newsgroups: gmane.comp.tex.context Subject: Re: interlinespace confusion (MkIV) Date: Fri, 12 Mar 2010 17:04:40 +0100 Message-ID: <4B9A6618.3030101@gmx.net> References: <013A5470-3819-49D7-BC23-B27A69847860@st.estfiles.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------020702050506030003010901" X-Trace: dough.gmane.org 1268409921 17305 80.91.229.12 (12 Mar 2010 16:05:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 12 Mar 2010 16:05:21 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Mar 12 17:05:16 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Nq7ML-0005hN-3y for gctc-ntg-context-518@m.gmane.org; Fri, 12 Mar 2010 17:05:11 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 75FB9C9D27; Fri, 12 Mar 2010 17:05: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 vf2o-K4iOh4a; Fri, 12 Mar 2010 17:05:04 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 15ED8C9D28; Fri, 12 Mar 2010 17:05:04 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id ABCB9C9D28 for ; Fri, 12 Mar 2010 17:05:02 +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 wEiHv5M-l0+c for ; Fri, 12 Mar 2010 17:05:00 +0100 (CET) Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by balder.ntg.nl (Postfix) with SMTP id 6A1E1C9D27 for ; Fri, 12 Mar 2010 17:05:00 +0100 (CET) Original-Received: (qmail invoked by alias); 12 Mar 2010 16:04:59 -0000 Original-Received: from i538771E5.versanet.de (EHLO [192.168.1.3]) [83.135.113.229] by mail.gmx.net (mp071) with SMTP; 12 Mar 2010 17:04:59 +0100 X-Authenticated: #24293357 X-Provags-ID: V01U2FsdGVkX180bQNCRvg04W0ZVx5iwWOzuunKvAZg3o3ns/W0h/ 4XiSzw5nOLzo0n User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; de; rv:1.9.1.8) Gecko/20100227 Lightning/1.0b1 Thunderbird/3.0.3 In-Reply-To: <013A5470-3819-49D7-BC23-B27A69847860@st.estfiles.de> X-Enigmail-Version: 1.0.1 X-Y-GMX-Trusted: 0 X-FuHaFi: 0.56999999999999995 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:57028 Archived-At: This is a multi-part message in MIME format. --------------020702050506030003010901 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Steffen, i have tried my best, but i'm no grid expert. see attached example. @Hans: 1.) \startgridcorrection[top] does not work ! Undefined control sequence. \nextoptionalcommandyes ...menttrue \domoveongrid 2.) without an additional \setupinterlineskip (after the bodyfont change in the header) the struts for the number and the text differ. this results in 'an extra space between the first and the second chapter line'= . best wishes, Peter Am 12.03.2010 14:41, schrieb Steffen Wolfrum: > Hi, >=20 > I am totally confused by interlinespace usage in mkiv ... > +1 :) > Please have a look at this torture test below: >=20 > Setting bodytext to a tight interlinespace works by \setuplayout[grid=3D= both]. >=20 > But \chapter doesn't get right: > Either you use \setuplocalinterlinespace, then you might get an extra = space between the first and the second chaper line, > or you use \setupinterlinespace, then the bodytext interlinespace gets = disturbed. >=20 > [btw: and how do I get a tight interlinespace in \chapter too?? here gr= id=3Dboth doesn't work ...] >=20 > Could someone please help?! > > Steffen >=20 > ----- >=20 > \usetypescript[postscript] > \definetypeface[postscript][rm][serif][times][default] > \mainlanguage[de] >=20 > \setupbodyfont[postscript,10pt]\setupinterlinespace[line=3D9pt] >=20 > \def\MyChapter{% > \switchtobodyfont[rm,13pt]\bf > \setuplocalinterlinespace[line=3D16pt]% <- spurious space between 1. a= nd 2. line > % \setupinterlinespace[line=3D16pt]% <- bodytext interlinespace disturb= ed > } >=20 > \setuphead[chapter] > [grid=3Dboth,style=3D\MyChapter] >=20 > \setuplayout[grid=3Dboth] >=20 > \starttext >=20 > \chapter{=C9=E7\\=C9=E7\\=C9=E7\\=C9=E7} >=20 > =C9=E7\par =C9=E7\par =C9=E7\par =C9=E7 >=20 > \stoptext > _______________________________________________________________________= ____________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-= context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > _______________________________________________________________________= ____________ >=20 --------------020702050506030003010901 Content-Type: text/plain; name="test.tex" Content-Disposition: attachment; filename="test.tex" Content-Transfer-Encoding: quoted-printable \usetypescript[postscript] \definetypeface[postscript][rm][serif][times][default] \mainlanguage[de] \setupbodyfont[postscript,10pt]%\setupinterlinespace[line=3D9pt] \setupbodyfontenvironment [postscript] [10pt] [interlinespace=3D9pt] % te= xt \setupbodyfontenvironment [postscript] [13pt] [interlinespace=3D27pt] % c= hapter \setuplayout[grid=3Dboth] \def\MyChapter{% \switchtobodyfont[rm,13pt]\bf \setupinterlinespace % without \setupinterlinespace you get different st= ruts for number and text % \setuplocalinterlinespace[line=3D16pt]% <- spurious space between 1. an= d 2. line (caused by different struts) % \setupinterlinespace[line=3D16pt]% <- bodytext interlinespace disturbed } \setuphead[chapter] [grid=3Dboth,style=3D\MyChapter] \starttext \showframe \showgrid \showstruts \chapter{=C3=89=C3=A7\par =C3=89=C3=A7\par =C3=89=C3=A7\par =C3=89=C3=A7} =C3=89=C3=A7\par =C3=89=C3=A7\par =C3=89=C3=A7\par =C3=89=C3=A7 \startgridcorrection%[top] % no argument possible! \switchtobodyfont[rm,13pt] % also wrong interlineskip without grid correc= tion \snaptogrid\hbox{=C3=89=C3=A7\par} % needed to snap in; maybe obsolete, i= f grid correction argument works =C3=89=C3=A7\par =C3=89=C3=A7\par =C3=89=C3=A7 \stopgridcorrection \stoptext --------------020702050506030003010901 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --------------020702050506030003010901--