From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/76653 Path: news.gmane.org!not-for-mail From: Marcin Borkowski Newsgroups: gmane.comp.tex.context Subject: Multiple layers question Date: Mon, 04 Jun 2012 14:06:33 +0200 Message-ID: <1338811593.1797.2.camel@marcin-laptop> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1338811606 18061 80.91.229.3 (4 Jun 2012 12:06:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 4 Jun 2012 12:06:46 +0000 (UTC) To: ConTeXt mailing list Original-X-From: ntg-context-bounces@ntg.nl Mon Jun 04 14:06:45 2012 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 1SbW3V-0003oc-Ih for gctc-ntg-context-518@m.gmane.org; Mon, 04 Jun 2012 14:06:41 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 601CA101E2; Mon, 4 Jun 2012 14:06:41 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Tf5lUGz0gD0L; Mon, 4 Jun 2012 14:06:40 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EC118101DF; Mon, 4 Jun 2012 14:06:39 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 12867101DF for ; Mon, 4 Jun 2012 14:06:39 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 2ghkQuWZYuwT for ; Mon, 4 Jun 2012 14:06:38 +0200 (CEST) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id 24728101DD for ; Mon, 4 Jun 2012 14:06:38 +0200 (CEST) Original-Received: from msg.wmi.amu.edu.pl (msg.wmi.amu.edu.pl [IPv6:2001:808:114:2::50]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q54C6bpL010370 for ; Mon, 4 Jun 2012 14:06:37 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by msg.wmi.amu.edu.pl (Postfix) with ESMTP id 767224207A for ; Mon, 4 Jun 2012 14:06:35 +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 fKRtVevo+fm6 for ; Mon, 4 Jun 2012 14:06:35 +0200 (CEST) Original-Received: from [192.168.1.100] (unknown [213.156.123.123]) by msg.wmi.amu.edu.pl (Postfix) with ESMTPSA id 15B5742067 for ; Mon, 4 Jun 2012 14:06:35 +0200 (CEST) X-Mailer: Evolution 3.2.2- X-Bayes-Prob: 0.9995 (Score 4.7, tokens from: @@RPTN) X-CanIt-Geo: ip=2001:808:114:2::50; country=PL X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06Hic6BVS - 6ed3f73414ba - 20120604 X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.13 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:76653 Archived-At: Hi, I'd like to put a few things, placed absolutely on the page. I thought that layers are a good tool, but I can't make them do what I want. Assume that I want to have "Some text" near the top of the page and a huge "X" centered. I did this: \setuppagenumbering[state=stop] \setupbackgrounds[page][background=bkg] \definelayer[bkg][x=0mm,y=0mm,width=\paperwidth,height=\paperheight] \setlayer[bkg] {\framed[frame=off,width=\paperwidth,height=50mm] {\switchtobodyfont[10mm]\tt Some text}} \setlayer[bkg] {\framed[frame=off,width=\paperwidth,height=\paperheight] {\switchtobodyfont[240mm]\tt X}} \starttext \null \stoptext but only one layer appears (the "Some text" one). What am I doing wrong? Is there a better way to do it? TIA -- Marcin Borkowski http://mbork.pl ___________________________________________________________________________________ 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 ___________________________________________________________________________________