From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/84931 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: issue with layers and layouts Date: Mon, 21 Oct 2013 17:43:16 +0200 Message-ID: References: <5265470D.3010105@gmx.es> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1343320214==" X-Trace: ger.gmane.org 1382370200 17920 80.91.229.3 (21 Oct 2013 15:43:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2013 15:43:20 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Oct 21 17:43:25 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 1VYHdc-0006xA-Tm for gctc-ntg-context-518@m.gmane.org; Mon, 21 Oct 2013 17:43:24 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 581DE10208; Mon, 21 Oct 2013 17:40:31 +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 oP4fBMnTldwz; Mon, 21 Oct 2013 17:40:29 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 1565B10201; Mon, 21 Oct 2013 17:40:29 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 484D710201 for ; Mon, 21 Oct 2013 17:40:27 +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 w-ZF9k90Ycjr for ; Mon, 21 Oct 2013 17:40:25 +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 1B552101FF for ; Mon, 21 Oct 2013 17:40:24 +0200 (CEST) Original-Received: from mail-la0-x22a.google.com (mail-la0-x22a.google.com [IPv6:2a00:1450:4010:c03::22a]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r9LFhGjs014786 for ; Mon, 21 Oct 2013 17:43:16 +0200 Original-Received: by mail-la0-f42.google.com with SMTP id ea20so1695563lab.15 for ; Mon, 21 Oct 2013 08:43:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=kAZiyc0QYfqWbUQdrU6W2zYhPw1oL8WIlz1lwhWYwHc=; b=dJHKwhNvOAlTQ/IfpEeirDOQQCBzelzg93HAqaCtC1751/ll5G99B1p4k9cvnq61nN 4ZX4wDcoNm6V2JjzgXOFWOqKwU56umsSRcVju/EuUn1O+U1ymkVyR2h3YMnATSOf/v18 /hPU5WNPpKwhfdbL8MBQvTLVuA3aJr/KurHCTxB2ZjYJY8tbKlZRlZx+rd1A00Jmk1gV y9nOYEQ0Xc/YEz8mGMGpC2OvnZUF49qY9rmjAWNR4yXCqtHZX8u5tW0yirqqiAVQbsLk ++JAoE5H14oghqkaqzgEUwDLL6WvFxNgEP2VrGU+7WiDmGxeb4RxokbxZOhwNsEfSH6Z 5x+g== X-Received: by 10.112.172.137 with SMTP id bc9mr13707674lbc.21.1382370196266; Mon, 21 Oct 2013 08:43:16 -0700 (PDT) Original-Received: by 10.114.185.202 with HTTP; Mon, 21 Oct 2013 08:43:16 -0700 (PDT) In-Reply-To: <5265470D.3010105@gmx.es> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4010:c03::22a; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03KDPHg9W - 7ad6f04873c2 - 20131021 (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:84931 Archived-At: --===============1343320214== Content-Type: multipart/alternative; boundary=001a11c264567f248704e9422407 --001a11c264567f248704e9422407 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Mon, Oct 21, 2013 at 5:23 PM, Pablo Rodriguez wrote: > Dear list, > > I have the following sample and two issues that I must solve: > > \showframe\setuplayout[margin=3D20mm, width=3Dfit, topspace=3D45mm, > bottomspace=3D25mm, > height=3Dfit] > \definelayout[first][topspace=3D70mm, bottomspace=3D30mm] > \definelayer[avoidasfloat][x=3D0mm, y=3D0mm, hoffset=3D8mm, voffset=3D101= mm, > 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\par} > \stoptext > > First, the layout is right on the first two pages, but it is wrong from > page three. The text doesn=E2=80=99t reach the bottom frame. > > I have the info on multiple layers from the wiki (it isn=E2=80=99t a comp= lete > example, though). After Wolfgang=E2=80=99s reply last Friday, I spend hou= rs > searching on the mailing list trying to find relevant information to > know what I was doing wrong. > > If this isn=E2=80=99t 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] \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\par} \stoptext > My second question is about the layer: is there no way to force the text > to avoid it as if it were a float? > > Many thanks for your help, > hm what do you want to avoid ? --=20 luigi --001a11c264567f248704e9422407 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable



On Mon, Oct 21, 2013 at 5:23 PM, Pablo Rodriguez = <oinos@gmx.es><= /span> wrote:
Dear list,

I have the following sample and two issues that I must solve:

\showframe\setuplayout[margin=3D20mm, width=3Dfit, topspace=3D45mm,
bottomspace=3D25mm,
height=3Dfit]
\definelayout[first][topspace=3D70mm, bottomspace=3D30mm]
\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\par}
\stoptext

First, the layout is right on the first two pages, but it is wrong from
page three. The text doesn=E2=80=99t reach the bottom frame.

I have the info on multiple layers from the wiki (it isn=E2=80=99t a comple= te
example, though). After Wolfgang=E2=80=99s reply last Friday, I spend hours=
searching on the mailing list trying to find relevant information to
know what I was doing wrong.

I= f this isn=E2=80=99t a bug, what am I missing here?

from http://wiki.contextgarden.net/Odd,_even_,_firs= t_page_not_working

\showframe
%\setuplayout[mar= gin=3D20mm, width=3Dfit, topspace=3D45mm,
%=C2=A0 bottomspace=3D25mm,
%=C2=A0 height=3Dfit]

\definelayout[1= ][topspace=3D120mm, bottomspace=3D30mm,height=3Dfit]

\definelayout[e= ven][margin=3D20mm, width=3Dfit, topspace=3D45mm,
=C2=A0 bottomspace=3D2= 5mm,
=C2=A0 height=3Dfit]

\definelayout[odd][margin=3D20mm, width=3Dfit, topspace=3D45mm,
=C2=A0 b= ottomspace=3D25mm,
=C2=A0 height=3Dfit]



\definelayer[avoi= dasfloat][x=3D0mm, y=3D0mm, hoffset=3D8mm, voffset=3D101mm,location=3D{righ= t,bottom}, state=3Dstart]
\setlayer[avoidasfloat]{\startMPcode
=C2=A0 draw (0mm,0mm)--(55mm,0mm) ;=
=C2=A0 draw (0mm,0mm)--(0mm,-86mm) ;
=C2=A0 draw (0mm,-86mm)--(55mm,= -86mm) ;
=C2=A0 draw (55mm,-86mm)--(55mm,0mm) ;
=C2=A0 \stopMPcode}
\setupbackgrounds[page][background=3D{avoidasfloat}]
\starttext
\dorecurse{40}{\input knuth\par}
\stoptext


=C2= =A0
My second question is about the layer: is there no way to force the text to avoid it as if it were a float?

Many thanks for your help,

hm what do you want to avoid ?

--
luigi
--001a11c264567f248704e9422407-- --===============1343320214== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1343320214==--