From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/52212 Path: news.gmane.org!not-for-mail From: "Brian R. Landy" Newsgroups: gmane.comp.tex.context Subject: Re: problem with layers and line spacing Date: Tue, 11 Aug 2009 22:09:35 -0400 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (iPhone Mail 7A400) Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1250043008 16951 80.91.229.12 (12 Aug 2009 02:10:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Aug 2009 02:10:08 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 12 04:10: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 1Mb3Hs-0004GF-5s for gctc-ntg-context-518@m.gmane.org; Wed, 12 Aug 2009 04:10:00 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 367F6C9A77; Wed, 12 Aug 2009 04:09:53 +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 gxN3ck2tn0Yf; Wed, 12 Aug 2009 04:09:49 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3CE39C9A70; Wed, 12 Aug 2009 04:09:49 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 93CBCC9A70 for ; Wed, 12 Aug 2009 04:09:48 +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 mJ-zmUSlHuph for ; Wed, 12 Aug 2009 04:09:46 +0200 (CEST) Original-Received: from smtp188.iad.emailsrvr.com (smtp188.iad.emailsrvr.com [207.97.245.188]) by balder.ntg.nl (Postfix) with ESMTP id 13245C9A68 for ; Wed, 12 Aug 2009 04:09:45 +0200 (CEST) Original-Received: from relay18.relay.iad.mlsrvr.com (localhost [127.0.0.1]) by relay18.relay.iad.mlsrvr.com (SMTP Server) with ESMTP id 4268F1B400E for ; Tue, 11 Aug 2009 22:09:45 -0400 (EDT) Original-Received: by relay18.relay.iad.mlsrvr.com (Authenticated sender: brlandy-AT-landy.cx) with ESMTPSA id 340CD1B4005 for ; Tue, 11 Aug 2009 22:09:45 -0400 (EDT) Original-Received: from [10.215.177.122] (mobile-166-137-132-149.mycingular.net [166.137.132.149]) by serenity.landy.cx (Postfix) with ESMTP id A711F122CB75F for ; Tue, 11 Aug 2009 22:09:43 -0400 (EDT) X-Mailer: iPhone Mail (7A400) 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:52212 Archived-At: Understood, but actually it is obeying the 12pt switchtobodyfont for the interline spacing in the backgrounds. It is not using either the layer's switchtobodyfont, which I think should be correct behavior, nor is it obeying the setupbodyfont. Note that the font size is correct, it is the interline spacing that is incorrect. Thanks, Brian On Aug 11, 2009, at 6:11 PM, Hans Hagen wrote: > 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 > ___________________________________________________________________________________ > ___________________________________________________________________________________ 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 ___________________________________________________________________________________