From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/52210 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: problem with layers and line spacing Date: Wed, 12 Aug 2009 00:11:51 +0200 Message-ID: <4A81ECA7.7000003@wxs.nl> References: <20090810170922.15774qz05yz4tnk0@serenity.landy.cx> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1250028728 18141 80.91.229.12 (11 Aug 2009 22:12:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Aug 2009 22:12:08 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 12 00:12:01 2009 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.50) id 1MazZY-00038Y-Vd for gctc-ntg-context-518@m.gmane.org; Wed, 12 Aug 2009 00:12:01 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C519DC9AD9; Wed, 12 Aug 2009 00:11:58 +0200 (CEST) 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 1LqTGrxQM4Ho; Wed, 12 Aug 2009 00:11:56 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 580A9C9AE3; Wed, 12 Aug 2009 00:11:56 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B3814C9AE3 for ; Wed, 12 Aug 2009 00:11:54 +0200 (CEST) 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 pWxhUrq73lgb for ; Wed, 12 Aug 2009 00:11:53 +0200 (CEST) Original-Received: from mail.pragma-ade.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by balder.ntg.nl (Postfix) with ESMTP id EB9F7C9AD9 for ; Wed, 12 Aug 2009 00:11:52 +0200 (CEST) Original-Received: from [10.100.1.107] (unverified [10.100.1.107]) by controller-1 (SurgeMail 3.9e) with ESMTP id 33053-1840426 for ; Wed, 12 Aug 2009 00:11:52 +0200 User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) In-Reply-To: <20090810170922.15774qz05yz4tnk0@serenity.landy.cx> X-Originating-IP: 10.100.1.107 X-Authenticated-User: hagen@controller-1 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:52210 Archived-At: Brian R. Landy wrote: > Hi, I am attempting to do some work with layers that can repeat (and > update) using \startsetups & \stopsetups. However I find that the line > spacing in a \framed in the layers is not alterable and instead tracks > the font size on the page. I'm attaching a simple example (it shows the > same issue under MKII and MKIV, although the \vbox{} example does not > work under MKII). > > If you remove the \startsetups and \stopsetups the line spacing works > like it should. While they are used, the line spacing in the layer's > \framed tracks the setting in \switchtobodyfont[12pt]. It does not > track to either 6pt or 8pt. And I can't find a way to reset the spacing > (I tried adding in a \setupinterlinespace[reset]). > > Am I doing something wrong? I've tried with MKIV 2009.06.03 and > 2009.08.07, and MKII at contextgarden. > > Thanks! > Brian > > \setupbodyfont[8pt]% > \starttext > \definelayer[RCheaderleft][preset=lefttop,width=\paperwidth, > height=\paperheight]% > \definelayer[RCheaderright][preset=lefttop,width=\paperwidth, > height=\paperheight]% > \startsetups[RClayers]% > \setlayer[RCheaderleft][hoffset=\backspace,voffset=\topspace]{\vbox{Line > 1\\ Line 2}}% > \setlayer[RCheaderright][hoffset=\backspace,voffset=\topspace] > {\switchtobodyfont[6pt]\framed[align={middle,flushright},width=broad]{Line > 1\\ Line 2}}% > \stopsetups > \setupbackgrounds[page][setups=RClayers,background={RCheaderleft,RCheaderright}]% > > \switchtobodyfont[12pt] > \dorecurse{250}{test\par} > \stoptext there is a difference between: \setupbodyfont : global usage, document wide \switchtobodyfont : local usage, does not affect the header, footer etc so, when the backgrounds are constructed, the 8pt is in charge Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________