From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/84898 Path: news.gmane.org!not-for-mail From: Pablo Rodriguez Newsgroups: gmane.comp.tex.context Subject: Re: bug in multiple layouts? Date: Sat, 19 Oct 2013 00:24:08 +0200 Message-ID: <5261B508.2090906@gmx.es> References: <526155BA.2030604@gmx.es> <1A0271BE-A9B7-47A0-BD57-500D03F125FF@gmail.com> 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 1382135064 24666 80.91.229.3 (18 Oct 2013 22:24:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Oct 2013 22:24:24 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Oct 19 00:24:29 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 1VXIT3-0003Wn-QT for gctc-ntg-context-518@m.gmane.org; Sat, 19 Oct 2013 00:24:25 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 79F2A101EA; Sat, 19 Oct 2013 00:21:36 +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 JiSHi6FZ3Amc; Sat, 19 Oct 2013 00:21:33 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id AA2FB101E3; Sat, 19 Oct 2013 00:21:33 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CEA4F101E3 for ; Sat, 19 Oct 2013 00:21: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 kX8GVETWGZv9 for ; Sat, 19 Oct 2013 00:21:29 +0200 (CEST) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id 57671101DE for ; Sat, 19 Oct 2013 00:21:29 +0200 (CEST) Original-Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r9IMOEq1027327 for ; Sat, 19 Oct 2013 00:24:16 +0200 Original-Received: from localhost.localdomain ([79.144.199.63]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0LjLwB-1W9wCQ3DMV-00dYC9 for ; Sat, 19 Oct 2013 00:24:14 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.0 In-Reply-To: <1A0271BE-A9B7-47A0-BD57-500D03F125FF@gmail.com> X-Provags-ID: V03:K0:JLnclMgrk3v0xNtH4GBf4mKJAqMQ1pHb18xrmfiSlxLXIoUHzFg 0vgcAJYdm1XYmtISM61NLXItt10XNi6wQ8maRo12Tkam4tYMW6PwWphZDJAn0P8Fii2jxPB +GuaJGK78juM4AFmauVXTgJL8pmChtGStJc2UI4s8Td7757mski3oiu8gCHmRfg/nUBr2md HQcLRlxlT2s/FAbQHBE8w== X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=212.227.17.20; 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: 0NKCKoesO - b3e009c042ee - 20131019 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 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:84898 Archived-At: On 10/18/2013 08:30 PM, Wolfgang Schuster wrote: >> [...] >> I found two issues: the first lines on the second page have the margin >> from previous page, and from the third page text doesn=92t reach the page >> bottom. >> >> Am I missing something or have I found a bug? > = > 1. reset is a keyword for \setuplayout (single argument version) and > not a name for a predefined layout > = > 2. You can=92t define layouts for page ranges (e.g. 2-last), only page > numbers (e.g. 2,5, or -3), names (e.g. mylayout) and keywords (e.g. > first, last, odd and even) are possible. Many thanks for your reply, Wolfgang. I want to have a different top and bottom space only for the first page. >From I what I understand, here is a new sample (that doesn=92t work): \showframe \setuppagenumbering[alternative=3Ddoublesided, location=3D] \setuplayout[margin=3D20mm, width=3Dfit, topspace=3D45mm, bottomspace=3D25m= m, height=3Dfit] \definelayout[first][topspace=3D110mm, bottomspace=3D30mm] \starttext \dorecurse{20}{\input knuth\par} \stoptext I define a the standard layout, a layout for the first page, but I don=92t know why the text doesn=92t fill the full text area in pages other than the first. > 3. The width of a paragraph is fixed and tex doesn=92t changed the > width of the part which is moved to the next page (there are a fix tricks= to > work around this limitation but they work only when you have a text = > only document). > = > 4. TeX has its limitations and you have to live with them, with > LuaTeX there are ways to get rid of a few of them but it takes time > to write the necessary code As a workaround: is it possible that the text flow avoids layers as if it were floats? What I mean is that in the following sample the text flow avoids the rectangle: \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{4}{\input knuth\par} \stoptext How could this be done? 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 ___________________________________________________________________________= ________