From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80259 Path: news.gmane.org!not-for-mail From: =?iso-8859-2?B?UHJvY2jhemthIEx1a+G5IEluZy4gLSBQb250ZXggcy4gci4gby4=?= Newsgroups: gmane.comp.tex.context Subject: Re: Layer vs. overlay Date: Tue, 15 Jan 2013 09:04:16 +0100 Message-ID: References: <3608C682-5ACB-4006-9CC7-9D848CB5BFC0@gmail.com> <37BA1BD5-D127-4A53-887A-92F5C19FF3A0@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1358237078 22096 80.91.229.3 (15 Jan 2013 08:04:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Jan 2013 08:04:38 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Tue Jan 15 09:04:54 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 1Tv1Vt-0000BF-0w for gctc-ntg-context-518@m.gmane.org; Tue, 15 Jan 2013 09:04:53 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1F570101F0; Tue, 15 Jan 2013 09:04:34 +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 0QceYNZDIAl7; Tue, 15 Jan 2013 09:04:31 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id ADF0F101E5; Tue, 15 Jan 2013 09:04:31 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C754B101E5 for ; Tue, 15 Jan 2013 09:04:29 +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 8M3+oRYQERm5 for ; Tue, 15 Jan 2013 09:04:27 +0100 (CET) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 94FC2101E2 for ; Tue, 15 Jan 2013 09:04:27 +0100 (CET) Original-Received: from mail.pontex.cz (mail.pontex.cz [89.233.168.98]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r0F84PLx009536 for ; Tue, 15 Jan 2013 09:04:26 +0100 Original-Received: from localhost ([127.0.0.1]) by mail.pontex.cz (Kerio MailServer 6.6.2) for ntg-context@ntg.nl; Tue, 15 Jan 2013 09:04:21 +0100 In-Reply-To: <37BA1BD5-D127-4A53-887A-92F5C19FF3A0@gmail.com> User-Agent: Opera Mail/12.12 (Win32) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=89.233.168.98; country=CZ; latitude=49.7500; longitude=15.5000; http://maps.google.com/maps?q=49.7500,15.5000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0TIM84pPs - c28acb7cc334 - 20130115 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 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:80259 Archived-At: On Sat, 12 Jan 2013 19:11:47 +0100, Wolfgang Schuster wrote: > Move \definelayer and \setupbackgrounds *before* \startTEXpage because th= e environment creates a local group and you background setup is lost. ... Thanks for the hint - here's my next trial. It should write "BEFORE" to tho top right corner of the page. ---- \setupbodyfont[30pt] \starttext A \bgroup \definelayer[beforetext][width=3D\paperwidth,preset=3Drighttop] \setupbackgrounds [page] [background=3D{foreground,beforetext}] \startTEXpage \setlayer[beforetext]{\framed[width=3D2in]{BEFORE}} \externalfigure[cow][width=3D30cm] \stopTEXpage \egroup Z \stoptext ---- The problem now is the layer "beforetext" has width of the page in the mome= nt is is defined - 21 cm. But the layer is supposed to be used later inside \start/stop-TEXpage whose= page size may be arbitrary, or better, the size will result from the conte= nt it will contain. In my example - an image of 30 cm width is to define the page size. And the text "BEFORE" is not put to the top right corner of the (30 cm) pag= e (what I'd like to achieve) but to cca 2 thirds of these 30 cm (given by \= pagewidth which was 21 cm at the moment of definition). I would probably need a way to alter the layer size to the current content.= .. Or any other way to place something to the top right corner of the page fro= m within \start/stop-TEXpage, where page size is not known in advance? Best regards, Lukas -- = Ing. Luk=E1=B9 Proch=E1zka [mailto:LPr@pontex.cz] Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz] Bezov=E1 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________