From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/52172 Path: news.gmane.org!not-for-mail From: "Brian R. Landy" Newsgroups: gmane.comp.tex.context Subject: problem with layers and line spacing Date: Mon, 10 Aug 2009 17:09:22 -0400 Message-ID: <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"; DelSp="Yes" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1249938593 19232 80.91.229.12 (10 Aug 2009 21:09:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Aug 2009 21:09:53 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon Aug 10 23:09:46 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 1Mac7m-0004Rh-Ag for gctc-ntg-context-518@m.gmane.org; Mon, 10 Aug 2009 23:09:46 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7B43EC9A86; Mon, 10 Aug 2009 23:09:44 +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 me1I44jDuk3R; Mon, 10 Aug 2009 23:09:40 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 67953C9A77; Mon, 10 Aug 2009 23:09:40 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F0FE9C9A77 for ; Mon, 10 Aug 2009 23:09:38 +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 2NRD-vthAalr for ; Mon, 10 Aug 2009 23:09:34 +0200 (CEST) Original-Received: from mail.alumni.caltech.edu (posteaux1.caltech.edu [131.215.239.119]) by balder.ntg.nl (Postfix) with ESMTP id 0502DC9A70 for ; Mon, 10 Aug 2009 23:09:34 +0200 (CEST) Original-Received: from serenity.landy.cx (pool-98-113-72-133.nycmny.fios.verizon.net [98.113.72.133]) by mail.alumni.caltech.edu (Postfix) with ESMTPSA id 434363F000C for ; Mon, 10 Aug 2009 14:09:25 -0700 (PDT) X-DKIM: Sendmail DKIM Filter v2.8.2 mail.alumni.caltech.edu 434363F000C DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=alumni.caltech.edu; s=enforce; t=1249938565; bh=HSQgkqQWAfQYjT3twJh1faoUrROyWtnfb/HtNiyOVT8=; h=Message-ID:Date:From:To:Subject:MIME-Version:Content-Type: Content-Transfer-Encoding; b=knHO3/XeCwmWyRPoBctlBy1CdlTsmGJRkZ+3q3r07xCEP7I829fQ/uq1uIbdUABRE brJoxJ2GnQ0PnsvYlQwRwrXsZAgWblp9ks8elqpeIC2p6/e19XwrjTh4uEqYiRP1e4 Hdps8d0hxAMBVhYTUybX6bzVOgsxjr1O2t0WzYoI= Original-Received: by serenity.landy.cx (Postfix, from userid 70) id 15AFB12215368; Mon, 10 Aug 2009 17:09:23 -0400 (EDT) Original-Received: from 207-207-43-196.fwd.datafoundry.com (207-207-43-196.fwd.datafoundry.com [207.207.43.196]) by serenity.landy.cx (Horde Framework) with HTTP; Mon, 10 Aug 2009 17:09:22 -0400 Content-Disposition: inline User-Agent: Internet Messaging Program (IMP) H3 (4.3) X-MailScanner-Information-Alumni: Please contact the Alumni Office for more information X-Alumni-MailScanner-ID: 434363F000C.A02F0 X-MailScanner-Alumni: No Virii found X-MailScanner-From: landy@alumni.caltech.edu 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:52172 Archived-At: 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 ___________________________________________________________________________________ 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 ___________________________________________________________________________________