From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/84946 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: issue with layers and layouts Date: Tue, 22 Oct 2013 12:29:01 +0200 Message-ID: References: <5265470D.3010105@gmx.es> <52655631.4000107@gmx.es> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1382437748 16950 80.91.229.3 (22 Oct 2013 10:29:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Oct 2013 10:29:08 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Oct 22 12:29:13 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VYZD7-00043L-DZ for gctc-ntg-context-518@m.gmane.org; Tue, 22 Oct 2013 12:29:13 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id ABE7910205; Tue, 22 Oct 2013 12:26:18 +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 LxaciQRtGN36; Tue, 22 Oct 2013 12:26:16 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 9AA8610210; Tue, 22 Oct 2013 12:26:16 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CAAA310210 for ; Tue, 22 Oct 2013 12:26: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 qqjbHPjXiezw for ; Tue, 22 Oct 2013 12:26:10 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 27AC810205 for ; Tue, 22 Oct 2013 12:26:10 +0200 (CEST) Original-Received: from mail-ee0-x22a.google.com (mail-ee0-x22a.google.com [IPv6:2a00:1450:4013:c00::22a]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r9MAT3xt031884 for ; Tue, 22 Oct 2013 12:29:03 +0200 Original-Received: by mail-ee0-f42.google.com with SMTP id b45so4385061eek.1 for ; Tue, 22 Oct 2013 03:29:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=sV9m/88BeVUPw1PLt+ZdFUNdJjXsHx+VerC4awo8Mt8=; b=e/slVnQsXlNHnxqMB8DnsRlWTZYc7rCeeLUg7hzp+a/wHKY/sJPkkLI2nQTIQUyrZ3 yzTeZWRJeEA/KcBMvAEhY5XNmjawRdXIZxcBRIHeMOh4ezt0QahQ9Vp6HGWtapG8q+fs rey05z574k7F1dL8R1eLFtXglGpWUwrEzvhHO2bW/RWiviaiVT89t9akLWQoCQOzEPuN JxUC9RFI8ahTqTR9TInRqjL5p/1orl/s5PdyelCfZLOxH2TqXWRWmNWuQqRwgwEneEzH j7uGuLjzQHDiEfw/6ouO8C1g8nsizeH8NSulheNkmfPCzMk0Zi0MXofYN7w/G78zDMlQ iZEQ== X-Received: by 10.15.24.142 with SMTP id j14mr1536601eeu.103.1382437743371; Tue, 22 Oct 2013 03:29:03 -0700 (PDT) Original-Received: from keima.localdomain (x2f253ad.dyn.telefonica.de. [2.242.83.173]) by mx.google.com with ESMTPSA id s3sm55146527eeo.3.2013.10.22.03.29.02 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 22 Oct 2013 03:29:02 -0700 (PDT) In-Reply-To: <52655631.4000107@gmx.es> X-Mailer: Apple Mail (2.1510) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4013:c00::22a; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03KEat3Xp - b7331bafe9c2 - 20131022 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) 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:84946 Archived-At: Am 21.10.2013 um 18:28 schrieb Pablo Rodriguez : > I want the text flow to avoid the layer "avoidasfloat" as it avoids the > figures. > = > \definelayer[avoidasfloat][x=3D0mm, y=3D0mm, hoffset=3D8mm, > voffset=3D101mm,location=3D{right,bottom}, state=3Dstart] > \setlayer[avoidasfloat]{\startMPcode > draw (0mm,0mm)--(55mm,0mm) ; > draw (0mm,0mm)--(0mm,-86mm) ; > draw (0mm,-86mm)--(55mm,-86mm) ; > draw (55mm,-86mm)--(55mm,0mm) ; > \stopMPcode > } > \setupbackgrounds[page][background=3D{avoidasfloat}] > \starttext > \dorecurse{40}{\input knuth\placefigure[right]{}{}\par} > \stoptext > = > Layer has text inside in the sample above. I=92d like to have it as a flo= at. > = > Many thanks for your help, You can use positioned layers (mentioned in the metafun manual but currentl= y broken in MkIV) but you have to place the layer with a float to reserve the necessary space. % engine=3Dpdftex \definelayer[avoidasfloat][position=3Dyes] \setupbackgrounds[page][background=3Davoidasfloat] \starttext \placefigure[right,none]{}{\setlayer[avoidasfloat]{\startMPcode draw unitsq= uare scaled 4cm ; \stopMPcode}} \input knuth \stoptext 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 ___________________________________________________________________________= ________