From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/84932 Path: news.gmane.org!not-for-mail From: Pablo Rodriguez Newsgroups: gmane.comp.tex.context Subject: Re: issue with layers and layouts Date: Mon, 21 Oct 2013 18:28:33 +0200 Message-ID: <52655631.4000107@gmx.es> References: <5265470D.3010105@gmx.es> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1382372920 22682 80.91.229.3 (21 Oct 2013 16:28:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2013 16:28:40 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Oct 21 18:28:46 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 1VYILU-0002Rh-3e for gctc-ntg-context-518@m.gmane.org; Mon, 21 Oct 2013 18:28:44 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A1F4D10203; Mon, 21 Oct 2013 18:25:50 +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 D-CbYTpJpOQI; Mon, 21 Oct 2013 18:25:48 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 54D0110201; Mon, 21 Oct 2013 18:25:48 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 668A0101FF for ; Mon, 21 Oct 2013 18:25:47 +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 lKnnxADU6tTa for ; Mon, 21 Oct 2013 18:25:46 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 28A2410201 for ; Mon, 21 Oct 2013 18:25:46 +0200 (CEST) Original-Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r9LGXXtG001223 for ; Mon, 21 Oct 2013 18:33:33 +0200 Original-Received: from localhost.localdomain ([81.44.210.132]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0Lbujs-1VxlFx2lb2-00jGfG for ; Mon, 21 Oct 2013 18:28:37 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.0 In-Reply-To: X-Provags-ID: V03:K0:C2bo/g1Dq/WEEPJg+Bp0+24fS6tBZ5IKtjAsrrUfEbKjzrBnGKi 1XPE5z4n5NKuooVdb2Y49eVcP2IkdcAp6Vp+YWFNS1YhYL9KMGQuJLSzntQJx6r3KO5FzUY uRFSvRO4mIiwS+TEuRj/UtiyaMXU7HXrDbz929jNeQEgTTayndM/nWylBeDeM+4E6KVnJ9v C2MUCXC4racnbU6tX++XQ== X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=212.227.17.21; country=DE; latitude=51.0000; longitude=9.0000; http://maps.google.com/maps?q=51.0000,9.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01KDQxxkj - a204b496cef3 - 20131021 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 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:84932 Archived-At: On 10/21/2013 05:43 PM, luigi scarso wrote: > On Mon, Oct 21, 2013 at 5:23 PM, Pablo Rodriguez wrote: > [...] > First, the layout is right on the first two pages, but it is wrong from > page three. The text doesn=92t reach the bottom frame. > [...] > If this isn=92t a bug, what am I missing here? > = > from http://wiki.contextgarden.net/Odd,_even_,_first_page_not_working > = > \showframe > %\setuplayout[margin=3D20mm, width=3Dfit, topspace=3D45mm, > % bottomspace=3D25mm, > % height=3Dfit] > = > \definelayout[1][topspace=3D120mm, bottomspace=3D30mm,height=3Dfit] > = > \definelayout[even][margin=3D20mm, width=3Dfit, topspace=3D45mm, > bottomspace=3D25mm, > height=3Dfit] > = > \definelayout[odd][margin=3D20mm, width=3Dfit, topspace=3D45mm, > bottomspace=3D25mm, > height=3Dfit] Many thanks for your reply, Luigi. If I don=92t get it wrong, if I define a layout for the first page, I have to define it for even and odd pages, haven=92t I?. > My second question is about the layer: is there no way to force the text > to avoid it as if it were a float? > = > hm what do you want to avoid ? 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 float. Many thanks for your help, Pablo -- = http://www.ousia.tk ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________