From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/70061 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Fw: A question about layers Date: Sun, 17 Jul 2011 10:02:50 +0200 Message-ID: References: <20110714233729.7308961b@marcin-desktop> <20110716193544.3a14a381@marcin-desktop> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1310889801 23401 80.91.229.12 (17 Jul 2011 08:03:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 17 Jul 2011 08:03:21 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jul 17 10:03:17 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 1QiMJn-0000zf-EV for gctc-ntg-context-518@m.gmane.org; Sun, 17 Jul 2011 10:03:15 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5E836CAE50; Sun, 17 Jul 2011 10:03:14 +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 E5oOHGzYdEDK; Sun, 17 Jul 2011 10:03:10 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 69A19CAE49; Sun, 17 Jul 2011 10:03:10 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DEAB4CAE49 for ; Sun, 17 Jul 2011 10:03:08 +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 7pIiPww60y+J for ; Sun, 17 Jul 2011 10:02:55 +0200 (CEST) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id E2CD2CAE40 for ; Sun, 17 Jul 2011 10:02:54 +0200 (CEST) Original-Received: from mail-fx0-f42.google.com (mail-fx0-f42.google.com [209.85.161.42]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p6H82rl2017799 for ; Sun, 17 Jul 2011 10:02:54 +0200 Original-Received: by fxe23 with SMTP id 23so4472551fxe.15 for ; Sun, 17 Jul 2011 01:02:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=Zn0/r6mLNqMVwJUnzG5Y43oB2EPs1djY0MoagHinPoY=; b=XR8B/7rRSVMaAH0+RTN6PVnW1oA87aQnYctybRq3/k9t6QBc5pJWLmlYukUxLqU6R2 5vcUyhFAW56BeFnMYZevL/MlWLenPCb3LVUdD6VxOI+fN8iPcxc4o6lBSRrvNbnbHHyr 3XHWK74/qGWYYWyjCSQ04sLjXJlmBqk+CUxc8= Original-Received: by 10.223.96.198 with SMTP id i6mr8087213fan.22.1310889773631; Sun, 17 Jul 2011 01:02:53 -0700 (PDT) Original-Received: from [192.168.2.31] (p5482DC2B.dip.t-dialin.net [84.130.220.43]) by mx.google.com with ESMTPS id 5sm2019397fas.40.2011.07.17.01.02.51 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 17 Jul 2011 01:02:52 -0700 (PDT) In-Reply-To: <20110716193544.3a14a381@marcin-desktop> X-Mailer: Apple Mail (2.1084) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.42; 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: 08F8U2R53 - 98a67b62295e - 20110717 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 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:70061 Archived-At: Am 16.07.2011 um 19:35 schrieb Marcin Borkowski: > Anybody help, please...? Layers are objects which can be placed on any place of the page. The difference between \setupbackgrounds and \flushlayer can be seen in the example below. With \setupbackground the layer content is put on the requested position (behind the text) after TeX has finished the page. With \flushlayer ConTeXt starts a new page where all collected layers are placed without any other text. \definelayer[one] \definelayer[two] \setupbackgrounds[text][text][background=one] \starttext \input ward \setlayer[one][x=3cm,y=3cm]{\tt One} \page \setlayer[two][x=3cm,y=3cm]{\tt Two} \input ward \flushlayer[two] \input ward \stoptext As your plan is to make a document with layers only \flushlayer is the better choice because you can do this: \definelayer[content] \definestartstop [PAGE] [after={\flushlayer[content]}] \setuplayout[page] \starttext \startPAGE \setlayer[content][x=3cm,y=4cm]{A} \setlayerframed[content][x=7cm,y=2cm,frame=off,foregroundcolor=blue]{B} \stopPAGE \startPAGE \setlayer[content][x=3cm,y=8cm]{\externalfigure[cow]} \stopPAGE \stoptext Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________