From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/70008 Path: news.gmane.org!not-for-mail From: Marcin Borkowski Newsgroups: gmane.comp.tex.context Subject: Fw: A question about layers Date: Thu, 14 Jul 2011 23:37:29 +0200 Organization: WMI UAM Message-ID: <20110714233729.7308961b@marcin-desktop> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1310679496 14465 80.91.229.12 (14 Jul 2011 21:38:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 14 Jul 2011 21:38:16 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 14 23:38:12 2011 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.69) (envelope-from ) id 1QhTbn-0000bX-SI for gctc-ntg-context-518@m.gmane.org; Thu, 14 Jul 2011 23:38:11 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A3282CAE42; Thu, 14 Jul 2011 23:38:11 +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 8s4ZSD+rD+Ps; Thu, 14 Jul 2011 23:38:08 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 38EA9CAE3A; Thu, 14 Jul 2011 23:38:08 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 179DACAC8D for ; Thu, 14 Jul 2011 23:38:07 +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 W0zGjp9iBQ+p for ; Thu, 14 Jul 2011 23:38:05 +0200 (CEST) Original-Received: from filter4-nij.mf.surf.net (filter4-nij.mf.surf.net [195.169.124.155]) by balder.ntg.nl (Postfix) with ESMTP id 0EBE6CAE3A for ; Thu, 14 Jul 2011 23:38:05 +0200 (CEST) Original-Received: from msg.wmi.amu.edu.pl (msg.wmi.amu.edu.pl [150.254.78.50]) by filter4-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p6ELc3Yp004951 for ; Thu, 14 Jul 2011 23:38:04 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by msg.wmi.amu.edu.pl (Postfix) with ESMTP id AB0EC42063 for ; Thu, 14 Jul 2011 23:38:03 +0200 (CEST) Original-Received: from msg.wmi.amu.edu.pl ([127.0.0.1]) by localhost (msg.wmi.amu.edu.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AWJs3EVd1jrU for ; Thu, 14 Jul 2011 23:38:03 +0200 (CEST) Original-Received: from marcin-desktop (dwaosiem-jedencztery3.echostar.pl [109.232.28.143]) by msg.wmi.amu.edu.pl (Postfix) with ESMTPSA id 8B18F42062 for ; Thu, 14 Jul 2011 23:38:03 +0200 (CEST) X-Mailer: Claws Mail 3.6.1 (GTK+ 2.16.1; i486-pc-linux-gnu) X-Bayes-Prob: 0.0011 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=150.254.78.50; country=PL; region=86; city=Poznan; latitude=52.4167; longitude=16.9667; http://maps.google.com/maps?q=52.4167,16.9667&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 04F7VC4Wb - cedc7b341821 - 20110714 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.155 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:70008 Archived-At: And the second message accidentally sent to Hans: Dnia 2011-07-14, czw o godzinie 16:29 +0200, Hans Hagen pisze: > On 14-7-2011 4:25, Marcin Borkowski wrote: > > OK, > > > > after a pm from Mojca concerning my previous question I decided to > > look into the "layers" mechanism. > > > > It won't work for me - just nothing shows up. > > > > What am I doing wrong? > > > > Here's a minimal example: > > > > \starttext > > \definelayer[title][x=105mm,y=20mm] > > \setlayer[title]{This is the title.} > > \stoptext > > > > (I'd also like to be able to "anchor" the title so that > > (105mm,20mm) are the coordinates of the center, not the lower-left > > corner etc. How to do that?) > > \flushlayer[title] > > etc (some styles in the distributions have examples) I think that the general problem is that I have a wrong conceptual model of layers in ConTeXt. You know, when I hear the word "layer", I have some ideas about how it should/could/might work, and probably these ideas are different than Hans'. So I'm going to briefly describe my idea (already modified by the answers) and please tell me what's wrong with it. So I imagine that \definelayer / \setuplayer defines a rectangular shape on the page, possibly framed/colored/etc., which is going to appear on all pages (default) or on selected ones. The contents of layers are set with \setlayer, (with some - mysterious for me - "setups" trickery if they are going to change from page to page), and they are actually put on the page by \setupbackgrounds. (And I have no idea what \flushlayer does in this conceptual framework.) So layers are actually kind of "beneath" ordinary page contents. Some of these commands (which ones?) should moreover be placed before \startext. OK, so where am I right and where am I wrong now? -- Marcin Borkowski http://mbork.pl -- Marcin Borkowski ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________