From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80231 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Layer vs. overlay Date: Sat, 12 Jan 2013 19:11:47 +0100 Message-ID: <37BA1BD5-D127-4A53-887A-92F5C19FF3A0@gmail.com> References: <3608C682-5ACB-4006-9CC7-9D848CB5BFC0@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1358014313 26252 80.91.229.3 (12 Jan 2013 18:11:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 12 Jan 2013 18:11:53 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Jan 12 19:12:11 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Tu5Yw-00078F-Oe for gctc-ntg-context-518@m.gmane.org; Sat, 12 Jan 2013 19:12:10 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 738EF101F2; Sat, 12 Jan 2013 19:11:54 +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 fyzixB+-XYFK; Sat, 12 Jan 2013 19:11:52 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 7BDC7101E3; Sat, 12 Jan 2013 19:11:52 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 284CF101E3 for ; Sat, 12 Jan 2013 19:11:51 +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 O3Ylqo9vc-ex for ; Sat, 12 Jan 2013 19:11:50 +0100 (CET) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id 0A18C101E2 for ; Sat, 12 Jan 2013 19:11:50 +0100 (CET) Original-Received: from mail-bk0-f52.google.com (mail-bk0-f52.google.com [209.85.214.52]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r0CIBmU9023866 for ; Sat, 12 Jan 2013 19:11:48 +0100 Original-Received: by mail-bk0-f52.google.com with SMTP id w5so1360305bku.25 for ; Sat, 12 Jan 2013 10:11:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=1s/Gr0g8Y/LsnRJv9/JEBkqqHfJzQzrtfjGgmS9e+K8=; b=HKljt05T9w5eSilnwrOnUZL35y9hnIlLWunahZkoQmYfL0etuk/PPCZunmQCal0yyK iF0NdMwf8WxccpTOV/I/pFjhPYiSlQXSCFcgWqqHSPduxq3ruwgjiQhJ48P++qJ4TsUC p1S0MoRsCJ+G6711amcG7h6UYN8OXTsfycMzgRzg9G8TNoZctumpJDYneq/0sMB9Ymt+ O8cFi0F1rTKYwJyCgX7LcLcmB26rC81xJ9isJTXDf+RfBKkaSyZMdLkmQPFxHltduaBD HfJUKaG5uYzsEIGNV9cypht+XfE15dAQaP2bex7r/bIV1w5RmF2pMxY6VOsI2s3gmIvw R6Hg== X-Received: by 10.204.8.18 with SMTP id f18mr39029396bkf.82.1358014308076; Sat, 12 Jan 2013 10:11:48 -0800 (PST) Original-Received: from keima.localdomain (nrbg-4dbe61ec.pool.mediaWays.net. [77.190.97.236]) by mx.google.com with ESMTPS id y11sm6619889bkw.8.2013.01.12.10.11.46 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 12 Jan 2013 10:11:47 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.1499) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.52; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0NIL6bMM7 - 1c150a200bd4 - 20130112 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 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:80231 Archived-At: Am 12.01.2013 um 18:54 schrieb Proch=E1zka Luk=E1=9A : > Hello Wolfgang, > = > some more attempts: > = > The sample Lay3 is simple enough and brings some text to the top of the p= age: > = > ---- > \setupbodyfont[30pt] > \setuplayout[page] > = > \starttext > \definelayer[beforetext] > = > \setupbackgrounds > [page] > [background=3D{foreground,beforetext}] > = > \setlayer[beforetext]{\red BEFORE} > = > The Text! > \stoptext > ---- > = > This works well. > = > The Lay4 differs in one point - it encloses the text into \start/stop-TEX= page: > = > ---- > \setupbodyfont[30pt] > = > \starttext > \startTEXpage > \definelayer[beforetext] > = > \setupbackgrounds > [page] > [background=3D{foreground,beforetext}] > = > \setlayer[beforetext]{\red BEFORE} > = > The Text! > \stopTEXpage > \stoptext > ---- > = > In the latter case, the red text "BEFORE" doesn't appear. > = > What's wrong? How to make it appear? Move \definelayer and \setupbackgrounds *before* \startTEXpage because the = environment creates a local group and you background setup is lost. Wolfgang ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________